From 1c7567483016bdce4abdad9084f56194b760155a Mon Sep 17 00:00:00 2001 From: sjeam <359824901@qq.com> Date: Wed, 13 Aug 2025 18:01:38 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E5=AE=B4=E5=B8=AD2.1=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/banquet/combo/detail.vue | 2 -- src/pages/tab/banquet/index.vue | 46 ++++++------------------------ 2 files changed, 9 insertions(+), 39 deletions(-) diff --git a/src/pages/banquet/combo/detail.vue b/src/pages/banquet/combo/detail.vue index 1ac442d..27480e2 100644 --- a/src/pages/banquet/combo/detail.vue +++ b/src/pages/banquet/combo/detail.vue @@ -216,8 +216,6 @@ } ]"> - - - - - - 张德标 - - - - 张德标 - - - - 张德标 - - - - 张德标 - + + + + {{item.certification.public_name}} + + @@ -89,12 +78,12 @@ export default defineComponent({ goTabCook () { uni.switchTab({ - url: '/pages/banquet/cook/list' + url: '/pages/tab/banquet/cook' }); }, goTabHotel () { uni.switchTab({ - url: '/pages/banquet/hotel/list' + url: '/pages/tab/banquet/hotel' }); }, @@ -103,9 +92,6 @@ export default defineComponent({ handleClick (e) { console.log(e) }, - // onChange (e) { - // console.log(e) - // }, handleClickCategory (index: number) { this.categoryIndex = index; @@ -118,26 +104,12 @@ export default defineComponent({ this.$refs.pagingRefSP?.reload(); }, - // getCategoryList () { - // CommonApi.commonGet('/api/dishes/category').catch((res) => { - // if (res.code === 1) { - // this.categoryList = res.data; - // this.handleClickCategory(0) - // } else { - // uni.$u.toast(res.msg); - // } - // }); - // }, - //列表分页 changeSP () { - // console.log(pageNo); - // this.search.page = pageNo; CommonApi.commonGet('/api/banquet/chef/list', this.search).catch((res) => { if (res.code === 1) { this.matchedItems_sp = res.data; // this.$refs.pagingRefSP?.complete(res.data); - // console.log(res); } else { uni.$u.toast(res.msg); } @@ -148,7 +120,7 @@ export default defineComponent({ goodsDetail (id: number) { console.log(id); uni.navigateTo({ - url: `/pages/common/goods/detail?id=${id}&is_add=1` + url: `/pages/common/goods/detail?id=${id}` }); }, From b31d1107b51479fe85c86a2f1cbf2c2f3619e294 Mon Sep 17 00:00:00 2001 From: sjeam <359824901@qq.com> Date: Thu, 14 Aug 2025 14:00:11 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E8=8F=9C=E5=93=81=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 22 +- src/pages/banquet/combo/detail.vue | 15 +- src/pages/banquet/combo/dishes.vue | 114 ++++++ src/pages/banquet/combo/dishes_combo.vue | 113 ++++++ src/pages/banquet/combo/index.vue | 22 +- src/pages/banquet/cook/detail.vue | 14 - src/pages/banquet/hotel/detail.vue | 14 +- src/pages/banquet/order/detail.vue | 489 ++++++++++++++++------- src/pages/banquet/order/list.vue | 471 ++++++++-------------- src/pages/tab/banquet/index.vue | 4 +- src/pages/tab/user/index.vue | 9 +- 11 files changed, 779 insertions(+), 508 deletions(-) create mode 100644 src/pages/banquet/combo/dishes.vue create mode 100644 src/pages/banquet/combo/dishes_combo.vue diff --git a/src/pages.json b/src/pages.json index 386a3d4..0afd8d8 100644 --- a/src/pages.json +++ b/src/pages.json @@ -93,7 +93,27 @@ "navigationStyle": "custom" }, "needLogin": true - } + }, + { + "path": "combo/dishes", + "style": { + "navigationBarTitleText": "菜品详情", + "navigationStyle": "custom" + }, + "needLogin": true + }, + + { + "path": "combo/dishes_combo", + "style": { + "navigationBarTitleText": "菜品套餐", + "navigationStyle": "custom" + }, + "needLogin": true + }, + + + ] }, { diff --git a/src/pages/banquet/combo/detail.vue b/src/pages/banquet/combo/detail.vue index 27480e2..95f611a 100644 --- a/src/pages/banquet/combo/detail.vue +++ b/src/pages/banquet/combo/detail.vue @@ -110,22 +110,21 @@ :round=false custom-class="margin-right-24" /> @@ -147,8 +146,8 @@ @@ -158,7 +157,7 @@ 厨师姓名:{{ server_user.public_name }} 厨师联系方式:{{ server_user.phone }} diff --git a/src/pages/banquet/combo/dishes.vue b/src/pages/banquet/combo/dishes.vue new file mode 100644 index 0000000..12dd786 --- /dev/null +++ b/src/pages/banquet/combo/dishes.vue @@ -0,0 +1,114 @@ + + + + \ No newline at end of file diff --git a/src/pages/banquet/combo/dishes_combo.vue b/src/pages/banquet/combo/dishes_combo.vue new file mode 100644 index 0000000..c727227 --- /dev/null +++ b/src/pages/banquet/combo/dishes_combo.vue @@ -0,0 +1,113 @@ + + + + \ No newline at end of file diff --git a/src/pages/banquet/combo/index.vue b/src/pages/banquet/combo/index.vue index 0254c92..222d695 100644 --- a/src/pages/banquet/combo/index.vue +++ b/src/pages/banquet/combo/index.vue @@ -81,7 +81,7 @@ body { class="fv-page flex-col"> - + @@ -134,7 +134,7 @@ body { --> - 已选{{ this.set_num }}餐,合计¥{{ totalPrice }}元 + 已选{{ this.set_num }}餐,合计¥{{ totalPrice }}元 { - // if (res.code === 1) { - // this.matchedItems_sp = res.data; - // // this.$refs.pagingRefSP?.complete(res.data); - // } else { - // uni.$u.toast(res.msg); - // } - // }); - - // }, //加入购物车 addCart (id) { uni.navigateTo({ diff --git a/src/pages/banquet/hotel/detail.vue b/src/pages/banquet/hotel/detail.vue index 2fed1e9..3ad60ef 100644 --- a/src/pages/banquet/hotel/detail.vue +++ b/src/pages/banquet/hotel/detail.vue @@ -53,7 +53,7 @@ - 下单预定 + 下单预定 @@ -115,7 +115,7 @@ - 下单预定 + 下单预定 @@ -195,13 +195,13 @@ 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, // dishes_id: this.search.id, @@ -212,7 +212,7 @@ export default defineComponent({ // uni.navigateTo({ // url: '/pages/cart/index' // }); - + // } else { // uni.$u.toast(res.msg); // } diff --git a/src/pages/banquet/order/detail.vue b/src/pages/banquet/order/detail.vue index 65c72d5..2ceb5cb 100644 --- a/src/pages/banquet/order/detail.vue +++ b/src/pages/banquet/order/detail.vue @@ -1,204 +1,391 @@ diff --git a/src/pages/tab/banquet/index.vue b/src/pages/tab/banquet/index.vue index 897b1ee..e595d9b 100644 --- a/src/pages/tab/banquet/index.vue +++ b/src/pages/tab/banquet/index.vue @@ -7,7 +7,7 @@ .wd-grid-item-img-cook { width: 100%; - height: 180px; + height: 160px; border-radius: 20rpx; } @@ -16,7 +16,7 @@ - diff --git a/src/pages/tab/user/index.vue b/src/pages/tab/user/index.vue index 59452ce..8ea9e32 100644 --- a/src/pages/tab/user/index.vue +++ b/src/pages/tab/user/index.vue @@ -29,10 +29,10 @@ - - + @@ -96,7 +96,8 @@ function orderList () { function banquet () { uni.$u.route({ type: 'navigateTo', - url: '/pages/banquet/combo/index', + // url: '/pages/banquet/combo/index', + url: '/pages/banquet/order/list', }); } From 5972ef1248636e657f682ba42dea746f5015b3b9 Mon Sep 17 00:00:00 2001 From: sjeam <359824901@qq.com> Date: Thu, 14 Aug 2025 14:04:26 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E8=8F=9C=E5=93=81=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/banquet/combo/dishes.vue | 6 +++--- src/pages/banquet/combo/dishes_combo.vue | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/pages/banquet/combo/dishes.vue b/src/pages/banquet/combo/dishes.vue index 12dd786..7f656d4 100644 --- a/src/pages/banquet/combo/dishes.vue +++ b/src/pages/banquet/combo/dishes.vue @@ -16,7 +16,7 @@ - {{matchedItems_sc.name}} {{matchedItems_sc.dishesCategory.name}} + {{matchedItems_sc.name}} {{matchedItems_sc.tag_name}} 销量:{{matchedItems_sc.sales}} @@ -91,8 +91,8 @@ CommonApi.commonGet('/api/banquet/dishes/detail', this.search).catch((res) => { if (res.code === 1) { this.matchedItems_sc = res.data; - - console.log(res.data.images) + this.matchedItems_sc.tag_name = res.data.dishesCategory.name; + // console.log(res.data.images) res.data.images.forEach(item => { this.imageList.push({ url: item, diff --git a/src/pages/banquet/combo/dishes_combo.vue b/src/pages/banquet/combo/dishes_combo.vue index c727227..7f656d4 100644 --- a/src/pages/banquet/combo/dishes_combo.vue +++ b/src/pages/banquet/combo/dishes_combo.vue @@ -16,7 +16,7 @@ - {{matchedItems_sc.name}} {{matchedItems_sc.dishesCategory.name}} + {{matchedItems_sc.name}} {{matchedItems_sc.tag_name}} 销量:{{matchedItems_sc.sales}} @@ -91,14 +91,15 @@ CommonApi.commonGet('/api/banquet/dishes/detail', this.search).catch((res) => { if (res.code === 1) { this.matchedItems_sc = res.data; - - console.log(res.data.images) + this.matchedItems_sc.tag_name = res.data.dishesCategory.name; + // console.log(res.data.images) res.data.images.forEach(item => { this.imageList.push({ url: item, title: '', poster: item }) + }) // console.log(this.imageList) } else { From 8ad7ee78ce968371d3a12fbef9860b8fb86d5cc4 Mon Sep 17 00:00:00 2001 From: sjeam <359824901@qq.com> Date: Thu, 14 Aug 2025 14:19:32 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E8=8F=9C=E5=93=81=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 8 ++++---- src/pages/banquet/order/detail.vue | 10 ++++++++-- src/pages/tab/banquet/cook.vue | 6 +++--- src/router/index.ts | 2 +- src/static/images/tabbar/cook.png | Bin 0 -> 4014 bytes src/static/images/tabbar/cook_selected.png | Bin 0 -> 4516 bytes src/static/images/tabbar/hotel.png | Bin 0 -> 2212 bytes src/static/images/tabbar/hotel_selected.png | Bin 0 -> 2248 bytes 8 files changed, 16 insertions(+), 10 deletions(-) create mode 100644 src/static/images/tabbar/cook.png create mode 100644 src/static/images/tabbar/cook_selected.png create mode 100644 src/static/images/tabbar/hotel.png create mode 100644 src/static/images/tabbar/hotel_selected.png diff --git a/src/pages.json b/src/pages.json index 0afd8d8..ee49d99 100644 --- a/src/pages.json +++ b/src/pages.json @@ -208,14 +208,14 @@ "text": "首页" }, { - "iconPath": "static/images/tabbar/shouye.png", - "selectedIconPath": "static/images/tabbar/shouye_selected.png", + "iconPath": "static/images/tabbar/cook.png", + "selectedIconPath": "static/images/tabbar/cook_selected.png", "pagePath": "pages/tab/banquet/cook", "text": "选厨师" }, { - "iconPath": "static/images/tabbar/bofang.png", - "selectedIconPath": "static/images/tabbar/bofang_selected.png", + "iconPath": "static/images/tabbar/hotel.png", + "selectedIconPath": "static/images/tabbar/hotel_selected.png", "pagePath": "pages/tab/banquet/hotel", "text": "选酒店" }, diff --git a/src/pages/banquet/order/detail.vue b/src/pages/banquet/order/detail.vue index 2ceb5cb..0b64d99 100644 --- a/src/pages/banquet/order/detail.vue +++ b/src/pages/banquet/order/detail.vue @@ -158,7 +158,7 @@ 厨师姓名:{{ server_user.public_name }} 厨师联系方式:{{ server_user.phone }} @@ -385,7 +385,13 @@ export default defineComponent({ } }); }, - + //点击详情 + cookDetail (id: number) { + // console.log(id); + uni.navigateTo({ + url: `/pages/banquet/cook/detail?id=${id}` + }); + }, }, diff --git a/src/pages/tab/banquet/cook.vue b/src/pages/tab/banquet/cook.vue index 847ab4f..99dbe1a 100644 --- a/src/pages/tab/banquet/cook.vue +++ b/src/pages/tab/banquet/cook.vue @@ -17,7 +17,7 @@ - +