From a1f8c2ba0ca185a0b50a923b4906b6510a367e53 Mon Sep 17 00:00:00 2001 From: weiwei Date: Tue, 11 Mar 2025 18:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 ++++---- src/pages/merchant/food.vue | 15 ++++----------- src/sheep/api/food.ts | 4 ++-- 3 files changed, 10 insertions(+), 17 deletions(-) diff --git a/.env b/.env index 62b1257..81fcc7b 100644 --- a/.env +++ b/.env @@ -27,12 +27,12 @@ VITE_OAUTH2_APP_CLIENT='mini:mini' VITE_IMAGE_BASE_PATH = http://59.202.170.152:81/api # 信创线上 # ******************** start 开发环境 start ******************** -# VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 +VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 # VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/app-api # VITE_APP_DEV_SERVICE = http://192.168.101.60:9999 # 邓-本地 # VITE_APP_DEV_SERVICE = http://127.0.0.1:9999 # VITE_APP_DEV_SERVICE = http://123.156.230.15:8089/api/ # 线上 -VITE_APP_DEV_SERVICE = http://220.191.229.171:8090/api # 线上 +# VITE_APP_DEV_SERVICE = http://220.191.229.171:8090/api # 线上 # VITE_APP_DEV_SERVICE = http://localhost:9999 # ******************** end 开发环境 end ******************** @@ -44,5 +44,5 @@ VITE_APP_DEV_SERVICE = http://220.191.229.171:8090/api # 线上 VITE_APP_PROD_SERVICE = http://59.202.170.152:81/api # 信创线上 # ******************** end 生产环境 end ******************** -# VITE_DEV_ENV = dev -VITE_DEV_ENV = prod \ No newline at end of file +VITE_DEV_ENV = dev +# VITE_DEV_ENV = prod \ No newline at end of file diff --git a/src/pages/merchant/food.vue b/src/pages/merchant/food.vue index a7a3ef9..4f45145 100644 --- a/src/pages/merchant/food.vue +++ b/src/pages/merchant/food.vue @@ -53,13 +53,6 @@ const foodList = computed(() => { }) }) -watch( - () => pageHook.list, - (newValue) => { - console.log("xxx", newValue) - }, -) - const initDate = () => { const list: any = [] const now = new Date() @@ -91,7 +84,7 @@ const doTab = (e: any) => { } const doProduct = (v: any) => { - // router.jump("/pages/merchant/product-detail", { id: v.spuId }) + // router.jump("/pages/merchant/product-detail", { spuId: v.spuId }) } @@ -102,7 +95,7 @@ const doProduct = (v: any) => { height="100%" :fixed="false" v-model="pageHook.list" - :default-page-size="8" + :default-page-size="999" safe-area-inset-bottom :loading-more-enabled="true" :show-scrollbar="false" @@ -122,8 +115,8 @@ const doProduct = (v: any) => { :key="i" @tap="doDateItem(v, i)" > - {{ v.dayTime }} - {{ v.weekDayStr }} + {{ v.dayTime }} + {{ v.weekDayStr }} diff --git a/src/sheep/api/food.ts b/src/sheep/api/food.ts index e29256f..a139f93 100644 --- a/src/sheep/api/food.ts +++ b/src/sheep/api/food.ts @@ -7,8 +7,8 @@ export default { method: "POST", data, params: { - pageNo: data.pageNo, - pagesize: data.pagesize, + current: data.current, + size: data.size, }, custom: { showLoading: false,