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,6 +331,7 @@ Page({ | ||
| 331 | var url = e.currentTarget.dataset.url; | 331 | var url = e.currentTarget.dataset.url; |
| 332 | var index=e.currentTarget.dataset.index | 332 | var index=e.currentTarget.dataset.index |
| 333 | console.log(url); | 333 | console.log(url); |
| 334 | + wx.setStorageSync('monthgiftba_defpick', th.data.def_pick_store) | ||
| 334 | wx.setStorageSync('monthgiftbag', th.data.wareCard[index]) | 335 | wx.setStorageSync('monthgiftbag', th.data.wareCard[index]) |
| 335 | getApp().goto(url); | 336 | getApp().goto(url); |
| 336 | 337 |
packageE/pages/user/monthgiftbag/giftpackbuy/giftpackbuy.wxml
| @@ -50,18 +50,21 @@ | @@ -50,18 +50,21 @@ | ||
| 50 | <text class="ellipsis-1">{{"零售价:¥"+items.giftPosPrice}}</text> | 50 | <text class="ellipsis-1">{{"零售价:¥"+items.giftPosPrice}}</text> |
| 51 | </view> | 51 | </view> |
| 52 | <block wx:if="{{items.is_show}}"> | 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 | <text class="ellipsis-1">{{"活动开始时间:"+items.starTime}}</text> | 54 | <text class="ellipsis-1">{{"活动开始时间:"+items.starTime}}</text> |
| 55 | </view> | 55 | </view> |
| 56 | <view wx:else class="content_ware_time"> | 56 | <view wx:else class="content_ware_time"> |
| 57 | <text class="ellipsis-1">{{"活动结束时间:"+items.endTime}}</text> | 57 | <text class="ellipsis-1">{{"活动结束时间:"+items.endTime}}</text> |
| 58 | </view> | 58 | </view> |
| 59 | </block> | 59 | </block> |
| 60 | + <view wx:else class="content_ware_time"> | ||
| 61 | + <text class="ellipsis-1">{{"活动结束时间:"+items.endTime}}</text> | ||
| 62 | + </view> | ||
| 60 | </view> | 63 | </view> |
| 61 | </view> | 64 | </view> |
| 62 | <view class="content_box_button"> | 65 | <view class="content_box_button"> |
| 63 | <view class="box_button_remark"> | 66 | <view class="box_button_remark"> |
| 64 | - <text>{{"已售:"+items.giftQty+"件"}}</text> | 67 | + <text>{{"已售:"+(items.giftQty+items.virtualSales)+"件"}}</text> |
| 65 | </view> | 68 | </view> |
| 66 | <block wx:if="{{now > items.starTime1}}"> | 69 | <block wx:if="{{now > items.starTime1}}"> |
| 67 | <view class="flex-vertical"> | 70 | <view class="flex-vertical"> |
packageE/pages/user/monthgiftbag/giftpackinfo/giftpackinfo.js
| @@ -97,7 +97,7 @@ Page({ | @@ -97,7 +97,7 @@ Page({ | ||
| 97 | is_retail_price: json_d.is_retail_price || 0 | 97 | is_retail_price: json_d.is_retail_price || 0 |
| 98 | }); | 98 | }); |
| 99 | }) | 99 | }) |
| 100 | - | 100 | + // com.get_sto(th,os) |
| 101 | //获取用户设备信息,屏幕宽度 | 101 | //获取用户设备信息,屏幕宽度 |
| 102 | wx.getSystemInfo({ | 102 | wx.getSystemInfo({ |
| 103 | success: res => { | 103 | success: res => { |
| @@ -108,6 +108,7 @@ Page({ | @@ -108,6 +108,7 @@ Page({ | ||
| 108 | }); | 108 | }); |
| 109 | 109 | ||
| 110 | let monthgiftbag=wx.getStorageSync('monthgiftbag') | 110 | let monthgiftbag=wx.getStorageSync('monthgiftbag') |
| 111 | + let monthgiftba_defpick=wx.getStorageSync('monthgiftba_defpick') | ||
| 111 | 112 | ||
| 112 | var now = ut.gettimestamp(); | 113 | var now = ut.gettimestamp(); |
| 113 | var isStart=0; | 114 | var isStart=0; |
| @@ -115,10 +116,15 @@ Page({ | @@ -115,10 +116,15 @@ Page({ | ||
| 115 | var start = monthgiftbag.begindate; | 116 | var start = monthgiftbag.begindate; |
| 116 | // start = start / 1000; | 117 | // start = start / 1000; |
| 117 | if (start < now) isStart = 1; | 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 | this.setData({ | 123 | this.setData({ |
| 119 | isStart, | 124 | isStart, |
| 120 | monthgiftbag, | 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,8 +172,18 @@ Page({ | ||
| 166 | }) | 172 | }) |
| 167 | } | 173 | } |
| 168 | th.close(); | 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 | // if (this.data.flag == 1) { | 187 | // if (this.data.flag == 1) { |
| 172 | // this.getZxlbDetails(); | 188 | // this.getZxlbDetails(); |
| 173 | // } else { | 189 | // } else { |
packageE/pages/user/monthgiftbag/giftpacklist/giftpacklist.js
| @@ -399,13 +399,13 @@ Page({ | @@ -399,13 +399,13 @@ Page({ | ||
| 399 | giftTitle: res.data.data.lbTitle, | 399 | giftTitle: res.data.data.lbTitle, |
| 400 | default_color: res.data.data.bgcolor | 400 | default_color: res.data.data.bgcolor |
| 401 | }) | 401 | }) |
| 402 | - if (!res.data.data.giftRemark) { | 402 | + if (!res.data.data.lbIntro) { |
| 403 | _this2.setData({ | 403 | _this2.setData({ |
| 404 | giftRemark: '暂无详情......' | 404 | giftRemark: '暂无详情......' |
| 405 | }) | 405 | }) |
| 406 | } else { | 406 | } else { |
| 407 | _this2.setData({ | 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 |