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 }} -