From 9fb9e0b5b7c2664552f06a683fe1204525d8fd4e Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 11 二月 2026 15:59:56 +0800
Subject: [PATCH] 合并

---
 mini-program/pagesA/pages/rich-text-page/rich-text-page.vue |   73 ++++++++++++++++++++++++++++++++++++
 1 files changed, 73 insertions(+), 0 deletions(-)

diff --git a/mini-program/pagesA/pages/rich-text-page/rich-text-page.vue b/mini-program/pagesA/pages/rich-text-page/rich-text-page.vue
new file mode 100644
index 0000000..2785a43
--- /dev/null
+++ b/mini-program/pagesA/pages/rich-text-page/rich-text-page.vue
@@ -0,0 +1,73 @@
+<template>
+	<view class="u-content">
+	    <u-parse :content="content"></u-parse>
+	</view>
+</template>
+<script>
+	export default {
+		data() {
+			return {
+				flag:1,
+				title:'',
+				content: ''
+			};
+		},
+		onLoad(options) {
+			console.log(options)
+			var flag = options.flag
+			this.flag = flag
+			this.content =''
+			switch(flag){
+				case '1':
+					this.title = '鏈嶅姟浠嬬粛'
+					break;
+				case '2':
+					this.title = '绉垎瑙勫垯'
+					break;
+				case '3':
+					this.title = '鍏充簬鎴戜滑'
+					break;
+				case '4':
+					this.title = '鐢ㄦ埛鍗忚'
+					break;
+				case '5':
+					this.title = '闅愮鍗忚鏀跨瓥'
+					break; 
+				default:
+					this.flag= 3
+					this.title = '鍏充簬鎴戜滑'
+					break; 
+			}
+			uni.setNavigationBarTitle({
+				title:this.title
+			})
+			this.getContnet()
+		},
+		methods:{
+			getContnet() {
+				var that = this;
+				this.$u.api.getPlatformAboutUs({}).then(res =>{ 
+					if (res&&res.code ===200) { 
+						if(this.flag == 1){
+							that.content = res.data.serverIntroduce||''
+						}else if(this.flag == 2){
+							that.content = res.data.integralRule||''
+						}  else if(this.flag == 4){
+							that.content = res.data.userAgreement||''
+						} else if(this.flag == 5){
+							that.content = res.data.privacyAgreement||''
+						} else{
+							that.content = res.data.aboutUs||''
+						}
+					} 
+				})
+			},
+		}
+	}
+</script>
+
+<style lang="scss" scoped>
+	.u-content {
+		padding: 30rpx;
+	}
+</style>

--
Gitblit v1.9.3