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/unpackage/dist/dev/mp-weixin/pages/rich-text/rich-text.js |   42 +++++++++++++++++++++++++++---------------
 1 files changed, 27 insertions(+), 15 deletions(-)

diff --git a/small-program/unpackage/dist/dev/mp-weixin/pages/rich-text/rich-text.js b/small-program/unpackage/dist/dev/mp-weixin/pages/rich-text/rich-text.js
index 91c30a4..76f63d0 100644
--- a/small-program/unpackage/dist/dev/mp-weixin/pages/rich-text/rich-text.js
+++ b/small-program/unpackage/dist/dev/mp-weixin/pages/rich-text/rich-text.js
@@ -158,7 +158,7 @@
     };
   },
   onLoad: function onLoad(options) {
-    this.type = options.type || 'about';
+    this.type = Number(options.type || '0');
     this.getPlatformAboutUs();
   },
   methods: {
@@ -177,23 +177,35 @@
               case 2:
                 res = _context.sent;
                 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 || '';
                   }
                   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