diff --git a/.env b/.env index added0b..272088f 100644 --- a/.env +++ b/.env @@ -19,16 +19,16 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' # --------------------------- 开发环境 api地址 ---------------------------------- # VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 #VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 -# VITE_APP_DEV_SERVICE = http://192.168.101.174:9999 # 邓-本地 -VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # 邓-本地 +VITE_APP_DEV_SERVICE = https://dzc-test-1.fy.takin.cc # 邓-本地 +# VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # 邓-本地 # VITE_APP_DEV_SERVICE = http://123.157.250.162:8089/api # 测试线上 # --------------------------- 开发环境 图片访问基础地址 --------------------------- # VITE_IMAGE_DEV_PATH = https://stgl.pj.gov.cn/api # 域名线上 #VITE_IMAGE_DEV_PATH = http://59.202.170.152:81/api # 信创线上 -# VITE_IMAGE_DEV_PATH = http://192.168.101.174:9999 # 邓-本地 -VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999 -#VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上 +VITE_IMAGE_DEV_PATH = https://dzc-test-1.fy.takin.cc # 邓-本地 +#VITE_IMAGE_DEV_PATH = http://127.0.0.1:9999 +# VITE_IMAGE_DEV_PATH = http://123.157.250.162:8089/api # 测试线上 # --------------------------- 生产环境 api地址 ---------------------------------- VITE_APP_PROD_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 diff --git a/src/App.vue b/src/App.vue index b1b60e9..2511212 100644 --- a/src/App.vue +++ b/src/App.vue @@ -53,6 +53,7 @@ const tabbar: TabbarItem[] = [ launchParam: ["coopMerchant"], auth: ["user"], }, + // 在线商城(商品展示) { pagePath: "pages/tabbar/onlineShop", text: "在线商城", @@ -69,6 +70,14 @@ const tabbar: TabbarItem[] = [ launchParam: ["prosperityShop"], auth: ["user"], }, + { + pagePath: "pages/tabbar/prosperityShopMchList", + text: "共富商城", + iconPath: "/static/tabbar/prosperity-shop.png", + selectedIconPath: "/static/tabbar/prosperity-shop-select.png", + launchParam: ["prosperityShopMchList"], + auth: ["user"], + }, { pagePath: "pages/tabbar/cabinet", text: "智能柜", @@ -114,7 +123,7 @@ const tabbar: TabbarItem[] = [ text: "我的", iconPath: "/static/tabbar/my.png", selectedIconPath: "/static/tabbar/my-select.png", - launchParam: ["canteen", "selfMerchant", "onlineShop", "coopMerchant", "integrated", "prosperityShop"], + launchParam: ["canteen", "selfMerchant", "onlineShop", "coopMerchant", "integrated", "prosperityShop", "prosperityShopMchList"], auth: ["user", "merchant", "doorAdmin"], }, ] diff --git a/src/pages.json b/src/pages.json index 26a0f8f..fcbd993 100644 --- a/src/pages.json +++ b/src/pages.json @@ -51,6 +51,13 @@ "disableScroll": true } }, + { + "path": "pages/tabbar/prosperityShopMchList", + "style": { + "navigationBarTitleText": "共富商城", + "disableScroll": true + } + }, { "path": "pages/tabbar/coopMerchant", "style": { @@ -688,6 +695,12 @@ "iconPath": "", "selectedIconPath": "" }, + { + "pagePath": "pages/tabbar/prosperityShopMchList", + "text": "", + "iconPath": "", + "selectedIconPath": "" + }, { "pagePath": "pages/tabbar/cabinet", "text": "", diff --git a/src/pages/merchant/components/cancel-card.vue b/src/pages/merchant/components/cancel-card.vue index 4196fc5..f197370 100644 --- a/src/pages/merchant/components/cancel-card.vue +++ b/src/pages/merchant/components/cancel-card.vue @@ -20,10 +20,21 @@ const doVisibleQrcode = () => { - + + + + + + + + + @@ -49,7 +60,9 @@ const doVisibleQrcode = () => { - 核销码 + 核销码 + 已使用 + 已过期 @@ -194,5 +207,9 @@ const doVisibleQrcode = () => { padding: 10rpx 24rpx; border-radius: 30rpx; font-weight: 500; + + &.disabled { + background: #cccccc; + } } diff --git a/src/pages/merchant/components/coupon-card.vue b/src/pages/merchant/components/coupon-card.vue index 63d76fc..229d8de 100644 --- a/src/pages/merchant/components/coupon-card.vue +++ b/src/pages/merchant/components/coupon-card.vue @@ -20,9 +20,20 @@ const doVisibleQrcode = () => { - + + + + + + + + + + + @@ -48,7 +59,9 @@ const doVisibleQrcode = () => { - 核销码 + 核销码 + 已使用 + 已过期 @@ -193,5 +206,9 @@ const doVisibleQrcode = () => { padding: 10rpx 24rpx; border-radius: 30rpx; font-weight: 500; + + &.disabled { + background: #cccccc; + } } diff --git a/src/pages/merchant/merchant-activity.vue b/src/pages/merchant/merchant-activity.vue index fcbd719..4a94024 100644 --- a/src/pages/merchant/merchant-activity.vue +++ b/src/pages/merchant/merchant-activity.vue @@ -19,8 +19,6 @@ 限量领取 先领先得 - - diff --git a/src/pages/tabbar/coopMerchant.vue b/src/pages/tabbar/coopMerchant.vue index 677ce4e..e50daae 100644 --- a/src/pages/tabbar/coopMerchant.vue +++ b/src/pages/tabbar/coopMerchant.vue @@ -56,6 +56,7 @@ const toDetail = async (v: any) => { if (isLogin) { if (v.supType && v.supType == "10") return router.jump("/pages/merchant/brandDetail", { parentId: v.id }) if (v.supType && v.supType == "20") return router.jump("/pages/merchant/detail", { id: v.id }) + if (v.supType && v.supType == "50") return router.jump("/pages/merchant/brandDetail", { parentId: v.id }) uni.showToast({ title: "合作商家类型未知", icon: "none" }) } } @@ -63,37 +64,16 @@ const toDetail = async (v: any) => { - + - + 搜 索 @@ -119,7 +99,9 @@ const toDetail = async (v: any) => { {{ v.phone }} - {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + "..." : v.deptName }} + {{ v.deptName.length > 5 ? v.deptName.substring(0, 5) + + "..." : + v.deptName }} 营业时间: diff --git a/src/pages/tabbar/index.vue b/src/pages/tabbar/index.vue index 762b7b0..7f7d1ef 100644 --- a/src/pages/tabbar/index.vue +++ b/src/pages/tabbar/index.vue @@ -24,16 +24,22 @@ const moduleList = [ }, { pagePath: "/pages/tabbar/onlineShop", - text: "在线商城", + text: "在线商城(商品展示)", iconPath: "/static/tabbar/online-shop-select.png", launchParam: "onlineShop", }, { pagePath: "/pages/tabbar/prosperityShop", - text: "共富商城", + text: "共富商城(店铺商品模式)", iconPath: "/static/tabbar/prosperity-shop-select.png", launchParam: "prosperityShop", }, + { + pagePath: "/pages/tabbar/prosperityShopMchList", + text: "共富商城(商家模式)", + iconPath: "/static/tabbar/prosperity_shop_mch_list.png", + launchParam: "prosperityShopMchList", + }, { pagePath: "/pages/tabbar/cabinet", text: "智能柜", @@ -90,6 +96,10 @@ const jumpByParam = async () => { uni.setStorageSync("launchParam", launchParam) uni.switchTab({ url: "/pages/tabbar/prosperityShop" }) break + case "prosperityShopMchList": // 共富商城(商家模式) + uni.setStorageSync("launchParam", launchParam) + uni.switchTab({ url: "/pages/tabbar/prosperityShopMchList" }) + break default: uni.hideTabBar() break @@ -120,6 +130,10 @@ const jumpByParam = async () => { uni.setStorageSync("launchParam", launchParam) return uni.reLaunch({ url: "/pages/tabbar/prosperityShop" }) } + if (launchParam === "prosperityShopMchList") { + uni.setStorageSync("launchParam", launchParam) + return uni.reLaunch({ url: "/pages/tabbar/prosperityShopMchList" }) + } if (launchParam === "coopMerchant") { uni.setStorageSync("launchParam", launchParam) return uni.reLaunch({ url: "/pages/tabbar/coopMerchant" }) @@ -147,8 +161,10 @@ const doModuleJump = (item: any) => { - - + + {{ item.text }} diff --git a/src/pages/tabbar/integrated.vue b/src/pages/tabbar/integrated.vue index 76415d8..fa202e5 100644 --- a/src/pages/tabbar/integrated.vue +++ b/src/pages/tabbar/integrated.vue @@ -9,20 +9,29 @@ - {{ todoCount > 99 ? "99+" : todoCount }} + {{ todoCount > 99 ? "99+" : + todoCount }} {{ item.label }} + + 联系热线: + 18367908152 + + 15657370065 +