From f0a04ecc27328d984f53ea78512a13876ab1bf3f Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 27 Mar 2025 21:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/shop/detail.vue | 97 ++++++++++++++++++----------------- src/pages/tabbar/coopShop.vue | 90 ++++++++++++++++---------------- src/pages/tabbar/shop.vue | 90 ++++++++++++++++---------------- 3 files changed, 141 insertions(+), 136 deletions(-) diff --git a/src/pages/shop/detail.vue b/src/pages/shop/detail.vue index eabee3c..737fa5c 100644 --- a/src/pages/shop/detail.vue +++ b/src/pages/shop/detail.vue @@ -20,50 +20,52 @@ {{ state.detail.name }} {{ state.detail.deptName }} - - - - - {{ state.detail.phone }} - - - {{ state.detail.jobTime == ",," ? "" : "营业时间:" }} - {{ state.detail.jobTime?.split(",")[0] ? "早:" + state.detail.jobTime?.split(",")[0] : "" }} - {{ state.detail.jobTime?.split(",")[1] ? "中:" + state.detail.jobTime?.split(",")[1] : "" }} - {{ state.detail.jobTime?.split(",")[2] ? "晚:" + state.detail.jobTime?.split(",")[2] : "" }} - - - - - - 地址: - {{ state.detail.addressDes }} + + + + + + {{ state.detail.phone }} + + + {{ state.detail.jobTime == ",," ? "" : "营业时间:" }} + {{ state.detail.jobTime?.split(",")[0] ? "早:" + state.detail.jobTime?.split(",")[0] : "" }} + {{ state.detail.jobTime?.split(",")[1] ? "中:" + state.detail.jobTime?.split(",")[1] : "" }} + {{ state.detail.jobTime?.split(",")[2] ? "晚:" + state.detail.jobTime?.split(",")[2] : "" }} + + + + + + 地址: + {{ state.detail.addressDes }} + @@ -107,7 +109,6 @@ /> - 暂无信息 @@ -137,7 +138,7 @@ import { reactive, nextTick, ref } from "vue" import { onLoad, onShow } from "@dcloudio/uni-app" import { isEmpty } from "radash" -import { hooks, router } from "@@/index" +import { router } from "@@/index" import { foodApi, merchantApi, payApi, shopApi } from "@@/api" import zSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue" import zSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue" @@ -178,8 +179,8 @@ onShow(async () => { }) try { await getDetail() - await getShopCar() - await getClassify() + // await getShopCar() + // await getClassify() } catch (error) { uni.showToast({ title: "加载失败", diff --git a/src/pages/tabbar/coopShop.vue b/src/pages/tabbar/coopShop.vue index dd72892..4bf3356 100644 --- a/src/pages/tabbar/coopShop.vue +++ b/src/pages/tabbar/coopShop.vue @@ -58,50 +58,52 @@ const toDetail = async (v: any) => { {{ v.name.length > 7 ? v.name.substring(0, 7) + "..." : v.name }} {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + "..." : 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] : "" }} - - - - - - 地址: - {{ v.addressDes }} + + + + + + {{ 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] : "" }} + + + + + + 地址: + {{ v.addressDes }} + diff --git a/src/pages/tabbar/shop.vue b/src/pages/tabbar/shop.vue index 00c55fe..cbca6ab 100644 --- a/src/pages/tabbar/shop.vue +++ b/src/pages/tabbar/shop.vue @@ -58,50 +58,52 @@ const toDetail = async (v: any) => { {{ v.name }} {{ v.deptName }} - - - - - {{ v.phone }} - - - {{ v.jobTime == ",," ? "" : "营业时间:" }} - {{ v.jobTime?.split(",")[0] ? "早:" + v.jobTime?.split(",")[0] : "" }} - {{ v.jobTime?.split(",")[1] ? "中:" + v.jobTime?.split(",")[1] : "" }} - {{ v.jobTime?.split(",")[2] ? "晚:" + v.jobTime?.split(",")[2] : "" }} - - - - - - 地址: - {{ v.addressDes }} + + + + + + {{ v.phone }} + + + {{ v.jobTime == ",," ? "" : "营业时间:" }} + {{ v.jobTime?.split(",")[0] ? "早:" + v.jobTime?.split(",")[0] : "" }} + {{ v.jobTime?.split(",")[1] ? "中:" + v.jobTime?.split(",")[1] : "" }} + {{ v.jobTime?.split(",")[2] ? "晚:" + v.jobTime?.split(",")[2] : "" }} + + + + + + 地址: + {{ v.addressDes }} +