Browse Source

购物车优惠券

master
nige 3 years ago
parent
commit
fc441c9370
  1. 6
      pages/order/postOrder/index.js
  2. 2
      pages/order/scene/index.js
  3. 3
      pages/user/cartlist/list.js

6
pages/order/postOrder/index.js

@ -22,6 +22,7 @@ Page({
allowance_price: 0, allowance_price: 0,
showAllowance: false, showAllowance: false,
flag:null, flag:null,
isCar:'single'
}, },
/** /**
@ -33,7 +34,8 @@ Page({
kjId: app.globalData.kjId, kjId: app.globalData.kjId,
gp_id: app.globalData.gp_id || app.globalData.team_id, gp_id: app.globalData.gp_id || app.globalData.team_id,
prizeId: wx.getStorageSync('prizeId'), prizeId: wx.getStorageSync('prizeId'),
flag:options.flag flag:options.flag,
isCar:options.isCar
}) })
let price = 0, sku_id = []; let price = 0, sku_id = [];
app.globalData.postProduct.map(item => { app.globalData.postProduct.map(item => {
@ -191,7 +193,7 @@ Page({
app.globalData.product = app.globalData.list[0] app.globalData.product = app.globalData.list[0]
} }
wx.redirectTo({ wx.redirectTo({
url: '/pages/order/scene/index?flag='+this.data.flag, url: '/pages/order/scene/index?flag='+this.data.flag+'&isCar='+this.data.isCar,
}) })
} }
}, },

2
pages/order/scene/index.js

@ -285,7 +285,7 @@ Page({
app.globalData.index = app.globalData.index + 1 app.globalData.index = app.globalData.index + 1
app.globalData.product = app.globalData.list[app.globalData.index] app.globalData.product = app.globalData.list[app.globalData.index]
wx.redirectTo({ wx.redirectTo({
url: '/pages/order/scene/index?flag='+ this.data.flag, url: '/pages/order/scene/index?flag='+ this.data.flag+'&isCar='+this.data.isCar,
}) })
return return
}else{ }else{

3
pages/user/cartlist/list.js

@ -176,7 +176,8 @@ Page({
} }
if (product.length > 0 && product1.length > 0) { if (product.length > 0 && product1.length > 0) {
this.setData({ this.setData({
flag: 'mix' flag: 'mix',
isCar:'multiple'
}) })
} }
if ( product1.length > 1) { if ( product1.length > 1) {

Loading…
Cancel
Save