宴席2.0
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
sjeam 2025-08-15 14:27:15 +08:00
commit 3f4b19fcf6
3 changed files with 36 additions and 8 deletions

View File

@ -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 {

View File

@ -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>

View File

@ -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);