diff --git a/src/App.vue b/src/App.vue index 37c5930..f7e497a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -61,6 +61,14 @@ const tabbar: TabbarItem[] = [ launchParam: ["onlineShop"], auth: ["user"], }, + { + pagePath: "pages/tabbar/prosperityShop", + text: "共富商城", + iconPath: "/static/tabbar/prosperity-shop.png", + selectedIconPath: "/static/tabbar/prosperity-shop-select.png", + launchParam: ["onlineShop"], + auth: ["user"], + }, { pagePath: "pages/tabbar/cabinet", text: "智能柜", diff --git a/src/pages.json b/src/pages.json index 060e1f6..1b93263 100644 --- a/src/pages.json +++ b/src/pages.json @@ -44,6 +44,13 @@ "disableScroll": true } }, + { + "path": "pages/tabbar/prosperityShop", + "style": { + "navigationBarTitleText": "共富商城", + "disableScroll": true + } + }, { "path": "pages/tabbar/coopMerchant", "style": { @@ -576,6 +583,12 @@ "iconPath": "", "selectedIconPath": "" }, + { + "pagePath": "pages/tabbar/prosperityShop", + "text": "", + "iconPath": "", + "selectedIconPath": "" + }, { "pagePath": "pages/tabbar/cabinet", "text": "", @@ -614,4 +627,4 @@ } ] } -} \ No newline at end of file +} diff --git a/src/pages/tabbar/prosperityShop.vue b/src/pages/tabbar/prosperityShop.vue new file mode 100644 index 0000000..1149c81 --- /dev/null +++ b/src/pages/tabbar/prosperityShop.vue @@ -0,0 +1,174 @@ + + + diff --git a/src/sheep/api/index.ts b/src/sheep/api/index.ts index b2fc1a4..563cde7 100644 --- a/src/sheep/api/index.ts +++ b/src/sheep/api/index.ts @@ -40,4 +40,6 @@ export { default as invitationApi } from "./invitation" export { default as totalApi } from "./total" -export { default as userCarApi } from "./userCar" \ No newline at end of file +export { default as userCarApi } from "./userCar" + +export { default as prosperityShopApi } from "./prosperityShop" diff --git a/src/sheep/api/prosperityShop.ts b/src/sheep/api/prosperityShop.ts new file mode 100644 index 0000000..e20ba84 --- /dev/null +++ b/src/sheep/api/prosperityShop.ts @@ -0,0 +1,12 @@ +import request from "@/sheep/utils/request" + +export default { + // 获取超市列表 + getShopList: (params: { productLimit: number }): Promise => { + return request({ + url: "/supermarket/app/mall/merchant/list", + method: "GET", + params, + }) + }, +} diff --git a/src/static/tabbar/prosperity-shop-select.png b/src/static/tabbar/prosperity-shop-select.png new file mode 100644 index 0000000..5708601 Binary files /dev/null and b/src/static/tabbar/prosperity-shop-select.png differ diff --git a/src/static/tabbar/prosperity-shop.png b/src/static/tabbar/prosperity-shop.png new file mode 100644 index 0000000..cc9efa3 Binary files /dev/null and b/src/static/tabbar/prosperity-shop.png differ