调整购物车样式

This commit is contained in:
唐明明
2023-10-10 10:59:56 +08:00
parent 51a04d53ce
commit 4faf065c96
16 changed files with 269 additions and 75 deletions

View File

@@ -75,8 +75,40 @@ Page({
loding: false
})
break;
case 'baofu':
this.baofuPay()
break;
}
},
/**
* 宝付微信
*/
baofuPay(){
wx.login({
success: wxCode => {
// wx.getFuzzyLocation({
// success: locationRes => {
// let { latitude, longitude } = locationRes
let { code } = wxCode;
let data = {
order_type : this.data.modelType,
order_id : this.data.modelId,
code : code,
longitude : '171.21',
latitude : '22.33',
}
wx.$api.pay.bfPay(data).then(res => {
console.log(res)
}).finally(() => {
this.setData({
loding: false
})
})
// }
// })
}
})
},
/**
* 微信支付
*/