From f4d7e20fdbb06cfad33bb2c7d3cce9337bb050ba Mon Sep 17 00:00:00 2001
From: shikong <919411476@qq.com>
Date: Tue, 22 Oct 2024 16:30:10 +0800
Subject: [PATCH] =?UTF-8?q?uni-app=20slot=20=E5=9D=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/sidebar-view/index.vue | 2 +-
src/components/tab-view/index.vue | 41 +++++++++-------
src/manifest.json | 4 +-
src/pages/commodity/commodity.vue | 48 ++++++++++++++++---
.../commodity/components/comments/index.vue | 13 +++++
.../{shop-title.vue => shop-title/index.vue} | 0
6 files changed, 82 insertions(+), 26 deletions(-)
create mode 100644 src/pages/commodity/components/comments/index.vue
rename src/pages/commodity/components/{shop-title.vue => shop-title/index.vue} (100%)
diff --git a/src/components/sidebar-view/index.vue b/src/components/sidebar-view/index.vue
index 098e065..649d707 100644
--- a/src/components/sidebar-view/index.vue
+++ b/src/components/sidebar-view/index.vue
@@ -39,7 +39,7 @@ function isCurrent(index) {
-
+
diff --git a/src/components/tab-view/index.vue b/src/components/tab-view/index.vue
index 213d25e..5614796 100644
--- a/src/components/tab-view/index.vue
+++ b/src/components/tab-view/index.vue
@@ -3,6 +3,7 @@ import {reactive} from "vue";
import {onLoad} from "@dcloudio/uni-app";
import SidebarView from "@/components/sidebar-view/index.vue"
import Item from "@/components/tab-view/components/item";
+
const props = defineProps({
tabs: {
type: Array,
@@ -58,25 +59,27 @@ onLoad(() => {
-
-
-
-
- {{ item.name }}
- {{data.name}}
+
+
+
+
+
+ {{ item.name }}
+ {{data.name}}
-
-
+
+
-
-
-
-
+
+
+
+
+
@@ -85,5 +88,7 @@ onLoad(() => {
diff --git a/src/manifest.json b/src/manifest.json
index 5493523..ced93b1 100644
--- a/src/manifest.json
+++ b/src/manifest.json
@@ -60,7 +60,9 @@
"scope.userLocation": {
"desc": "你的位置信息将用于小程序位置接口的效果展示" // 高速公路行驶持续后台定位
}
- }
+ },
+ "mergeVirtualHostAttributes": true,
+ "scopedSlotsCompiler": "augmented"
},
"mp-alipay" : {
"usingComponents" : true
diff --git a/src/pages/commodity/commodity.vue b/src/pages/commodity/commodity.vue
index 5fe4654..b604188 100644
--- a/src/pages/commodity/commodity.vue
+++ b/src/pages/commodity/commodity.vue
@@ -2,18 +2,38 @@
-
+
-
+
-
+
+
+
+ {{ data.name }}
+
+
+
+
+
+
+
+
+
+
+
@@ -22,10 +42,13 @@
diff --git a/src/pages/commodity/components/comments/index.vue b/src/pages/commodity/components/comments/index.vue
new file mode 100644
index 0000000..d9d9500
--- /dev/null
+++ b/src/pages/commodity/components/comments/index.vue
@@ -0,0 +1,13 @@
+
+
+
+
+ 评论
+
+
+
+
diff --git a/src/pages/commodity/components/shop-title.vue b/src/pages/commodity/components/shop-title/index.vue
similarity index 100%
rename from src/pages/commodity/components/shop-title.vue
rename to src/pages/commodity/components/shop-title/index.vue