diff --git a/src/pages.json b/src/pages.json index f67f27d..06e7aae 100644 --- a/src/pages.json +++ b/src/pages.json @@ -378,6 +378,7 @@ } }] }, + // 企业相关分包 { "root": "pageCompany", "pages": [{ @@ -390,6 +391,7 @@ } }] }, + // 客户相关分包 { "root": "pagesCustomer", "pages": [{ @@ -399,6 +401,77 @@ "navigationStyle": "custom" } }] + }, + // 商城相关分包 + { + "root": "pagesShop", + "pages": [{ + "path": "pages/shopMall/index", + + "style": { + "navigationBarTitleText": "大贸商城", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + }, + { + "path": "pages/shopGoods/goods/goods", + "style": { + "navigationBarTitleText": "商品详情", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + }, + { + "path": "pages/shopGoods/list/list", + "style": { + "navigationBarTitleText": "商品列表", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + }, + { + "path": "pages/shopGoods/evaluate/evaluate", + "style": { + "navigationBarTitleText": "商品评价", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + }, + { + "path": "pages/shopGoods/search/search", + "style": { + "navigationBarTitleText": "搜索商品", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + }, + // 购物车相关 + { + "path": "pages/shopCart/cart/cart", + "style": { + "navigationBarTitleText": "购物车", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + }, + // 分类相关 + { + "path": "pages/shopCategory/category/category", + "style": { + "navigationBarTitleText": "分类", + // #ifdef WEB + "navigationStyle": "default" + // #endif + } + } + ] } ], "preloadRule": { diff --git a/src/pagesShop/pages/shopCart/cart/cart.vue b/src/pagesShop/pages/shopCart/cart/cart.vue new file mode 100644 index 0000000..22243c6 --- /dev/null +++ b/src/pagesShop/pages/shopCart/cart/cart.vue @@ -0,0 +1,687 @@ + + + + + diff --git a/src/pagesShop/pages/shopCategory/category/category.vue b/src/pagesShop/pages/shopCategory/category/category.vue new file mode 100644 index 0000000..2211d4b --- /dev/null +++ b/src/pagesShop/pages/shopCategory/category/category.vue @@ -0,0 +1,378 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/evaluate/evaluate.vue b/src/pagesShop/pages/shopGoods/evaluate/evaluate.vue new file mode 100644 index 0000000..20f4534 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/evaluate/evaluate.vue @@ -0,0 +1,219 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/goods/components/addressPanel.vue b/src/pagesShop/pages/shopGoods/goods/components/addressPanel.vue new file mode 100644 index 0000000..716c336 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/goods/components/addressPanel.vue @@ -0,0 +1,162 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/goods/components/servicePanel.vue b/src/pagesShop/pages/shopGoods/goods/components/servicePanel.vue new file mode 100644 index 0000000..1fa8b55 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/goods/components/servicePanel.vue @@ -0,0 +1,87 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/goods/components/sharePanel.vue b/src/pagesShop/pages/shopGoods/goods/components/sharePanel.vue new file mode 100644 index 0000000..aaed688 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/goods/components/sharePanel.vue @@ -0,0 +1,153 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/goods/components/sharePoster.ts b/src/pagesShop/pages/shopGoods/goods/components/sharePoster.ts new file mode 100644 index 0000000..ed4ee27 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/goods/components/sharePoster.ts @@ -0,0 +1,9 @@ +import { useMemberStore, useSettingStore } from '@/stores' +import { pageUrl } from '@/utils/constants' + +export const getShareUrl = (goodsId: number | string) => { + const settingData = useSettingStore().data + const profileData = useMemberStore().profile + + return `${settingData.h5_domain}${pageUrl['shopping-mall-goods-detail']}?id=${goodsId}&sharer=${profileData?.id}` +} diff --git a/src/pagesShop/pages/shopGoods/goods/components/sharePoster.vue b/src/pagesShop/pages/shopGoods/goods/components/sharePoster.vue new file mode 100644 index 0000000..ad1628a --- /dev/null +++ b/src/pagesShop/pages/shopGoods/goods/components/sharePoster.vue @@ -0,0 +1,231 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/goods/goods.vue b/src/pagesShop/pages/shopGoods/goods/goods.vue new file mode 100644 index 0000000..f6d25b6 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/goods/goods.vue @@ -0,0 +1,864 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/list/list.vue b/src/pagesShop/pages/shopGoods/list/list.vue new file mode 100644 index 0000000..9a3b0c4 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/list/list.vue @@ -0,0 +1,107 @@ + + + + + diff --git a/src/pagesShop/pages/shopGoods/search/search.vue b/src/pagesShop/pages/shopGoods/search/search.vue new file mode 100644 index 0000000..798ec81 --- /dev/null +++ b/src/pagesShop/pages/shopGoods/search/search.vue @@ -0,0 +1,147 @@ + + + + + diff --git a/src/pagesShop/pages/shopMall/components/categoryGroup.vue b/src/pagesShop/pages/shopMall/components/categoryGroup.vue new file mode 100644 index 0000000..4714b83 --- /dev/null +++ b/src/pagesShop/pages/shopMall/components/categoryGroup.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/pagesShop/pages/shopMall/components/hotRecommend.vue b/src/pagesShop/pages/shopMall/components/hotRecommend.vue new file mode 100644 index 0000000..be8da70 --- /dev/null +++ b/src/pagesShop/pages/shopMall/components/hotRecommend.vue @@ -0,0 +1,137 @@ + + + + + diff --git a/src/pagesShop/pages/shopMall/components/notice-bar.vue b/src/pagesShop/pages/shopMall/components/notice-bar.vue new file mode 100644 index 0000000..3e335d0 --- /dev/null +++ b/src/pagesShop/pages/shopMall/components/notice-bar.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/src/pagesShop/pages/shopMall/index.vue b/src/pagesShop/pages/shopMall/index.vue new file mode 100644 index 0000000..bb2cec8 --- /dev/null +++ b/src/pagesShop/pages/shopMall/index.vue @@ -0,0 +1,105 @@ + + + +