From 14cd4b5ca76f35a837d8b2d75f25ae372801ccab Mon Sep 17 00:00:00 2001
From: shikong <919411476@qq.com>
Date: Sat, 19 Oct 2024 15:47:29 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../tab-view}/components/item.vue | 20 +++++++++++----
src/components/tab-view/index.vue | 3 +--
src/pages/category/category.vue | 25 ++++++++++++++++---
3 files changed, 37 insertions(+), 11 deletions(-)
rename src/{pages/category => components/tab-view}/components/item.vue (55%)
diff --git a/src/pages/category/components/item.vue b/src/components/tab-view/components/item.vue
similarity index 55%
rename from src/pages/category/components/item.vue
rename to src/components/tab-view/components/item.vue
index ed8245b..273b247 100644
--- a/src/pages/category/components/item.vue
+++ b/src/components/tab-view/components/item.vue
@@ -27,12 +27,22 @@ const props = defineProps({
{{ props.title }}
-
- {{ props.price }}
+
+
+ {{ props.price }}
-
- {{ props.oldPrice }}
-
+
+ {{ props.oldPrice }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/tab-view/index.vue b/src/components/tab-view/index.vue
index d12168a..213d25e 100644
--- a/src/components/tab-view/index.vue
+++ b/src/components/tab-view/index.vue
@@ -2,7 +2,7 @@
import {reactive} from "vue";
import {onLoad} from "@dcloudio/uni-app";
import SidebarView from "@/components/sidebar-view/index.vue"
-import Item from "@/pages/category/components/item";
+import Item from "@/components/tab-view/components/item";
const props = defineProps({
tabs: {
type: Array,
@@ -67,7 +67,6 @@ onLoad(() => {
diff --git a/src/pages/category/category.vue b/src/pages/category/category.vue
index f0f5e73..386d240 100644
--- a/src/pages/category/category.vue
+++ b/src/pages/category/category.vue
@@ -2,7 +2,7 @@
import {reactive} from "vue";
import qs from "qs";
import SideBarView from "@/components/sidebar-view/index.vue";
-import Item from "./components/item.vue";
+import Item from "../../components/tab-view/components/item.vue";
const ctx = reactive({
current: 0,
@@ -65,12 +65,29 @@ function toCommodity() {
-
+ title="测试商品测试商品测试商品测试商品测试商品测试商品测试商品" price="9999.99">
+
+
+ 选规格
+
+
+
- -
+
+
+ 50分钟
+
+
+
+
+