diff --git a/api/store.js b/api/store.js index 9b6b2ec..b682100 100644 --- a/api/store.js +++ b/api/store.js @@ -4,11 +4,14 @@ import {http, Method} from '@/utils/request.js'; + + + /** * 获取店铺列表 * @param params */ -export function getstoreList(params) { +export function getStoreList(params) { return http.request({ url: '/store', method: Method.GET, diff --git a/pages.json b/pages.json index 9ecf839..b5b5604 100644 --- a/pages.json +++ b/pages.json @@ -338,6 +338,12 @@ "navigationBarTitleText": "", "navigationStyle": "custom" } + },{ + "path": "shopList", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } },{ "path": "licencePhoto", "style": { @@ -460,7 +466,6 @@ "style": { "navigationBarTitleText": "拼团活动", "navigationStyle": "custom", // 隐藏系统导航栏 - "app-plus": { // 将回弹属性关掉 "bounce": "none" diff --git a/pages/mine/myCollect.vue b/pages/mine/myCollect.vue index 42dac98..1f359de 100644 --- a/pages/mine/myCollect.vue +++ b/pages/mine/myCollect.vue @@ -113,7 +113,7 @@ export default { }, onLoad() { this.getGoodList(); - this.getstoreList(); + this.getStoreList(); }, methods: { @@ -151,7 +151,7 @@ export default { deleteStoreCollection(val.storeId).then((res) => { if (res.statusCode == 200) { this.storeList = []; - this.getstoreList(); + this.getStoreList(); } }); }, @@ -213,7 +213,7 @@ export default { /** * 获取店铺集合 */ - getstoreList() { + getStoreList() { uni.showLoading({ title: "加载中", }); @@ -246,7 +246,7 @@ export default { this.getGoodList(); } else { this.navList[1].params.pageNumber++; - this.getstoreList(); + this.getStoreList(); } }, }, @@ -262,7 +262,7 @@ export default { } else { this.navList[1].params.pageNumber = 1; this.storeList = []; - this.getstoreList(); + this.getStoreList(); } }, }; diff --git a/pages/product/shopList.vue b/pages/product/shopList.vue new file mode 100644 index 0000000..c91daa8 --- /dev/null +++ b/pages/product/shopList.vue @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + {{item.storeName}} + + + 商品 {{item.goodsNum}} + + + + {{item.serviceScore | unitPrice}} + | + 收藏 {{item.collectionNum}} + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/tabbar/home/template/tpl.js b/pages/tabbar/home/template/tpl.js index 007519e..8b74eb0 100644 --- a/pages/tabbar/home/template/tpl.js +++ b/pages/tabbar/home/template/tpl.js @@ -3,7 +3,6 @@ export function modelNavigateTo(item) { let val = item.url; switch (val.___type) { - case "goods": uni.navigateTo({ url: "/pages/product/goods?id=" + val.id + "&goodsId=" + val.goodsId, @@ -38,7 +37,6 @@ export function modelNavigateTo(item) { break; case "other": switch (val.title) { - case "首页": uni.switchTab({ url: `/pages/tabbar/home/index`, @@ -99,6 +97,11 @@ export function modelNavigateTo(item) { url: `/pages/promotion/point/pointList`, }); break; + case "店铺列表": + uni.navigateTo({ + url: `/pages/product/shopList`, + }); + break; } break;