From 77b52c06afdb843ee67c6e938afab0458143d76f Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 05 九月 2025 10:48:48 +0800
Subject: [PATCH] 前端
---
small-program/pages/rich-text-page/rich-text-page.vue | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 51 insertions(+), 2 deletions(-)
diff --git a/small-program/pages/rich-text-page/rich-text-page.vue b/small-program/pages/rich-text-page/rich-text-page.vue
index 6bb5967..6f45dfb 100644
--- a/small-program/pages/rich-text-page/rich-text-page.vue
+++ b/small-program/pages/rich-text-page/rich-text-page.vue
@@ -3,16 +3,65 @@
<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.feeStandards||''
+ } 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>
--
Gitblit v1.9.3