Commit f6cb1beb by 高淑倩

modify: 购物车支付

parent b2ec9124
...@@ -214,7 +214,7 @@ wxService.page({ ...@@ -214,7 +214,7 @@ wxService.page({
cartListData.filter(item => { // 选中的商品信息 cartListData.filter(item => { // 选中的商品信息
return item.checked return item.checked
}).map(item => { }).map(item => {
skuIds.push(item.skuId) skuIds.push(item.skuId -0)
}) })
if (skuIds.length == 0) { if (skuIds.length == 0) {
wx.showToast({ wx.showToast({
...@@ -223,15 +223,15 @@ wxService.page({ ...@@ -223,15 +223,15 @@ wxService.page({
}) })
return false return false
} }
// 去下单页 // 去下单页 && 参数
let parmas = { // let parmas = {
specId: skuIds.join(',') // specId: skuIds.join(',')
} // }
// wxService
wxService // .router('/pages/confirmOrder/confirmOrder')
.router('/pages/confirmOrder/confirmOrder') // .search(parmas)
.search(parmas) // 直接调支付
// this.handleGoBuy(skuIds) this.handleGoBuy(skuIds)
}, },
handleGoBuy(parmas) { handleGoBuy(parmas) {
// 下单 // 下单
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment