diff --git a/src/App.vue b/src/App.vue index b89e1e9..69941a5 100644 --- a/src/App.vue +++ b/src/App.vue @@ -13,12 +13,13 @@ const tabbar = [ selectedIconPath: "/static/tabbar/canteen-select.png", auth: ["zhezhengding", "shihua"], }, - // { - // "pagePath": "pages/tabbar/shop", - // "text": "超市", - // "iconPath": "/static/tabbar/shop.png", - // "selectedIconPath": "/static/tabbar/shop-select.png" - // }, + { + pagePath: "pages/tabbar/shop", + text: "超市", + iconPath: "/static/tabbar/shop.png", + selectedIconPath: "/static/tabbar/shop-select.png", + auth: ["zhezhengding", "shihua"], + }, { pagePath: "pages/tabbar/order", text: "订单", diff --git a/src/pages.json b/src/pages.json index 26907c7..fafaefb 100644 --- a/src/pages.json +++ b/src/pages.json @@ -16,13 +16,13 @@ "disableScroll": true } }, - // { - // "path": "pages/tabbar/shop", - // "style": { - // "navigationBarTitleText": "超市", - // "disableScroll": true - // } - // }, + { + "path": "pages/tabbar/shop", + "style": { + "navigationBarTitleText": "超市", + "disableScroll": true + } + }, { "path": "pages/tabbar/order", "style": { @@ -299,12 +299,12 @@ "iconPath": "", "selectedIconPath": "" }, - // { - // "pagePath": "pages/tabbar/shop", - // "text": "", - // "iconPath": "", - // "selectedIconPath": "" - // }, + { + "pagePath": "pages/tabbar/shop", + "text": "", + "iconPath": "", + "selectedIconPath": "" + }, { "pagePath": "pages/tabbar/order", "text": "", diff --git a/src/pages/merchant/food.vue b/src/pages/merchant/food.vue index 98739e5..00cd8fa 100644 --- a/src/pages/merchant/food.vue +++ b/src/pages/merchant/food.vue @@ -150,17 +150,17 @@ const doProduct = (v: any) => { diff --git a/src/pages/tabbar/shop.vue b/src/pages/tabbar/shop.vue index 3690736..93c7753 100644 --- a/src/pages/tabbar/shop.vue +++ b/src/pages/tabbar/shop.vue @@ -27,10 +27,10 @@ onShow(() => { }) const toDetail = async (v: any) => { - const isLogin = await hooks.useCheckLogin() - if (isLogin) { - router.jump("/pages/shop/detail", { id: v.id }) - } + // const isLogin = await hooks.useCheckLogin() + // if (isLogin) { + // router.jump("/pages/shop/detail", { id: v.id }) + // } } @@ -57,11 +57,12 @@ const toDetail = async (v: any) => { {{ v.name }} - {{ v.deptName }} + + 老县府超市 {{ v.phone }} - 营业时间: + 营业时间: {{ v.jobTime?.split(",")[0] ? "早:" + v.jobTime?.split(",")[0] : "" }} {{ v.jobTime?.split(",")[1] ? "中:" + v.jobTime?.split(",")[1] : "" }} {{ v.jobTime?.split(",")[2] ? "晚:" + v.jobTime?.split(",")[2] : "" }}