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,
|
||||
@ -182,4 +182,4 @@ export default defineComponent({
|
||||
});
|
||||
|
||||
|
||||
</script>
|
||||
</script>
|
||||
|
@ -170,7 +170,7 @@
|
||||
<view class="pt-2">宴席地址:{{ orderInfo.address }}</view>
|
||||
<view class="pt-2">备注:{{ orderInfo.remark }}</view>
|
||||
<view class="pt-4" />
|
||||
|
||||
|
||||
<template #title>
|
||||
</template>
|
||||
<view>1.(不交定金)如若厨师接到更高价订单,可能会将您的订单取消。</view>
|
||||
@ -180,7 +180,7 @@
|
||||
|
||||
<wd-form ref="form" :model="orderInfo" errorType="message">
|
||||
<wd-cell-group border>
|
||||
<!--
|
||||
<!--
|
||||
<view class="pb-4" />
|
||||
<wd-input readonly label="联系姓名" prop="customer_name" clearable v-model="orderInfo.customer_name"
|
||||
placeholder="请填写联系姓名" />
|
||||
@ -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