Commit 408d3e0167f46ee19ad7804c4f72b4d08c04a812
1 parent
e76a617b
测肤报告优惠券数量显示
Showing
8 changed files
with
39 additions
and
14 deletions
packageB/pages/AI-test-skin/success_result/acne/acne.js
1 | /* | 1 | /* |
2 | * @Author: abson | 2 | * @Author: abson |
3 | * @Date: 2022-02-21 11:03:07 | 3 | * @Date: 2022-02-21 11:03:07 |
4 | - * @LastEditTime: 2022-02-21 17:20:59 | 4 | + * @LastEditTime: 2022-02-21 17:50:35 |
5 | * @LastEditors: Please set LastEditors | 5 | * @LastEditors: Please set LastEditors |
6 | * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 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 | 7 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\acne\acne.js |
@@ -39,7 +39,7 @@ module.exports = { | @@ -39,7 +39,7 @@ module.exports = { | ||
39 | }) | 39 | }) |
40 | 40 | ||
41 | // 优惠券 | 41 | // 优惠券 |
42 | - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | 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=>{ | 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){ | 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}); | 45 | th.setData({acne_quan_list:res.data.data.pageData}); |
packageB/pages/AI-test-skin/success_result/blackhead/blackhead.js
1 | /* | 1 | /* |
2 | * @Author: abson | 2 | * @Author: abson |
3 | * @Date: 2022-02-21 11:03:07 | 3 | * @Date: 2022-02-21 11:03:07 |
4 | - * @LastEditTime: 2022-02-21 17:18:47 | 4 | + * @LastEditTime: 2022-02-21 17:48:28 |
5 | * @LastEditors: Please set LastEditors | 5 | * @LastEditors: Please set LastEditors |
6 | * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 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 | 7 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\blackhead\blackhead.js |
@@ -34,7 +34,7 @@ module.exports = { | @@ -34,7 +34,7 @@ module.exports = { | ||
34 | }) | 34 | }) |
35 | 35 | ||
36 | // 优惠券 | 36 | // 优惠券 |
37 | - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | 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=>{ | 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){ | 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}); | 40 | th.setData({blackhead_quan_list:res.data.data.pageData}); |
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 | \ No newline at end of file | 26 | \ No newline at end of file |
packageB/pages/AI-test-skin/success_result/dark/dark.js
1 | /* | 1 | /* |
2 | * @Author: abson | 2 | * @Author: abson |
3 | * @Date: 2022-02-21 11:03:07 | 3 | * @Date: 2022-02-21 11:03:07 |
4 | - * @LastEditTime: 2022-02-21 17:20:29 | 4 | + * @LastEditTime: 2022-02-21 17:50:16 |
5 | * @LastEditors: Please set LastEditors | 5 | * @LastEditors: Please set LastEditors |
6 | * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 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 | 7 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\dark\dark.js |
@@ -37,7 +37,7 @@ module.exports = { | @@ -37,7 +37,7 @@ module.exports = { | ||
37 | } | 37 | } |
38 | }) | 38 | }) |
39 | // 优惠券 | 39 | // 优惠券 |
40 | - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | 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=>{ | 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){ | 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}); | 43 | th.setData({dark_quan_list:res.data.data.pageData}); |
packageB/pages/AI-test-skin/success_result/pore/pore.js
@@ -26,7 +26,7 @@ module.exports = { | @@ -26,7 +26,7 @@ module.exports = { | ||
26 | }) | 26 | }) |
27 | 27 | ||
28 | // 优惠券 | 28 | // 优惠券 |
29 | - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | 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=>{ | 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){ | 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}); | 32 | th.setData({pore_quan_list:res.data.data.pageData}); |
packageB/pages/AI-test-skin/success_result/sensitive/sensitive.js
1 | /* | 1 | /* |
2 | * @Author: abson | 2 | * @Author: abson |
3 | * @Date: 2022-02-21 17:42:05 | 3 | * @Date: 2022-02-21 17:42:05 |
4 | - * @LastEditTime: 2022-02-21 17:44:05 | ||
5 | - * @LastEditors: your name | 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 | 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 | 7 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\sensitive\sensitive.js |
8 | */ | 8 | */ |
@@ -33,7 +33,7 @@ module.exports = { | @@ -33,7 +33,7 @@ module.exports = { | ||
33 | } | 33 | } |
34 | }) | 34 | }) |
35 | // 优惠券 | 35 | // 优惠券 |
36 | - var url = "/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code=" + r_code + "&store_id=" + stoid + "&recommend_word=" + re_word + "&pageSize=1000"; | 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 => { | 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) { | 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 }); | 39 | th.setData({sensitive_quan_list: res.data.data.pageData }); |
packageB/pages/AI-test-skin/success_result/speckle/speckle.js
1 | /* | 1 | /* |
2 | * @Author: abson | 2 | * @Author: abson |
3 | * @Date: 2022-02-21 11:03:07 | 3 | * @Date: 2022-02-21 11:03:07 |
4 | - * @LastEditTime: 2022-02-21 17:19:17 | 4 | + * @LastEditTime: 2022-02-21 17:48:51 |
5 | * @LastEditors: Please set LastEditors | 5 | * @LastEditors: Please set LastEditors |
6 | * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE | 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 | 7 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\speckle\speckle.js |
@@ -39,7 +39,7 @@ module.exports = { | @@ -39,7 +39,7 @@ module.exports = { | ||
39 | }) | 39 | }) |
40 | 40 | ||
41 | // 优惠券 | 41 | // 优惠券 |
42 | - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | 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=>{ | 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){ | 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}); | 45 | th.setData({speckle_quan_list:res.data.data.pageData}); |
packageB/pages/AI-test-skin/success_result/wrinkle/wrinkle.js
1 | /* | 1 | /* |
2 | * @Author: abson | 2 | * @Author: abson |
3 | * @Date: 2022-02-21 11:03:07 | 3 | * @Date: 2022-02-21 11:03:07 |
4 | - * @LastEditTime: 2022-02-21 17:19:54 | 4 | + * @LastEditTime: 2022-02-21 17:50:01 |
5 | * @LastEditors: Please set LastEditors | 5 | * @LastEditors: Please set LastEditors |
6 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\wrinkle\wrinkle.js | 6 | * @FilePath: \MShopWeApp\packageB\pages\AI-test-skin\success_result\wrinkle\wrinkle.js |
7 | */ | 7 | */ |
@@ -39,7 +39,7 @@ module.exports = { | @@ -39,7 +39,7 @@ module.exports = { | ||
39 | }) | 39 | }) |
40 | 40 | ||
41 | // 优惠券 | 41 | // 优惠券 |
42 | - var url="/api/weshop/prom/coupon/pageCouponList?orderField=RAND()&recommend_code="+r_code+"&store_id="+stoid+"&recommend_word="+re_word+"&pageSize=1000"; | 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=>{ | 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){ | 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}); | 45 | th.setData({wrinkle_quan_list:res.data.data.pageData}); |