diff --git a/src/pages.json b/src/pages.json
index 55154ef..c8c4dfd 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -45,7 +45,22 @@
},
{
"root": "pages/shop",
- "pages": []
+ "pages": [
+ {
+ "path": "detail",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableScroll": true
+ }
+ },
+ {
+ "path": "product-detail",
+ "style": {
+ "navigationBarTitleText": "",
+ "disableScroll": true
+ }
+ }
+ ]
},
{
"root": "pages/apply",
diff --git a/src/pages/shop/components/product-car.vue b/src/pages/shop/components/product-car.vue
new file mode 100644
index 0000000..6235c7b
--- /dev/null
+++ b/src/pages/shop/components/product-car.vue
@@ -0,0 +1,78 @@
+
+
+
+
+ emit('add', v)"
+ @remove="emit('remove', v)"
+ />
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/shop/components/product-row.vue b/src/pages/shop/components/product-row.vue
new file mode 100644
index 0000000..4c5a6cf
--- /dev/null
+++ b/src/pages/shop/components/product-row.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
+ {{ props.name }}
+
+ ¥{{ hooks.useMoney(props.price) }}
+ ¥{{ hooks.useMoney(props.marketPrice) }}
+
+ x{{ props.count }}
+
+ {{ hooks.useFormatNum("库存", "", props.stock) }}
+
+ {{ hooks.useFormatNum("销量", "", props.salesCount) }}
+
+
+
+
+
+
+
diff --git a/src/pages/shop/components/product-total.vue b/src/pages/shop/components/product-total.vue
new file mode 100644
index 0000000..8a5aef4
--- /dev/null
+++ b/src/pages/shop/components/product-total.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
+
+
+ ¥ {{ hooks.useMoney(props.totPrice) }}
+ 共{{ props.totCount }}件
+
+
+
+ 购买
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/shop/detail.vue b/src/pages/shop/detail.vue
new file mode 100644
index 0000000..9270683
--- /dev/null
+++ b/src/pages/shop/detail.vue
@@ -0,0 +1,410 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ 111111 }}
+
+
+
+ {{ 111111 }}
+
+
+
+ 营业时间
+
+
+ {{ 22222222 }}
+ ~
+
+ {{ 222222222 }}
+
+
+
+ 超市地址
+
+ {{ 3333333333 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ cV.categoryName }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/shop/product-detail.vue b/src/pages/shop/product-detail.vue
new file mode 100644
index 0000000..a195710
--- /dev/null
+++ b/src/pages/shop/product-detail.vue
@@ -0,0 +1,75 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ¥{{ state.detail.price }}
+ ¥{{ state.detail.marketPrice }}
+
+ 已售{{ state.detail.salesCount }}
+
+
+ {{ state.detail.name }}
+ {{ state.detail.introduction }}
+
+
+
+
+ 评价
+
+
+
+ 详情
+
+
+
+ 加入购物车
+
+
+
+
diff --git a/src/pages/tabbar/shop.vue b/src/pages/tabbar/shop.vue
index 938247e..fd0a9a3 100644
--- a/src/pages/tabbar/shop.vue
+++ b/src/pages/tabbar/shop.vue
@@ -8,7 +8,7 @@ import { merchantApi } from "@@/api";
const state = reactive({
pa: {
pagesize: 10,
- type: "shop",
+ type: "canteen",
},
});
@@ -46,7 +46,7 @@ const query = (page: number, pagesize: number) => {
class="flex-row card p-20rpx m-b-20rpx"
v-for="(v, i) in pageHook.list"
:key="i"
- @tap="router.jump('/pages/merchant/detail', { id: v.id })"
+ @tap="router.jump('/pages/shop/detail', { id: v.id })"
>