From 7a4b8764b68e0dbaeb90e292a8a4bd47cb379e68 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期一, 27 四月 2026 17:26:02 +0800
Subject: [PATCH] 小程序端和PC端bug修复

---
 small-program/pages/rich-text/rich-text.vue |   42 +++++++++++++++++++++++++++---------------
 1 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/small-program/pages/rich-text/rich-text.vue b/small-program/pages/rich-text/rich-text.vue
index 8337414..6fc183f 100644
--- a/small-program/pages/rich-text/rich-text.vue
+++ b/small-program/pages/rich-text/rich-text.vue
@@ -13,30 +13,42 @@
 			}
 		},
 		onLoad(options) {
-			this.type = options.type || 'about'
+			this.type = Number(options.type || '0')
 			this.getPlatformAboutUs()
 		},
 		methods: {
 			async getPlatformAboutUs() {
 				const res = await this.$u.api.getPlatformAboutUs({ type: this.type })
 				if (res.code === 200) {
-					if (this.type === 'about') {
-						this.content = res.data.aboutUs || ''
-					} else if (this.type === 'protocol') {
-						this.content = res.data.userAgreement || ''
-					} else if (this.type === 'privacy') {
-						this.content = res.data.privacyAgreement || ''
-					} else if (this.type === 'contact') {
-						this.content = res.data.aboutUs || ''
-					} else if (this.type === 'serverIntroduce') {
+					 if (this.type === 0) {
+						this.content = res.data.userServiceAgreement || ''
+					} else if (this.type ===  1) {
+						this.content = res.data.userPrivacyPolicy || ''
+					} else if (this.type === 2) {
+						this.content = res.data.storeCooperationAgreement || ''
+					} else if (this.type ===3) {
+						this.content = res.data.storePrivacyPolicy || ''
+					} else if (this.type === 4) {
 						this.content = res.data.serverIntroduce || ''
+					}  else if (this.type === 5) {
+						this.content = res.data.aboutUs || ''
+					}  else if (this.type === 6) {
+						this.content = res.data.storeRiskCommitment || ''
+					} else if (this.type === 7) {
+						this.content = res.data.storeLuggageStorageNotice || ''
+					} else if (this.type === 8) {
+						this.content = res.data.storeCooperationAgreement || ''
 					}
 					const titleMap = {
-						'about': '鍏充簬鎴戜滑',
-						'protocol': '鐢ㄦ埛鍗忚',
-						'privacy': '闅愮鏀跨瓥',
-						'contact': '鐢ㄦ埛鍗忚',
-						'serverIntroduce': '瑙勮寖椤荤煡'
+						0: '鐢ㄦ埛鏈嶅姟鍗忚',
+						1: '鐢ㄦ埛闅愮鏀跨瓥',
+						2: '闂ㄥ簵鍚堜綔鍗忚',
+						3: '闂ㄥ簵闅愮鏀跨瓥',
+						4: '瑙勮寖椤荤煡',
+						5: '鍏充簬鎴戜滑',
+						6: '椋庨櫓鎵胯',
+						7: '琛屾潕瀵勫瓨椤荤煡',
+						8: '浠g悊鐐瑰悎浣滃崗璁�'
 					}
 					uni.setNavigationBarTitle({
 						title: titleMap[this.type] || '璇︽儏'

--
Gitblit v1.9.3