From b0712811a0421dd3d4bc6ea03c54b7b39096439e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期六, 28 二月 2026 18:27:42 +0800
Subject: [PATCH] 提交

---
 mini-program/pages/details/details.vue |   21 ++++++++++++++++++++-
 1 files changed, 20 insertions(+), 1 deletions(-)

diff --git a/mini-program/pages/details/details.vue b/mini-program/pages/details/details.vue
index cdd2378..26b24f5 100644
--- a/mini-program/pages/details/details.vue
+++ b/mini-program/pages/details/details.vue
@@ -21,7 +21,9 @@
 		</view>
 		<view class="content">
 			<view class="content-label">鍟嗗搧璇︽儏</view>
-			<view class="content-val" v-html="info.content"></view>
+			<view class="content-val">
+				<u-parse :content="info.content"></u-parse>
+			</view>
 		</view>
 		<view style="width: 100%; height: calc(env(safe-area-inset-bottom) + 108rpx);"></view>
 		<view class="footer">
@@ -50,6 +52,7 @@
 			</view>
 			<view style="width: 100%; height: env(safe-area-inset-bottom);"></view>
 		</view>
+		<Login ref="login" />
 	</view>
 </template>
 
@@ -80,6 +83,10 @@
 		},
 		methods: {
 			shoucang() {
+				if (!this.userInfo) {
+					this.$refs.login.open()
+					return
+				}
 				if (this.info.collectStatus === 1) {
 					this.$u.api.cancelbatch({ ids: this.info.id })
 						.then(res => {
@@ -97,6 +104,10 @@
 				}
 			},
 			submit() {
+				if (!this.userInfo) {
+					this.$refs.login.open()
+					return
+				}
 				let shop = [
 					{
 						goodsNum: 1,
@@ -109,6 +120,10 @@
 				})
 			},
 			addCard(e) {
+				if (!this.userInfo) {
+					this.$refs.login.open()
+					return
+				}
 				this.$u.api.addCart({
 					goodsId: e.id,
 					goodsSkuId: e.skuResponsesList[0].id,
@@ -121,6 +136,10 @@
 				})
 			},
 			toCard() {
+				if (!this.userInfo) {
+					this.$refs.login.open()
+					return
+				}
 				uni.navigateTo({
 					url: '/pages/shopping-cart/shopping-cart'
 				})

--
Gitblit v1.9.3