diff --git a/.env b/.env index f789095..7fbf7e7 100644 --- a/.env +++ b/.env @@ -20,15 +20,15 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' # 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 = http://123.157.250.162:8089/api # 测试线上 +# 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 = 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/pages.json b/src/pages.json index 8b4094a..15039f1 100644 --- a/src/pages.json +++ b/src/pages.json @@ -198,6 +198,13 @@ "navigationBarTitleText": "商品分类管理", "disableScroll": true } + }, + { + "path": "goods-cart", + "style": { + "navigationBarTitleText": "购物车", + "disableScroll": true + } } ] }, diff --git a/src/pages/canteen/detail.vue b/src/pages/canteen/detail.vue index d9d3bab..406dcdd 100644 --- a/src/pages/canteen/detail.vue +++ b/src/pages/canteen/detail.vue @@ -55,7 +55,7 @@ const getDetail = async () => { // 获取购物车信息 const getFoodCart = async () => { - const { data } = await foodApi.getShopCar({ merchantId: state.detailId, hardType: "CANTEEN" }) + const { data } = await orderApi.getShopCar({ merchantId: state.detailId, hardType: "CANTEEN" }) state.cartList = data ?? [] if (isEmpty(state.cartList)) { state.foodList.forEach((v: any) => { @@ -154,7 +154,7 @@ const updateFoodCart = async () => { }) if (isEmpty(list)) return const _pa = { merchantId: state.detailId, list: list, hardType: "CANTEEN" } - const { data, code }: any = await foodApi.updateShopCar(_pa) + const { data, code }: any = await orderApi.updateShopCar(_pa) if (code == 0) await getFoodCart() } diff --git a/src/pages/integrated/visitor/invitation.vue b/src/pages/integrated/visitor/invitation.vue index c36186e..9ba8882 100644 --- a/src/pages/integrated/visitor/invitation.vue +++ b/src/pages/integrated/visitor/invitation.vue @@ -4,15 +4,9 @@ 访客邀约请填写以下信息 - -