commit
3f4b19fcf6
@ -362,10 +362,22 @@
|
||||
order_id: order_id
|
||||
}).catch((res) => {
|
||||
if (res.code === 1) {
|
||||
// this.payOrder(res.data.order_id);
|
||||
|
||||
// this.propShowOrder = true;
|
||||
|
||||
wx.requestPayment({
|
||||
"timeStamp": res.data.timeStamp,
|
||||
"nonceStr": res.data.nonceStr,
|
||||
"package": res.data.package,
|
||||
"signType": res.data.signType,
|
||||
"paySign": res.data.paySign,
|
||||
"success": function (res) {
|
||||
console.log('success:' + JSON.stringify(res));
|
||||
},
|
||||
"fail": function (err) {
|
||||
console.log('fail:' + JSON.stringify(err));
|
||||
},
|
||||
"complete": function (res) {
|
||||
console.log('complete:' + JSON.stringify(res));
|
||||
}
|
||||
})
|
||||
console.log(res.data);
|
||||
// this.close();
|
||||
} else {
|
||||
|
@ -159,7 +159,7 @@ export default defineComponent({
|
||||
//加入购物车
|
||||
addCart (id) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/banquet/combo/index??id=${id}`
|
||||
url: `/pages/banquet/combo/index?id=${id}`
|
||||
});
|
||||
// CommonApi.commonPost('/api/cart/add', {
|
||||
// buy_now: false,
|
||||
|
@ -297,6 +297,22 @@ export default defineComponent({
|
||||
// this.propShowOrder = true;
|
||||
|
||||
console.log(res.data);
|
||||
wx.requestPayment({
|
||||
"timeStamp": res.data.timeStamp,
|
||||
"nonceStr": res.data.nonceStr,
|
||||
"package": res.data.package,
|
||||
"signType": res.data.signType,
|
||||
"paySign": res.data.paySign,
|
||||
"success": function (res) {
|
||||
console.log('success:' + JSON.stringify(res));
|
||||
},
|
||||
"fail": function (err) {
|
||||
console.log('fail:' + JSON.stringify(err));
|
||||
},
|
||||
"complete": function (res) {
|
||||
console.log('complete:' + JSON.stringify(res));
|
||||
}
|
||||
})
|
||||
// this.close();
|
||||
} else {
|
||||
uni.$u.toast(res.msg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user