From 96a9bdfec83f154563214275baba7bf6ad04fb7b Mon Sep 17 00:00:00 2001 From: code <2388224167@qq.com> Date: Tue, 12 Nov 2024 09:43:02 +0800 Subject: [PATCH] 111 --- src/pages/merchant/components/product-car.vue | 76 ++++ src/pages/merchant/components/product-row.vue | 80 +++- .../merchant/components/product-total.vue | 59 +++ src/pages/merchant/detail.vue | 386 ++++++++++++++---- src/pages/merchant/product-detail.vue | 33 +- src/pages/order/detail.vue | 6 +- src/pages/tabbar/home.vue | 4 +- src/pages/tabbar/my.vue | 3 +- src/pages/tabbar/order.vue | 6 +- src/sheep/api/pay.ts | 16 + src/sheep/api/product.ts | 2 +- src/sheep/hooks/use-page.ts | 1 - src/sheep/hooks/use-unit.ts | 21 + src/sheep/scss/font/iconfont.scss | 18 +- .../tm-ui/components/tm-drawer/tm-drawer.vue | 1 - .../tm-sticky-header/tm-sticky-header.vue | 2 +- .../tm-ui/components/tm-sticky/tm-sticky.vue | 12 +- unocss.config.ts | 2 +- 18 files changed, 611 insertions(+), 117 deletions(-) create mode 100644 src/pages/merchant/components/product-car.vue create mode 100644 src/pages/merchant/components/product-total.vue 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 @@ + + + + + + \ 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 @@ \ 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 @@ + + + + + + \ 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 @@ - \ 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 }