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 }