From a88c997e5a3a4e9f4d93058d2c520c41d429a30e Mon Sep 17 00:00:00 2001 From: woody Date: Sun, 27 Apr 2025 14:05:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(index):=20=E9=A6=96=E9=A1=B5=E6=B8=90?= =?UTF-8?q?=E5=8F=98=E8=89=B2=E6=A0=B7=E5=BC=8F=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/area-product-list/index.vue | 3 ++- config/request.js | 2 +- config/special-area.js | 4 ++++ pages/index/index.vue | 10 +--------- pages/specialArea/index.vue | 5 +++-- 5 files changed, 11 insertions(+), 13 deletions(-) create mode 100644 config/special-area.js diff --git a/components/area-product-list/index.vue b/components/area-product-list/index.vue index dace6c8..1eccbf7 100644 --- a/components/area-product-list/index.vue +++ b/components/area-product-list/index.vue @@ -36,12 +36,13 @@ > - {{ item.waresCode }} + {{ item.waresName }} {{ formatPrice(item.waresPrice) }} { //#ifdef DEV_SERVER console.log('DEV_SERVER') - config.baseURL = '/prod-api'; + config.baseURL = 'http://localhost:8080'; //#endif //#ifdef QA_SERVER diff --git a/config/special-area.js b/config/special-area.js new file mode 100644 index 0000000..4b96ca6 --- /dev/null +++ b/config/special-area.js @@ -0,0 +1,4 @@ +const http = uni.$u.http + +//会员专区商品列表 +export const getAreaGoods = (params) => http.get('/sale/api/wares/list-wares', params) \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 6e015bd..9e24786 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -55,7 +55,6 @@ {{ item.specialAreaName }} -