Commit c3688059c0cbce614f25e6e2d1320c007fbcec9d
Merge branch 'test' into 'qa'
Test See merge request !963
Showing
23 changed files
with
653 additions
and
87 deletions
app.js
... | ... | @@ -281,7 +281,7 @@ App({ |
281 | 281 | var th = this, st = this.globalData.setting; |
282 | 282 | //获取物流不缓存 |
283 | 283 | a.get("/api/weshop/storeshipping/list", { |
284 | - data: { store_id: st.stoid, status: 1, pageSize:600 }, | |
284 | + data: { store_id: st.stoid, status: 1, pageSize:2000 }, | |
285 | 285 | success: function (o) { |
286 | 286 | console.log('getwuliu'); |
287 | 287 | console.log(o); |
... | ... | @@ -302,7 +302,7 @@ App({ |
302 | 302 | var e = this,th=e, st = this.globalData.setting; |
303 | 303 | //获取物流不缓存 |
304 | 304 | a.get("/api/weshop/shippingarea/list",{ |
305 | - data: { store_id: st.stoid,pageSize: 600 }, | |
305 | + data: { store_id: st.stoid,pageSize: 2000 }, | |
306 | 306 | success: function (o) { |
307 | 307 | console.log('getwuliuprice'); |
308 | 308 | console.log(o); | ... | ... |
app.wxss
... | ... | @@ -213,6 +213,10 @@ |
213 | 213 | .mgb10 { |
214 | 214 | margin-bottom: 10rpx; |
215 | 215 | } |
216 | +.mgb20 { | |
217 | + margin-bottom: 10rpx; | |
218 | +} | |
219 | + | |
216 | 220 | |
217 | 221 | .mgl20 { |
218 | 222 | margin-left: 20rpx; |
... | ... | @@ -433,8 +437,7 @@ justify-content:center; |
433 | 437 | /* 垂直居中 */ |
434 | 438 | .flex-vertical{ |
435 | 439 | display:flex; |
436 | -align-items:center; | |
437 | - | |
440 | + align-items:center; | |
438 | 441 | } |
439 | 442 | /* 水平左垂直对齐 */ |
440 | 443 | .flex-left-center{ |
... | ... | @@ -510,9 +513,6 @@ align-items: baseline; |
510 | 513 | .ai-center{ |
511 | 514 | align-items: center; |
512 | 515 | } |
513 | -.jc-center{ | |
514 | - justify-content: center; | |
515 | -} | |
516 | 516 | |
517 | 517 | /* 垂直居中 中间等距两边贴边 7.13*/ |
518 | 518 | .flex-vertical-between{ |
... | ... | @@ -1103,10 +1103,12 @@ background: #ffe3e2; |
1103 | 1103 | } |
1104 | 1104 | |
1105 | 1105 | .icon-arrow_right:before { |
1106 | + /* > */ | |
1106 | 1107 | content: "\e61f"; |
1107 | 1108 | } |
1108 | 1109 | |
1109 | 1110 | .icon-arrow_down:before { |
1111 | + | |
1110 | 1112 | content: "\e600"; |
1111 | 1113 | } |
1112 | 1114 | ... | ... |
packageB/pages/AI-test-skin/success_result/acne/acne.js
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 | + */ | |
1 | 9 | module.exports = { |
2 | 10 | //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件 |
3 | 11 | get_goods: function(th,stoid) { |
... | ... | @@ -15,7 +23,7 @@ module.exports = { |
15 | 23 | }) |
16 | 24 | var re_word=set.join(','); |
17 | 25 | //-- 服务卡 -- |
18 | - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
26 | + var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
19 | 27 | getApp().request.promiseGet(url, {}).then(res=>{ |
20 | 28 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
21 | 29 | th.setData({acne_fuwu:res.data.data.pageData}) |
... | ... | @@ -23,12 +31,20 @@ module.exports = { |
23 | 31 | }) |
24 | 32 | |
25 | 33 | //-- 商品 -- |
26 | - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
34 | + var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
27 | 35 | getApp().request.promiseGet(url, {}).then(res=>{ |
28 | 36 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
29 | 37 | th.setData({acne_goods:res.data.data.pageData}) |
30 | 38 | } |
31 | 39 | }) |
32 | 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 | + | |
33 | 49 | }, |
34 | 50 | } | ... | ... |
packageB/pages/AI-test-skin/success_result/acne/acne.wxml
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <view style="color: #45d4eb;">#06</view> |
6 | 6 | <view class="flex-space-between"> |
7 | 7 | <text style="font-size: 42rpx;" class="bold">痤疮</text> |
8 | - <view class="fs26" style="display: flex;align-items: center;"> | |
8 | + <view class="fs26" catchtap="show_dailog" data-type="6" style="display: flex;align-items: center;"> | |
9 | 9 | <text>问题标注</text> |
10 | 10 | <text class="iconfont icon-xia"></text> |
11 | 11 | |
... | ... | @@ -77,8 +77,8 @@ |
77 | 77 | <text class="fs26">皮脂腺分泌旺盛</text> |
78 | 78 | </view> |
79 | 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> | |
80 | + <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text> | |
81 | + <text class="fs26">皮脂腺分泌旺盛</text> | |
82 | 82 | </view> |
83 | 83 | </view> |
84 | 84 | </view> |
... | ... | @@ -87,16 +87,18 @@ |
87 | 87 | <view class="fenxi mgb10">护理建议</view> |
88 | 88 | <view class=""> |
89 | 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">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
90 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 早晚清洁</text> | |
91 | + <view class="fs26 c_666">早晚清洁。先用热水打开毛孔,使用氨基酸洁面乳在 T 区、脸颊等区域,以画圆的方式进行揉搓,再用大 | |
92 | + 量清水冲洗干净。</view> | |
92 | 93 | </view> |
93 | 94 | <view class="mgb30"> |
94 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补水保湿</text> | |
95 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
95 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 注意饮食</text> | |
96 | + <view class="fs26 c_666">少吃甜腻、油炸、刺激的东西,以及少饮一些奶制品,这些食物都能让皮脂腺分泌增多。多吃一点含维生素 B 族的食物。</view> | |
96 | 97 | </view> |
97 | 98 | <view class="mgb30"> |
98 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 早晚清洁</text> | |
99 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
99 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 日常防晒</text> | |
100 | + <view class="fs26 c_666">日常防晒。使用清爽型防晒产品,并使用太阳伞、帽子等做好物理防晒,避免阳光中的紫外线刺激皮脂腺 | |
101 | + 分泌更多油脂。</view> | |
100 | 102 | </view> |
101 | 103 | </view> |
102 | 104 | </view> |
... | ... | @@ -107,7 +109,7 @@ |
107 | 109 | <!-- 服务卡 --> |
108 | 110 | <view wx:if="{{acne_fuwu}}"> |
109 | 111 | <view style="margin:5% 0">痤疮问题的疗程</view> |
110 | - <block wx:for="{{acne_fuwu}}"> | |
112 | + <block wx:for="{{acne_fuwu}}"> | |
111 | 113 | <include src="../fuwu.wxml" /> |
112 | 114 | </block> |
113 | 115 | </view> |
... | ... | @@ -120,5 +122,14 @@ |
120 | 122 | </block> |
121 | 123 | </view> |
122 | 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> | |
123 | 134 | </view> |
124 | 135 | </view> |
125 | 136 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/blackhead/blackhead.js
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 | + */ | |
1 | 9 | module.exports = { |
2 | 10 | //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件 |
3 | 11 | get_goods: function(th,stoid) { |
... | ... | @@ -10,7 +18,7 @@ module.exports = { |
10 | 18 | }) |
11 | 19 | var re_word=set.join(','); |
12 | 20 | //-- 服务卡 -- |
13 | - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
21 | + var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
14 | 22 | getApp().request.promiseGet(url, {}).then(res=>{ |
15 | 23 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
16 | 24 | th.setData({blackhead_fuwu:res.data.data.pageData}) |
... | ... | @@ -18,12 +26,20 @@ module.exports = { |
18 | 26 | }) |
19 | 27 | |
20 | 28 | //-- 商品 -- |
21 | - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
29 | + var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
22 | 30 | getApp().request.promiseGet(url, {}).then(res=>{ |
23 | 31 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
24 | 32 | th.setData({blackhead_goods:res.data.data.pageData}) |
25 | 33 | } |
26 | 34 | }) |
27 | 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 | + | |
28 | 44 | }, |
29 | 45 | } | ... | ... |
packageB/pages/AI-test-skin/success_result/blackhead/blackhead.wxml
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <view style="color: #45d4eb;">#01</view> |
6 | 6 | <view class="flex-space-between"> |
7 | 7 | <text style="font-size: 42rpx;" class="bold">黑头</text> |
8 | - <view class="fs26" catchtap="show_dailog" style="display: flex;align-items: center;"> | |
8 | + <view class="fs26" catchtap="show_dailog" data-type="4" style="display: flex;align-items: center;"> | |
9 | 9 | <text>问题标注</text> |
10 | 10 | <text class="iconfont icon-xia"></text> |
11 | 11 | </view> |
... | ... | @@ -56,16 +56,20 @@ |
56 | 56 | <view class="fenxi mgb10">护理建议</view> |
57 | 57 | <view class=""> |
58 | 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> | |
59 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 饮食清淡</text> | |
60 | + <view class="fs26 c_666">多吃清淡食物,多喝水,忌辛辣、油腻等饮食,避免油脂过度分泌。</view> | |
61 | 61 | </view> |
62 | 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> | |
63 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 注意面部卫生</text> | |
64 | + <view class="fs26 c_666">注意面部和手部的卫生,常用温水洗脸,避免用碱性大的肥皂,以免进一步填塞毛囊,使黑头加重。</view> | |
65 | 65 | </view> |
66 | 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> | |
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> | |
69 | 73 | </view> |
70 | 74 | </view> |
71 | 75 | </view> |
... | ... | @@ -75,7 +79,7 @@ |
75 | 79 | <!-- 服务卡 --> |
76 | 80 | <view wx:if="{{blackhead_fuwu}}"> |
77 | 81 | <view style="margin:5% 0">黑头问题的疗程</view> |
78 | - <block wx:for="{{blackhead_fuwu}}"> | |
82 | + <block wx:for="{{blackhead_fuwu}}"> | |
79 | 83 | <include src="../fuwu.wxml" /> |
80 | 84 | </block> |
81 | 85 | </view> |
... | ... | @@ -88,5 +92,14 @@ |
88 | 92 | </block> |
89 | 93 | </view> |
90 | 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> | |
91 | 104 | </view> |
92 | 105 | </view> |
93 | 106 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/coupon.wxml
0 → 100644
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> | |
0 | 26 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/dark/dark.js
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 | + */ | |
1 | 9 | module.exports = { |
2 | 10 | //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件 |
3 | 11 | get_goods: function(th,stoid) { |
... | ... | @@ -14,7 +22,7 @@ module.exports = { |
14 | 22 | //获取黑眼圈的类型 |
15 | 23 | var re_word= arr.join(',') |
16 | 24 | //-- 服务卡 -- |
17 | - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
25 | + var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
18 | 26 | getApp().request.promiseGet(url, {}).then(res=>{ |
19 | 27 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
20 | 28 | th.setData({dark_fuwu:res.data.data.pageData}) |
... | ... | @@ -22,11 +30,18 @@ module.exports = { |
22 | 30 | }) |
23 | 31 | |
24 | 32 | //-- 商品 -- |
25 | - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
33 | + var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
26 | 34 | getApp().request.promiseGet(url, {}).then(res=>{ |
27 | 35 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
28 | 36 | th.setData({dark_goods:res.data.data.pageData}) |
29 | 37 | } |
30 | 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 | + }) | |
31 | 46 | }, |
32 | 47 | } | ... | ... |
packageB/pages/AI-test-skin/success_result/dark/dark.wxml
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | <view style="color: #45d4eb;">#05</view> |
6 | 6 | <view class="flex-space-between"> |
7 | 7 | <text style="font-size: 42rpx;" class="bold">黑眼圈</text> |
8 | - <view class="fs26" style="display: flex;align-items: center;"> | |
8 | + <view class="fs26" catchtap="show_dailog" data-type="5" style="display: flex;align-items: center;"> | |
9 | 9 | <text>问题标注</text> |
10 | 10 | <text class="iconfont icon-xia"></text> |
11 | 11 | </view> |
... | ... | @@ -77,16 +77,16 @@ |
77 | 77 | <view class="fenxi mgb10">护理建议</view> |
78 | 78 | <view class=""> |
79 | 79 | <view class="mgb30"> |
80 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 日常防晒</text> | |
81 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
80 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 改善饮食习惯</text> | |
81 | + <view class="fs26 c_666">改变辛辣、油腻等饮食习惯,保持饮食清淡,多摄取维生素 C ,如西红柿、柠檬等,可以淡化黑色素。</view> | |
82 | 82 | </view> |
83 | 83 | <view class="mgb30"> |
84 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补水保湿</text> | |
85 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
84 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 使用眼霜</text> | |
85 | + <view class="fs26 c_666">注重眼周的保养,洁面后使用抗衰老的眼霜产品,并按摩直至吸收,消除眼部水肿。</view> | |
86 | 86 | </view> |
87 | 87 | <view class="mgb30"> |
88 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 早晚清洁</text> | |
89 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
88 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 注意防晒</text> | |
89 | + <view class="fs26 c_666">使用防晒系数较高的产品,并及时进行补涂,减少紫外线在眼下的黑色素沉淀。</view> | |
90 | 90 | </view> |
91 | 91 | </view> |
92 | 92 | </view> |
... | ... | @@ -95,7 +95,7 @@ |
95 | 95 | <view class="analyse_classify_foot" style="background:#e6f4fa"> |
96 | 96 | <view wx:if="{{dark_fuwu}}"> |
97 | 97 | <view style="margin:5% 0">黑眼圈问题的疗程</view> |
98 | - <block wx:for="{{dark_fuwu}}"> | |
98 | + <block wx:for="{{dark_fuwu}}"> | |
99 | 99 | <include src="../fuwu.wxml" /> |
100 | 100 | </block> |
101 | 101 | </view> |
... | ... | @@ -107,5 +107,14 @@ |
107 | 107 | </block> |
108 | 108 | </view> |
109 | 109 | </view> |
110 | + <!-- 优惠券 --> | |
111 | + <view wx:if="{{dark_quan_list}}"> | |
112 | + <view style="margin:5% 0">适合黑眼圈商品的优惠券</view> | |
113 | + <view class="xc-coupon-frame rel"> | |
114 | + <block wx:for="{{dark_quan_list}}"> | |
115 | + <include src="../coupon.wxml" /> | |
116 | + </block> | |
117 | + </view> | |
118 | + </view> | |
110 | 119 | </view> |
111 | 120 | </view> |
112 | 121 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/pore/pore.js
... | ... | @@ -10,22 +10,27 @@ module.exports = { |
10 | 10 | }) |
11 | 11 | var re_word=set.join(','); |
12 | 12 | //-- 服务卡 -- |
13 | - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
13 | + var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
14 | 14 | getApp().request.promiseGet(url, {}).then(res=>{ |
15 | 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}) | |
16 | + th.setData({pore_fuwu:res.data.data.pageData}); | |
17 | 17 | } |
18 | 18 | }) |
19 | 19 | |
20 | 20 | //-- 商品 -- |
21 | - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
21 | + var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
22 | 22 | getApp().request.promiseGet(url, {}).then(res=>{ |
23 | 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}) | |
24 | + th.setData({pore_goods:res.data.data.pageData}); | |
25 | 25 | } |
26 | 26 | }) |
27 | 27 | |
28 | 28 | // 优惠券 |
29 | - | |
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 | + }) | |
30 | 35 | }, |
31 | 36 | } | ... | ... |
packageB/pages/AI-test-skin/success_result/pore/pore.wxml
... | ... | @@ -46,8 +46,8 @@ |
46 | 46 | <text class="fs26">日光暴晒过度</text> |
47 | 47 | </view> |
48 | 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> | |
49 | + <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text> | |
50 | + <text class="fs26">护肤不当清洁不足</text> | |
51 | 51 | </view> |
52 | 52 | </view> |
53 | 53 | </view> |
... | ... | @@ -57,15 +57,18 @@ |
57 | 57 | <view class=""> |
58 | 58 | <view class="mgb30"> |
59 | 59 | <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 日常防晒</text> |
60 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
60 | + <view class="fs26 c_666">使用清爽型防晒产品,并使用太阳伞、帽子等做好物理防晒,避免阳光中的紫外线刺激皮脂腺分泌更多油 | |
61 | + 脂。</view> | |
61 | 62 | </view> |
62 | 63 | <view class="mgb30"> |
63 | 64 | <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补水保湿</text> |
64 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
65 | + <view class="fs26 c_666">日常清洁后,使用补水面膜或带收敛效果的爽肤水,在毛孔粗大处多次叠加,后续使用清爽型乳液、面霜等做好保湿工作。</view> | |
65 | 66 | </view> |
66 | 67 | <view class="mgb30"> |
67 | 68 | <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 早晚清洁</text> |
68 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
69 | + <view class="fs26 c_666">先用热水打开毛孔,使用氨基酸洁面乳在 T 区、脸颊等毛孔较大区域,以画圆的方式进行揉搓,再用大量 | |
70 | + 清水冲洗干净。 | |
71 | + </view> | |
69 | 72 | </view> |
70 | 73 | </view> |
71 | 74 | </view> |
... | ... | @@ -73,10 +76,11 @@ |
73 | 76 | </view> |
74 | 77 | |
75 | 78 | <view class="analyse_classify_foot" style="background:#e6f4fa"> |
79 | + | |
76 | 80 | <!-- 服务卡 --> |
77 | 81 | <view wx:if="{{pore_fuwu}}"> |
78 | 82 | <view style="margin:5% 0">毛孔问题的疗程</view> |
79 | - <block wx:for="{{pore_fuwu}}"> | |
83 | + <block wx:for="{{pore_fuwu}}"> | |
80 | 84 | <include src="../fuwu.wxml" /> |
81 | 85 | </block> |
82 | 86 | </view> |
... | ... | @@ -89,5 +93,14 @@ |
89 | 93 | </block> |
90 | 94 | </view> |
91 | 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> | |
92 | 105 | </view> |
93 | 106 | </view> |
94 | 107 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/s_filter.wxs
... | ... | @@ -110,11 +110,24 @@ var get_card_price=function(goods,all_card,type){ |
110 | 110 | return min_name; |
111 | 111 | } |
112 | 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 | + | |
113 | 125 | module.exports = { |
114 | 126 | get_dark_type: get_dark_type, |
115 | 127 | get_goods_url: get_goods_url, |
116 | 128 | guige:guige, |
117 | 129 | dryoil_check:dryoil_check, |
118 | 130 | is_has_rank:is_has_rank, |
119 | - get_card_price:get_card_price | |
131 | + get_card_price:get_card_price, | |
132 | + get_nai_shou:get_nai_shou | |
120 | 133 | } | ... | ... |
packageB/pages/AI-test-skin/success_result/sensitive/sensitive.js
0 → 100644
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
0 → 100644
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="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/mao123.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="/packageB/images/Snipaste_2022-02-17_15-28-13.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> | |
0 | 103 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/speckle/speckle.js
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 | + */ | |
1 | 9 | module.exports = { |
2 | 10 | //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件 |
3 | 11 | get_goods: function(th,stoid) { |
... | ... | @@ -15,7 +23,7 @@ module.exports = { |
15 | 23 | }) |
16 | 24 | var re_word=set.join(','); |
17 | 25 | //-- 服务卡 -- |
18 | - var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
26 | + var url="/api/weshop/serviceCard/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
19 | 27 | getApp().request.promiseGet(url, {}).then(res=>{ |
20 | 28 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
21 | 29 | th.setData({speckle_fuwu:res.data.data.pageData}) |
... | ... | @@ -23,12 +31,20 @@ module.exports = { |
23 | 31 | }) |
24 | 32 | |
25 | 33 | //-- 商品 -- |
26 | - var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | |
34 | + var url="/api/weshop/goods/page?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=2"; | |
27 | 35 | getApp().request.promiseGet(url, {}).then(res=>{ |
28 | 36 | if(res.data.code==0 && res.data.data && res.data.data.pageData && res.data.data.pageData.length>0){ |
29 | 37 | th.setData({speckle_goods:res.data.data.pageData}) |
30 | 38 | } |
31 | 39 | }) |
32 | 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 | + | |
33 | 49 | }, |
34 | 50 | } | ... | ... |
packageB/pages/AI-test-skin/success_result/speckle/speckle.wxml
... | ... | @@ -2,10 +2,10 @@ |
2 | 2 | <view class="analyse_classify bg_white"> |
3 | 3 | <view class="analyse_classify_header"> |
4 | 4 | <view> |
5 | - <view style="color: #45d4eb;">#01</view> | |
5 | + <view style="color: #45d4eb;">#02</view> | |
6 | 6 | <view class="flex-space-between"> |
7 | 7 | <text style="font-size: 42rpx;" class="bold">色斑</text> |
8 | - <view class="fs26" catchtap="show_dailog" style="display: flex;align-items: center;"> | |
8 | + <view class="fs26" catchtap="show_dailog" data-type="2" style="display: flex;align-items: center;"> | |
9 | 9 | <text>问题标注</text> |
10 | 10 | <text class="iconfont icon-xia"></text> |
11 | 11 | </view> |
... | ... | @@ -46,8 +46,8 @@ |
46 | 46 | <text class="fs26">内分泌失衡</text> |
47 | 47 | </view> |
48 | 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> | |
49 | + <text class="iconfont icon-checked" style="font-size: 26rpx;margin-right: 10rpx;"></text> | |
50 | + <text class="fs26">紫外线照射过量</text> | |
51 | 51 | </view> |
52 | 52 | </view> |
53 | 53 | </view> |
... | ... | @@ -56,16 +56,17 @@ |
56 | 56 | <view class="fenxi mgb10">护理建议</view> |
57 | 57 | <view class=""> |
58 | 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> | |
59 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 保持充足睡眠</text> | |
60 | + <view class="fs26 c_666">充足的睡眠可以调节身体内分泌,皮肤新陈代谢加快,有利于黑色素的脱落。</view> | |
61 | 61 | </view> |
62 | 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> | |
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> | |
65 | 66 | </view> |
66 | 67 | <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> | |
68 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 做好防晒</text> | |
69 | + <view class="fs26 c_666">选择防晒系数较高的产品,并及时进行补涂,同时使用太阳伞、帽子等进行物理防晒,减少紫外线对皮肤产生黑色素沉淀。</view> | |
69 | 70 | </view> |
70 | 71 | </view> |
71 | 72 | </view> |
... | ... | @@ -75,7 +76,7 @@ |
75 | 76 | <!-- 服务卡 --> |
76 | 77 | <view wx:if="{{speckle_fuwu}}"> |
77 | 78 | <view style="margin:5% 0">色斑问题的疗程</view> |
78 | - <block wx:for="{{speckle_fuwu}}"> | |
79 | + <block wx:for="{{speckle_fuwu}}"> | |
79 | 80 | <include src="../fuwu.wxml" /> |
80 | 81 | </block> |
81 | 82 | </view> |
... | ... | @@ -88,5 +89,14 @@ |
88 | 89 | </block> |
89 | 90 | </view> |
90 | 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> | |
91 | 101 | </view> |
92 | 102 | </view> |
93 | 103 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/success_result.js
... | ... | @@ -71,7 +71,7 @@ Page({ |
71 | 71 | if(dark_type1>dark_type){ |
72 | 72 | dark_type=dark_type1; |
73 | 73 | } |
74 | - var skin_sensitive_check=face_data.skinquality.skin_sensitive_check[0]; | |
74 | + var skin_sensitive_check= parseInt(face_data.skinquality.skin_sensitive_check[0]); | |
75 | 75 | var skin_dryoil_check=face_data.skinquality.skin_dryoil_check; |
76 | 76 | |
77 | 77 | var location=face_data.location; |
... | ... | @@ -219,21 +219,40 @@ Page({ |
219 | 219 | |
220 | 220 | }, |
221 | 221 | show_dailog(e) { |
222 | + var type=parseInt(e.currentTarget.dataset.type); | |
222 | 223 | this.setData({ |
223 | - showDialog: true, | |
224 | + showDialog: true,show_type:type | |
224 | 225 | }) |
225 | - | |
226 | - var type=parseInt(e.currentTarget.dataset.type); | |
227 | - switch (type){ | |
226 | + switch (type){ | |
228 | 227 | case 1: //毛孔 |
229 | 228 | var pore_list=this.data.face_data.blackheadpore.circles[0].pore; |
230 | - this.setData({pore_list:pore_list,show_type:type}); | |
229 | + this.setData({pore_list:pore_list}); | |
231 | 230 | break; |
232 | - case 2: | |
231 | + case 2://色斑 | |
232 | + var speckle_list=this.data.face_data.acnespotmole.speckle_list; | |
233 | + this.setData({speckle_list:speckle_list}); | |
234 | + break; | |
235 | + case 3://皱纹 | |
236 | + var wrinkle_list=this.data.face_data.wrinkle.wrinkle_data; | |
237 | + this.setData({wrinkle_list:wrinkle_list}); | |
233 | 238 | break; |
239 | + case 4://黑头 | |
240 | + var blackhead_list=this.data.face_data.blackheadpore.circles[0].blackhead; | |
241 | + this.setData({blackhead_list:blackhead_list}); | |
242 | + break; | |
243 | + case 5://黑眼圈 | |
244 | + var arr=this.data.face_data.eyesattr.dark_circle_left[0]; | |
245 | + var arr2=this.data.face_data.eyesattr.dark_circle_right[0]; | |
246 | + var arr3=[...arr,...arr2]; | |
247 | + this.setData({dark_list:arr3}); | |
248 | + break; | |
249 | + case 6://痤疮 | |
250 | + var acne_list=this.data.face_data.acnespotmole.acne_list; | |
251 | + this.setData({acne_list:acne_list}); | |
252 | + break; | |
234 | 253 | default: |
235 | 254 | break |
236 | - } | |
255 | + } | |
237 | 256 | }, |
238 | 257 | |
239 | 258 | close_dialog() { | ... | ... |
packageB/pages/AI-test-skin/success_result/success_result.wxml
... | ... | @@ -91,7 +91,7 @@ |
91 | 91 | <include src="acne/acne.wxml" /> |
92 | 92 | </block> |
93 | 93 | <!-- 敏感度 --> |
94 | - <include src="acne/acne.wxml" /> | |
94 | + <include src="sensitive/sensitive.wxml" /> | |
95 | 95 | </view> |
96 | 96 | </scroll-view> |
97 | 97 | |
... | ... | @@ -118,6 +118,46 @@ |
118 | 118 | <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> |
119 | 119 | </block> |
120 | 120 | </block> |
121 | + <!-- 显示色斑 --> | |
122 | + <block wx:if="{{show_type==2}}"> | |
123 | + <block wx:for="{{speckle_list}}" > | |
124 | + <block wx:for="{{item.position}}" wx:for-item="bitem"> | |
125 | + <view class="abs p_point" style="left:{{(bitem.x)*bili}}px; top:{{(bitem.y)*bili}}px;"></view> | |
126 | + </block> | |
127 | + </block> | |
128 | + </block> | |
129 | + <!-- 显示皱纹 --> | |
130 | + <block wx:if="{{show_type==3}}"> | |
131 | + <block wx:for="{{wrinkle_list}}" > | |
132 | + <block wx:for="{{item}}" wx:for-item="bitem"> | |
133 | + <view class="abs p_point" style="left:{{(bitem.x)*bili}}px; top:{{(bitem.y)*bili}}px;"></view> | |
134 | + </block> | |
135 | + </block> | |
136 | + </block> | |
137 | + <!-- 显示黑头 --> | |
138 | + <block wx:if="{{show_type==4}}"> | |
139 | + <block wx:for="{{blackhead_list}}" > | |
140 | + <block wx:for="{{item}}" wx:for-item="bitem"> | |
141 | + <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> | |
142 | + </block> | |
143 | + </block> | |
144 | + </block> | |
145 | + | |
146 | + <!-- 显示黑眼圈 --> | |
147 | + <block wx:if="{{show_type==5}}"> | |
148 | + <block wx:for="{{dark_list}}"> | |
149 | + <view class="abs p_point" style="left:{{item.x*bili}}px; top:{{item.y*bili}}px; "></view> | |
150 | + </block> | |
151 | + </block> | |
152 | + | |
153 | + | |
154 | + <!-- 显示痤疮 --> | |
155 | + <block wx:if="{{show_type==6}}"> | |
156 | + <block wx:for="{{acne_list}}"> | |
157 | + <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> | |
158 | + </block> | |
159 | + </block> | |
160 | + | |
121 | 161 | </block> |
122 | 162 | </view> |
123 | 163 | </view> |
... | ... | @@ -131,7 +171,15 @@ |
131 | 171 | </view> |
132 | 172 | </view> |
133 | 173 | <view class="dialog_txt"> |
134 | - <view class="fs28" style="margin-right:15rpx;">毛孔较粗大</view> | |
174 | + <view class="fs28" style="margin-right:15rpx;"> | |
175 | + <text wx:if="{{show_type==1}}">毛孔较粗大</text> | |
176 | + <text wx:if="{{show_type==2}}">色斑轻度</text> | |
177 | + <text wx:if="{{show_type==3}}">皱纹轻度</text> | |
178 | + <text wx:if="{{show_type==4}}">黑头轻度</text> | |
179 | + <text wx:if="{{show_type==5}}">黑眼圈轻度</text> | |
180 | + <text wx:if="{{show_type==6}}">痤疮轻度</text> | |
181 | + <text wx:if="{{show_type==7}}">敏感度{{s_filter.get_nai_shou(skin_sensitive_check)}}</text> | |
182 | + </view> | |
135 | 183 | <view style="margin-top:2rpx;display: flex;"> |
136 | 184 | <view class="pp"></view> |
137 | 185 | <view class="pp"></view> |
... | ... | @@ -153,9 +201,50 @@ |
153 | 201 | <!-- 显示毛孔 --> |
154 | 202 | <block wx:if="{{show_type==1}}"> |
155 | 203 | <block wx:for="{{pore_list}}"> |
156 | - <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 | + <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> | |
205 | + </block> | |
206 | + </block> | |
207 | + <!-- 显示色斑 --> | |
208 | + <block wx:if="{{show_type==2}}"> | |
209 | + <block wx:for="{{speckle_list}}" > | |
210 | + <block wx:for="{{item.position}}" wx:for-item="bitem"> | |
211 | + <view class="abs p_point" style="left:{{(bitem.x)*bili1}}px; top:{{(bitem.y)*bili1}}px;"></view> | |
212 | + </block> | |
213 | + </block> | |
214 | + </block> | |
215 | + <!-- 显示皱纹 --> | |
216 | + <block wx:if="{{show_type==3}}"> | |
217 | + <block wx:for="{{wrinkle_list}}" > | |
218 | + <block wx:for="{{item}}" wx:for-item="bitem"> | |
219 | + <view class="abs p_point" style="left:{{(bitem.x)*bili1}}px; top:{{(bitem.y)*bili1}}px;"></view> | |
220 | + </block> | |
221 | + </block> | |
222 | + </block> | |
223 | + | |
224 | + <!-- 显示黑头 --> | |
225 | + <block wx:if="{{show_type==4}}"> | |
226 | + <block wx:for="{{blackhead_list}}" > | |
227 | + <block wx:for="{{item}}" wx:for-item="bitem"> | |
228 | + <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> | |
229 | + </block> | |
230 | + </block> | |
231 | + </block> | |
232 | + | |
233 | + <!-- 显示黑眼圈 --> | |
234 | + <block wx:if="{{show_type==5}}"> | |
235 | + <block wx:for="{{dark_list}}"> | |
236 | + <view class="abs p_point" style="left:{{item.x*bili1}}px; top:{{item.y*bili1}}px; "></view> | |
157 | 237 | </block> |
158 | 238 | </block> |
239 | + | |
240 | + <!-- 显示痤疮 --> | |
241 | + <block wx:if="{{show_type==6}}"> | |
242 | + <block wx:for="{{acne_list}}"> | |
243 | + <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> | |
244 | + </block> | |
245 | + </block> | |
246 | + | |
247 | + | |
159 | 248 | </block> |
160 | 249 | </view> |
161 | 250 | ... | ... |
packageB/pages/AI-test-skin/success_result/success_result.wxss
... | ... | @@ -195,6 +195,7 @@ page { |
195 | 195 | .mr10 { |
196 | 196 | margin-right: 10rpx; |
197 | 197 | } |
198 | + | |
198 | 199 | .mr20 { |
199 | 200 | margin-right: 20rpx; |
200 | 201 | } |
... | ... | @@ -428,10 +429,125 @@ page { |
428 | 429 | background: #2cb344; |
429 | 430 | } |
430 | 431 | |
431 | -.img_content{ | |
432 | - height: 100%;overflow: hidden;border-top-left-radius: 8px;border-top-right-radius: 8px; | |
432 | +.img_content { | |
433 | + height: 100%; | |
434 | + overflow: hidden; | |
435 | + border-top-left-radius: 8px; | |
436 | + border-top-right-radius: 8px; | |
437 | +} | |
438 | + | |
439 | +.abs { | |
440 | + position: absolute | |
441 | +} | |
442 | + | |
443 | +.p_circle { | |
444 | + border: 1rpx solid #c8162c; | |
445 | + border-radius: 50% | |
446 | +} | |
447 | + | |
448 | +.dialog.fangda { | |
449 | + height: auto | |
450 | +} | |
451 | + | |
452 | +/* 优惠券 */ | |
453 | +.xc-frame { | |
454 | + position: relative; | |
455 | +} | |
456 | + | |
457 | +.xc-coupon-frame { | |
458 | + width: 100%; | |
459 | + max-height: 560rpx; | |
460 | + overflow: auto; | |
461 | + | |
462 | +} | |
463 | + | |
464 | +.xc-coupon-frame .rel:not(:first-child) { | |
465 | + margin-top: 20rpx; | |
466 | +} | |
467 | + | |
468 | +.xc-coupon-frame .coupon { | |
469 | + width: 100%; | |
470 | + height: 168rpx; | |
471 | + border-radius: 25rpx; | |
472 | + border: 2rpx solid #ffdcdc; | |
473 | + overflow: hidden; | |
474 | + /* margin-top:16rpx; */ | |
475 | + box-sizing: border-box; | |
476 | +} | |
477 | + | |
478 | +.xc-circular-one { | |
479 | + position: absolute; | |
480 | + top: -15rpx; | |
481 | + left: 205rpx; | |
482 | + width: 30rpx; | |
483 | + height: 30rpx; | |
484 | + background: #fff; | |
485 | + overflow: hidden; | |
486 | +} | |
487 | + | |
488 | +.xc-coupon-left { | |
489 | + width: 216rpx; | |
490 | + /* height: 100%; */ | |
491 | + background-color: #ffeeef; | |
492 | + border-right: 4rpx dashed #ffdbd9; | |
493 | + overflow: hidden; | |
494 | + /* line-height: 100%; */ | |
495 | + display: flex; | |
496 | + flex-direction: column; | |
497 | + justify-content: center; | |
498 | + align-items: center; | |
499 | + flex-shrink: 0; | |
500 | +} | |
501 | + | |
502 | +.xc-coupon-right { | |
503 | + /* width: 455rpx; | |
504 | + height: 100%; */ | |
505 | + background: #fffaf9; | |
506 | + padding: 20rpx; | |
507 | + box-sizing: border-box; | |
508 | + width: 100%; | |
509 | + justify-content: space-between; | |
510 | + align-items: center; | |
511 | +} | |
512 | + | |
513 | +.four-level-word { | |
514 | + font-size: 23rpx; | |
515 | +} | |
516 | + | |
517 | +.xc-below { | |
518 | + margin-top: 20rpx; | |
519 | + | |
520 | +} | |
521 | + | |
522 | +.background { | |
523 | + background: #f40028; | |
524 | +} | |
525 | + | |
526 | +.xc-get { | |
527 | + | |
528 | + width: 140rpx; | |
529 | + /* height: 48rpx; */ | |
530 | + color: #fff; | |
531 | + text-align: center; | |
532 | + border-radius: 27rpx; | |
533 | + line-height: 54rpx; | |
534 | + /* margin-left:20rpx; */ | |
433 | 535 | } |
536 | + | |
537 | +.xc-circular-two { | |
538 | + position: absolute; | |
539 | + bottom: -15rpx; | |
540 | + /* top:150rpx; */ | |
541 | + left: 205rpx; | |
542 | + width: 30rpx; | |
543 | + height: 30rpx; | |
544 | + background: #fff; | |
545 | +} | |
546 | + | |
434 | 547 | .abs{position: absolute} |
435 | 548 | .p_circle{ border: 1rpx solid #c8162c;border-radius: 50%} |
549 | +.p_point{background-color:#c8162c;height:2px;width:2px} | |
436 | 550 | |
437 | -.dialog.fangda{ height: auto} | |
551 | +.xc-spacing { | |
552 | + letter-spacing: 4rpx; | |
553 | +} | |
438 | 554 | \ No newline at end of file | ... | ... |
packageB/pages/AI-test-skin/success_result/wrinkle/wrinkle.js
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 | + */ | |
1 | 8 | module.exports = { |
2 | 9 | |
3 | 10 | //把组合购的商品价格计算出来,同时每个会员都有购买组合商品的上限!ladder_b_num是已经购买了多少件 |
... | ... | @@ -30,6 +37,14 @@ module.exports = { |
30 | 37 | th.setData({wrinkle_goods:res.data.data.pageData}) |
31 | 38 | } |
32 | 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 | + }) | |
33 | 48 | }, |
34 | 49 | |
35 | 50 | ... | ... |
packageB/pages/AI-test-skin/success_result/wrinkle/wrinkle.wxml
... | ... | @@ -2,10 +2,10 @@ |
2 | 2 | <view class="analyse_classify bg_white"> |
3 | 3 | <view class="analyse_classify_header"> |
4 | 4 | <view> |
5 | - <view style="color: #45d4eb;">#04</view> | |
5 | + <view style="color: #45d4eb;">#03</view> | |
6 | 6 | <view class="flex-space-between"> |
7 | 7 | <text style="font-size: 42rpx;" class="bold">皱纹</text> |
8 | - <view class="fs26" style="display: flex;align-items: center;"> | |
8 | + <view class="fs26" catchtap="show_dailog" data-type="3" style="display: flex;align-items: center;"> | |
9 | 9 | <text>问题标注</text> |
10 | 10 | <text class="iconfont icon-xia"></text> |
11 | 11 | </view> |
... | ... | @@ -75,16 +75,20 @@ |
75 | 75 | <view class="fenxi mgb10">护理建议</view> |
76 | 76 | <view class=""> |
77 | 77 | <view class="mgb30"> |
78 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 日常防晒</text> | |
79 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
78 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">01</text> 随时注意保湿</text> | |
79 | + <view class="fs26 c_666">每天摄取2000mI的水份,并且随时携带保湿产品、适时补充,避免肌肤出现干燥的细纹。</view> | |
80 | 80 | </view> |
81 | 81 | <view class="mgb30"> |
82 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补水保湿</text> | |
83 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
82 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">02</text> 补充胶原蛋白</text> | |
83 | + <view class="fs26 c_666">胶原蛋白的流失是皱纹出现的主要原因,多食用猪蹄、银耳、鱼皮等富含胶原蛋白的食物。</view> | |
84 | 84 | </view> |
85 | 85 | <view class="mgb30"> |
86 | - <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 早晚清洁</text> | |
87 | - <view class="fs26 c_666">用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根使用的公司大股东是公司山豆根山豆根收到二十个的山豆根山豆根大股东是公司山豆根山豆根收到二十个的山豆根山豆根</view> | |
86 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 做好防晒</text> | |
87 | + <view class="fs26 c_666">使用防晒乳液、防晒霜等防晒系数较高的产品,并及时进行补涂,避免紫外线对皮肤造成伤害。</view> | |
88 | + </view> | |
89 | + <view class="mgb30"> | |
90 | + <text style="font-size: 28rpx;margin-right: 10rpx;"><text class="bold">03</text> 充足睡眠</text> | |
91 | + <view class="fs26 c_666">足够的睡眠可以对皮肤进行修复,长期睡眠不足会使皮肤过早的老化。</view> | |
88 | 92 | </view> |
89 | 93 | </view> |
90 | 94 | </view> |
... | ... | @@ -95,7 +99,7 @@ |
95 | 99 | <!-- 服务卡 --> |
96 | 100 | <view wx:if="{{wrinkle_fuwu}}"> |
97 | 101 | <view style="margin:5% 0">皱纹问题的疗程</view> |
98 | - <block wx:for="{{wrinkle_fuwu}}"> | |
102 | + <block wx:for="{{wrinkle_fuwu}}"> | |
99 | 103 | <include src="../fuwu.wxml" /> |
100 | 104 | </block> |
101 | 105 | </view> |
... | ... | @@ -108,5 +112,14 @@ |
108 | 112 | </block> |
109 | 113 | </view> |
110 | 114 | </view> |
115 | + <!-- 优惠券 --> | |
116 | + <view wx:if="{{wrinkle_quan_list}}"> | |
117 | + <view style="margin:5% 0">适合皱纹商品的优惠券</view> | |
118 | + <view class="xc-coupon-frame rel"> | |
119 | + <block wx:for="{{wrinkle_quan_list}}"> | |
120 | + <include src="../coupon.wxml" /> | |
121 | + </block> | |
122 | + </view> | |
123 | + </view> | |
111 | 124 | </view> |
112 | 125 | </view> |
113 | 126 | \ No newline at end of file | ... | ... |
pages/cart/cart2/cart2.js
... | ... | @@ -738,6 +738,10 @@ Page({ |
738 | 738 | if (ie.pickup_id == th.data.cartlist[kj].pickup_id) { |
739 | 739 | ie.exp_type = parseInt(th.data.cartlist[kj].exp_type); |
740 | 740 | ie.wind = parseInt(th.data.cartlist[kj].wind); |
741 | + | |
742 | + //-- 是不是全部自提清空 -- | |
743 | + if(ie.exp_type==0) th.setData({ is_all_zt: 0 }); | |
744 | + | |
741 | 745 | break; |
742 | 746 | } |
743 | 747 | } | ... | ... |
pages/goods/goodsInfo/goodsInfo.js