Commit f6ba51fdd986d20eb669195c7ecdde1977f7a97b
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
4 changed files
with
28 additions
and
8 deletions
packageE/pages/user/monthgiftbag/giftpackbuy/giftpackbuy.js
| ... | ... | @@ -331,6 +331,7 @@ Page({ |
| 331 | 331 | var url = e.currentTarget.dataset.url; |
| 332 | 332 | var index=e.currentTarget.dataset.index |
| 333 | 333 | console.log(url); |
| 334 | + wx.setStorageSync('monthgiftba_defpick', th.data.def_pick_store) | |
| 334 | 335 | wx.setStorageSync('monthgiftbag', th.data.wareCard[index]) |
| 335 | 336 | getApp().goto(url); |
| 336 | 337 | ... | ... |
packageE/pages/user/monthgiftbag/giftpackbuy/giftpackbuy.wxml
| ... | ... | @@ -50,18 +50,21 @@ |
| 50 | 50 | <text class="ellipsis-1">{{"零售价:¥"+items.giftPosPrice}}</text> |
| 51 | 51 | </view> |
| 52 | 52 | <block wx:if="{{items.is_show}}"> |
| 53 | - <view wx:if="{{ now < items.starTime1 }}" class="content_ware_time"> | |
| 53 | + <view wx:if="{{ now < items.starTime1 }}" class="content_ware_time"> | |
| 54 | 54 | <text class="ellipsis-1">{{"活动开始时间:"+items.starTime}}</text> |
| 55 | 55 | </view> |
| 56 | 56 | <view wx:else class="content_ware_time"> |
| 57 | 57 | <text class="ellipsis-1">{{"活动结束时间:"+items.endTime}}</text> |
| 58 | 58 | </view> |
| 59 | 59 | </block> |
| 60 | + <view wx:else class="content_ware_time"> | |
| 61 | + <text class="ellipsis-1">{{"活动结束时间:"+items.endTime}}</text> | |
| 62 | + </view> | |
| 60 | 63 | </view> |
| 61 | 64 | </view> |
| 62 | 65 | <view class="content_box_button"> |
| 63 | 66 | <view class="box_button_remark"> |
| 64 | - <text>{{"已售:"+items.giftQty+"件"}}</text> | |
| 67 | + <text>{{"已售:"+(items.giftQty+items.virtualSales)+"件"}}</text> | |
| 65 | 68 | </view> |
| 66 | 69 | <block wx:if="{{now > items.starTime1}}"> |
| 67 | 70 | <view class="flex-vertical"> | ... | ... |
packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
| ... | ... | @@ -97,7 +97,7 @@ Page({ |
| 97 | 97 | is_retail_price: json_d.is_retail_price || 0 |
| 98 | 98 | }); |
| 99 | 99 | }) |
| 100 | - | |
| 100 | + // com.get_sto(th,os) | |
| 101 | 101 | //获取用户设备信息,屏幕宽度 |
| 102 | 102 | wx.getSystemInfo({ |
| 103 | 103 | success: res => { |
| ... | ... | @@ -108,6 +108,7 @@ Page({ |
| 108 | 108 | }); |
| 109 | 109 | |
| 110 | 110 | let monthgiftbag=wx.getStorageSync('monthgiftbag') |
| 111 | + let monthgiftba_defpick=wx.getStorageSync('monthgiftba_defpick') | |
| 111 | 112 | |
| 112 | 113 | var now = ut.gettimestamp(); |
| 113 | 114 | var isStart=0; |
| ... | ... | @@ -115,10 +116,15 @@ Page({ |
| 115 | 116 | var start = monthgiftbag.begindate; |
| 116 | 117 | // start = start / 1000; |
| 117 | 118 | if (start < now) isStart = 1; |
| 119 | + | |
| 120 | + let remark=monthgiftbag.remark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | |
| 121 | + monthgiftbag.remark=remark | |
| 122 | + | |
| 118 | 123 | this.setData({ |
| 119 | 124 | isStart, |
| 120 | 125 | monthgiftbag, |
| 121 | - sele_g:monthgiftbag | |
| 126 | + sele_g:monthgiftbag, | |
| 127 | + // def_pick_store:monthgiftba_defpick | |
| 122 | 128 | }) |
| 123 | 129 | |
| 124 | 130 | }, |
| ... | ... | @@ -166,8 +172,18 @@ Page({ |
| 166 | 172 | }) |
| 167 | 173 | } |
| 168 | 174 | th.close(); |
| 169 | - | |
| 170 | - | |
| 175 | + | |
| 176 | + //-- 检测一下有没有门店 -- | |
| 177 | + th.check_guide(function (){ | |
| 178 | + com.wait_for_store_config(th); | |
| 179 | + com.set_user_mo_store(th, os, function () { | |
| 180 | + if (th.data.sele_g.pickup_list && th.data.def_pick_store) { | |
| 181 | + com.check_def_pk(th); | |
| 182 | + } | |
| 183 | + }); | |
| 184 | + com.get_sto(th, os); | |
| 185 | + }) | |
| 186 | + // this.GetBuyGiftList(); | |
| 171 | 187 | // if (this.data.flag == 1) { |
| 172 | 188 | // this.getZxlbDetails(); |
| 173 | 189 | // } else { | ... | ... |
packageE/pages/user/monthgiftbag/giftpacklist/giftpacklist.js
| ... | ... | @@ -399,13 +399,13 @@ Page({ |
| 399 | 399 | giftTitle: res.data.data.lbTitle, |
| 400 | 400 | default_color: res.data.data.bgcolor |
| 401 | 401 | }) |
| 402 | - if (!res.data.data.giftRemark) { | |
| 402 | + if (!res.data.data.lbIntro) { | |
| 403 | 403 | _this2.setData({ |
| 404 | 404 | giftRemark: '暂无详情......' |
| 405 | 405 | }) |
| 406 | 406 | } else { |
| 407 | 407 | _this2.setData({ |
| 408 | - giftRemark: res.data.data.giftRemark.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | |
| 408 | + giftRemark: res.data.data.lbIntro.replace(/\<img/gi, '<img style="max-width:100%;height:auto;display:block"') | |
| 409 | 409 | }) |
| 410 | 410 | } |
| 411 | 411 | ... | ... |