diff --git a/src/pages/merchant/components/product-car.vue b/src/pages/merchant/components/product-car.vue
new file mode 100644
index 0000000..e50d47c
--- /dev/null
+++ b/src/pages/merchant/components/product-car.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
+ emit('add', v)" @remove="emit('remove', v)" />
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/merchant/components/product-row.vue b/src/pages/merchant/components/product-row.vue
index 4199a25..e62c2b4 100644
--- a/src/pages/merchant/components/product-row.vue
+++ b/src/pages/merchant/components/product-row.vue
@@ -1,10 +1,37 @@
+
+
+
+
+ {{ props.name }}
+
+
+ ¥{{ hooks.useMoney(props.price) }}
+
+
+ ¥{{ hooks.useMoney(props.marketPrice) }}
+
+
+
+ x{{ props.count }}
+
+
+ {{ hooks.useFormatNum("库存", "", props.stock) }}
+
+ {{ hooks.useFormatNum("销量", "", props.salesCount) }}
+
+
+
+
+
+ {{ props.modelValue }}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/merchant/components/product-total.vue b/src/pages/merchant/components/product-total.vue
new file mode 100644
index 0000000..8a5aef4
--- /dev/null
+++ b/src/pages/merchant/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/merchant/detail.vue b/src/pages/merchant/detail.vue
index 194468b..f5c8d2b 100644
--- a/src/pages/merchant/detail.vue
+++ b/src/pages/merchant/detail.vue
@@ -1,30 +1,44 @@
-
-
-
-
-
-
-
-
- {{ state.detail.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ state.detail.name }}
+
+
+ {{ state.detail.deptStr }}
+
+
+
+ 营业时间
+
+ {{ hooks.useTime(state.detail.applianceStartTime, "{h}:{i}") }}
+ ~
+ {{ hooks.useTime(state.detail.applianceEndTime, "{h}:{i}") }}
+
+
+
+ 食堂地址
+ {{ state.detail.addressDes }}
+
+
-
- {{ state.detail.deptStr }}
+
+
+
+
+
+
+
+
+ 联系食堂
+
+
+
+
+
+
+ 包厢预定
+
+
-
- 营业时间
-
- {{ hooks.useTime(state.detail.applianceStartTime, "{h}:{i}") }}
- ~
- {{ hooks.useTime(state.detail.applianceEndTime, "{h}:{i}") }}
-
-
-
- 食堂地址
- {{ state.detail.addressDes }}
-
+
+
+
+
+
+
+
+
+
+
+
+ {{ cV.categoryName }}
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
- 联系食堂
-
-
-
-
-
-
- 包厢预定
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/pages/merchant/product-detail.vue b/src/pages/merchant/product-detail.vue
index d0887ad..9ae1ac8 100644
--- a/src/pages/merchant/product-detail.vue
+++ b/src/pages/merchant/product-detail.vue
@@ -10,16 +10,10 @@ import zSwiper from "@zebra-ui/swiper/components/z-swiper/z-swiper.vue"
import zSwiperItem from "@zebra-ui/swiper/components/z-swiper-item/z-swiper-item.vue"
const data = {
- list: [
- 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe1.jpg',
- 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe2.jpg',
- 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe3.jpg',
- 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe4.jpg',
- 'https://cdn.zebraui.com/zebra-ui/images/swipe-demo/swipe5.jpg',
- ]
}
const state = reactive({
detailId: null,
+ detail: null,
})
onLoad((options: any) => {
@@ -34,29 +28,40 @@ onShow(() => {
const getDetail = async () => {
const _pa = { id: state.detailId }
const { data } = await productApi.get(_pa)
+ state.detail = data
}
-
-
-
+
+
+
-
-
-
+
+
+
+ ¥{{ state.detail.price }}
+ ¥{{ state.detail.marketPrice }}
+
+ 已售{{ state.detail.salesCount }}
+
+
+ {{ state.detail.name }}
+ {{ state.detail.introduction }}
+
评价
-
+
详情
+
diff --git a/src/pages/order/detail.vue b/src/pages/order/detail.vue
index f1bc8a7..41c5648 100644
--- a/src/pages/order/detail.vue
+++ b/src/pages/order/detail.vue
@@ -66,7 +66,7 @@ const getShopCarList = async () => {
部门
{{ state.detail.deptName }}
-
+
订单号
{{ state.detail.id }}
@@ -100,7 +100,7 @@ const getShopCarList = async () => {
¥ {{ hooks.useMoney(v.totalPrice) }}
-
+
实付款
@@ -123,7 +123,7 @@ const getShopCarList = async () => {
}
&>view {
- color: #515151;
+ color: #c4c4c4;
font-size: 28rpx;
font-weight: 500;
line-height: 1.4em;
diff --git a/src/pages/tabbar/home.vue b/src/pages/tabbar/home.vue
index f06a77c..ec39658 100644
--- a/src/pages/tabbar/home.vue
+++ b/src/pages/tabbar/home.vue
@@ -6,7 +6,9 @@ import { hooks, router } from "@@/index"
import { merchantApi } from "@@/api"
const state = reactive({
-
+ pa: {
+ pagesize: 10
+ }
})
onLoad(() => {
diff --git a/src/pages/tabbar/my.vue b/src/pages/tabbar/my.vue
index 0ddea3e..d7b1b6a 100644
--- a/src/pages/tabbar/my.vue
+++ b/src/pages/tabbar/my.vue
@@ -9,7 +9,7 @@ import { merchantApi, userApi, walletApi } from "@@/api"
const data = {
serviceList: [
{ text: '钱包管理', icon: '/static/icon/service_3.png', router: '/pages/wallet/list' },
- { text: '车牌管理', icon: '/static/icon/service_2.png', router: '/pages/user/diff-price' },
+ // { text: '车牌管理', icon: '/static/icon/service_2.png', router: '/pages/user/diff-price' },
{ text: '外来人员就餐', icon: '/static/icon/service_1.png', router: '/pages/apply/foreign-list' },
{ text: '跨单位就餐', icon: '/static/icon/service_1.png', router: '/pages/apply/stride-list' },
]
@@ -93,7 +93,6 @@ const doLogout = async () => {
- 我的服务
diff --git a/src/pages/tabbar/order.vue b/src/pages/tabbar/order.vue
index 918fc2a..ad3b1b8 100644
--- a/src/pages/tabbar/order.vue
+++ b/src/pages/tabbar/order.vue
@@ -67,7 +67,7 @@ const doToDetail = (v: any) => {
{{ v.merchantStr }}
-
+
未支付
待核销
@@ -123,8 +123,8 @@ const doToDetail = (v: any) => {
-
-
-
-
+
+
\ No newline at end of file
diff --git a/unocss.config.ts b/unocss.config.ts
index 9602056..387792a 100644
--- a/unocss.config.ts
+++ b/unocss.config.ts
@@ -63,7 +63,7 @@ export default {
([, d]) => ({
"font-size": `${d}rpx`,
"font-weight": 500,
- color: "#515151",
+ color: "#c4c4c4",
"line-height": `1.4em`,
}),
],