Commit 7dcac4e1 by 高淑倩

合并支付

parent d71975d4
...@@ -61,6 +61,17 @@ wxService.page({ ...@@ -61,6 +61,17 @@ wxService.page({
this.initCitys() this.initCitys()
// 地址列表 // 地址列表
this.getAddressList() this.getAddressList()
const { trolleySku2Buy, checkByPremium, addressId, addressInfo } = this.data
let params = {
checkByPremium,
trolleySku2Buy,
addressId: addressId ? addressId : addressInfo.id // 微信地址 or 地址id
}
this.calPreferentialPrice(params) // 计算优惠价
// if (!this.data.wxAddress){ // if (!this.data.wxAddress){
// this.getAddressList() // this.getAddressList()
// } // }
...@@ -326,7 +337,8 @@ wxService.page({ ...@@ -326,7 +337,8 @@ wxService.page({
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) })
wxService.post(`/sale/trade/buyer/bill`, params).then(res => {
wxService.post(`/sale/payment/merged/buyer/bill`, params).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
...@@ -380,13 +392,13 @@ wxService.page({ ...@@ -380,13 +392,13 @@ wxService.page({
addressInfo: _defalutAddress addressInfo: _defalutAddress
}, () => { }, () => {
// preview // preview
const { trolleySku2Buy, checkByPremium, addressId, addressInfo } = this.data // const { trolleySku2Buy, checkByPremium, addressId, addressInfo } = this.data
let params = { // let params = {
checkByPremium, // checkByPremium,
trolleySku2Buy, // trolleySku2Buy,
addressId: addressId ? addressId : addressInfo.id // 微信地址 or 地址id // addressId: addressId ? addressId : addressInfo.id // 微信地址 or 地址id
} // }
this.calPreferentialPrice(params) // 计算优惠价 // this.calPreferentialPrice(params) // 计算优惠价
}) })
} }
} }
......
...@@ -48,6 +48,15 @@ wxService.page({ ...@@ -48,6 +48,15 @@ wxService.page({
title: status == 'S' ? '支付成功' : '支付失败' title: status == 'S' ? '支付成功' : '支付失败'
}) })
}, },
loginUpdateStroage(){
const code = wx.getStorageSync('_loginCode')
// wxService.post(`/member/minaLogin`, {
// code,
// wechatInfo: res[0],
// brandId: app.globalData.brandId,
// })
},
toPlus() { toPlus() {
wxService.post(`/merchant/modelPage/mainSetting/page?brandId=${app.globalData.brandId}&isMain=3&type=2`).then(res => { wxService.post(`/merchant/modelPage/mainSetting/page?brandId=${app.globalData.brandId}&isMain=3&type=2`).then(res => {
const { result, data } = res.data const { result, data } = res.data
......
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