Commit fb04808346355e9cf085eb3ad0cfbd2c70d4024e

Authored by yvan.ni
1 parent 453d4ade

去掉B包的测肤

Showing 49 changed files with 0 additions and 4136 deletions
packageB/pages/AI-test-skin/analyse/analyse.js deleted
1   -// packageB/pages/AI-test-skin/analyse/analyse.js
2   -const app = getApp();
3   -const request = app.request;
4   -const os = app.globalData;
5   -const setting = os.setting;
6   -const ut = require('../../../../utils/util');
7   -Page({
8   -
9   - /**
10   - * 页面的初始数据
11   - */
12   - data: {
13   - iurl: setting.imghost,
14   - per:0,
15   - timer:0,
16   - img:null,
17   - sourceimg:null,
18   - err_map:null,
19   - },
20   -
21   - /**
22   - * 生命周期函数--监听页面加载
23   - */
24   - onLoad: function (options) {
25   - var th=this;
26   - //设置错误码分析
27   - this.set_err_map();
28   - //进度条加载
29   - this.timer();
30   - //接口开始分析
31   - setTimeout(function () {
32   - //th.analysis_img();
33   - //先检验一下图片
34   - th.img_check(function () {
35   -
36   - });
37   - },800)
38   -
39   - },
40   - //定时器
41   - timer:function (func) {
42   - var per=this.data.per+5;
43   - var th=this;
44   - if(per<96){
45   - th.setData({per:per});
46   - setTimeout(function () {
47   - th.timer();
48   - },400)
49   - }
50   - },
51   -
52   - //错误码表
53   - set_err_map:function () {
54   - var map={
55   - "2":"服务暂不可用",
56   - "4":"集群超限额",
57   - "6":"没有接口权限",
58   - "17":"每天流量超限额",
59   - "18":"QPS超限额",
60   - "19":"请求总量超限额",
61   - "100":"无效的access_token参数",
62   - "110":"Access Token失效",
63   - "111":" Access token过期",
64   - "222001":"必要参数未传入",
65   - "222002":"参数格式错误",
66   - "222003":"参数格式错误",
67   - "222004":"参数格式错误",
68   - "222005":"参数格式错误",
69   - "222006":"参数格式错误",
70   - "222007":"参数格式错误",
71   - "222008":"参数格式错误",
72   - "222009":"参数格式错误",
73   - "222010":"参数格式错误",
74   - "222011":"参数格式错误",
75   - "222012":"参数格式错误",
76   - "222013":"参数格式错误",
77   - "222014":"参数格式错误",
78   - "222015":"参数格式错误",
79   - "222016":"参数格式错误",
80   - "222017":"参数格式错误",
81   - "222018":"参数格式错误",
82   - "222019":"参数格式错误",
83   - "222020":"参数格式错误",
84   - "222021":"参数格式错误",
85   - "222022":"身份证号不符合要求,备注:中国大陆身份证号的每一位数字都有其生成规则,不可随意填写。",
86   - "222023":"参数格式错误",
87   - "222024":"参数格式错误",
88   - "222025":"参数格式错误",
89   - "222026":"参数格式错误",
90   - "222027":"验证码长度错误(最小值大于最大值)",
91   - "222028":"参数格式错误",
92   - "222029":"参数格式错误",
93   - "222030":"参数格式错误",
94   - "222039":"参数格式错误",
95   - "222200":"该接口需使用application/json的格式进行请求",
96   - "222201":"服务端请求失败",
97   - "222202":"图片中没有人脸",
98   - "222203":"无法解析人脸",
99   - "222204":"从图片的url下载图片失败",
100   - "222205":"服务端请求失败",
101   - "222206":"服务端请求失败",
102   - "222207":"未找到匹配的用户",
103   - "222208":"图片的数量错误",
104   - "222209":"face token不存在",
105   - "222210":"人脸库中用户下的人脸数目超过限制",
106   - "222300":"人脸图片添加失败",
107   - "222301":"获取人脸图片失败",
108   - "222302":"服务端请求失败",
109   - "222303":"获取人脸图片失败",
110   - "222152":"人脸属性编辑,target参数错误",
111   - "222514":"人脸属性编辑v2调用服务失败,请重试",
112   - "223100":"操作的用户组不存在",
113   - "223101":"该用户组已存在",
114   - "223102":"找不到该用户",
115   - "223103":"找不到该用户",
116   - "223104":"group_list包含组数量过多",
117   - "223105":"该人脸已存在",
118   - "223106":"该人脸不存在",
119   - "223107":"人脸库中人脸复制时源组与目标组的scene_type不同",
120   - "223110":"uid_list包含数量过多",
121   - "223111":"目标用户组不存在",
122   - "223112":"quality_conf格式不正确",
123   - "223113":"人脸有被遮挡",
124   - "223114":"人脸模糊",
125   - "223115":"人脸光照不好",
126   - "223116":"人脸不完整",
127   - "223117":"app_list包含app数量过多",
128   - "223118":"质量控制项错误",
129   - "223119":"活体控制项错误",
130   - "223120":"活体检测未通过",
131   - "223121":"质量检测未通过 左眼遮挡程度过高",
132   - "223122":"质量检测未通过 右眼遮挡程度过高",
133   - "223123":"质量检测未通过 左脸遮挡程度过高",
134   - "223124":"质量检测未通过 右脸遮挡程度过高",
135   - "223125":"质量检测未通过 下巴遮挡程度过高",
136   - "223126":"质量检测未通过 鼻子遮挡程度过高",
137   - "223127":"质量检测未通过 嘴巴遮挡程度过高",
138   - "222901":"参数校验初始化失败",
139   - "222902":"参数校验初始化失败",
140   - "222903":"参数校验初始化失败",
141   - "222904":"参数校验初始化失败",
142   - "222905":"接口初始化失败",
143   - "222906":"接口初始化失败",
144   - "222907":"缓存处理失败",
145   - "222908":"缓存处理失败",
146   - "222909":"缓存处理失败",
147   - "222910":"数据存储处理失败",
148   - "222911":"数据存储处理失败",
149   - "222912":"数据存储处理失败",
150   - "222913":"接口初始化失败",
151   - "222914":"接口初始化失败",
152   - "222915":"后端服务连接失败",
153   - "222916":"后端服务连接失败",
154   - "222304":"图片尺寸太大",
155   - "222305":"当前版本不支持图片存储",
156   - "223128":"正在清理该用户组的数据",
157   - "223136":"该组内存在关联图片,无法新建相同名称组",
158   - "222361":"公安服务连接失败",
159   - "222046":"参数格式错误",
160   - "222101":"参数格式错误",
161   - "222102":"参数格式错误",
162   - "222307":"图片非法 鉴黄未通过",
163   - "222308":"图片非法 含有政治敏感人物",
164   - "222211":"人脸融合失败 模板图质量不合格",
165   - "222212":"人脸融合失败",
166   - "223129":"人脸未面向正前方(人脸的角度信息大于30度)",
167   - "223130":"spoofing_control参数格式错误",
168   - "223131":"合成图检测未通过",
169   - "223201":"请求参数scene_type 格式错误",
170   - "223202":"识别时请求的scene_type与group设置的scene_type不匹配",
171   - }
172   - this.setData({err_map:map});
173   - },
174   -
175   - /**
176   - * 生命周期函数--监听页面显示
177   - */
178   - onShow: function (){ },
179   -
180   - /**
181   - * 生命周期函数--监听页面隐藏
182   - */
183   - onHide: function () {
184   -
185   - },
186   -
187   - /**
188   - * 生命周期函数--监听页面卸载
189   - */
190   - onUnload: function () {
191   -
192   - },
193   -
194   -
195   - /**
196   - * 页面上拉触底事件的处理函数
197   - */
198   - onReachBottom: function () {
199   -
200   - },
201   -
202   - //检查图片有没有OK
203   - img_check:function (func) {
204   - var th=this;
205   - var data={
206   - "appid": "25521854",
207   - "image": getApp().globalData.face_SourceImg,
208   - "face_field": "age,expression,face_shape,gender,glasses,landmark,landmark150,quality,eye_status,emotion,face_type,mask,spoofing",
209   - "image_type": "URL"
210   - }
211   - //开始调用接口,进行对图片进行判断是否符合标准
212   - this.json_post("/api/weshop/baidubce/face/skindetect",data,function (res) {
213   - if(res.data.code==0){
214   - //检查的字段存储
215   - var check_data=th.data.check_data=res.data.data;
216   - check_data=check_data.face_list[0];
217   - console.log(check_data);
218   - //检查睁眼闭眼
219   - var eye_status=check_data.eye_status;
220   - if(eye_status.left_eye>0.1 || eye_status.right_eye>0.1) {
221   - var msg="未闭眼拍照";
222   - th.go_error(msg);
223   - return false;
224   - }
225   - //检查是不是有带眼镜
226   - if(check_data.glasses.type!='none'){
227   - var msg="有佩戴眼镜";
228   - th.go_error(msg);
229   - return false;
230   - }
231   - //检查头部的角度
232   - var angle=check_data.angle;
233   - if(Math.abs(angle.Pitch)>20) {
234   - var msg="头部的俯仰角度过大";
235   - th.go_error(msg);
236   - return false;
237   - }
238   - if(Math.abs(angle.Roll)>20) {
239   - var msg="头部的平面角度过大";
240   - th.go_error(msg);
241   - return false;
242   - }
243   - if(Math.abs(angle.Yaw)>20) {
244   - var msg="头部的左右角度过大";
245   - th.go_error(msg);
246   - return false;
247   - }
248   - var quality=check_data.quality;
249   - if(quality.blur>0.7){
250   - var msg="图片模糊";
251   - th.go_error(msg);
252   - return false;
253   - }
254   - //开始检查遮挡
255   - var occlusion=check_data.quality.occlusion;
256   - if(occlusion.left_eye >0.6){
257   - var msg="左眼被遮挡";
258   - th.go_error(msg);
259   - return false;
260   - }
261   - if(occlusion.right_eye>0.6){
262   - var msg="右眼被遮挡";
263   - th.go_error(msg);
264   - return false;
265   - }
266   - if(occlusion.nose>0.7){
267   - var msg="鼻子被遮挡";
268   - th.go_error(msg);
269   - return false;
270   - }
271   - if(occlusion.mouth>0.7){
272   - var msg="嘴巴被遮挡";
273   - th.go_error(msg);
274   - return false;
275   - }
276   - if(occlusion.left_cheek >0.8){
277   - var msg="左脸颊被遮挡";
278   - th.go_error(msg);
279   - return false;
280   - }
281   - if(occlusion.right_cheek >0.8){
282   - var msg="右脸颊被遮挡";
283   - th.go_error(msg);
284   - return false;
285   - }
286   - if(occlusion.chin_contour >0.6){
287   - var msg="下巴颊被遮挡";
288   - th.go_error(msg);
289   - return false;
290   - }
291   - if(quality.illumination<40){
292   - var msg="图像光照不足";
293   - th.go_error(msg);
294   - return false;
295   - }
296   - if(quality.completeness=0){
297   - var msg="人脸未显示完整";
298   - th.go_error(msg);
299   - return false;
300   - }
301   - //-- 开始调用分析的接口 --
302   - var face_token=check_data.face_token;
303   - var data={
304   - "image": face_token,
305   - "face_field": "color,smooth,acnespotmole,wrinkle,eyesattr,blackheadpore,skinface,skinquality",
306   - "image_type": "FACE_TOKEN"
307   - }
308   - th.analysis_img(data);
309   - }else{
310   - var msg=th.data.err_map[res.data.code+""];
311   - th.go_error(msg);
312   - }
313   - })
314   - },
315   -
316   - //跳转到错误页面
317   - go_error:function (msg) {
318   - let url = "/packageB/pages/AI-test-skin/fail_result/fail_result?msg="+msg; //跳到分析页
319   - wx.redirectTo({
320   - url: url
321   - });
322   - },
323   -
324   - analysis_img:function (data) {
325   - var th=this;
326   - //开始调用接口,进行分析
327   - this.json_post("/api/weshop/baidubce/face/skinAnalyze",data,function (res) {
328   - if(res.data.code==0){
329   - getApp().globalData.face_result=res.data.data;
330   - var req_data={
331   - store_id:setting.stoid,
332   - user_id:getApp().globalData.user_id,
333   - img:getApp().globalData.face_img,
334   - sourceimg:getApp().globalData.face_SourceImg,
335   - addtime:ut.gettimestamp(),
336   - resultjson:JSON.stringify(res.data.data),
337   - detectjson:JSON.stringify(th.data.check_data)
338   - }
339   - //要保存一下分析的结果
340   - th.json_post("/api/weshop/face/storeSkinface/save",req_data,function (res) {
341   - if(res.data.code==0){
342   - let url = "/packageB/pages/AI-test-skin/success_result/success_result?id="+res.data.data.id; //跳到分析页
343   - wx.redirectTo({
344   - url: url
345   - })
346   - }else{
347   - getApp().showWarning("保存失败");
348   - }
349   - })
350   - }else{
351   - var msg=th.data.err_map[res.data.code+""];
352   - let url = "/packageB/pages/AI-test-skin/fail_result/fail_result?msg="+msg; //跳到分析页
353   - wx.redirectTo({
354   - url: url
355   - })
356   - }
357   - })
358   - },
359   -
360   - /**
361   - * @param {Object} url //url地址
362   - * @param {Object} data //data入参
363   - * @param {Object} succ //成功的回调
364   - * @param {Object} fail //失败的回调
365   - */
366   - json_post:function(url,data,succ,fail,mathod){
367   - var Mathod="POST";
368   - if (mathod) Mathod = mathod;
369   - if(url.indexOf("http")==-1) url=getApp().globalData.setting.url +url;
370   - var str = JSON.stringify(data);
371   - wx.request({
372   - url: url,
373   - data: str,
374   - method: Mathod,
375   - header: {
376   - 'content-type': 'application/json'
377   - },// 设置请求的 header
378   - success: function (res) {succ(res); },
379   - fail:function(res){fail(res);}
380   - })
381   - },
382   -
383   -
384   -})
385 0 \ No newline at end of file
packageB/pages/AI-test-skin/analyse/analyse.json deleted
1   -{
2   - "usingComponents": {}
3   -}
4 0 \ No newline at end of file
packageB/pages/AI-test-skin/analyse/analyse.wxml deleted
1   -<view class="content">
2   - <view class="img" style="margin-left: -38rpx"></view>
3   - <view style="text-align: center;margin-top: -20%;">
4   - <text style="color: #fff;">正在分析...</text>
5   - <progress border-radius="6" percent="{{per}}" activeColor="#fff" backgroundColor="#85898a" class="progress"></progress>
6   - </view>
7   -</view>
packageB/pages/AI-test-skin/analyse/analyse.wxss deleted
1   -/* packageB/pages/AI-test-skin/analyse/analyse.wxss */
2   -page {
3   - width: 100%;
4   - height: 100%;
5   -}
6   -
7   -.content {
8   - /* display: flex;
9   - flex-direction: column;
10   - align-items: center; */
11   - background: #515658;
12   - width: 100%;
13   - height: 100%;
14   -
15   -}
16   -
17   -@keyframes mymove {
18   - from {
19   - background-position: 0, 0;
20   - }
21   -
22   - to {
23   - background-position: -9450px 0;
24   - }
25   -}
26   -
27   -.img {
28   - background: url("https://mshopimg.yolipai.net//miniapp/images/skinimg/11.png");
29   - margin-top: 15%;
30   - display: inline-block;
31   - width: 350px;
32   - height: 350px;
33   - transform: scale(0.55);
34   - animation: 1s mymove infinite steps(27, end);
35   -}
36   -
37   -.progress {
38   - margin-top: 3%;
39   - width: 60%;
40   - /* text-align: center; */
41   - margin-left: 50%;
42   - transform: translateX(-50%);
43   -}
44 0 \ No newline at end of file
packageB/pages/AI-test-skin/fail_result/fail_result.js deleted
1   -/*
2   - * @Author: your name
3   - * @Date: 2022-02-15 10:01:57
4   - * @LastEditTime: 2022-02-16 15:40:54
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEet urkl
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\shoot_notice\shoot_notice.js
8   - */
9   -// packageB/pages/AI-test-skin/shoot_notice/shoot_notice.js
10   -const app = getApp();
11   -const request = app.request;
12   -const os = app.globalData;
13   -const setting = os.setting;
14   -const ut = require('../../../../utils/util');
15   -Page({
16   -
17   - /**
18   - * 页面的初始数据
19   - */
20   - data: {
21   - iurl: setting.imghost,
22   - msg:null,
23   - },
24   -
25   - /**
26   - * 生命周期函数--监听页面加载
27   - */
28   - onLoad: function (options) {
29   - var msg=options.msg;
30   - msg=decodeURIComponent(msg);
31   - this.setData({msg:msg});
32   - },
33   -
34   - /**
35   - * 生命周期函数--监听页面显示
36   - */
37   - onShow: function () {
38   -
39   - },
40   -
41   - /**
42   - * 生命周期函数--监听页面隐藏
43   - */
44   - onHide: function () {
45   -
46   - },
47   -
48   - /**
49   - * 页面上拉触底事件的处理函数
50   - */
51   - onReachBottom: function () {
52   -
53   - },
54   - //从相册中选择图片
55   - back_to:function () {
56   - let url = "/packageB/pages/AI-test-skin/shoot_notice/shoot_notice";
57   - app.goto(url);
58   - },
59   -
60   -
61   -
62   -
63   -})
64 0 \ No newline at end of file
packageB/pages/AI-test-skin/fail_result/fail_result.json deleted
1   -{
2   - "usingComponents": {},
3   - "navigationBarTitleText": "分析结果"
4   -}
5 0 \ No newline at end of file
packageB/pages/AI-test-skin/fail_result/fail_result.wxml deleted
1   -<view class="content">
2   - <view class="t_c" style="padding-top: 80rpx">
3   - <view>
4   - <view style="position: relative;display: inline-block">
5   - <text class="iconfont icon-tupian" style="color: #4bd6df;font-size: 80rpx"></text>
6   - <text class="iconfont icon-prompt-filling" style="color:red;font-size: 40rpx;position:absolute;left: -8rpx;top: 0;"></text>
7   - </view>
8   - </view>
9   - <view style="font-size:32rpx;color: #333">上传图片符合要求</view>
10   - <view style="font-size: 26rpx;color: #555">请重新更换图片获取相关检测</view>
11   - <view style="border-bottom: 1rpx solid #eee; margin:0 40rpx;margin-top:40rpx;"></view>
12   - </view>
13   -
14   - <view style="padding:60rpx; padding-bottom: 70rpx;">
15   - <view style="font-size: 32rpx;">失败原因:</view>
16   - <view style="font-size: 26rpx;display: flex;align-items: center; margin-top: 20prx">
17   - <text class="iconfont icon-account" style="font-size: 56rpx;margin-right: 20rpx"></text>
18   - <view>{{msg}}</view>
19   - </view>
20   - </view>
21   -
22   -</view>
23   -<view style="height: 300rpx;background-color: #e7f5fb;">
24   - <view class="btn_fixed">
25   - <view class="btn" bindtap="back_to">重新拍照</view>
26   - </view>
27   -</view>
28 0 \ No newline at end of file
packageB/pages/AI-test-skin/fail_result/fail_result.wxss deleted
1   -/* packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxss */
2   -page {
3   - width: 100vw;
4   - height: 100%;
5   - padding: 40rpx 30rpx 0 30rpx;
6   - box-sizing: border-box;
7   - background-color: #e7f5fb;
8   -}
9   -
10   -.content {
11   - width: 100%;
12   - /* height: 100%; */
13   - border-radius: 25rpx;
14   - /* padding: 30rpx; */
15   - background-color: #fff;
16   -}
17   -
18   -
19   -
20   -
21   -.btn {
22   -
23   - /* height: 150rpx; */
24   - /* margin-left: 50%; */
25   - margin: 70rpx 0 30rpx 50%;
26   - transform: translateX(-50%);
27   - background: #4bd6df;
28   - padding: 20rpx;
29   - width: 50%;
30   - text-align: center;
31   - border-radius: 40rpx;
32   - color: #fff;
33   -}
34   -.btn_fixed {
35   - width: 100%;
36   - bottom: 0;
37   - height: 300rpx;
38   - background: #e7f5fb;
39   -}
40   -.notice {
41   - text-align: center;
42   - color: red;
43   - font-size: 28rpx;
44   -}
45   -
46   -.cover-layer {
47   - position: fixed;
48   - left: 0;
49   - top: 0;
50   - right: 0;
51   - bottom: 0;
52   - z-index: 11;
53   - background: rgba(0,0,0,0.4);
54   - width: 100%;
55   - height: 100%;
56   -}
57   -
58   -.flex{display: flex}
59   -.jc-center{
60   - justify-content: center;
61   -}
62   -.ac{align-items: center}
63   -
64   -@font-face {
65   - font-family: 'iconfont';
66   - /* project id 2125414 */
67   - src: url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.eot');
68   - src: url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.eot?#iefix') format('embedded-opentype'),
69   - url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.woff2') format('woff2'),
70   - url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.woff') format('woff'),
71   - url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.ttf') format('truetype'),
72   - url('//at.alicdn.com/t/font_2125414_o4quhtfqnbr.svg#iconfont') format('svg');
73   -}
74   -
75   -.icon-pic:before {
76   - content: "\e620";
77   -}
78   -
79   -.t_c{text-align: center}
80   -
81   -
82   -@font-face {
83   - font-family: "iconfont"; /* Project id 3188718 */
84   - src: url('iconfont.woff2?t=1645080046840') format('woff2'),
85   - url('iconfont.woff?t=1645080046840') format('woff'),
86   - url('iconfont.ttf?t=1645080046840') format('truetype');
87   -}
88   -
89   -.icon-tupian:before {
90   - content: "\e997";
91   -}
92   -
93   -.icon-account:before {
94   - content: "\e6a3";
95   -}
96   -
97   -.icon-prompt-filling:before {
98   - content: "\e68b";
99   -}
100   -
101   -
102   -
103   -
packageB/pages/AI-test-skin/fail_result/iconfont.ttf deleted
No preview for this file type
packageB/pages/AI-test-skin/fail_result/iconfont.woff deleted
No preview for this file type
packageB/pages/AI-test-skin/fail_result/iconfont.woff2 deleted
No preview for this file type
packageB/pages/AI-test-skin/history_record/history_record.js deleted
1   -// packageB/pages/AI-test-skin/history_record/history_record.js
2   -import * as echarts from '../../../components/ec-canvas/echarts';
3   -
4   -const app = getApp();
5   -const request = app.request;
6   -const os = app.globalData;
7   -const setting = os.setting;
8   -const ut = require('../../../../utils/util');
9   -let initChart = null;
10   -const option = {
11   - backgroundColor: 'white',
12   - tooltip: {},
13   - grid:{
14   - // left:'20%',
15   - top:'30%',
16   - // right:'10%'
17   - },
18   - legend: {
19   - icon: 'circle',
20   - itemWidth: 5,
21   - itemHeight: 5,
22   - selected: {
23   - '综合': true,
24   - '毛孔': false,
25   - '黑头': false,
26   - '色斑': false,
27   - '皱纹': false,
28   - '痤疮': false,
29   - '敏感度': false,
30   - '黑眼圈': false,
31   - },
32   - padding:[20,50],
33   - data: [
34   - {
35   - name: '综合',
36   - // textStyle: {
37   - // backgroundColor: "#999",
38   - // }
39   - },
40   - {
41   - name: '毛孔',
42   - }, {
43   - name: '黑头',
44   - },
45   - {
46   - name: '色斑',
47   - },
48   - {
49   - name: '皱纹',
50   - },
51   - {
52   - name: '痤疮',
53   - },
54   - {
55   - name: '敏感度',
56   - },
57   - {
58   - name: '黑眼圈',
59   - },
60   - ]
61   - },
62   - xAxis: {
63   - type: 'category',
64   - data: ["02/11", "02/16", "02/17"]
65   - },
66   - yAxis: {
67   - type: 'value',
68   - min: 0,
69   - max: 100,
70   - splitNumber: 4,
71   - interval: 25,
72   - },
73   - series: [
74   - {
75   - name: '综合',
76   - type: 'bar',
77   - itemStyle: {
78   - color: '#84e1eb',
79   - borderRadius: 3,
80   - },
81   - barWidth: 8,
82   - data: [5, 20, 36, 10, 10, 20]
83   - },
84   - {
85   - name: '毛孔',
86   - type: 'line',
87   - lineStyle: {
88   - color: "#fbb11f"
89   - },
90   - itemStyle: {
91   - color: '#fbb11f',
92   - },
93   - data: [5, 20, 36, 10, 10, 20]
94   - },
95   - {
96   - name: '黑头',
97   - type: 'line',
98   - lineStyle: {
99   - color: "#e9552b"
100   - },
101   - itemStyle: {
102   - color: '#e9552b',
103   - },
104   - data: [50, 60, 70]
105   - },
106   - {
107   - name: '色斑',
108   - type: 'line',
109   - lineStyle: {
110   - color: "#38ce87"
111   - },
112   - itemStyle: {
113   - color: '#38ce87',
114   - },
115   - data: [50, 55, 60]
116   - },
117   - {
118   - name: '皱纹',
119   - type: 'line',
120   - lineStyle: {
121   - color: "#d67bf0"
122   - },
123   - itemStyle: {
124   - color: '#d67bf0',
125   - },
126   - data: [80, 85, 90]
127   - },
128   - {
129   - name: '痤疮',
130   - type: 'line',
131   - lineStyle: {
132   - color: "#f85b95"
133   - },
134   - itemStyle: {
135   - color: '#f85b95',
136   - },
137   - data: [30, 35, 40]
138   - },
139   - {
140   - name: '敏感度',
141   - type: 'line',
142   - lineStyle: {
143   - color: "#af78fc"
144   - },
145   - itemStyle: {
146   - color: '#af78fc',
147   - },
148   - data: [20, 26, 10]
149   - },
150   - {
151   - name: '黑眼圈',
152   - type: 'line',
153   - lineStyle: {
154   - color: "#688eff"
155   - },
156   - itemStyle: {
157   - color: '#688eff',
158   - },
159   - data: [50, 60, 20]
160   - }
161   - ]
162   -};
163   -Page({
164   -
165   - /**
166   - * 页面的初始数据
167   - */
168   - data: {
169   - arr1: ['综合', '毛孔', '黑头', '色斑', '皱纹', '痤疮', '敏感度', '黑眼圈'],
170   - ec: {
171   - onInit: function (canvas, width, height) {
172   - initChart = echarts.init(canvas, null, {
173   - width: width,
174   - height: height,
175   - });
176   - canvas.setChart(initChart);
177   - return initChart;
178   - }
179   - },
180   - },
181   -
182   - /**
183   - * 生命周期函数--监听页面加载
184   - */
185   - onLoad: function (options) {
186   -
187   - },
188   -
189   - /**
190   - * 生命周期函数--监听页面初次渲染完成
191   - */
192   - onReady: function () {
193   -
194   - },
195   - initChartOption() {
196   - initChart.setOption(option);
197   - },
198   - /**
199   - * 生命周期函数--监听页面显示
200   - */
201   - onShow: function () {
202   - setTimeout(() => {
203   - initChart.setOption(option);
204   - }, 1000);
205   - },
206   -
207   - /**
208   - * 生命周期函数--监听页面隐藏
209   - */
210   - onHide: function () {
211   -
212   - },
213   -
214   - /**
215   - * 生命周期函数--监听页面卸载
216   - */
217   - onUnload: function () {
218   -
219   - },
220   -
221   - /**
222   - * 页面相关事件处理函数--监听用户下拉动作
223   - */
224   - onPullDownRefresh: function () {
225   -
226   - },
227   -
228   - /**
229   - * 页面上拉触底事件的处理函数
230   - */
231   - onReachBottom: function () {
232   -
233   - },
234   -
235   - /**
236   - * 用户点击右上角分享
237   - */
238   - onShareAppMessage: function () {
239   -
240   - }
241   -})
242 0 \ No newline at end of file
packageB/pages/AI-test-skin/history_record/history_record.json deleted
1   -{
2   - "navigationBarTitleText": "历史变化",
3   - "usingComponents": {
4   - "ec-canvas": "../../../components/ec-canvas/ec-canvas"
5   - }
6   -}
7 0 \ No newline at end of file
packageB/pages/AI-test-skin/history_record/history_record.wxml deleted
1   -<view class="content">
2   - <view style="margin-bottom: 5%;">历史分析</view>
3   - <view class="echarts" style="border-radius: 30rpx;">
4   - <view class="tubiao">
5   - <ec-canvas id="mychart" canvas-id="mychart-bar" ec="{{ec}}"></ec-canvas>
6   - </view>
7   - <text class="fs24" style="position:absolute;bottom:25px;color: #333;">
8   - 注:请确保多次拍摄姿态和环境光线一致。拍摄姿态的偏移、环境光线变化或者皮肤状态变化都可能导致分数较大波动。
9   - </text>
10   - </view>
11   - <view class="mgv5">历史报告</view>
12   -
13   - <view class="history_list">
14   - <view class="history_list_month">
15   - <view style="color:#333;font-size:26rpx;margin-top: 30rpx">2022年02月</view>
16   - <view class="souce">
17   - <view style="font-weight: 600;">2022/02/19 15:35</view>
18   - <view style="color:#fbb11f;">73分</view>
19   - </view>
20   - <view class="souce">
21   - <view style="font-weight: 600;">2022/02/19 15:35</view>
22   - <view style="color:#fbb11f;">73分</view>
23   - </view>
24   - <view class="souce">
25   - <view style="font-weight: 600;">2022/02/19 15:35</view>
26   - <view style="color:#fbb11f;">73分</view>
27   - </view>
28   - <view class="souce">
29   - <view style="font-weight: 600;">2022/02/19 15:35</view>
30   - <view style="color:#fbb11f;">73分</view>
31   - </view>
32   - <view class="souce">
33   - <view style="font-weight: 600;">2022/02/19 15:35</view>
34   - <view style="color:#fbb11f;">73分</view>
35   - </view>
36   - <view class="souce">
37   - <view style="font-weight: 600;">2022/02/19 15:35</view>
38   - <view style="color:#fbb11f;">73分</view>
39   - </view>
40   - <view class="souce">
41   - <view style="font-weight: 600;">2022/02/19 15:35</view>
42   - <view style="color:#fbb11f;">73分</view>
43   - </view>
44   - <view class="souce">
45   - <view style="font-weight: 600;">2022/02/19 15:35</view>
46   - <view style="color:#fbb11f;">73分</view>
47   - </view>
48   - <view class="souce">
49   - <view style="font-weight: 600;">2022/02/19 15:35</view>
50   - <view style="color:#fbb11f;">73分</view>
51   - </view>
52   - </view>
53   - <view class="history_list_month">
54   - <view style="color:#333;font-size:26rpx;margin-top: 30rpx">2022年02月</view>
55   - <view class="souce">
56   - <view style="font-weight: 600;">2022/02/19 15:35</view>
57   - <view style="color:#fbb11f;">73分</view>
58   - </view>
59   - </view>
60   - <view class="history_list_month">
61   - <view style="color:#333;font-size:26rpx;margin-top: 30rpx">2022年02月</view>
62   - <view class="souce">
63   - <view style="font-weight: 600;">2022/02/19 15:35</view>
64   - <view style="color:#fbb11f;">73分</view>
65   - </view>
66   - </view>
67   - </view>
68   -</view>
69 0 \ No newline at end of file
packageB/pages/AI-test-skin/history_record/history_record.wxss deleted
1   -/* packageB/pages/AI-test-skin/history_record/history_record.wxss */
2   -page {
3   - width: 100vw;
4   - height: 100%;
5   -}
6   -
7   -.mgv5 {
8   - margin-top: 5%;
9   - margin-bottom: 5%;
10   -}
11   -
12   -.content {
13   - padding: 5%;
14   - height: 100%;
15   - width: 100%;
16   - box-sizing: border-box;
17   - background-color: #e7f5fb;
18   -}
19   -
20   -.item {
21   - padding: 10rpx 40rpx;
22   - color: red;
23   -}
24   -
25   -.echarts {
26   - position: relative;
27   - height: 60%;
28   - padding: 20rpx;
29   - background-color: #fff;
30   -}
31   -
32   -.tubiao {
33   - position: absolute;
34   - top: 3%;
35   - left: 50%;
36   - transform: translateX(-50%);
37   - height: 80%;
38   - width: 100%;
39   -}
40   -
41   -.history_list {
42   - border-radius: 30rpx;
43   - padding: 20rpx;
44   - background-color: #fff;
45   -}
46   -
47   -.souce {
48   - display: flex;
49   - justify-content: space-between;
50   - font-size: 28rpx;
51   - padding: 30rpx 0;
52   - border-bottom: 2rpx solid #ccc;
53   -}
54 0 \ No newline at end of file
packageB/pages/AI-test-skin/index/aiskin.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-11 14:13:05
4   - * @LastEditTime: 2022-02-22 15:17:48
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\index\aiskin.js
8   - */
9   -
10   -const app = getApp();
11   -const request = app.request;
12   -const os = app.globalData;
13   -const setting = os.setting;
14   -const ut = require('../../../../utils/util');
15   -Page({
16   -
17   - /**
18   - * 页面的初始数据
19   - */
20   - data: {
21   - iurl: setting.imghost,
22   - },
23   -
24   - /**
25   - * 生命周期函数--监听页面加载
26   - */
27   - onLoad: function (options) {
28   - var user=getApp().globalData.userInfo;
29   - if(!user){
30   - let url = "/pages/togoin/togoin";
31   - app.goto(url);
32   - }
33   - },
34   -
35   - /**
36   - * 生命周期函数--监听页面初次渲染完成
37   - */
38   - onReady: function () {
39   -
40   - },
41   -
42   - /**
43   - * 生命周期函数--监听页面显示
44   - */
45   - onShow: function () {
46   -
47   - },
48   -
49   - /**
50   - * 生命周期函数--监听页面隐藏
51   - */
52   - onHide: function () {
53   -
54   - },
55   -
56   - goto(e) {
57   - var user=getApp().globalData.userInfo;
58   - if(!user){
59   - wx.showToast({
60   - title: "请先授权登陆",
61   - icon: 'none',
62   - duration: 2000
63   - });
64   -
65   - setTimeout(function () {
66   - let url = "/pages/togoin/togoin";
67   - app.goto(url);
68   - },1000)
69   - return false;
70   - }
71   -
72   - let url = e.currentTarget.dataset.url;
73   - app.goto(url);
74   - },
75   -
76   - /**
77   - * 生命周期函数--监听页面卸载
78   - */
79   - onUnload: function () {
80   -
81   - },
82   -
83   - /**
84   - * 页面相关事件处理函数--监听用户下拉动作
85   - */
86   - onPullDownRefresh: function () {
87   -
88   - },
89   -
90   - /**
91   - * 页面上拉触底事件的处理函数
92   - */
93   - onReachBottom: function () {
94   -
95   - },
96   -
97   - /**
98   - * 用户点击右上角分享
99   - */
100   - onShareAppMessage: function () {
101   -
102   - }
103   -})
104 0 \ No newline at end of file
packageB/pages/AI-test-skin/index/aiskin.json deleted
1   -{
2   - "usingComponents": {},
3   - "navigationBarTitleText": "Ai智能测肤"
4   -}
5 0 \ No newline at end of file
packageB/pages/AI-test-skin/index/aiskin.wxml deleted
1   -<view class="container1">
2   - <view class="history">
3   - <cover-view style="padding: 0 6rpx 0 25rpx;" bindtap="goto" data-url="/packageB/pages/AI-test-skin/history_record/history_record">历史档案</cover-view>
4   - <text class="iconfont icon-arrow_right"></text>
5   - </view>
6   - <image src="{{iurl}}/miniapp/images/skinimg/shouye.jpeg"></image>
7   - <view class="start_btn" bindtap="goto" data-url="/packageB/pages/AI-test-skin/shoot_notice/shoot_notice">
8   - <text>开始测肤</text>
9   - </view>
10   -</view>
11 0 \ No newline at end of file
packageB/pages/AI-test-skin/index/aiskin.wxss deleted
1   -/* packageB/pages/AI-test-skin/aiskin.wxss */
2   -page {
3   - width: 100%;
4   - height: 100%;
5   -}
6   -image {
7   - width: 100vw;
8   - height: 100%;
9   -}
10   -.container1 {
11   - position: relative;
12   - width: 100%;
13   - height: 100%;
14   -}
15   -.history {
16   - margin-top: 30rpx;
17   - display: flex;
18   - position: absolute;
19   - right: 0;
20   - padding: 10rpx;
21   - border-radius: 50rpx 0 0 50rpx;
22   - box-shadow: 0 0 2px 2px #f7f5f5;
23   - color: #4ad5df;
24   -}
25   -.start_btn {
26   - position: fixed;
27   - bottom: 50rpx;
28   - /* margin: auto; */
29   - /* text-align: center; */
30   - margin-left: 50%;
31   - transform: translateX(-50%);
32   - background: #4bd6df;
33   - padding: 20rpx;
34   - width: 67%;
35   - text-align: center;
36   - border-radius: 40rpx;
37   - color: #fff;
38   -}
39 0 \ No newline at end of file
packageB/pages/AI-test-skin/select_photo/select_photo.js deleted
1   -/*
2   - * @Author: your name
3   - * @Date: 2022-02-16 14:34:42
4   - * @LastEditTime: 2022-02-16 15:42:25
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\select_photo\select_photo.js
8   - */
9   -// packageB/pages/AI-test-skin/select_photo/select_photo.js
10   -const app = getApp();
11   -const request = app.request;
12   -const os = app.globalData;
13   -const setting = os.setting;
14   -const ut = require('../../../../utils/util');
15   -Page({
16   -
17   - /**
18   - * 页面的初始数据
19   - */
20   - data: {
21   - iurl: setting.imghost,
22   - gl_skin_img: null,
23   - },
24   -
25   - /**
26   - * 生命周期函数--监听页面加载
27   - */
28   - onLoad: function (options) {
29   - var img=getApp().globalData.skin_img;
30   - this.setData({gl_skin_img:img})
31   - },
32   -
33   - /**
34   - * 生命周期函数--监听页面显示
35   - */
36   - onShow: function () {},
37   -
38   - /**
39   - * 生命周期函数--监听页面隐藏
40   - */
41   - onHide: function () {
42   -
43   - },
44   - /**
45   - * 页面上拉触底事件的处理函数
46   - */
47   - onReachBottom: function () {
48   -
49   - },
50   -
51   - /**
52   - * 用户点击右上角分享
53   - */
54   - onShareAppMessage: function () {
55   -
56   - },
57   -
58   - //-- 完成选择 --
59   - ok_select:function () {
60   - var th=this;
61   - app.request.uploadFile("/api/weshop/baidubce/face/uploadImg?uploadPath=faceimg&storeId="+setting.stoid, {
62   - filePath: th.data.gl_skin_img,
63   - name: "file",
64   - success: function (e) {
65   - if(e.data.code==0) {
66   - getApp().globalData.face_img=e.data.data.img;
67   - getApp().globalData.face_SourceImg=e.data.data.SourceImg;
68   -
69   - let url = "/packageB/pages/AI-test-skin/analyse/analyse"; //跳到分析页
70   - app.goto(url);
71   -
72   - } else {
73   - wx.showToast({
74   - title: e.data.msg,
75   - icon: 'none',
76   - duration: 2000
77   - });
78   - };
79   - }
80   - });
81   - },
82   -
83   - //-- 重新从相册中选择图片 --
84   - show_pai_pop:function () {
85   - var th=this;
86   - //选择和拍照一张图片
87   - wx.chooseImage({
88   - count: 1,
89   - sizeType: ['original', 'compressed'],
90   - sourceType: ['album', 'camera'],
91   - success (res) {
92   - let imgArr = res.tempFilePaths;
93   - getApp().globalData.skin_img=imgArr[0];
94   - th.setData({gl_skin_img:imgArr[0]})
95   - }
96   - })
97   -
98   - },
99   -
100   -
101   -
102   -
103   -})
104 0 \ No newline at end of file
packageB/pages/AI-test-skin/select_photo/select_photo.json deleted
1   -{
2   - "usingComponents": {},
3   - "navigationBarTitleText": "确认图片"
4   -}
5 0 \ No newline at end of file
packageB/pages/AI-test-skin/select_photo/select_photo.wxml deleted
1   -<view class="content" style="height: 70%;">
2   - <view style="height: 100%;">
3   - <image style="height: 100%;width: 100%;border-radius: 3%;" src="{{gl_skin_img}}"></image>
4   - </view>
5   - <view class="foot_btn">
6   - <view class="reset_select" bindtap="show_pai_pop">
7   - <text class="iconfont icon-zuojiantou" style="font-size: 40rpx"></text>
8   - <text style="font-size: 28rpx">重拍</text>
9   - </view>
10   - <view class="ok_btn" bindtap="ok_select">
11   - <text class="iconfont icon-dagou" style="margin-right: 10rpx"></text>
12   - <text>完成</text>
13   - </view>
14   - </view>
15   -</view>
packageB/pages/AI-test-skin/select_photo/select_photo.wxss deleted
1   -/* packageB/pages/AI-test-skin/select_photo/select_photo.wxss */
2   -page {
3   - width: 100%;
4   - height: 100%;
5   -}
6   -
7   -.content {
8   - padding: 10%;
9   - height: 60%;
10   -}
11   -
12   -.foot_btn {
13   - margin-top: 80rpx;
14   - display: flex;
15   - justify-content: space-between;
16   - align-items: center;
17   -}
18   -
19   -.foot_btn .reset_select {
20   - display: flex;
21   - flex-direction: column;
22   -}
23   -
24   -.foot_btn .ok_btn {
25   - background: #5dd9dc;
26   - padding: 0 50rpx;
27   - border-radius: 50rpx;
28   - /* margin: 0 auto; */
29   - line-height: 100rpx;
30   - color: #fff;
31   -}
packageB/pages/AI-test-skin/shoot_notice/shoot_notice.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-15 10:01:57
4   - * @LastEditTime: 2022-02-17 09:40:38
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AEet urkl
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\shoot_notice\shoot_notice.js
8   - */
9   -// packageB/pages/AI-test-skin/shoot_notice/shoot_notice.js
10   -const app = getApp();
11   -const request = app.request;
12   -const os = app.globalData;
13   -const setting = os.setting;
14   -const ut = require('../../../../utils/util');
15   -Page({
16   -
17   - /**
18   - * 页面的初始数据
19   - */
20   - data: {
21   - iurl: setting.imghost,
22   - },
23   -
24   - /**
25   - * 生命周期函数--监听页面加载
26   - */
27   - onLoad: function (options) {
28   -
29   - },
30   -
31   - /**
32   - * 生命周期函数--监听页面显示
33   - */
34   - onShow: function () {
35   -
36   - },
37   -
38   - /**
39   - * 生命周期函数--监听页面隐藏
40   - */
41   - onHide: function () {
42   -
43   - },
44   -
45   - /**
46   - * 页面相关事件处理函数--监听用户下拉动作
47   - */
48   - onPullDownRefresh: function () {
49   -
50   - },
51   -
52   - /**
53   - * 页面上拉触底事件的处理函数
54   - */
55   - onReachBottom: function () {
56   -
57   - },
58   -
59   - /**
60   - * 用户点击右上角分享
61   - */
62   - onShareAppMessage: function () {
63   -
64   - },
65   -
66   - //从相册中选择图片
67   - show_pai_pop:function () {
68   - //选择和拍照一张图片
69   - wx.chooseImage({
70   - count: 1,
71   - sizeType: ['original', 'compressed'],
72   - sourceType: ['album', 'camera'],
73   - success (res) {
74   - let imgArr = res.tempFilePaths;
75   - getApp().globalData.skin_img=imgArr[0];
76   - let url = "/packageB/pages/AI-test-skin/select_photo/select_photo";
77   - app.goto(url);
78   - }
79   - })
80   -
81   - },
82   -
83   -
84   -
85   -
86   -})
87 0 \ No newline at end of file
packageB/pages/AI-test-skin/shoot_notice/shoot_notice.json deleted
1   -{
2   - "usingComponents": {},
3   - "navigationBarTitleText": "拍摄须知"
4   -}
5 0 \ No newline at end of file
packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxml deleted
1   -<!--packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxml-->
2   -<view class="content">
3   - <view>
4   - <view class="work">准备工作</view>
5   - <view class="hengxian"></view>
6   - </view>
7   - <view>
8   - <view class="ready">
9   - <view class="image">
10   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei1.jpeg"></image>
11   - <text class="shuxian"></text>
12   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei2.jpeg"></image>
13   - </view>
14   - <text class="fs28">1、请对准镜头,闭眼拍照</text>
15   - </view>
16   - <view class="ready">
17   - <view class="image">
18   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei3.jpeg"></image>
19   - <text class="shuxian"></text>
20   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei2.jpeg"></image>
21   - </view>
22   - <text class="fs28">2、请摘下眼镜,撩起刘海</text>
23   - </view>
24   - <view class="ready">
25   - <view class="image">
26   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei4.jpeg"></image>
27   - <text class="shuxian"></text>
28   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei5.jpeg"></image>
29   - </view>
30   - <text class="fs28">3、保持脸部垂直,切勿距离过远过近</text>
31   - </view>
32   - </view>
33   - <view style="margin: 100rpx 0 40rpx 0;">
34   - <view class="work">注意事项</view>
35   - <view class="hengxian"></view>
36   - </view>
37   - <view>
38   - <view class="ready">
39   - <view class="image_1">
40   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei6.jpeg"></image>
41   - </view>
42   - <text class="fs28">1、脸部置于画面中央,请勿距离过远或过近</text>
43   - </view>
44   - <view class="ready1">
45   - <view class="image_1">
46   - <image src="{{iurl}}/miniapp/images/skinimg/zhunbei7.jpeg"></image>
47   - </view>
48   - <text class="fs28">2、脸部保持平视摄像头</text>
49   - </view>
50   - </view>
51   -</view>
52   -<view style="height: 300rpx;background-color: #e7f5fb;">
53   - <view class="btn_fixed">
54   - <view class="btn" bindtap="show_pai_pop">准备闭眼拍摄</view>
55   - <view class="notice" style="display:flex;justify-content:center;align-items: center;">
56   - <text class="iconfont icon-info" style="margin-right: 10rpx;font-size: 26rpx"></text>
57   - <text>如无闭眼,将导致图片分析失败</text>
58   - </view>
59   - </view>
60   -</view>
61 0 \ No newline at end of file
packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxss deleted
1   -/* packageB/pages/AI-test-skin/shoot_notice/shoot_notice.wxss */
2   -page {
3   - width: 100vw;
4   - height: 100%;
5   - padding: 40rpx 30rpx 0 30rpx;
6   - box-sizing: border-box;
7   - background-color: #e7f5fb;
8   -}
9   -.content {
10   - width: 100%;
11   - /* height: 100%; */
12   - border-radius: 25rpx;
13   - /* padding: 30rpx; */
14   - background-color: #fff;
15   -}
16   -
17   -.content .work {
18   - text-align: center;
19   - padding: 50rpx 0 30rpx 0;
20   - font-size: 36rpx;
21   -}
22   -
23   -.content .ready {
24   - display: flex;
25   - flex-direction: column;
26   - align-items: center;
27   - margin-bottom: 40rpx
28   -}
29   -.content .ready1 {
30   - display: flex;
31   - flex-direction: column;
32   - align-items: center;
33   - padding-bottom: 50rpx ;
34   - /* margin-bottom: 40rpx */
35   -}
36   -
37   -.hengxian {
38   - position: relative;
39   - top: -15rpx;
40   - width: 40rpx;
41   - margin-left: 50%;
42   - transform: translateX(-50%);
43   - border: 1rpx solid #5edadc;
44   -}
45   -
46   -.shuxian {
47   - width: 2rpx;
48   - background-color: #f5f5f5;
49   - margin: 0 30rpx;
50   -}
51   -
52   -.content .image {
53   - display: flex;
54   - width: 75%;
55   - height: 300rpx;
56   -}
57   -
58   -.content .image_1 {
59   - display: flex;
60   - width: 55%;
61   - height: 450rpx;
62   - margin: 0 auto;
63   -}
64   -
65   -.content image {
66   - height: 100%;
67   -}
68   -.btn {
69   -
70   - /* height: 150rpx; */
71   - /* margin-left: 50%; */
72   - margin: 70rpx 0 30rpx 50%;
73   - transform: translateX(-50%);
74   - background: #4bd6df;
75   - padding: 20rpx;
76   - width: 50%;
77   - text-align: center;
78   - border-radius: 40rpx;
79   - color: #fff;
80   -}
81   -.btn_fixed {
82   - position: fixed;
83   - width: 100%;
84   - bottom: 0;
85   - height: 300rpx;
86   - background: #e7f5fb;
87   -}
88   -.notice {
89   - text-align: center;
90   - color: red;
91   - font-size: 28rpx;
92   -}
93   -
94   -.cover-layer {
95   - position: fixed;
96   - left: 0;
97   - top: 0;
98   - right: 0;
99   - bottom: 0;
100   - z-index: 11;
101   - background: rgba(0,0,0,0.4);
102   - width: 100%;
103   - height: 100%;
104   -}
105   -
106   -.flex{display: flex}
107   -.jc-center{
108   - justify-content: center;
109   -}
110   -.ac{align-items: center}
111   -.pai_content{
112   - position: fixed;z-index: 100;bottom: 0;background: #FFFFFF;width: 100%;
113   - border-top-left-radius:30rpx;
114   - border-top-right-radius:30rpx;
115   -}
116   -.p_item{ height: 100rpx; line-height: 100rpx;text-align: center; border-bottom: 1rpx solid #eee}
117   -.p_cancle{height: 100rpx; line-height: 100rpx;text-align: center; border-top:20rpx solid #f8f8f8;}
118   -
119   -@keyframes p_up
120   -{
121   - from {transform:translateY(100%);}
122   - to {transform:translateY(0);}
123   -}
124   -
125   -@keyframes p_down
126   -{
127   - from {transform:translateY(0);}
128   - to {transform:translateY(100%);}
129   -}
130   -.p_to_up{animation:p_up 1s;}
131   -.p_to_down{animation:p_down 0.5s;}
132   -
133   -
packageB/pages/AI-test-skin/success_result/acne/acne.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-21 11:03:07
4   - * @LastEditTime: 2022-02-21 17:50:35
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\acne\acne.js
8   - */
9   -module.exports = {
10   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
11   - get_goods: function(th,stoid) {
12   - var r_code='03';
13   - //获取痘痘的类型
14   - var list=th.data.face_data.acnespotmole.acne_list;
15   - //把所有的斑的类型拿出来
16   - var arr=[];
17   - for(var i in list){
18   - arr.push(list[i].type);
19   - }
20   - //去掉重复
21   - var set= arr.filter(function (element, index, self) {
22   - return self.indexOf(element) === index;
23   - })
24   - var re_word=set.join(',');
25   - //-- 服务卡 --
26   - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
27   - getApp().request.promiseGet(url, {}).then(res=>{
28   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
29   - th.setData({acne_fuwu:res.data.data.pageData})
30   - }
31   - })
32   -
33   - //-- 商品 --
34   - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
35   - getApp().request.promiseGet(url, {}).then(res=>{
36   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
37   - th.setData({acne_goods:res.data.data.pageData})
38   - }
39   - })
40   -
41   - // 优惠券
42   - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
43   - getApp().request.promiseGet(url, {}).then(res=>{
44   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
45   - th.setData({acne_quan_list:res.data.data.pageData});
46   - }
47   - })
48   -
49   - },
50   -}
packageB/pages/AI-test-skin/success_result/acne/acne.wxml deleted
1   -<view class="mb_b5" id="cuo_chuang">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#06</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">痤疮</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="6" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   -
12   - </view>
13   - </view>
14   - </view>
15   - <view class="analyse_classify_header_item mt_b5">
16   - <view class="analyse_classify_header_img">
17   - <image src="{{iurl}}/miniapp/images/skinimg/seban_heitou_maokong_.png"></image>
18   - </view>
19   - <view style="line-height:60rpx;margin-left:20rpx">
20   - <view class="fs28">程度情况</view>
21   - <view class="bold">I级</view>
22   - </view>
23   - </view>
24   - <view class="analyse_classify_header_item" style="margin-top:5%">
25   - <view class="analyse_classify_header_img">
26   - <image src="{{iurl}}/miniapp/images/skinimg/cuochuang_icon.jpg"></image>
27   - </view>
28   - <view style="line-height:60rpx;margin-left:20rpx">
29   - <view>痤疮个数</view>
30   - <view>100个</view>
31   - </view>
32   - </view>
33   - <view class="leixing mt_b10">
34   - <view class="_img">
35   - <image style="height:100rpx;width:100rpx;border-radius: 50%;opacity:0.6" src="{{iurl}}/miniapp/images/skinimg/nongzhong.jpeg"></image>
36   - <view class="fs28 c_666">
37   - <view>囊肿</view>
38   - <view>健康</view>
39   - </view>
40   - </view>
41   - <view class="_img">
42   - <image style="height:100rpx;width:100rpx;border-radius: 50%;opacity:0.6" src="{{iurl}}/miniapp/images/skinimg/qiuzheng.jpeg"></image>
43   - <view class="fs28 c_666">
44   - <view>丘疹</view>
45   - <view>健康</view>
46   - </view>
47   - </view>
48   - <view class="_img">
49   - <image style="height:100rpx;width:100rpx;border-radius: 50%;opacity:0.6" src="{{iurl}}/miniapp/images/skinimg/fengci.jpeg"></image>
50   - <view class="fs28 c_666">
51   - <view>粉刺</view>
52   - <view>健康</view>
53   - </view>
54   - </view>
55   - <view class="_img">
56   - <image style="height:100rpx;width:100rpx;border-radius: 50%;opacity:0.6" src="{{iurl}}/miniapp/images/skinimg/douying.jpeg"></image>
57   - <view class="fs28 c_666">
58   - <view>痘印</view>
59   - <view>健康</view>
60   - </view>
61   - </view>
62   - </view>
63   - <view class="fs28 mt_b10">
64   - <text>明显可见毛孔或内含小于毛孔大小角栓</text>
65   - </view>
66   - </view>
67   - <view class="analyse_classify_body">
68   - <view class="mt_b10">
69   - <view class="fenxi mgb10">原因分析</view>
70   - <view class="flex" style="flex-wrap: wrap">
71   - <view style="margin-right: 20rpx">
72   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
73   - <text class="fs26">皮脂腺分泌旺盛</text>
74   - </view>
75   - <view style="margin-right: 20rpx">
76   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
77   - <text class="fs26">皮脂腺分泌旺盛</text>
78   - </view>
79   - <view style="margin-right: 20rpx">
80   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
81   - <text class="fs26">皮脂腺分泌旺盛</text>
82   - </view>
83   - </view>
84   - </view>
85   -
86   - <view class="mt_b10">
87   - <view class="fenxi mgb10">护理建议</view>
88   - <view class="">
89   - <view class="mgb30">
90   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 早晚清洁</text>
91   - <view class="fs26 c_666">早晚清洁。先用热水打开毛孔,使用氨基酸洁面乳在 T 区、脸颊等区域,以画圆的方式进行揉搓,再用大
92   - 量清水冲洗干净。</view>
93   - </view>
94   - <view class="mgb30">
95   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 注意饮食</text>
96   - <view class="fs26 c_666">少吃甜腻、油炸、刺激的东西,以及少饮一些奶制品,这些食物都能让皮脂腺分泌增多。多吃一点含维生素 B 族的食物。</view>
97   - </view>
98   - <view class="mgb30">
99   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 日常防晒</text>
100   - <view class="fs26 c_666">日常防晒。使用清爽型防晒产品,并使用太阳伞、帽子等做好物理防晒,避免阳光中的紫外线刺激皮脂腺
101   - 分泌更多油脂。</view>
102   - </view>
103   - </view>
104   - </view>
105   - </view>
106   - </view>
107   -
108   - <view class="analyse_classify_foot" style="background:#e6f4fa">
109   - <!-- 服务卡 -->
110   - <view wx:if="{{acne_fuwu}}">
111   - <view style="margin:5% 0">痤疮问题的疗程</view>
112   - <block wx:for="{{acne_fuwu}}">
113   - <include src="../fuwu.wxml" />
114   - </block>
115   - </view>
116   - <!-- 商品 -->
117   - <view wx:if="{{acne_goods}}">
118   - <view style="margin:5% 0">适合痤疮问题的护肤品</view>
119   - <view class="product flex">
120   - <block wx:for="{{acne_goods}}">
121   - <include src="../goods.wxml" />
122   - </block>
123   - </view>
124   - </view>
125   - <!-- 优惠券 -->
126   - <view wx:if="{{acne_quan_list}}">
127   - <view style="margin:5% 0">适合痤疮商品的优惠券</view>
128   - <view class="xc-coupon-frame rel">
129   - <block wx:for="{{acne_quan_list}}">
130   - <include src="../coupon.wxml" />
131   - </block>
132   - </view>
133   - </view>
134   - </view>
135   -</view>
136 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/blackhead/blackhead.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-21 11:03:07
4   - * @LastEditTime: 2022-02-21 17:48:28
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\blackhead\blackhead.js
8   - */
9   -module.exports = {
10   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
11   - get_goods: function(th,stoid) {
12   - var r_code='10';
13   - //获取黑头的类型
14   - var blackhead_segs_type=th.data.face_data.blackheadpore.blackhead_segs_type;
15   - //去掉重复
16   - var set= blackhead_segs_type.filter(function (element, index, self) {
17   - return self.indexOf(element) === index;
18   - })
19   - var re_word=set.join(',');
20   - //-- 服务卡 --
21   - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
22   - getApp().request.promiseGet(url, {}).then(res=>{
23   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
24   - th.setData({blackhead_fuwu:res.data.data.pageData})
25   - }
26   - })
27   -
28   - //-- 商品 --
29   - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
30   - getApp().request.promiseGet(url, {}).then(res=>{
31   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
32   - th.setData({blackhead_goods:res.data.data.pageData})
33   - }
34   - })
35   -
36   - // 优惠券
37   - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
38   - getApp().request.promiseGet(url, {}).then(res=>{
39   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
40   - th.setData({blackhead_quan_list:res.data.data.pageData});
41   - }
42   - })
43   -
44   - },
45   -}
packageB/pages/AI-test-skin/success_result/blackhead/blackhead.wxml deleted
1   -<view class="mb_b5" id="hei_tou">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#01</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">黑头</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="4" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   - </view>
12   - </view>
13   - </view>
14   - <view class="analyse_classify_header_item mt_b5">
15   - <view class="analyse_classify_header_img">
16   - <image src="{{iurl}}/miniapp/images/skinimg/seban_heitou_maokong_.png"></image>
17   - </view>
18   - <view style="line-height:60rpx;margin-left:20rpx">
19   - <view class="fs28">程度情况</view>
20   - <view class="bold">待确定</view>
21   - </view>
22   - </view>
23   - <view class="analyse_classify_header_item mt_b5">
24   - <view class="analyse_classify_header_img">
25   - <image src="{{iurl}}/miniapp/images/skinimg/heitou_icon.jpg"></image>
26   - </view>
27   - <view style="line-height:60rpx;margin-left:20rpx">
28   - <view class="fs28">粗大区域</view>
29   - <view class="bold">待确定</view>
30   - </view>
31   - </view>
32   - <view class="fs28 mt_b10">
33   - <text>隐约可见明显黑头</text>
34   - </view>
35   - </view>
36   - <view class="analyse_classify_body">
37   - <view class="mt_b10">
38   - <view class="fenxi mgb10">原因分析</view>
39   - <view class="flex" style="flex-wrap: wrap">
40   - <view style="margin-right: 20rpx">
41   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
42   - <text class="fs26">清洁不够</text>
43   - </view>
44   - <view style="margin-right: 20rpx">
45   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
46   - <text class="fs26">皮脂腺分泌过多</text>
47   - </view>
48   - <view style="margin-right: 20rpx">
49   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
50   - <text class="fs26">护肤品不当</text>
51   - </view>
52   - </view>
53   - </view>
54   -
55   - <view class="mt_b10">
56   - <view class="fenxi mgb10">护理建议</view>
57   - <view class="">
58   - <view class="mgb30">
59   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 饮食清淡</text>
60   - <view class="fs26 c_666">多吃清淡食物,多喝水,忌辛辣、油腻等饮食,避免油脂过度分泌。</view>
61   - </view>
62   - <view class="mgb30">
63   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 注意面部卫生</text>
64   - <view class="fs26 c_666">注意面部和手部的卫生,常用温水洗脸,避免用碱性大的肥皂,以免进一步填塞毛囊,使黑头加重。</view>
65   - </view>
66   - <view class="mgb30">
67   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 去角质</text>
68   - <view class="fs26 c_666">每周做两次角质清洁的工作,使皮肤角质层软化,深度清洁皮肤</view>
69   - </view>
70   - <view class="mgb30">
71   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 日常洁面</text>
72   - <view class="fs26 c_666">先用热水打开毛孔,使用氨基酸洁面乳在 T 区以画圆的方式进行揉搓,再用大量清水冲洗干净。</view>
73   - </view>
74   - </view>
75   - </view>
76   - </view>
77   - </view>
78   - <view class="analyse_classify_foot" style="background:#e6f4fa">
79   - <!-- 服务卡 -->
80   - <view wx:if="{{blackhead_fuwu}}">
81   - <view style="margin:5% 0">黑头问题的疗程</view>
82   - <block wx:for="{{blackhead_fuwu}}">
83   - <include src="../fuwu.wxml" />
84   - </block>
85   - </view>
86   - <!-- 商品 -->
87   - <view wx:if="{{blackhead_goods}}">
88   - <view style="margin:5% 0">适合黑头问题的护肤品</view>
89   - <view class="product flex">
90   - <block wx:for="{{blackhead_goods}}">
91   - <include src="../goods.wxml" />
92   - </block>
93   - </view>
94   - </view>
95   - <!-- 优惠券 -->
96   - <view wx:if="{{blackhead_quan_list}}">
97   - <view style="margin:5% 0">适合黑头商品的优惠券</view>
98   - <view class="xc-coupon-frame rel">
99   - <block wx:for="{{blackhead_quan_list}}">
100   - <include src="../coupon.wxml" />
101   - </block>
102   - </view>
103   - </view>
104   - </view>
105   -</view>
106 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/coupon.wxml deleted
1   -<!-- -单张的券- -->
2   -<view class="coupon flex">
3   - <view class="circle xc-circular-one"></view>
4   - <view class="xc-coupon-left ">
5   - <view class="flex ai_c xc-money-frame">
6   - <text class="xc-money two-level-word xc-rmb">¥</text>
7   - <text class="one-level-word xc-money">{{item.money}}</text>
8   - </view>
9   - <view class="xc-money four-level-word xc-spacing">满{{item.condition}}元可用</view>
10   - </view>
11   - <view class="xc-coupon-right flex">
12   - <view class="xc-detail-coupon">
13   - <view class="four-level-word">{{item.name}}</view>
14   - <view class="four-level-word xc-below">
15   - {{filters.replace_time2(item.start)}} 至 {{filters.replace_time2(item.end)?filters.replace_time2(item.end):'不限'}}
16   - </view>
17   - </view>
18   - <view class="flex-vertical">
19   - <view class="three-level-word xc-get background {{item.everyone_num>0 && item.lqnum>=item.everyone_num?'nouse':''}}" data-ind="{{index}}" data-cid="{{item.id}}" bindtap="get_quan">
20   - {{ item.linging==1?'领取中':'领取'}}
21   - </view>
22   - </view>
23   - </view>
24   - <view class="circle xc-circular-two"></view>
25   -</view>
26 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/dark/dark.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-21 11:03:07
4   - * @LastEditTime: 2022-02-21 17:50:16
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\dark\dark.js
8   - */
9   -module.exports = {
10   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
11   - get_goods: function(th,stoid) {
12   - var r_code='08';
13   -
14   - var arr1=th.data.face_data.eyesattr.dark_circle_left_type;
15   - var arr2=th.data.face_data.eyesattr.dark_circle_right_type;
16   - var arr=[...arr1,...arr2];
17   - //去掉重复
18   - var set= arr.filter(function (element, index, self) {
19   - return self.indexOf(element) === index;
20   - })
21   - var re_word=set.join(',');
22   - //获取黑眼圈的类型
23   - var re_word= arr.join(',')
24   - //-- 服务卡 --
25   - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
26   - getApp().request.promiseGet(url, {}).then(res=>{
27   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
28   - th.setData({dark_fuwu:res.data.data.pageData})
29   - }
30   - })
31   -
32   - //-- 商品 --
33   - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
34   - getApp().request.promiseGet(url, {}).then(res=>{
35   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
36   - th.setData({dark_goods:res.data.data.pageData})
37   - }
38   - })
39   - // 优惠券
40   - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
41   - getApp().request.promiseGet(url, {}).then(res=>{
42   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
43   - th.setData({dark_quan_list:res.data.data.pageData});
44   - }
45   - })
46   - },
47   -}
packageB/pages/AI-test-skin/success_result/dark/dark.wxml deleted
1   -<view class="mb_b5" id="hei_yan_quan">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#05</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">黑眼圈</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="5" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   - </view>
12   - </view>
13   - </view>
14   - <view class="analyse_classify_header_item mt_b5">
15   - <view class="analyse_classify_header_img">
16   - <image src="{{iurl}}/miniapp/images/skinimg/heiyanquan.png"></image>
17   - </view>
18   - <view style="line-height:60rpx;margin-left:20rpx" style="margin-top:5%">
19   - <view class="fs28">程度情况</view>
20   - <view class="bold">{{s_filter.get_dark_type(dark_type)}}</view>
21   - </view>
22   - </view>
23   -
24   - <view class="analyse_classify_header_item mt_b5">
25   - <view class="analyse_classify_header_img">
26   - <image src="{{iurl}}/miniapp/images/skinimg/heiyanquan_icon.jpg"></image>
27   - </view>
28   - <view style="line-height:60rpx;margin-left:20rpx">
29   - <view class="fs28">黑眼圈类型</view>
30   - <view class="bold">3种</view>
31   - </view>
32   - </view>
33   -
34   - <view>
35   - <block wx:if="{{sex === 'male'}}">
36   - <view class="heiyanquan">
37   - <image src="{{iurl}}/miniapp/images/skinimg/nan3.jpeg" style="width: 100%;height: 100%;"></image>
38   - </view>
39   - <view class="leixing">
40   - <view class="_img">
41   - <image style="height:150rpx;width:150rpx;border-radius: 50%;" src="{{iurl}}/miniapp/images/skinimg/nan4.jpeg"></image>
42   - <view class="fs28">色素性-中度</view>
43   - </view>
44   - <view class="_img">
45   - <image style="height:150rpx;width:150rpx;border-radius: 50%;" src="{{iurl}}/miniapp/images/skinimg/nan5.jpeg"></image>
46   - <view class="fs28">血管性-轻度</view>
47   - </view>
48   - <view class="_img">
49   - <image style="height:150rpx;width:150rpx;border-radius: 50%;" src="{{iurl}}/miniapp/images/skinimg/nan6.jpeg"></image>
50   - <view class="fs28" style="color: #666;">阴影型-无</view>
51   - </view>
52   - </view>
53   - </block>
54   - <block wx:else>
55   - <view class="heiyanquan">
56   - <image src="{{iurl}}/miniapp/images/skinimg/nv3.jpeg" style="width: 100%;height: 100%;"></image>
57   - </view>
58   - <view class="leixing">
59   - <view class="_img">
60   - <image style="height:150rpx;width:150rpx;border-radius: 50%;" src="{{iurl}}/miniapp/images/skinimg/nv4.jpeg"></image>
61   - <view class="fs28">色素性-中度</view>
62   - </view>
63   - <view class="_img">
64   - <image style="height:150rpx;width:150rpx;border-radius: 50%;" src="{{iurl}}/miniapp/images/skinimg/nv5.jpeg"></image>
65   - <view class="fs28">血管性-轻度</view>
66   - </view>
67   - <view class="_img">
68   - <image style="height:150rpx;width:150rpx;border-radius: 50%;" src="{{iurl}}/miniapp/images/skinimg/nv6.jpeg"></image>
69   - <view class="fs28" style="color: #666;">阴影型-无</view>
70   - </view>
71   - </view>
72   - </block>
73   - </view>
74   - <view class="fs28 mt_b10">
75   - <text>明显可见毛孔或内含小于毛孔大小角栓</text>
76   - </view>
77   - </view>
78   - <view class="analyse_classify_body">
79   - <view class="mt_b10">
80   - <view class="fenxi mgb10">原因分析</view>
81   - <view class="flex" style="flex-wrap: wrap">
82   - <view style="margin-right: 20rpx">
83   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
84   - <text class="fs26">眼皮色素沉着增加</text>
85   - </view>
86   - <view style="margin-right: 20rpx">
87   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
88   - <text class="fs26">眼皮静脉血流淤积</text>
89   - </view>
90   - <view style="margin-right: 20rpx">
91   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
92   - <text class="fs26">不良生活习惯</text>
93   - </view>
94   - </view>
95   - </view>
96   -
97   - <view class="mt_b10">
98   - <view class="fenxi mgb10">护理建议</view>
99   - <view class="">
100   - <view class="mgb30">
101   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 改善饮食习惯</text>
102   - <view class="fs26 c_666">改变辛辣、油腻等饮食习惯,保持饮食清淡,多摄取维生素 C ,如西红柿、柠檬等,可以淡化黑色素。</view>
103   - </view>
104   - <view class="mgb30">
105   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 使用眼霜</text>
106   - <view class="fs26 c_666">注重眼周的保养,洁面后使用抗衰老的眼霜产品,并按摩直至吸收,消除眼部水肿。</view>
107   - </view>
108   - <view class="mgb30">
109   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 注意防晒</text>
110   - <view class="fs26 c_666">使用防晒系数较高的产品,并及时进行补涂,减少紫外线在眼下的黑色素沉淀。</view>
111   - </view>
112   - </view>
113   - </view>
114   - </view>
115   - </view>
116   - <view class="analyse_classify_foot" style="background:#e6f4fa">
117   - <view wx:if="{{dark_fuwu}}">
118   - <view style="margin:5% 0">黑眼圈问题的疗程</view>
119   - <block wx:for="{{dark_fuwu}}">
120   - <include src="../fuwu.wxml" />
121   - </block>
122   - </view>
123   - <view wx:if="{{dark_goods}}">
124   - <view style="margin:5% 0">适合黑眼圈问题的护肤品</view>
125   - <view class="product flex">
126   - <block wx:for="{{dark_goods}}">
127   - <include src="../goods.wxml" />
128   - </block>
129   - </view>
130   - </view>
131   - <!-- 优惠券 -->
132   - <view wx:if="{{dark_quan_list}}">
133   - <view style="margin:5% 0">适合黑眼圈商品的优惠券</view>
134   - <view class="xc-coupon-frame rel">
135   - <block wx:for="{{dark_quan_list}}">
136   - <include src="../coupon.wxml" />
137   - </block>
138   - </view>
139   - </view>
140   - </view>
141   -</view>
142 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/fuwu.wxml deleted
1   -<view class="shoushu" style="margin-bottom: 20rpx" bindtap="go_url" data-url="/packageA/pages/goodsInfo/goodsInfo?goods_id={{item.id}}">
2   - <view>
3   - <image class="img" src="{{iurl}}{{item.imgUrl?item.imgUrl:'/miniapp/images/default_g_img.gif'}}"></image>
4   - </view>
5   - <view class="info">
6   - <view>{{item.serviceName}}</view>
7   - <view class="fs20 flex">
8   - <view class="guige">{{item.serviceSn}}</view>
9   - </view>
10   - <view style="margin-top: 40rpx;font-weight: 600;">¥{{item.money}}</view>
11   - </view>
12   -</view>
13 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/goods.wxml deleted
1   -<view class="product_item" data-url="{{s_filter.get_goods_url(item)}}" bindtap="go_url">
2   - <view>
3   - <image src="{{iurl+item.original_img}}" style="width: 100%;height: 200rpx;"></image>
4   - </view>
5   - <view class="ellipsis-2 fs28" style="height: 88rpx;">{{item.goods_name}}</view>
6   - <view class="fs20 flex" style="padding: 15rpx;">
7   - <view class="guige">{{s_filter.guige(item)}}</view>
8   - </view>
9   - <!-- 显示正确的商品价格 -->
10   - <view style="display: flex;justify-content: space-between;">
11   - <block wx:if="{{(item.prom_price>0 || item.prom_integral>0) && item.prom_id>0 && item.prom_type!=7 && item.prom_type!=10}}">
12   - <text wx:if="{{item.prom_integral}}"><text class="fs35" style="font-weight: bold;">{{item.prom_integral}}</text>积分</text>
13   - <text wx:if="{{item.prom_integral && item.prom_price}}">+</text>
14   - <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text>
15   - </block>
16   - <block wx:else>
17   - <block wx:if="{{s_filter.is_has_rank(rank_switch,item)}}">
18   - <block wx:if="{{card_field}}">
19   -
20   - <block wx:if="{{item[card_field]>0}}">
21   - <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text>
22   - </block>
23   - <block wx:else>
24   - <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text>
25   - </block>
26   - </block>
27   - <block wx:else>
28   - <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text>
29   - </block>
30   - </block>
31   - <block wx:else>
32   - <text wx:if="{{item.prom_price}}" class="bold">¥{{item.shop_price}}</text>
33   - </block>
34   - </block>
35   -
36   -
37   - <view class="mm"><text class="iconfont icon-gouwuche"></text></view>
38   - </view>
39   -</view>
40 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/pore/pore.js deleted
1   -module.exports = {
2   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
3   - get_goods: function(th,stoid) {
4   - var r_code='11';
5   - //获取毛孔的类型
6   - var pore_segs_type=th.data.face_data.blackheadpore.pore_segs_type;
7   - //去掉重复
8   - var set= pore_segs_type.filter(function (element, index, self) {
9   - return self.indexOf(element) === index;
10   - })
11   - var re_word=set.join(',');
12   - //-- 服务卡 --
13   - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
14   - getApp().request.promiseGet(url, {}).then(res=>{
15   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
16   - th.setData({pore_fuwu:res.data.data.pageData});
17   - }
18   - })
19   -
20   - //-- 商品 --
21   - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
22   - getApp().request.promiseGet(url, {}).then(res=>{
23   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
24   - th.setData({pore_goods:res.data.data.pageData});
25   - }
26   - })
27   -
28   - // 优惠券
29   - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
30   - getApp().request.promiseGet(url, {}).then(res=>{
31   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
32   - th.setData({pore_quan_list:res.data.data.pageData});
33   - }
34   - })
35   - },
36   -}
packageB/pages/AI-test-skin/success_result/pore/pore.wxml deleted
1   -<view class="mb_b5" id="mao_kong">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#01</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">毛孔</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="1" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   - </view>
12   - </view>
13   - </view>
14   - <view class="analyse_classify_header_item mt_b5">
15   - <view class="analyse_classify_header_img">
16   - <image src="{{iurl}}/miniapp/images/skinimg/mao123.png"></image>
17   - </view>
18   - <view style="line-height:60rpx;margin-left:20rpx">
19   - <view class="fs28">程度情况</view>
20   - <view class="bold">待确定</view>
21   - </view>
22   - </view>
23   - <view class="analyse_classify_header_item mt_b5">
24   - <view class="analyse_classify_header_img">
25   - <image src="{{iurl}}/miniapp/images/skinimg/maokong_icon.jpg"></image>
26   - </view>
27   - <view style="line-height:60rpx;margin-left:20rpx">
28   - <view class="fs28">粗大区域</view>
29   - <view class="bold">待确定</view>
30   - </view>
31   - </view>
32   - <view class="fs28 mt_b10">
33   - <text>明显可见毛孔或内含小于毛孔大小角栓</text>
34   - </view>
35   - </view>
36   - <view class="analyse_classify_body">
37   - <view class="mt_b10">
38   - <view class="fenxi mgb10">原因分析</view>
39   - <view class="flex" style="flex-wrap: wrap">
40   - <view style="margin-right: 20rpx">
41   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
42   - <text class="fs26">皮脂腺分泌旺盛</text>
43   - </view>
44   - <view style="margin-right: 20rpx">
45   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
46   - <text class="fs26">日光暴晒过度</text>
47   - </view>
48   - <view style="margin-right: 20rpx">
49   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
50   - <text class="fs26">护肤不当清洁不足</text>
51   - </view>
52   - </view>
53   - </view>
54   -
55   - <view class="mt_b10">
56   - <view class="fenxi mgb10">护理建议</view>
57   - <view class="">
58   - <view class="mgb30">
59   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 日常防晒</text>
60   - <view class="fs26 c_666">使用清爽型防晒产品,并使用太阳伞、帽子等做好物理防晒,避免阳光中的紫外线刺激皮脂腺分泌更多油
61   - 脂。</view>
62   - </view>
63   - <view class="mgb30">
64   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补水保湿</text>
65   - <view class="fs26 c_666">日常清洁后,使用补水面膜或带收敛效果的爽肤水,在毛孔粗大处多次叠加,后续使用清爽型乳液、面霜等做好保湿工作。</view>
66   - </view>
67   - <view class="mgb30">
68   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 早晚清洁</text>
69   - <view class="fs26 c_666">先用热水打开毛孔,使用氨基酸洁面乳在 T 区、脸颊等毛孔较大区域,以画圆的方式进行揉搓,再用大量
70   - 清水冲洗干净。
71   - </view>
72   - </view>
73   - </view>
74   - </view>
75   - </view>
76   - </view>
77   -
78   - <view class="analyse_classify_foot" style="background:#e6f4fa">
79   -
80   - <!-- 服务卡 -->
81   - <view wx:if="{{pore_fuwu}}">
82   - <view style="margin:5% 0">毛孔问题的疗程</view>
83   - <block wx:for="{{pore_fuwu}}">
84   - <include src="../fuwu.wxml" />
85   - </block>
86   - </view>
87   - <!-- 商品 -->
88   - <view wx:if="{{pore_goods}}">
89   - <view style="margin:5% 0">适合毛孔问题的护肤品</view>
90   - <view class="product flex">
91   - <block wx:for="{{pore_goods}}">
92   - <include src="../goods.wxml" />
93   - </block>
94   - </view>
95   - </view>
96   - <!-- 优惠券 -->
97   - <view wx:if="{{pore_quan_list}}">
98   - <view style="margin:5% 0">适合毛孔商品的优惠券</view>
99   - <view class="xc-coupon-frame rel">
100   - <block wx:for="{{pore_quan_list}}">
101   - <include src="../coupon.wxml" />
102   - </block>
103   - </view>
104   - </view>
105   - </view>
106   -</view>
107 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/s_filter.wxs deleted
1   -//获取样式
2   -var get_dark_type = function(column) {
3   - switch(column){
4   - case 0:return "轻度";
5   - case 1:return "中度";
6   - case 2:return "重度";
7   - }
8   -}
9   -
10   -//跳转的接口
11   -var get_goods_url=function(item){
12   - var url1="/pages/goods/goodsInfo/goodsInfo?goods_id="+item.goods_id
13   -
14   - if(item.prom_type == 9) {
15   - url1 = '/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=' + item.goods_id + '&group_id=' + item.prom_id;
16   - }
17   - if(item.prom_type==8){
18   - url1="/packageC/pages/presell/goodsInfo/goodsInfo?goods_id="+item.goods_id+"&prom_id="+item.prom_id
19   - }
20   - if(item.prom_type==1 && item.prom_id>0 ){
21   - url1="/pages/goods/goodsInfo/goodsInfo?goods_id="+item.goods_id+"&prom_id="+item.prom_id+"&prom_type=1";
22   - }
23   - return url1;
24   - }
25   -var guige=function(item){
26   - var gg='';
27   - if (item.goods_spec != "" && item.goods_color != "") {
28   - gg = item.goods_spec + "/" + item.goods_color;
29   - } else if (item.goods_spec != "" || item.goods_color != "") {
30   - gg = item.goods_spec + item.goods_color;
31   - } else {
32   - gg = "规格1";
33   - }
34   - return gg;
35   -}
36   -
37   -var dryoil_check=function(skin_dryoil_check){
38   - var num_all=skin_dryoil_check[0]+skin_dryoil_check[1]+skin_dryoil_check[2]+skin_dryoil_check[3]+skin_dryoil_check[4];
39   - num_all= num_all/5;
40   - switch(num_all){
41   - case 0:return '干性';
42   - case 1:return '中性';
43   - case 2:return '油性';
44   - }
45   - return '';
46   -}
47   -
48   -
49   -//-- 判断是不是有等级价 --
50   -var is_has_rank=function(rank_switch,item){
51   - if(!rank_switch) return false;
52   - if(item.cardprice1 || item.cardprice2 || item.cardprice3) {return true}
53   - return false;
54   - }
55   -
56   - //-- 判断,不是等级会员时候,要显示的最低等级价和名称 --
57   -var get_card_price=function(goods,all_card,type){
58   - var price1=parseFloat(goods['cardprice1']);
59   - var price2 = parseFloat(goods['cardprice2']);
60   - var price3 = parseFloat(goods['cardprice3']);
61   - if(!all_card){
62   - if(type==0) return 0;
63   - return "";
64   - }
65   -
66   - var min_price=null;
67   - var min_name=null;
68   - //---设置对应的价格名字----
69   - for(var i=0;i<3;i++) {
70   - var vl=all_card[i];
71   - if(!vl) continue;
72   -
73   - if(vl['CorrPrice']=="Price1" && price1>0)
74   - {
75   - if(min_price==null) {
76   - min_price=price1;min_name=vl['CardName'];
77   - }
78   - else if(price1<min_price) {
79   - min_price=price1;min_name=vl['CardName'];
80   - }
81   - }
82   - if(vl['CorrPrice']=="Price2" && price2>0)
83   - {
84   - if(min_price==null) {
85   - min_price=price2;min_name=vl['CardName'];
86   - }
87   - else if(price2<min_price) {
88   - min_price=price2;min_name=vl['CardName'];
89   - }
90   - }
91   -
92   - if(vl['CorrPrice']=="Price3" && price3>0)
93   - {
94   - if(min_price==null) {
95   - min_price=price3;min_name=vl['CardName'];
96   - }
97   - else if(price3<min_price) {
98   - min_price=price3;min_name=vl['CardName'];
99   - }
100   - }
101   -
102   - }
103   - if(min_price==null){
104   - if(type==0) return 0;
105   - return "";
106   - }
107   -
108   - if(type==0) return min_price;
109   - if(min_name.length>4 ) min_name=min_name.substring(0, 8);
110   - return min_name;
111   - }
112   -
113   -var get_nai_shou=function(type){
114   -
115   -
116   - switch(type){
117   - case 0:return '耐受';
118   - case 1:return '中性';
119   - case 2:return '敏感';
120   - }
121   - return '';
122   -}
123   -
124   -
125   -module.exports = {
126   - get_dark_type: get_dark_type,
127   - get_goods_url: get_goods_url,
128   - guige:guige,
129   - dryoil_check:dryoil_check,
130   - is_has_rank:is_has_rank,
131   - get_card_price:get_card_price,
132   - get_nai_shou:get_nai_shou
133   -}
packageB/pages/AI-test-skin/success_result/sensitive/sensitive.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-21 17:42:05
4   - * @LastEditTime: 2022-02-21 17:50:54
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\sensitive\sensitive.js
8   - */
9   -module.exports = {
10   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
11   - get_goods: function (th, stoid) {
12   - var r_code = '12';
13   - //获取毛孔的类型
14   - var arr = th.data.face_data.skinquality.skin_sensitive_check;
15   - //去掉重复
16   - var set = arr.filter(function (element, index, self) {
17   - return self.indexOf(element) === index;
18   - })
19   - var re_word = set.join(',');
20   - //-- 服务卡 --
21   - var url = "/api/weshop/serviceCard/page?orderField=RAND()&recommend_code=" + r_code + "&store_id=" + stoid + "&recommend_word=" + re_word + "&pageSize=2";
22   - getApp().request.promiseGet(url, {}).then(res => {
23   - if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length > 0) {
24   - th.setData({ sensitive_fuwu: res.data.data.pageData })
25   - }
26   - })
27   -
28   - //-- 商品 --
29   - var url = "/api/weshop/goods/page?orderField=RAND()&recommend_code=" + r_code + "&store_id=" + stoid + "&recommend_word=" + re_word + "&pageSize=2";
30   - getApp().request.promiseGet(url, {}).then(res => {
31   - if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length > 0) {
32   - th.setData({ sensitive_goods: res.data.data.pageData })
33   - }
34   - })
35   - // 优惠券
36   - var url = "/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code=" + r_code + "&store_id=" + stoid + "&recommend_word=" + re_word + "&pageSize=2";
37   - getApp().request.promiseGet(url, {}).then(res => {
38   - if (res.data.code == 0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length > 0) {
39   - th.setData({sensitive_quan_list: res.data.data.pageData });
40   - }
41   - })
42   - },
43   -}
packageB/pages/AI-test-skin/success_result/sensitive/sensitive.wxml deleted
1   -<view class="mb_b5" id="min_gan_du">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#07</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">敏感度</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="7" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   - </view>
12   - </view>
13   - </view>
14   - <view class="analyse_classify_header_item mt_b5">
15   - <view class="analyse_classify_header_img">
16   - <image src="{{iurl}}/miniapp/images/skinimg/seban_heitou_maokong_.png"></image>
17   - </view>
18   - <view style="line-height:60rpx;margin-left:20rpx">
19   - <view class="fs28">程度情况</view>
20   - <view class="bold">{{s_filter.get_nai_shou(skin_sensitive_check)}}</view>
21   - </view>
22   - </view>
23   - <view class="analyse_classify_header_item mt_b5">
24   - <view class="analyse_classify_header_img">
25   - <image src="{{iurl}}/miniapp/images/skinimg/mingandu_icon.jpg"></image>
26   - </view>
27   - <view style="line-height:60rpx;margin-left:20rpx">
28   - <view class="fs28">敏感度得分</view>
29   - <view class="bold">待确定</view>
30   - </view>
31   - </view>
32   - <view class="fs28 mt_b10">
33   - <text>明显可见毛孔或内含小于毛孔大小角栓</text>
34   - </view>
35   - </view>
36   - <view class="analyse_classify_body">
37   - <view class="mt_b10">
38   - <view class="fenxi mgb10">原因分析</view>
39   - <view class="flex" style="flex-wrap: wrap">
40   - <view style="margin-right: 20rpx">
41   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
42   - <text class="fs26">皮脂腺分泌旺盛</text>
43   - </view>
44   - <view style="margin-right: 20rpx">
45   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
46   - <text class="fs26">日光暴晒过度</text>
47   - </view>
48   - <view style="margin-right: 20rpx">
49   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
50   - <text class="fs26">护肤不当清洁不足</text>
51   - </view>
52   - </view>
53   - </view>
54   -
55   - <view class="mt_b10">
56   - <view class="fenxi mgb10">护理建议</view>
57   - <view class="">
58   - <view class="mgb30">
59   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 日常防晒</text>
60   - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view>
61   - </view>
62   - <view class="mgb30">
63   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补水保湿</text>
64   - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view>
65   - </view>
66   - <view class="mgb30">
67   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 早晚清洁</text>
68   - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view>
69   - </view>
70   - </view>
71   - </view>
72   - </view>
73   - </view>
74   -
75   - <view class="analyse_classify_foot" style="background:#e6f4fa">
76   - <!-- 服务卡 -->
77   - <view wx:if="{{sensitive_fuwu}}">
78   - <view style="margin:5% 0">敏感度问题的疗程</view>
79   - <block wx:for="{{sensitive_fuwu}}">
80   - <include src="../fuwu.wxml" />
81   - </block>
82   - </view>
83   - <!-- 商品 -->
84   - <view wx:if="{{sensitive_goods}}">
85   - <view style="margin:5% 0">适合敏感度问题的护肤品</view>
86   - <view class="product flex">
87   - <block wx:for="{{sensitive_goods}}">
88   - <include src="../goods.wxml" />
89   - </block>
90   - </view>
91   - </view>
92   - <!-- 优惠券 -->
93   - <view wx:if="{{sensitive_quan_list}}">
94   - <view style="margin:5% 0">适合敏感度商品的优惠券</view>
95   - <view class="xc-coupon-frame rel">
96   - <block wx:for="{{sensitive_quan_list}}">
97   - <include src="../coupon.wxml" />
98   - </block>
99   - </view>
100   - </view>
101   - </view>
102   -</view>
103 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/speckle/speckle.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-21 11:03:07
4   - * @LastEditTime: 2022-02-21 17:48:51
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\speckle\speckle.js
8   - */
9   -module.exports = {
10   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
11   - get_goods: function(th,stoid) {
12   - var r_code='07';
13   - //获取斑的类型
14   - var list=th.data.face_data.acnespotmole.speckle_list;
15   - //把所有的斑的类型拿出来
16   - var arr=[];
17   - for(var i in list){
18   - arr.push(list[i].type);
19   - }
20   - //去掉重复
21   - var set= arr.filter(function (element, index, self) {
22   - return self.indexOf(element) === index;
23   - })
24   - var re_word=set.join(',');
25   - //-- 服务卡 --
26   - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
27   - getApp().request.promiseGet(url, {}).then(res=>{
28   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
29   - th.setData({speckle_fuwu:res.data.data.pageData})
30   - }
31   - })
32   -
33   - //-- 商品 --
34   - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
35   - getApp().request.promiseGet(url, {}).then(res=>{
36   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
37   - th.setData({speckle_goods:res.data.data.pageData})
38   - }
39   - })
40   -
41   - // 优惠券
42   - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
43   - getApp().request.promiseGet(url, {}).then(res=>{
44   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
45   - th.setData({speckle_quan_list:res.data.data.pageData});
46   - }
47   - })
48   -
49   - },
50   -}
packageB/pages/AI-test-skin/success_result/speckle/speckle.wxml deleted
1   -<view class="mb_b5" id="se_ban">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#02</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">色斑</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="2" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   - </view>
12   - </view>
13   - </view>
14   - <view class="analyse_classify_header_item mt_b5">
15   - <view class="analyse_classify_header_img">
16   - <image src="{{iurl}}/miniapp/images/skinimg/seban_heitou_maokong_.png"></image>
17   - </view>
18   - <view style="line-height:60rpx;margin-left:20rpx">
19   - <view class="fs28">程度情况</view>
20   - <view class="bold">待确定</view>
21   - </view>
22   - </view>
23   - <view class="analyse_classify_header_item mt_b5">
24   - <view class="analyse_classify_header_img">
25   - <image src="{{iurl}}/miniapp/images/skinimg/seban_icon.jpg"></image>
26   - </view>
27   - <view style="line-height:60rpx;margin-left:20rpx">
28   - <view class="fs28">色斑个数</view>
29   - <view class="bold">{{speckle_num}}</view>
30   - </view>
31   - </view>
32   - <view class="fs28 mt_b10">
33   - <text>隐约可见面积小且分散的色斑</text>
34   - </view>
35   - </view>
36   - <view class="analyse_classify_body">
37   - <view class="mt_b10">
38   - <view class="fenxi mgb10">原因分析</view>
39   - <view class="flex" style="flex-wrap: wrap">
40   - <view style="margin-right: 20rpx">
41   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
42   - <text class="fs26">皮肤炎症反应</text>
43   - </view>
44   - <view style="margin-right: 20rpx">
45   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
46   - <text class="fs26">内分泌失衡</text>
47   - </view>
48   - <view style="margin-right: 20rpx">
49   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
50   - <text class="fs26">紫外线照射过量</text>
51   - </view>
52   - </view>
53   - </view>
54   -
55   - <view class="mt_b10">
56   - <view class="fenxi mgb10">护理建议</view>
57   - <view class="">
58   - <view class="mgb30">
59   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 保持充足睡眠</text>
60   - <view class="fs26 c_666">充足的睡眠可以调节身体内分泌,皮肤新陈代谢加快,有利于黑色素的脱落。</view>
61   - </view>
62   - <view class="mgb30">
63   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 摄取维生素</text>
64   - <view class="fs26 c_666">维生素 C 、维生素 E 可以抑制或淡化黑色素,口服或
65   - 外用皆可,但外用维生素 C 需注意避光。</view>
66   - </view>
67   - <view class="mgb30">
68   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 做好防晒</text>
69   - <view class="fs26 c_666">选择防晒系数较高的产品,并及时进行补涂,同时使用太阳伞、帽子等进行物理防晒,减少紫外线对皮肤产生黑色素沉淀。</view>
70   - </view>
71   - </view>
72   - </view>
73   - </view>
74   - </view>
75   - <view class="analyse_classify_foot" style="background:#e6f4fa">
76   - <!-- 服务卡 -->
77   - <view wx:if="{{speckle_fuwu}}">
78   - <view style="margin:5% 0">色斑问题的疗程</view>
79   - <block wx:for="{{speckle_fuwu}}">
80   - <include src="../fuwu.wxml" />
81   - </block>
82   - </view>
83   - <!-- 商品 -->
84   - <view wx:if="{{speckle_goods}}">
85   - <view style="margin:5% 0">适合色斑问题的护肤品</view>
86   - <view class="product flex">
87   - <block wx:for="{{speckle_goods}}">
88   - <include src="../goods.wxml" />
89   - </block>
90   - </view>
91   - </view>
92   - <!-- 优惠券 -->
93   - <view wx:if="{{speckle_quan_list}}">
94   - <view style="margin:5% 0">适合色斑商品的优惠券</view>
95   - <view class="xc-coupon-frame rel">
96   - <block wx:for="{{speckle_quan_list}}">
97   - <include src="../coupon.wxml" />
98   - </block>
99   - </view>
100   - </view>
101   - </view>
102   -</view>
103 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/success_result.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-16 15:36:47
4   - * @LastEditTime: 2022-02-22 16:16:59
5   - * @LastEditors: Please set LastEditors
6   - * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
7   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\success_result.js
8   - */
9   -// packageB/pages/AI-test-skin/success_result/success_result.js
10   -const app = getApp();
11   -const request = app.request;
12   -const os = app.globalData;
13   -const setting = os.setting;
14   -const ut = require('../../../../utils/util');
15   -//毛孔
16   -const acne = require('acne/acne');
17   -const blackhead = require('blackhead/blackhead');
18   -const dark = require('dark/dark');
19   -const pore = require('pore/pore');
20   -const speckle = require('speckle/speckle');
21   -const wrinkle = require('wrinkle/wrinkle');
22   -Page({
23   - /**
24   - * 页面的初始数据
25   - */
26   - data: {
27   - tab: [{ id: 'zong_he', name: '综合肤质' }, { id: 'mao_kong', name: '毛孔' }, { id: 'hei_tou', name: '黑头' }, { id: 'se_ban', name: '色斑' }, { id: 'zhou_wen', name: '皱纹' }, { id: 'hei_yan_quan', name: '黑眼圈' }, { id: 'cuo_chuang', name: '痤疮' }, { id: 'min_gan_du', name: '敏感度' }],
28   - currentIndex: 0,
29   - tab_id: 'zong_he',
30   - iurl: setting.imghost,
31   - showDialog: false,
32   - yanjing: true, //显示皮肤问题
33   - img_scale: true, //问题标注放大图片
34   - img_scale_icon: true,
35   - show_problem: 1, //问题标注显示问题
36   -
37   - },
38   -
39   - /**
40   - * 生命周期函数--监听页面加载
41   - */
42   - onLoad: function (options) {
43   - var th = this;
44   - //初始化一下,获取商品的价格
45   - this.init();
46   - //var face_result=getApp().globalData.face_result;
47   - //var face_data=face_result.face_list[0];
48   - this.data.id = options.id;
49   -
50   - //计算图片要显示的大小
51   - th.data.cWidth = wx.getSystemInfoSync().windowWidth;
52   - th.data.cHeight = wx.getSystemInfoSync().windowHeight;
53   - th.data.face_height = th.data.cHeight * 0.8 * 0.8;
54   -
55   - this.get_data(function (json, json1, img) {
56   - //-- 数据先存着 --
57   - var face_data = th.data.face_data = json.face_list[0];
58   - var sex = json1.face_list[0].gender.type;
59   - //痤疮数
60   - var acne_num = face_data.acnespotmole.acne_num;
61   - //色斑数
62   - var speckle_num = face_data.acnespotmole.speckle_num;
63   - //皱纹数
64   - var wrinkle_num = face_data.wrinkle.wrinkle_num;
65   - //黑头数
66   - var blackhead_num = face_data.blackheadpore.blackhead_num;
67   - //毛孔数
68   - var pore_num = face_data.blackheadpore.pore_num;
69   - //黑眼圈的严重程度
70   - var dark_type = face_data.eyesattr.dark_circle_left_type.length > 0 ? face_data.eyesattr.dark_circle_left_type[0] : -1;
71   - var dark_type1 = face_data.eyesattr.dark_circle_right_type.length > 0 ? face_data.eyesattr.dark_circle_right_type[0] : -1;
72   - if (dark_type1 > dark_type) {
73   - dark_type = dark_type1;
74   - }
75   - var skin_sensitive_check = parseInt(face_data.skinquality.skin_sensitive_check[0]);
76   - var skin_dryoil_check = face_data.skinquality.skin_dryoil_check;
77   -
78   - var location = face_data.location;
79   - th.data.bili = th.data.face_height / (location.height + location.height / 2.3);
80   -
81   - th.setData({
82   - acne_num: acne_num,
83   - speckle_num: speckle_num,
84   - wrinkle_num: wrinkle_num,
85   - blackhead_num: blackhead_num,
86   - pore_num: pore_num,
87   - dark_type: dark_type,
88   - skin_sensitive_check: skin_sensitive_check,
89   - skin_dryoil_check: skin_dryoil_check,
90   - face_img: img,
91   - m_top: (location.top - location.height / 2.5) * th.data.bili,
92   - m_left: (location.left - location.width / 7) * th.data.bili,
93   - bili: th.data.bili
94   - })
95   - //-- 调用毛孔的推荐函数 --
96   - if (pore_num > 0)
97   - pore.get_goods(th, setting.stoid);
98   - //-- 调用黑头的推荐函数 --
99   - if (blackhead_num > 0)
100   - blackhead.get_goods(th, setting.stoid);
101   - //-- 调用色斑的推荐函数 --
102   - if (speckle_num > 0)
103   - speckle.get_goods(th, setting.stoid);
104   - //-- 调用皱纹的推荐函数 --
105   - if (wrinkle_num > 0)
106   - wrinkle.get_goods(th, setting.stoid);
107   - //-- 黑眼圈 --
108   - if (dark_type > -1)
109   - dark.get_goods(th, setting.stoid);
110   - //-- 黑眼圈 --
111   - if (acne_num > -0)
112   - acne.get_goods(th, setting.stoid);
113   - })
114   - },
115   -
116   - //-- 初始等级卡 --
117   - init: function () {
118   - var th = this;
119   - if (!getApp().globalData.user_id) return false;
120   - getApp().request.get("/api/weshop/users/get/" + setting.stoid + "/" + getApp().globalData.user_id, {
121   - isShowLoading: false,
122   - success: function (e) {
123   - if (e.data.code == 0 && e.data && e.data.data) {
124   - getApp().globalData.userInfo = e.data.data;
125   - getApp().getConfig2(function (e) {
126   - var swithc_list = e.switch_list;
127   - var sw_arr = JSON.parse(swithc_list);
128   - //---如果后台有开等级卡的开关---
129   - if (sw_arr.rank_switch && sw_arr.rank_switch == "2") {
130   - th.setData({
131   - rank_switch: true
132   - });
133   - //---回调卡的列表---
134   - th.getPlusCardType(function (ob) {
135   - th.setData({
136   - card_list: ob.card_list
137   - });
138   - var ti = setInterval(function () {
139   - var user = getApp().globalData.userInfo;
140   - if (!user) return false;
141   - clearInterval(ti);
142   - if (user.card_field && user['card_expiredate']) {
143   - var str = user['card_expiredate'].replace(/-/g, '/');
144   - var end = new Date(str);
145   - end = Date.parse(end) / 1000;
146   - var now = ut.gettimestamp();
147   - //--- 判断是等级会员,且在有效期范围内 ---
148   - if (user.card_field && now < end) {
149   - var card_name = ob.name_map.get(user.card_field);
150   - if (card_name.length > 4) card_name = card_name.substring(0, 8);
151   - th.setData({
152   - card_field: user.card_field,
153   - card_name: card_name,
154   - card_list: ob.card_list
155   - });
156   - }
157   - }
158   - }, 500)
159   - })
160   - }
161   - })
162   -
163   - }
164   - }
165   - })
166   - },
167   - //-- 获取json数据 --
168   - get_data: function (func) {
169   - var url = "/api/weshop/face/storeSkinface/get/" + setting.stoid + "/" + this.data.id;
170   - getApp().request.promiseGet(url, {}).then(res => {
171   - if (res.data.code == 0) {
172   - console.log(res, 'dsffffff');
173   - var json = JSON.parse(res.data.data.resultjson);
174   - var json1 = JSON.parse(res.data.data.detectjson);
175   - func(json, json1, res.data.data.img)
176   - } else {
177   - getApp().showWarning("获取数据失败");
178   - }
179   - })
180   - },
181   -
182   - /**
183   - * 生命周期函数--监听页面初次渲染完成
184   - */
185   - onReady: function () {
186   - // let heightRecords = [];
187   - // setTimeout(() => {
188   - // for (let i = 0; i < this.data.tab.length; i++) {
189   - // let item = this.data.tab[i];
190   - // let id = `#${item.id}`;
191   - // let query = wx.createSelectorQuery();
192   - // query.select(id).boundingClientRect(rect => {
193   - // console.log(rect, i);
194   - // heightRecords[i] = rect.height;
195   - // }).exec()
196   - // }
197   - // this.setData({
198   - // heightRecords,
199   - // })
200   - // }, 1000)
201   -
202   - },
203   - binddragend(e) {
204   - console.log(e);
205   - this.setData({
206   - scrollTop: e.detail.scrollTop,
207   - })
208   - },
209   -
210   - /**
211   - * 生命周期函数--监听页面显示
212   - */
213   - onShow: function () { },
214   -
215   - clickTab(e) {
216   - let { index, tab_id } = e.currentTarget.dataset;
217   - this.setData({
218   - currentIndex: index,
219   - tab_id,
220   - })
221   - },
222   - click_yanjing() {
223   - this.setData({
224   - yanjing: !this.data.yanjing,
225   - })
226   - },
227   - click_fangda() {
228   - this.setData({
229   - img_scale: !this.data.img_scale,
230   - img_scale_icon: !this.data.yanjing,
231   - })
232   - },
233   -
234   - /**
235   - * 生命周期函数--监听页面隐藏
236   - */
237   - onHide: function () {
238   -
239   - },
240   -
241   - /**
242   - * 生命周期函数--监听页面卸载
243   - */
244   - onUnload: function () {
245   -
246   - },
247   - show_dailog(e) {
248   - var type = parseInt(e.currentTarget.dataset.type);
249   - this.setData({
250   - showDialog: true, show_type: type
251   - })
252   - switch (type) {
253   - case 1: //毛孔
254   - var pore_list = this.data.face_data.blackheadpore.circles[0].pore;
255   - this.setData({ pore_list: pore_list });
256   - break;
257   - case 2://色斑
258   - var speckle_list = this.data.face_data.acnespotmole.speckle_list;
259   - this.setData({ speckle_list: speckle_list });
260   - break;
261   - case 3://皱纹
262   - var wrinkle_list = this.data.face_data.wrinkle.wrinkle_data;
263   - this.setData({ wrinkle_list: wrinkle_list });
264   - break;
265   - case 4://黑头
266   - var blackhead_list = this.data.face_data.blackheadpore.circles[0].blackhead;
267   - this.setData({ blackhead_list: blackhead_list });
268   - break;
269   - case 5://黑眼圈
270   - var arr = this.data.face_data.eyesattr.dark_circle_left[0];
271   - var arr2 = this.data.face_data.eyesattr.dark_circle_right[0];
272   - var arr3 = [...arr, ...arr2];
273   - this.setData({ dark_list: arr3 });
274   - break;
275   - case 6://痤疮
276   - var acne_list = this.data.face_data.acnespotmole.acne_list;
277   - this.setData({ acne_list: acne_list });
278   - break;
279   - default:
280   - break
281   - }
282   - },
283   -
284   - close_dialog() {
285   - this.setData({
286   - showDialog: false,
287   - })
288   - },
289   -
290   - close_mask() {
291   - this.setData({
292   - showDialog: false,
293   - img_scale: true,
294   - })
295   - },
296   -
297   - /**
298   - * 页面相关事件处理函数--监听用户下拉动作
299   - */
300   - onPullDownRefresh: function () {
301   -
302   - },
303   -
304   - /**
305   - * 页面上拉触底事件的处理函数
306   - */
307   - onReachBottom: function () {
308   -
309   - },
310   -
311   - /**
312   - * 用户点击右上角分享
313   - */
314   - onShareAppMessage: function () {
315   -
316   - },
317   -
318   - //商品页面跳转
319   - go_url: function (e) {
320   - var url = e.currentTarget.dataset.url;
321   - getApp().goto(url);
322   - },
323   -
324   - //--- 获取卡类列表 ---
325   - getPlusCardType: function (func) {
326   - var storid = setting.stoid;
327   - var th = this;
328   - getApp().request.promiseGet("/api/weshop/plus/vip/mem/bership/list?" + "storeId=" + storid, {}).then(res => {
329   -
330   - if (res.data.code != 0 || !res.data.data) {
331   - var ob = {
332   - "card_list": [],
333   - "name_map": ""
334   - };
335   - func(ob);
336   - return false;
337   - }
338   -
339   - var plusCard = res.data.data;
340   - var arr = [1219, 2089, 3031];
341   - var new_arr = new Array();
342   - var card_name_map = new Map();
343   -
344   - var user = getApp().globalData.userInfo;
345   - if (plusCard) {
346   - for (var i = 0; i < plusCard.length; i++) {
347   - if ((!user || user.card_field == null || user.card_field == "") && (plusCard[i].IsStopBuy == true)) {
348   - continue;
349   - }
350   - var name = "card" + plusCard[i].CorrPrice.toLowerCase();
351   - card_name_map.set(name, plusCard[i].CardName);
352   - new_arr.push(plusCard[i]);
353   -
354   - }
355   - }
356   - var ob = {
357   - "card_list": new_arr,
358   - "name_map": card_name_map
359   - };
360   - func(ob);
361   - })
362   - },
363   -
364   - //图片加载的时候,计算图片的像素大小
365   - face_img_load: function (e) {
366   - var th = this;
367   - var imgwidth = e.detail.width;
368   - var imgheight = e.detail.height;
369   -
370   - var w = th.data.cWidth * 0.8;
371   -
372   - this.setData({
373   - iwidth: imgwidth * th.data.bili,
374   - iheight: imgheight * th.data.bili,
375   - bili1: w / imgwidth //图片放大时候的比例
376   - })
377   - },
378   -})
379 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/success_result.json deleted
1   -{
2   - "usingComponents": {
3   - "vant-tabs":"../../../components/vant_ui/tabs",
4   - "vant-tab":"../../../components/vant_ui/tab"
5   - },
6   - "navigationBarTitleText": "测肤报告"
7   -}
8 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/success_result.wxml deleted
1   -<wxs module="s_filter" src="s_filter.wxs"></wxs>
2   -
3   -<view style="height: 100rpx;">
4   - <scroll-view enable-flex scroll-into-view="{{tab_id}}" scroll-with-animation scroll-x class="tab_scroll">
5   - <view class="flex" style="height: 100%;">
6   - <view wx:for="{{tab}}" wx:key="id" id="{{item.id}}" bindtap="clickTab" data-tab_id="{{item.id}}" data-index="{{index}}" class="tab_scroll_item {{currentIndex==index?'active':''}}">
7   - {{item.name}}
8   - </view>
9   - </view>
10   - </scroll-view>
11   -</view>
12   -
13   -<scroll-view enable-flex enhanced scroll-into-view="{{tab_id}}" scroll-with-animation bindscroll="binddragend" scroll-y style="height: calc(100% - 100rpx)">
14   - <view class="analyse_by_people" id="zong_he">
15   - <view class="analyse">
16   - <view class="analyse_left">
17   - <view class="mark">毛孔 {{pore_num}}</view>
18   - <view class="mark" style="margin: 40rpx 0;">色斑 {{speckle_num}}</view>
19   - <view class="mark">黑眼圈 {{s_filter.get_dark_type(dark_type)}}</view>
20   - </view>
21   - <view class="analyse_center">
22   - <image wx:if="{{sex === 'female'}}" src="{{iurl}}/miniapp/images/skinimg/nv.png"></image>
23   - <image wx:else src="{{iurl}}/miniapp/images/skinimg/nan.png"></image>
24   - </view>
25   - <view class="analyse_right">
26   - <view class="mark">黑头 {{blackhead_num}}</view>
27   - <view class="mark" style="margin: 40rpx 0;">皱纹 {{wrinkle_num}}</view>
28   - <view class="mark">痤疮 {{acne_num}}</view>
29   - </view>
30   - </view>
31   - <view class="score">
32   - <view>
33   - <view class="fs28">综合得分</view>
34   - <view class="t-c mt10">
35   - <text style="font-weight: 600;">待确定</text>
36   - <text class="iconfont icon-zuojiantou"></text>
37   - </view>
38   - </view>
39   - <view class="shuxian"></view>
40   - <view>
41   - <view class="t-c fs28">肤况</view>
42   - <view class="t-c mt10 bold">待确定</view>
43   - </view>
44   - </view>
45   - <view class="content" style="padding-bottom: 0;">
46   - <view class="mb_b5" style="display: none">
47   - <image src="{{iurl}}/miniapp/images/skinimg/_code.png" style="height: 200rpx;width: 100%;"></image>
48   - </view>
49   - <view class="analyse_result mt_b5">
50   - <view class="img">
51   - <image wx:if="{{sex === 'female'}}" src="{{iurl}}/miniapp/images/skinimg/nv1.jpeg" style="width: 100%;height: 100%;"></image>
52   - <image wx:else src="{{iurl}}/miniapp/images/skinimg/nan1.jpeg" style="width: 100%;height: 100%;"></image>
53   - </view>
54   - <view class="f1 ml20">
55   - <view class="bold">待确定</view>
56   - <view class="fs24 mt10">
57   - <text class="gan" style="margin-right: 30rpx;">干性区</text>
58   - <text class="you">油性区</text>
59   - </view>
60   - <view class="mt20 fs26">
61   - <text>你的皮肤总体油脂过剩,容易引发皮肤问题。日常可使用一些具有控油,补水功效产品,帮助调理肌肤</text>
62   - </view>
63   - </view>
64   - </view>
65   - </view>
66   - </view>
67   -
68   - <view class="content">
69   - <!-- 毛孔 -->
70   - <block wx:if="{{pore_num}}">
71   - <include src="pore/pore.wxml" />
72   - </block>
73   - <!-- 黑头 -->
74   - <block wx:if="{{blackhead_num}}">
75   - <include src="blackhead/blackhead.wxml" />
76   - </block>
77   - <!-- 色斑 -->
78   - <block wx:if="{{speckle_num}}">
79   - <include src="speckle/speckle.wxml" />
80   - </block>
81   - <!-- 皱纹 -->
82   - <block wx:if="{{wrinkle_num}}">
83   - <include src="wrinkle/wrinkle.wxml" />
84   - </block>
85   - <!-- 黑眼圈 -->
86   - <block wx:if="{{dark_type>-1}}">
87   - <include src="dark/dark.wxml" />
88   - </block>
89   - <!-- 痤疮 -->
90   - <block wx:if="{{acne_num}}">
91   - <include src="acne/acne.wxml" />
92   - </block>
93   - <!-- 敏感度 -->
94   - <include src="sensitive/sensitive.wxml" />
95   - </view>
96   -</scroll-view>
97   -
98   -
99   -<view class="mask" catchtap="close_mask" wx:if="{{showDialog}}"></view>
100   -<cover-view class="share fs28">
101   - <cover-view class="iconfont icon-zhuanfa1" style="padding: 0 10rpx;"></cover-view>
102   - <cover-view>分享</cover-view>
103   -</cover-view>
104   -
105   -<view class="dialog {{img_scale?'scale':'fangda'}}" wx:if="{{showDialog}}">
106   - <!-- 放大的 -->
107   - <block wx:if="{{img_scale}}">
108   - <view class="dialog_img">
109   - <view class="img_content">
110   - <view class="face_show_view" style="position: relative;width:{{iwidth}}px;height:{{iheight}}px;margin-top: -{{m_top}}px;margin-left: -{{m_left}}px">
111   - <image src="{{iurl}}{{face_img}}" bindload="face_img_load" style="width: 100%;height: 100%;"></image>
112   -
113   - <block wx:if="{{yanjing}}">
114   - <!-- 显示毛孔 -->
115   - <block wx:if="{{show_type==1}}">
116   - <block wx:for="{{pore_list}}">
117   - <view class="abs p_circle" style="left:{{(item.x-item.r)*bili}}px; top:{{(item.y-item.r)*bili}}px; height:{{2*item.r*bili}}px;width: {{2*item.r*bili}}px"></view>
118   - </block>
119   - </block>
120   - <!-- 显示色斑 -->
121   - <block wx:if="{{show_type==2}}">
122   - <block wx:for="{{speckle_list}}" >
123   - <block wx:for="{{item.position}}" wx:for-item="bitem">
124   - <view class="abs p_point" style="left:{{(bitem.x)*bili}}px; top:{{(bitem.y)*bili}}px;"></view>
125   - </block>
126   - </block>
127   - </block>
128   - <!-- 显示皱纹 -->
129   - <block wx:if="{{show_type==3}}">
130   - <block wx:for="{{wrinkle_list}}" >
131   - <block wx:for="{{item}}" wx:for-item="bitem">
132   - <view class="abs p_point" style="left:{{(bitem.x)*bili}}px; top:{{(bitem.y)*bili}}px;"></view>
133   - </block>
134   - </block>
135   - </block>
136   - <!-- 显示黑头 -->
137   - <block wx:if="{{show_type==4}}">
138   - <block wx:for="{{blackhead_list}}" >
139   - <block wx:for="{{item}}" wx:for-item="bitem">
140   - <view class="abs p_circle" style="left:{{(item.x-item.r)*bili}}px; top:{{(item.y-item.r)*bili}}px; height:{{2*item.r*bili}}px;width: {{2*item.r*bili}}px"></view>
141   - </block>
142   - </block>
143   - </block>
144   -
145   - <!-- 显示黑眼圈 -->
146   - <block wx:if="{{show_type==5}}">
147   - <block wx:for="{{dark_list}}">
148   - <view class="abs p_point" style="left:{{item.x*bili}}px; top:{{item.y*bili}}px; "></view>
149   - </block>
150   - </block>
151   -
152   -
153   - <!-- 显示痤疮 -->
154   - <block wx:if="{{show_type==6}}">
155   - <block wx:for="{{acne_list}}">
156   - <view class="abs p_circle" style="left:{{(item.center_x-item.radius)*bili}}px; top:{{(item.center_y-item.radius)*bili}}px;height:{{2*item.radius*bili}}px;width: {{2*item.radius*bili}}px"></view>
157   - </block>
158   - </block>
159   -
160   - </block>
161   - </view>
162   - </view>
163   - <view class="dialog_icon" catchtap="close_dialog" style="justify-content: flex-start;">
164   - <text class="iconfont icon-guan mt20" style="z-index: 999;font-size: 20rpx;"></text>
165   - </view>
166   - <view class="dialog_icon">
167   - <text catchtap="click_yanjing" class="iconfont {{yanjing?'icon-yanjing-kai':'icon-yanjing-guan'}} mgb20"></text>
168   - <!-- <text class="iconfont icon-yanjing-guan mgb20"></text> -->
169   - <text catchtap="click_fangda" class="iconfont icon-fangda mgb20"></text>
170   - </view>
171   - </view>
172   - <view class="dialog_txt">
173   - <view class="fs28" style="margin-right:15rpx;">
174   - <text wx:if="{{show_type==1}}">毛孔较粗大</text>
175   - <text wx:if="{{show_type==2}}">色斑轻度</text>
176   - <text wx:if="{{show_type==3}}">皱纹轻度</text>
177   - <text wx:if="{{show_type==4}}">黑头轻度</text>
178   - <text wx:if="{{show_type==5}}">黑眼圈轻度</text>
179   - <text wx:if="{{show_type==6}}">痤疮轻度</text>
180   - <text wx:if="{{show_type==7}}">敏感度{{s_filter.get_nai_shou(skin_sensitive_check)}}</text>
181   - </view>
182   - <view style="margin-top:2rpx;display: flex;">
183   - <view class="pp"></view>
184   - <view class="pp"></view>
185   - <view class="pp"></view>
186   - <view class="pp"></view>
187   - <view class="pp"></view>
188   - <view class="pp"></view>
189   - <view class="pp"></view>
190   - <view class="pp"></view>
191   - <view class="pp"></view>
192   - </view>
193   - </view>
194   - </block>
195   - <!-- 缩小 -->
196   - <block wx:else>
197   - <view style="position: relative">
198   - <image style="width: 100%;" src="{{iurl}}{{face_img}}" mode="widthFix"></image>
199   - <block wx:if="{{yanjing}}">
200   - <!-- 显示毛孔 -->
201   - <block wx:if="{{show_type==1}}">
202   - <block wx:for="{{pore_list}}">
203   - <view class="abs p_circle" style="left:{{(item.x-item.r)*bili1}}px; top:{{(item.y-item.r)*bili1}}px;height:{{2*item.r*bili1}}px;width: {{2*item.r*bili1}}px"></view>
204   - </block>
205   - </block>
206   - <!-- 显示色斑 -->
207   - <block wx:if="{{show_type==2}}">
208   - <block wx:for="{{speckle_list}}" >
209   - <block wx:for="{{item.position}}" wx:for-item="bitem">
210   - <view class="abs p_point" style="left:{{(bitem.x)*bili1}}px; top:{{(bitem.y)*bili1}}px;"></view>
211   - </block>
212   - </block>
213   - </block>
214   - <!-- 显示皱纹 -->
215   - <block wx:if="{{show_type==3}}">
216   - <block wx:for="{{wrinkle_list}}" >
217   - <block wx:for="{{item}}" wx:for-item="bitem">
218   - <view class="abs p_point" style="left:{{(bitem.x)*bili1}}px; top:{{(bitem.y)*bili1}}px;"></view>
219   - </block>
220   - </block>
221   - </block>
222   -
223   - <!-- 显示黑头 -->
224   - <block wx:if="{{show_type==4}}">
225   - <block wx:for="{{blackhead_list}}" >
226   - <block wx:for="{{item}}" wx:for-item="bitem">
227   - <view class="abs p_circle" style="left:{{(item.x-item.r)*bili1}}px; top:{{(item.y-item.r)*bili1}}px; height:{{2*item.r*bili1}}px;width: {{2*item.r*bili1}}px"></view>
228   - </block>
229   - </block>
230   - </block>
231   -
232   - <!-- 显示黑眼圈 -->
233   - <block wx:if="{{show_type==5}}">
234   - <block wx:for="{{dark_list}}">
235   - <view class="abs p_point" style="left:{{item.x*bili1}}px; top:{{item.y*bili1}}px; "></view>
236   - </block>
237   - </block>
238   -
239   - <!-- 显示痤疮 -->
240   - <block wx:if="{{show_type==6}}">
241   - <block wx:for="{{acne_list}}">
242   - <view class="abs p_circle" style="left:{{(item.center_x-item.radius)*bili1}}px; top:{{(item.center_y-item.radius)*bili1}}px;height:{{2*item.radius*bili1}}px;width: {{2*item.radius*bili1}}px"></view>
243   - </block>
244   - </block>
245   -
246   -
247   - </block>
248   - </view>
249   -
250   - <view class="dialog_icon">
251   - <text catchtap="click_fangda" class="iconfont icon-suoxiao mgb20"></text>
252   - </view>
253   - </block>
254   -</view>
255 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/success_result.wxss deleted
1   -/* packageB/pages/AI-test-skin/success_result/success_result.wxss */
2   -page {
3   - width: 100%;
4   - height: 100%;
5   - background: #e6f4fa;
6   -}
7   -
8   -.tab_scroll {
9   - position: fixed;
10   - top: 0;
11   - z-index: 99;
12   - display: flex;
13   - height: 100rpx;
14   -}
15   -
16   -.share {
17   - display: flex;
18   - position: fixed;
19   - bottom: 100rpx;
20   - right: 0;
21   - padding: 20rpx;
22   - background-color: #fff;
23   - border: 2rpx solid #f0f0f0;
24   - /* color: #FFF; */
25   - border-radius: 40rpx 0 0 40rpx;
26   - z-index: 99;
27   -}
28   -
29   -.tab_scroll_item {
30   - position: relative;
31   - padding: 3% 6%;
32   - white-space: nowrap;
33   - background-color: #fff;
34   -}
35   -
36   -.tab_scroll_item.active::after {
37   - content: '';
38   - position: absolute;
39   - bottom: 0;
40   - left: 50%;
41   - transform: translateX(-50%);
42   - width: 25%;
43   - height: 6rpx;
44   - background-color: #333333;
45   -}
46   -
47   -.analyse {
48   - display: flex;
49   - align-items: center;
50   - margin-top: 50rpx;
51   - justify-content: center;
52   - /* justify-content: space-evenly; */
53   -}
54   -
55   -.analyse .mark {
56   - padding: 4rpx 12rpx;
57   - font-size: 28rpx;
58   - background: #fff;
59   - border-radius: 20rpx;
60   -}
61   -
62   -.analyse .analyse_left {
63   - position: relative;
64   - right: -70rpx;
65   - z-index: 2;
66   -}
67   -
68   -.analyse .analyse_center {
69   - position: relative;
70   - background: #c9f0f9;
71   - border-radius: 50%;
72   - width: 400rpx;
73   - height: 400rpx;
74   -}
75   -
76   -.analyse_center .lianxian {
77   - position: absolute;
78   - width: 2rpx;
79   - height: 100rpx;
80   - bottom: 0rpx;
81   - right: 30px;
82   - transform: rotate(-65deg);
83   - background-color: #999;
84   -}
85   -
86   -.analyse_center .lianxian1 {
87   - position: absolute;
88   - width: 2rpx;
89   - height: 120rpx;
90   - top: -30rpx;
91   - right: 20px;
92   - transform: rotate(-125deg);
93   - background-color: #999;
94   -}
95   -
96   -.analyse_center .lianxian2 {
97   - position: absolute;
98   - width: 2rpx;
99   - height: 120rpx;
100   - top: 30rpx;
101   - left: 0px;
102   - transform: rotate(-74deg);
103   - background-color: #999;
104   -}
105   -
106   -.analyse .analyse_right {
107   - position: relative;
108   - right: 70rpx;
109   - z-index: 2;
110   -}
111   -
112   -.mask {
113   - position: fixed;
114   - width: 100%;
115   - height: 100%;
116   - top: 0;
117   - bottom: 0;
118   - left: 0;
119   - right: 0;
120   - background-color: rgba(0, 0, 0, .6);
121   - z-index: 999;
122   -}
123   -
124   -.ll::after {
125   - content: "\e650";
126   -}
127   -
128   -.analyse .analyse_center image {
129   - height: 100%;
130   - width: 100%;
131   -}
132   -
133   -.score {
134   - display: flex;
135   - margin-top: 25rpx;
136   - justify-content: space-evenly;
137   -}
138   -
139   -.score .shuxian {
140   - margin-top: 15rpx;
141   - width: 2rpx;
142   - height: 60rpx;
143   - background: #482121;
144   -}
145   -
146   -.score .icon-zuojiantou:before {
147   - content: "\e625";
148   - transform: rotate(-90deg);
149   -}
150   -
151   -.icon-xia::before {
152   - margin-bottom: 14rpx;
153   - display: inline-block;
154   - transform: rotate(-90deg);
155   - font-size: 18rpx;
156   -}
157   -
158   -.icon-zuojiantou::before {
159   - color: #f1585d;
160   - display: inline-block;
161   - transform: rotate(90deg);
162   -}
163   -
164   -.bg_white {
165   - background-color: #fff;
166   -}
167   -
168   -.mt10 {
169   - margin-top: 10rpx;
170   -}
171   -
172   -.mb_b5 {
173   - margin-bottom: 5%;
174   -}
175   -
176   -.mt_b5 {
177   - margin-top: 5%;
178   -}
179   -
180   -.mt_b10 {
181   - margin-top: 10%;
182   -}
183   -
184   -.c_666 {
185   - color: #666;
186   -}
187   -
188   -.mt20 {
189   - margin-top: 20rpx;
190   -}
191   -
192   -.ml20 {
193   - margin-left: 20rpx;
194   -}
195   -
196   -.mr10 {
197   - margin-right: 10rpx;
198   -}
199   -
200   -.mr20 {
201   - margin-right: 20rpx;
202   -}
203   -
204   -.mgb30 {
205   - margin-bottom: 30rpx;
206   -}
207   -
208   -.content {
209   - width: 100%;
210   - padding: 5% 5% 5%;
211   - box-sizing: border-box;
212   -}
213   -
214   -.analyse_result {
215   - display: flex;
216   - padding: 50rpx 30rpx 50rpx 20rpx;
217   - border-radius: 30rpx;
218   - background-color: #fff;
219   -}
220   -
221   -.img {
222   - width: 200rpx;
223   - height: 200rpx;
224   - /* border-radius: 50%; */
225   -}
226   -
227   -.bold {
228   - font-weight: 600;
229   -}
230   -
231   -
232   -.analyse_result .gan::before {
233   - margin-right: 10rpx;
234   - content: "";
235   - display: inline-block;
236   - width: 15rpx;
237   - height: 15rpx;
238   - background-color: #c0e2b7;
239   -}
240   -
241   -.analyse_result .you::before {
242   - margin-right: 10rpx;
243   - content: "";
244   - display: inline-block;
245   - width: 15rpx;
246   - height: 15rpx;
247   - background-color: #ffd6bd;
248   -}
249   -
250   -.analyse_classify {
251   - border-radius: 30rpx;
252   - padding: 50rpx 30rpx 50rpx 30rpx;
253   -}
254   -
255   -.analyse_classify_header .analyse_classify_header_item {
256   - display: flex;
257   - border: 2px solid #f6f6f6;
258   - border-radius: 10px;
259   - align-items: center;
260   -}
261   -
262   -.analyse_classify_header .analyse_classify_header_img {
263   - display: flex;
264   - align-items: center;
265   - justify-content: center;
266   - width: 200rpx;
267   - height: 200rpx;
268   - background: #f6f6f6;
269   -}
270   -
271   -.analyse_classify_header .analyse_classify_header_img image {
272   - width: 150rpx;
273   - height: 150rpx;
274   -}
275   -
276   -.fenxi {
277   - position: relative;
278   - /* z-index: 99; */
279   -}
280   -
281   -.fenxi1 {
282   - position: relative;
283   - /* z-index: 99; */
284   -}
285   -
286   -.fenxi::after {
287   - position: absolute;
288   - content: "";
289   - bottom: 0;
290   - display: block;
291   - width: 130rpx;
292   - height: 20rpx;
293   - background-color: rgb(193 235 241 / 50%)
294   -}
295   -
296   -.fenxi1::after {
297   - position: absolute;
298   - content: "";
299   - bottom: 0;
300   - display: block;
301   - width: 58rpx;
302   - height: 20rpx;
303   - background-color: rgb(193 235 241 / 50%)
304   -}
305   -
306   -.analyse_classify_foot .shoushu {
307   - padding: 5%;
308   - display: flex;
309   - width: 70%;
310   - border-radius: 30rpx;
311   - background-color: #fff;
312   -}
313   -
314   -.analyse_classify_foot .info {
315   - margin-left: 20rpx;
316   - display: flex;
317   - flex-direction: column;
318   - justify-content: flex-start;
319   - font-size: 28rpx;
320   -}
321   -
322   -.analyse_classify_foot .product_item {
323   - display: flex;
324   - margin-right: 30rpx;
325   - flex-direction: column;
326   - border-radius: 30rpx;
327   - width: 40%;
328   - padding: 5%;
329   - background-color: #fff;
330   -}
331   -
332   -.guige {
333   - padding: 2%;
334   - background: #f6f6f6;
335   -}
336   -
337   -.product_item .mm {
338   - display: flex;
339   - align-items: center;
340   - justify-content: center;
341   - background: #45d4eb;
342   - padding: 2%;
343   - border-radius: 50%;
344   - width: 50rpx;
345   - height: 50rpx;
346   - color: #fff;
347   -}
348   -
349   -.jiankang {
350   - font-size: 28rpx;
351   - color: #d3d3d3;
352   -}
353   -
354   -.zhouwen {
355   - display: flex;
356   - flex-direction: column;
357   - justify-content: space-between;
358   - height: 100%;
359   -}
360   -
361   -.heiyanquan {
362   - width: 125px;
363   - height: 125px;
364   - margin: 5% auto;
365   - margin-top: 10%;
366   -}
367   -
368   -.leixing {
369   - display: flex;
370   - justify-content: space-around;
371   -}
372   -
373   -.leixing ._img {
374   - display: flex;
375   - /* width: 160rpx; */
376   - flex-direction: column;
377   - align-items: center;
378   -}
379   -
380   -.dialog {
381   - position: fixed;
382   - top: 50%;
383   - right: 50%;
384   - transform: translate(50%, -50%);
385   - height: 70%;
386   - width: 80%;
387   - border-radius: 30rpx;
388   - z-index: 99999999;
389   -}
390   -
391   -.dialog .dialog_img {
392   - height: 84%;
393   - position: relative;
394   -}
395   -
396   -.dialog .dialog_txt {
397   - display: flex;
398   - align-items: center;
399   - justify-content: center;
400   - background-color: #fff;
401   - min-height: 20%;
402   -}
403   -
404   -.dialog .dialog_icon {
405   - position: absolute;
406   - right: 30rpx;
407   - top: 0;
408   - display: flex;
409   - flex-direction: column;
410   - justify-content: flex-end;
411   - height: 100%;
412   -}
413   -
414   -.dialog .iconfont {
415   - display: flex;
416   - justify-content: center;
417   - align-items: center;
418   - color: #fff;
419   - background-color: #1f1919;
420   - border-radius: 50%;
421   - width: 50rpx;
422   - height: 50rpx;
423   -}
424   -
425   -.pp {
426   - width: 8rpx;
427   - height: 35rpx;
428   - margin-right: 5rpx;
429   - border-radius: 3rpx;
430   - background: #2cb344;
431   -}
432   -
433   -.img_content {
434   - height: 100%;
435   - overflow: hidden;
436   - border-top-left-radius: 8px;
437   - border-top-right-radius: 8px;
438   -}
439   -
440   -.abs {
441   - position: absolute
442   -}
443   -
444   -.p_circle {
445   - border: 1rpx solid #c8162c;
446   - border-radius: 50%
447   -}
448   -
449   -.dialog.fangda {
450   - height: auto
451   -}
452   -
453   -/* 优惠券 */
454   -.xc-frame {
455   - position: relative;
456   -}
457   -
458   -.xc-coupon-frame {
459   - width: 100%;
460   - max-height: 560rpx;
461   - overflow: auto;
462   -
463   -}
464   -
465   -.xc-coupon-frame .rel:not(:first-child) {
466   - margin-top: 20rpx;
467   -}
468   -
469   -.xc-coupon-frame .coupon {
470   - width: 100%;
471   - height: 168rpx;
472   - border-radius: 25rpx;
473   - border: 2rpx solid #ffdcdc;
474   - overflow: hidden;
475   - /* margin-top:16rpx; */
476   - box-sizing: border-box;
477   -}
478   -
479   -.xc-circular-one {
480   - position: absolute;
481   - top: -15rpx;
482   - left: 205rpx;
483   - width: 30rpx;
484   - height: 30rpx;
485   - background: #fff;
486   - overflow: hidden;
487   -}
488   -
489   -.xc-coupon-left {
490   - width: 216rpx;
491   - /* height: 100%; */
492   - background-color: #ffeeef;
493   - border-right: 4rpx dashed #ffdbd9;
494   - overflow: hidden;
495   - /* line-height: 100%; */
496   - display: flex;
497   - flex-direction: column;
498   - justify-content: center;
499   - align-items: center;
500   - flex-shrink: 0;
501   -}
502   -
503   -.xc-coupon-right {
504   - /* width: 455rpx;
505   - height: 100%; */
506   - background: #fffaf9;
507   - padding: 20rpx;
508   - box-sizing: border-box;
509   - width: 100%;
510   - justify-content: space-between;
511   - align-items: center;
512   -}
513   -
514   -.four-level-word {
515   - font-size: 23rpx;
516   -}
517   -
518   -.xc-below {
519   - margin-top: 20rpx;
520   -
521   -}
522   -
523   -.background {
524   - background: #f40028;
525   -}
526   -
527   -.xc-get {
528   -
529   - width: 140rpx;
530   - /* height: 48rpx; */
531   - color: #fff;
532   - text-align: center;
533   - border-radius: 27rpx;
534   - line-height: 54rpx;
535   - /* margin-left:20rpx; */
536   -}
537   -
538   -.xc-circular-two {
539   - position: absolute;
540   - bottom: -15rpx;
541   - /* top:150rpx; */
542   - left: 205rpx;
543   - width: 30rpx;
544   - height: 30rpx;
545   - background: #fff;
546   -}
547   -
548   -.abs{position: absolute}
549   -.p_circle{ border: 1rpx solid #c8162c;border-radius: 50%}
550   -.p_point{background-color:#c8162c;height:2px;width:2px}
551   -
552   -.xc-spacing {
553   - letter-spacing: 4rpx;
554   -}
555 0 \ No newline at end of file
packageB/pages/AI-test-skin/success_result/wrinkle/wrinkle.js deleted
1   -/*
2   - * @Author: abson
3   - * @Date: 2022-02-21 11:03:07
4   - * @LastEditTime: 2022-02-21 17:50:01
5   - * @LastEditors: Please set LastEditors
6   - * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\wrinkle\wrinkle.js
7   - */
8   -module.exports = {
9   -
10   - //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件
11   - get_goods: function(th,stoid) {
12   - var r_code='02';
13   - //获取痘痘的类型
14   - var list=th.data.face_data.wrinkle.wrinkle_types;
15   - //把所有的斑的类型拿出来
16   - var arr=[];
17   - for(var i in list){
18   - arr.push(list[i]);
19   - }
20   - //去掉重复
21   - var set= arr.filter(function (element, index, self) {
22   - return self.indexOf(element) === index;
23   - })
24   - var re_word=set.join(',');
25   - //-- 服务卡 --
26   - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
27   - getApp().request.promiseGet(url, {}).then(res=>{
28   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
29   - th.setData({wrinkle_fuwu:res.data.data.pageData})
30   - }
31   - })
32   -
33   - //-- 商品 --
34   - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
35   - getApp().request.promiseGet(url, {}).then(res=>{
36   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
37   - th.setData({wrinkle_goods:res.data.data.pageData})
38   - }
39   - })
40   -
41   - // 优惠券
42   - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2";
43   - getApp().request.promiseGet(url, {}).then(res=>{
44   - if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){
45   - th.setData({wrinkle_quan_list:res.data.data.pageData});
46   - }
47   - })
48   - },
49   -
50   -
51   -
52   -
53   -}
packageB/pages/AI-test-skin/success_result/wrinkle/wrinkle.wxml deleted
1   -<view class="mb_b5" id="zhou_wen">
2   - <view class="analyse_classify bg_white">
3   - <view class="analyse_classify_header">
4   - <view>
5   - <view style="color: #45d4eb;">#03</view>
6   - <view class="flex-space-between">
7   - <text style="font-size: 42rpx;" class="bold">皱纹</text>
8   - <view class="fs26" catchtap="show_dailog" data-type="3" style="display: flex;align-items: center;">
9   - <text>问题标注</text>
10   - <text class="iconfont icon-xia"></text>
11   - </view>
12   - </view>
13   - </view>
14   - <view class="analyse_classify_header_item mt_b5">
15   - <view class="analyse_classify_header_img">
16   - <image src="{{iurl}}/miniapp/images/skinimg/zhouwen.png"></image>
17   - </view>
18   - <view style="line-height:60rpx;margin-left:20rpx">
19   - <view class="fs28">程度情况</view>
20   - <view class="bold">较粗大</view>
21   - </view>
22   - </view>
23   - <view class="analyse" style="height:400rpx;">
24   - <view class="zhouwen f1" style="justify-content:space-around">
25   - <view class="">
26   - <view class="fenxi1">眼周</view>
27   - <view class="fs26">鱼尾纹</view>
28   - <view class="fs26">眼部皱纹</view>
29   - <view class="jiankang">泪沟(健康)</view>
30   - </view>
31   - </view>
32   - <view class="analyse_center" style="width: 250rpx;height: 250rpx;">
33   - <image wx:if="{{sex === 'male'}}" src="{{iurl}}/miniapp/images/skinimg/nan2.jpeg"></image>
34   - <image wx:else src="{{iurl}}/miniapp/images/skinimg/nv2.jpeg"></image>
35   - <view class="lianxian"></view>
36   - <view class="lianxian1"></view>
37   - <view class="lianxian2"></view>
38   - </view>
39   - <view class="zhouwen f1" style="margin-left:20rpx;">
40   - <view class="">
41   - <view class="fenxi1">额头</view>
42   - <view class="jiankang">抬头皱纹(健康)</view>
43   - <view class="jiankang">眉间纹(健康)</view>
44   - </view>
45   - <view class="">
46   - <view class="fenxi1">嘴周</view>
47   - <view class="fs28">法令纹</view>
48   - <view class="fs28">口角纹</view>
49   - </view>
50   - </view>
51   - </view>
52   - <view class="fs28 mt_b10">
53   - <text>明显可见毛孔或内含小于毛孔大小角栓</text>
54   - </view>
55   - </view>
56   - <view class="analyse_classify_body">
57   - <view class="mt_b10">
58   - <view class="fenxi mgb10">原因分析</view>
59   - <view class="flex" style="flex-wrap: wrap">
60   - <view style="margin-right: 20rpx">
61   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
62   - <text class="fs26">皮脂腺分泌旺盛</text>
63   - </view>
64   - <view style="margin-right: 20rpx">
65   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
66   - <text class="fs26">皮脂腺分泌旺盛</text>
67   - </view>
68   - <view style="margin-right: 20rpx">
69   - <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text>
70   - <text class="fs26">皮脂腺分泌旺盛</text>
71   - </view>
72   - </view>
73   - </view>
74   -
75   - <view class="mt_b10">
76   - <view class="fenxi mgb10">护理建议</view>
77   - <view class="">
78   - <view class="mgb30">
79   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 随时注意保湿</text>
80   - <view class="fs26 c_666">每天摄取2000mI的水份,并且随时携带保湿产品、适时补充,避免肌肤出现干燥的细纹。</view>
81   - </view>
82   - <view class="mgb30">
83   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补充胶原蛋白</text>
84   - <view class="fs26 c_666">胶原蛋白的流失是皱纹出现的主要原因,多食用猪蹄、银耳、鱼皮等富含胶原蛋白的食物。</view>
85   - </view>
86   - <view class="mgb30">
87   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 做好防晒</text>
88   - <view class="fs26 c_666">使用防晒乳液、防晒霜等防晒系数较高的产品,并及时进行补涂,避免紫外线对皮肤造成伤害。</view>
89   - </view>
90   - <view class="mgb30">
91   - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 充足睡眠</text>
92   - <view class="fs26 c_666">足够的睡眠可以对皮肤进行修复,长期睡眠不足会使皮肤过早的老化。</view>
93   - </view>
94   - </view>
95   - </view>
96   - </view>
97   - </view>
98   -
99   - <view class="analyse_classify_foot" style="background:#e6f4fa">
100   - <!-- 服务卡 -->
101   - <view wx:if="{{wrinkle_fuwu}}">
102   - <view style="margin:5% 0">皱纹问题的疗程</view>
103   - <block wx:for="{{wrinkle_fuwu}}">
104   - <include src="../fuwu.wxml" />
105   - </block>
106   - </view>
107   - <!-- 商品 -->
108   - <view wx:if="{{wrinkle_goods}}">
109   - <view style="margin:5% 0">适合皱纹问题的护肤品</view>
110   - <view class="product flex">
111   - <block wx:for="{{wrinkle_goods}}">
112   - <include src="../goods.wxml" />
113   - </block>
114   - </view>
115   - </view>
116   - <!-- 优惠券 -->
117   - <view wx:if="{{wrinkle_quan_list}}">
118   - <view style="margin:5% 0">适合皱纹商品的优惠券</view>
119   - <view class="xc-coupon-frame rel">
120   - <block wx:for="{{wrinkle_quan_list}}">
121   - <include src="../coupon.wxml" />
122   - </block>
123   - </view>
124   - </view>
125   - </view>
126   -</view>
127 0 \ No newline at end of file