diff --git a/api/store.js b/api/store.js index 467b0b3..53fcdcf 100644 --- a/api/store.js +++ b/api/store.js @@ -56,11 +56,11 @@ export function toCollect(id, category) { export function getHostProducts(page, limit) { return request.get( "/product/hot", { - page: page, - limit: limit - }, { - login: false - } + page: page, + limit: limit + }, { + login: false + } ); } @@ -167,3 +167,9 @@ export function postOrderComment(data) { login: true }); } + +export function storeListApi(data) { + return request.get("store_list", data, { + login: false + }); +} diff --git a/pages.json b/pages.json index 7b051ae..e91d6e1 100644 --- a/pages.json +++ b/pages.json @@ -60,6 +60,12 @@ "navigationBarTitleText": "购物车" } }, + { + "path": "pages/shop/StoreList/index", + "style": { + "navigationBarTitleText": "商家列表" + } + }, { "path": "pages/shop/GoodsList/index", "style": { diff --git a/pages/shop/GoodsCon/index.vue b/pages/shop/GoodsCon/index.vue index 84b0b67..c9a5722 100644 --- a/pages/shop/GoodsCon/index.vue +++ b/pages/shop/GoodsCon/index.vue @@ -46,7 +46,7 @@ 门店信息 - + 更多 @@ -302,6 +302,11 @@ export default { path: "/pages/user/CustomerList/index" }); }, + goStoreList() { + this.$yrouter.push({ + path: "/pages/shop/StoreList/index" + }); + }, goEvaluateList(id) { this.$yrouter.push({ path: "/pages/shop/EvaluateList/index", diff --git a/pages/shop/StoreList/index.vue b/pages/shop/StoreList/index.vue new file mode 100644 index 0000000..b2c396f --- /dev/null +++ b/pages/shop/StoreList/index.vue @@ -0,0 +1,210 @@ + + + + + diff --git a/pages/user/User/index.vue b/pages/user/User/index.vue index 60064c9..1c5a564 100644 --- a/pages/user/User/index.vue +++ b/pages/user/User/index.vue @@ -186,7 +186,7 @@ export default { }, computed: mapGetters(["userInfo"]), methods: { - ...mapMutations(["updateAuthorizationPage", "CHANGE_TABTAR"]), + ...mapMutations(["updateAuthorizationPage", ]), goReturnList() { this.$yrouter.push("/pages/order/ReturnList/index"); },