菜品详情
Some checks are pending
deploy / deploy (push) Waiting to run

This commit is contained in:
sjeam 2025-08-14 14:19:32 +08:00
parent 5972ef1248
commit 8ad7ee78ce
8 changed files with 16 additions and 10 deletions

View File

@ -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": "选酒店"
},

View File

@ -158,7 +158,7 @@
<view>厨师姓名{{ server_user.public_name }}</view>
<view>厨师联系方式{{ server_user.phone }}</view>
<template #footer>
<wd-button size="small" plain>查看详情</wd-button>
<wd-button size="small" plain @click="cookDetail( server_user.id)">查看详情</wd-button>
</template>
</wd-card>
@ -385,7 +385,13 @@ export default defineComponent({
}
});
},
//
cookDetail (id: number) {
// console.log(id);
uni.navigateTo({
url: `/pages/banquet/cook/detail?id=${id}`
});
},
},

View File

@ -17,7 +17,7 @@
<up-cell-group :border="false">
<view class="detail-box" v-for="(item, index) in matchedItems_sp" :key="index">
<u-cell :border="false" @click="goodsDetail(item.id)">
<u-cell :border="false" @click="cookDetail(item.id)">
<template #icon>
<wd-img :width="100" :height="100" :src="item.avatar" :enable-preview="false" :radius="8" :round=false
custom-class="margin-right-24" />
@ -132,10 +132,10 @@ export default defineComponent({
},
//
goodsDetail (id: number) {
cookDetail (id: number) {
// console.log(id);
uni.navigateTo({
url: `/pages/banquet/cook/detail?id=${id}&is_add=1`
url: `/pages/banquet/cook/detail?id=${id}`
});
},

View File

@ -1,7 +1,7 @@
import pagesJson from '@/pages.json';
// 路径常量
export const HOME_PATH = '/pages/tab/home/index';
export const HOME_PATH = '/pages/tab/banquet/index';
export const LOGIN_PATH = '/pages/common/login/index';
export const ERROR404_PATH = '/pages/common/404/index';

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB