Commit 346430ac0981c6e98912ab395ca0ae09217aeecc
1 parent
dd8f695c
oa单商品详情领券优惠券
Showing
3 changed files
with
32 additions
and
9 deletions
packageC/pages/presell/goodsInfo/goodsInfo.js
@@ -379,7 +379,7 @@ Page({ | @@ -379,7 +379,7 @@ Page({ | ||
379 | is_closecoupon: json_d.is_closecoupon, | 379 | is_closecoupon: json_d.is_closecoupon, |
380 | is_newsales_rules: json_d.is_newsales_rules | 380 | is_newsales_rules: json_d.is_newsales_rules |
381 | }); | 381 | }); |
382 | - ee.init(gid); | 382 | + // ee.init(gid); |
383 | //------几人评价------- | 383 | //------几人评价------- |
384 | //n.init(th, "", "comments"); | 384 | //n.init(th, "", "comments"); |
385 | 385 | ||
@@ -569,12 +569,16 @@ Page({ | @@ -569,12 +569,16 @@ Page({ | ||
569 | is_share: 0, | 569 | is_share: 0, |
570 | }, | 570 | }, |
571 | }).then(res1 => { | 571 | }).then(res1 => { |
572 | + console.log('优惠券+++++++++++++++++'); | ||
573 | + console.log(res1); | ||
572 | fir_quan = res1.data.data.pageData; | 574 | fir_quan = res1.data.data.pageData; |
573 | }) | 575 | }) |
574 | } | 576 | } |
575 | //过滤不是本商品的单品优惠券------------------- | 577 | //过滤不是本商品的单品优惠券------------------- |
576 | if (fir_quan.length > 0) { | 578 | if (fir_quan.length > 0) { |
577 | - let goodInfo = ee.data.data || {} | 579 | + let goodInfo = th.data.data || {} |
580 | + console.log('商品++++++++++++++++++++++'); | ||
581 | + console.log(goodInfo); | ||
578 | for (let index = fir_quan.length - 1; index >= 0; index--) { | 582 | for (let index = fir_quan.length - 1; index >= 0; index--) { |
579 | if (fir_quan[index].useobjecttype == 20) { //判断是单品优惠券 | 583 | if (fir_quan[index].useobjecttype == 20) { //判断是单品优惠券 |
580 | if (fir_quan[index].useobjectno != goodInfo.goods_sn) { | 584 | if (fir_quan[index].useobjectno != goodInfo.goods_sn) { |
@@ -583,6 +587,7 @@ Page({ | @@ -583,6 +587,7 @@ Page({ | ||
583 | } | 587 | } |
584 | } | 588 | } |
585 | } | 589 | } |
590 | + | ||
586 | let arr = [] | 591 | let arr = [] |
587 | let length = fir_quan.length | 592 | let length = fir_quan.length |
588 | if (length <= 3) { | 593 | if (length <= 3) { |
@@ -787,7 +792,7 @@ Page({ | @@ -787,7 +792,7 @@ Page({ | ||
787 | sele_g: t.data.data, | 792 | sele_g: t.data.data, |
788 | userInfo: getApp().globalData.userInfo, | 793 | userInfo: getApp().globalData.userInfo, |
789 | }); | 794 | }); |
790 | - | 795 | + ee.init(gid); |
791 | //获取门店 | 796 | //获取门店 |
792 | ee.get_sto(); | 797 | ee.get_sto(); |
793 | ee.get_sku(o.stoid, t.data.data, gid); | 798 | ee.get_sku(o.stoid, t.data.data, gid); |
@@ -846,7 +851,7 @@ Page({ | @@ -846,7 +851,7 @@ Page({ | ||
846 | ee.data.enterAddressPage && (this.data.enterAddressPage = !1); | 851 | ee.data.enterAddressPage && (this.data.enterAddressPage = !1); |
847 | }) | 852 | }) |
848 | 853 | ||
849 | - | 854 | + |
850 | 855 | ||
851 | }, | 856 | }, |
852 | enterAddress: function () { | 857 | enterAddress: function () { |
packageC/pages/presell/goodsInfo/goodsInfo.wxml
@@ -83,7 +83,7 @@ | @@ -83,7 +83,7 @@ | ||
83 | <view class="fs28 val" style="margin-right:100rpx">¥{{presellList.presell_price}}</view> | 83 | <view class="fs28 val" style="margin-right:100rpx">¥{{presellList.presell_price}}</view> |
84 | <!-- <view class="word-line fs26 xc-qtunit-price">--> | 84 | <!-- <view class="word-line fs26 xc-qtunit-price">--> |
85 | <!-- 零售价¥{{filters.toFix(data.market_price,2)}}--> | 85 | <!-- 零售价¥{{filters.toFix(data.market_price,2)}}--> |
86 | -<!-- </view>--> | 86 | +<!-- </view>--> |
87 | </view> | 87 | </view> |
88 | 88 | ||
89 | 89 | ||
@@ -148,6 +148,24 @@ | @@ -148,6 +148,24 @@ | ||
148 | </view> | 148 | </view> |
149 | <view class="t_gz" wx:if="{{is_show_gz==1}}">{{prom_act.remark}}</view> | 149 | <view class="t_gz" wx:if="{{is_show_gz==1}}">{{prom_act.remark}}</view> |
150 | </view> | 150 | </view> |
151 | + <!-- 许程 7.24暂时注释 --> | ||
152 | + <view class="bdt16" wx:if="{{ prom_type!=1 && prom_act.kttype!=3&&prom_act.kttype!=2&&prom_act.kttype!=1 && is_closecoupon!=1 && sele_g.is_xz_yh !=1}}"> | ||
153 | + <view class="cx-frame flex" style="position: relative" wx:if="{{fir_quan.length>0}}"> | ||
154 | + <view class="cx-sizs fs30">领券</view> | ||
155 | + <view class="flex ai_c f1 pdh20"> | ||
156 | + <view class="xc-coupon-fram" wx:for="{{fir_quan}}" wx:key="id"> | ||
157 | + <view class="circle xc-circular xc-one"></view> | ||
158 | + <view class="xc-coupon t-c four-level-word"> | ||
159 | + 满{{item.condition}}减{{item.money}} | ||
160 | + </view> | ||
161 | + <view class="circle xc-circular xc-two"></view> | ||
162 | + </view> | ||
163 | + </view> | ||
164 | + <view data-coupon="1" bindtap="switchCoupon" class="cx-obtain-coupon wsize"> | ||
165 | + <text class="bg_jj"></text> | ||
166 | + </view> | ||
167 | + </view> | ||
168 | + </view> | ||
151 | <!-- 门店收货地址 --> | 169 | <!-- 门店收货地址 --> |
152 | <view class="xc-address_frame bdt16 flex-vertical xc-ash {{def_pick_store!=null?'sn_height':'on_height'}}"> | 170 | <view class="xc-address_frame bdt16 flex-vertical xc-ash {{def_pick_store!=null?'sn_height':'on_height'}}"> |
153 | <view class="address_frame" bindtap="choice_store" data-ind="0"> | 171 | <view class="address_frame" bindtap="choice_store" data-ind="0"> |
pages/user/assistance/task_assistance.wxml
1 | <wxs module="filter" src="../../../utils/filter.wxs"></wxs> | 1 | <wxs module="filter" src="../../../utils/filter.wxs"></wxs> |
2 | <view class="container" style="background-color:#{{bg_color ? bg_color:'d01119'}}"> | 2 | <view class="container" style="background-color:#{{bg_color ? bg_color:'d01119'}}"> |
3 | - <view class="top-back" style="background-color:#{{bg_color ? bg_color:'d01119'}};padding-bottom:80rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> | 3 | + <view class="top-back" style="background-color:#{{bg_color ? bg_color:'d01119'}};padding-bottom:40rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> |
4 | <!-- <view class="top-back" style="padding-bottom:{{is_user_task!=null&&is_user_task.status==0?50:0}}rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> --> | 4 | <!-- <view class="top-back" style="padding-bottom:{{is_user_task!=null&&is_user_task.status==0?50:0}}rpx;background-image: url({{iurl}}/miniapp/images/friendhelp/lumi.png)" bindtap="close"> --> |
5 | <!-- 助力活动头部 --> | 5 | <!-- 助力活动头部 --> |
6 | <view class="top-frame"> | 6 | <view class="top-frame"> |
@@ -55,18 +55,18 @@ | @@ -55,18 +55,18 @@ | ||
55 | style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | 55 | style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> |
56 | 就选它了 | 56 | 就选它了 |
57 | </view> | 57 | </view> |
58 | - <view wx:if="{{is_user_task!=null&&is_user_task.status==0}}" class="task_clike fs40 t-c flex-center" bindtap="save_share" | 58 | + <view wx:if="{{ is_user_task!=null&&is_user_task.status==0}}" class="task_clike fs40 t-c flex-center" bindtap="save_share" |
59 | style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | 59 | style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> |
60 | 好友拆一拆 | 60 | 好友拆一拆 |
61 | </view> | 61 | </view> |
62 | <!-- 任务超时失效 --> | 62 | <!-- 任务超时失效 --> |
63 | - <view class="invalid" wx:if="{{ is_user_task!=null && is_user_task.status==0 && invalidTime !=0}}"> | 63 | + <view class="invalid fs28" wx:if="{{ is_user_task!=null && is_user_task.status==0 && invalidTime !=0}}"> |
64 | <text>距离失效:</text> | 64 | <text>距离失效:</text> |
65 | <view class="invalid_info" wx:if="{{invalidState}}"><text>{{invalidObj.h}}</text>:<text>{{invalidObj.m}}</text>:<text>{{invalidObj.s}}</text></view> | 65 | <view class="invalid_info" wx:if="{{invalidState}}"><text>{{invalidObj.h}}</text>:<text>{{invalidObj.m}}</text>:<text>{{invalidObj.s}}</text></view> |
66 | <view class="invalid_info" wx:else>该任务已失效</view> | 66 | <view class="invalid_info" wx:else>该任务已失效</view> |
67 | </view> | 67 | </view> |
68 | 68 | ||
69 | - <view wx:if="{{is_user_task!=null&&is_user_task.status==1}}" class="task_clike fs40 t-c flex-center" data-libaoid="{{is_user_task.helpListGiftBagId}}"data-taskingid="{{is_user_task.id}}" bindtap="redeem_now" | 69 | + <view wx:if="{{ is_user_task!=null&&is_user_task.status==1}}" class="task_clike fs40 t-c flex-center" data-libaoid="{{is_user_task.helpListGiftBagId}}"data-taskingid="{{is_user_task.id}}" bindtap="redeem_now" |
70 | style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> | 70 | style="background-color:#{{btn_color ? btn_color:'fbda0e'}};color:{{font_color?('#'+font_color):'white'}};"> |
71 | 立即兑换 | 71 | 立即兑换 |
72 | </view> | 72 | </view> |