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 @@
+
+
+
+
+
+
+
+ 批量删除
+ 快速清理
+
+
+
+
+
+ {{ item.disabled_text }}
+
+
+
+
+ {{ item.goods.name }}
+ {{ item.sku.spec_text }}
+
+ {{ formatPrice(item.sku.price).integer }}
+ .{{ formatPrice(item.sku.price).decimal }}
+
+
+ 加购后降
+
+ ¥{{ (item.old_price - item.sku.price).toFixed(2) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 全选
+
+ 总计:
+ {{ selectedPrice ?? '0.00' }}
+
+
+
+ 去结算({{ selectedCount }})
+
+
+
+
+
+
+
+
+
+
+ 登录后可查看购物车中的商品
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+ 全部
+
+
+
+
+
+
+
+ {{ categoryList[activeIndex].name }}
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+ ¥
+ {{ item.max_origin_price }}
+
+
+ ¥
+ {{ item.min_price }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+ {{ item.user_name }}
+ {{ item.create_time }}
+
+
+
+ {{ item.goods_spec }}
+
+ {{ item.content }}
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+ 配送至
+
+
+
+ {{ item.name }} {{ item.phone }}
+ {{ item.full_location }} {{ item.address }}
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+ 服务说明
+
+
+ {{ item.name }}
+
+ {{ item.content }}
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentIndex + 1 }}
+ /
+ {{ goods?.images.length }}
+
+
+
+
+
+
+
+
+ ¥{{ currentOriginPrice }}
+
+ ¥
+ {{ currentPrice }}
+
+
+
+
+
+ 已收藏
+
+
+
+ 收藏
+
+
+
+
+
+ 客服
+
+
+
+
+
+
+ {{ goods?.name }}
+
+ 已售{{ computeConversion(goods.sales_init + goods.sales_real) }}
+
+
+
+
+
+
+
+ 已选
+ {{ selectAttrText }}
+
+
+ 送至
+ {{ selectAddressText }}
+
+
+ 服务
+ {{ goodsServiceText }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 好评率 {{ goods?.positive_rate }}%
+
+
+
+
+
+
+ {{ evaluate.user_name }}
+
+
+
+
+ {{ evaluate.content }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.key }}
+ {{ item.value }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.sub_title }}
+
+
+
+
+ {{ tag }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+