Commit 8d05f38b813d0fa78835095cb72b140dc787e60f
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
5 changed files
with
38 additions
and
18 deletions
components/goods_list/goods_list.js
components/goods_list/goods_list.wxml
... | ... | @@ -5,10 +5,10 @@ |
5 | 5 | <view class="hang "> |
6 | 6 | <!-- 商品详情 --> |
7 | 7 | |
8 | - <view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{get_url_by_type(item)}}"> | |
8 | + <view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{g_filter.get_url_by_type(item)}}"> | |
9 | 9 | <!--<view class="collect ib" wx:for="{{recommend}}" bindtap="go_url" data-url="{{item.prom_type == 9 ? ('/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=' + item.goods_id + '&group_id=' + item.prom_id):('/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id+'&title='+item.goods_name+'&prom_type='+item.prom_type+'&prom_id='+item.prom_id)}}">--> |
10 | 10 | <!-- <navigator url="/pages/goods/goodsInfo/goodsInfo?goods_id={{item.goods_id}}&title={{item.goods_name}}&prom_type={{item.prom_type}}&prom_id={{item.prom_id}}" hover-class="none"> --> |
11 | - <navigator url="{{item.prom_type == 9 ? ('/packageC/pages/luckyGo/luckyGo_goodsInfo/luckyGo_goodsInfo?goods_id=' + item.goods_id + '&group_id=' + item.prom_id):('/pages/goods/goodsInfo/goodsInfo?goods_id='+item.goods_id+'&title='+item.goods_name+'&prom_type='+item.prom_type+'&prom_id='+item.prom_id)}}" hover-class="none"> | |
11 | + <navigator hover-class="none"> | |
12 | 12 | <!-- 商品图⽚ --> |
13 | 13 | <image class="sp" src="{{url+item.original_img}}" mode="aspectFill" binderror="bind_bnerr_xc" data-url="{{url+item.original_img}}" data-errorimg="recommend[{{index}}].original_img"></image> |
14 | 14 | <view class="bottom"> | ... | ... |
pages/cart/cart2/ladder_calculate.js
pages/user/deposit/prepaid/prepaid.js
... | ... | @@ -125,7 +125,16 @@ Page({ |
125 | 125 | } |
126 | 126 | }).then(res => { |
127 | 127 | console.log(res); |
128 | - | |
128 | + var getcode=res.data.code; | |
129 | + if (getcode!=0) | |
130 | + { | |
131 | + wx.showModal({ | |
132 | + title: '提示', | |
133 | + content:res.data.msg | |
134 | + }); | |
135 | + return false; | |
136 | + } | |
137 | + | |
129 | 138 | |
130 | 139 | var msg = res.data.data; |
131 | 140 | var parentSn = msg.order_sn; | ... | ... |
pages/user/order_list/order_list.js
... | ... | @@ -1230,19 +1230,19 @@ Page({ |
1230 | 1230 | }) |
1231 | 1231 | |
1232 | 1232 | //调用接口判断订单优惠, |
1233 | - const res = await getApp().request.promiseGet("/api/weshop/goods/getGoodsPromList/" + os.stoid + "/" + g_item.goods_id + "/0", {}) | |
1234 | - if (res.data.code == 0 && res.data.data) { | |
1235 | - var r_data = res.data.data; | |
1236 | - if (r_data.ladderLists) { | |
1237 | - var act_id = r_data.ladderLists[0].form_id; | |
1238 | - //-- 判断会员能不能参与阶梯促销 -- | |
1239 | - const data = await getApp().request.promiseGet("/api/weshop/prom/ladderForm/getNew/" + os.stoid + "/" + user_id + "/" + act_id, {}) | |
1240 | - if (data.data.code == 0 && data.data.data && data.data.data.isuse && data.data.data.is_end == 0) { | |
1241 | - b_item.prom_type = 10; | |
1242 | - b_item.prom_id = data.data.data.id; | |
1243 | - } | |
1244 | - } | |
1245 | - } | |
1233 | + // const res = await getApp().request.promiseGet("/api/weshop/goods/getGoodsPromList/" + os.stoid + "/" + g_item.goods_id + "/0", {}) | |
1234 | + // if (res.data.code == 0 && res.data.data) { | |
1235 | + // var r_data = res.data.data; | |
1236 | + // if (r_data.ladderLists) { | |
1237 | + // var act_id = r_data.ladderLists[0].form_id; | |
1238 | + // //-- 判断会员能不能参与阶梯促销 -- | |
1239 | + // const data = await getApp().request.promiseGet("/api/weshop/prom/ladderForm/getNew/" + os.stoid + "/" + user_id + "/" + act_id, {}) | |
1240 | + // if (data.data.code == 0 && data.data.data && data.data.data.isuse && data.data.data.is_end == 0) { | |
1241 | + // b_item.prom_type = 10; | |
1242 | + // b_item.prom_id = data.data.data.id; | |
1243 | + // } | |
1244 | + // } | |
1245 | + // } | |
1246 | 1246 | if(!good){ |
1247 | 1247 | err_text+= g_item['goods_name']+"未找到商品\n"; |
1248 | 1248 | continue; |
... | ... | @@ -1357,7 +1357,6 @@ Page({ |
1357 | 1357 | }) |
1358 | 1358 | break; |
1359 | 1359 | case 10: |
1360 | - | |
1361 | 1360 | let user_id = getApp().globalData.userInfo.user_id; |
1362 | 1361 | var url = `/api/weshop/prom/ladderForm/getNew/${os.stoid}/${user_id}/${good.prom_id}`; |
1363 | 1362 | await getApp().request.promiseGet(url, {}).then(res => { |
... | ... | @@ -1707,7 +1706,8 @@ Page({ |
1707 | 1706 | store_id: os.stoid, |
1708 | 1707 | user_id: oo.user_id, |
1709 | 1708 | goods_id: g_item.goods_id, |
1710 | - pick_id: g_item.pickup_id, | |
1709 | + pick_id: g_item.pickup_id, | |
1710 | + state:0, | |
1711 | 1711 | }, |
1712 | 1712 | }).then(res=>{ |
1713 | 1713 | //-------如果购物车中有相关的数据------- | ... | ... |