宴席2.0

This commit is contained in:
sjeam 2025-08-17 09:07:32 +08:00
parent 2ae9c80165
commit 2c7ad346df
4 changed files with 13 additions and 11 deletions

View File

@ -110,10 +110,10 @@
"navigationStyle": "custom" "navigationStyle": "custom"
}, },
"needLogin": true "needLogin": true
}, }
] ]
}, },
{ {
@ -224,13 +224,13 @@
// "selectedIconPath": "static/images/tabbar/shouye_selected.png", // "selectedIconPath": "static/images/tabbar/shouye_selected.png",
// "pagePath": "pages/tab/home/index", // "pagePath": "pages/tab/home/index",
// "text": "菜单分类" // "text": "菜单分类"
// }, // },
// { // {
// "iconPath": "static/images/tabbar/bofang.png", // "iconPath": "static/images/tabbar/bofang.png",
// "selectedIconPath": "static/images/tabbar/bofang_selected.png", // "selectedIconPath": "static/images/tabbar/bofang_selected.png",
// "pagePath": "pages/tab/list/index", // "pagePath": "pages/tab/list/index",
// "text": "食谱清单" // "text": "食谱清单"
// }, // },
{ {
"iconPath": "static/images/tabbar/wode.png", "iconPath": "static/images/tabbar/wode.png",
"selectedIconPath": "static/images/tabbar/wode_selected.png", "selectedIconPath": "static/images/tabbar/wode_selected.png",
@ -245,4 +245,4 @@
"navigationBarBackgroundColor": "#F8F8F8", "navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8" "backgroundColor": "#F8F8F8"
} }
} }

View File

@ -293,7 +293,7 @@
reservation_type: 1, reservation_type: 1,
server_user_id: 0, server_user_id: 0,
table_number: 1, // table_number: 1, //
banquet_date: [], // banquet_date: '', //
}, },
matchedItems_sp: [], matchedItems_sp: [],
}; };

View File

@ -203,8 +203,8 @@ export default defineComponent({
}; };
}, },
onLoad (option) { onLoad (option) {
this.order_id = option.id;; this.order_id = option.order_id;;
this.orderInfo.order_id = option.id; this.orderInfo.order_id = option.order_id;
this.getOrderDetail() this.getOrderDetail()
}, },
methods: { methods: {
@ -233,6 +233,8 @@ export default defineComponent({
console.log('complete:' + JSON.stringify(res)); console.log('complete:' + JSON.stringify(res));
} }
}) })
} else if (res.code == 9304) {
this.payOrder(1);
} else { } else {
uni.$u.toast(res.msg); uni.$u.toast(res.msg);
} }
@ -245,7 +247,7 @@ export default defineComponent({
} else { } else {
uni.$u.toast(res.msg); uni.$u.toast(res.msg);
} }
this.goBack () this.goBack()
}); });
} }
}, },

View File

@ -112,7 +112,7 @@ export default defineComponent({
// //
orderDetail (id: number) { orderDetail (id: number) {
uni.navigateTo({ uni.navigateTo({
url: `/pages/banquet/order/detail?id=${id}` url: `/pages/banquet/order/detail?order_id=${id}`
}); });
}, },
goBackHome () { goBackHome () {