调整服务协议与隐私政策

This commit is contained in:
唐明明
2023-01-04 15:26:48 +08:00
parent b29f29f005
commit 5dd934729e
4 changed files with 42 additions and 8 deletions

20
apis/interfaces/public.js Normal file
View File

@@ -0,0 +1,20 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 公共的
*/
import { request } from '../index'
// 协议
const cms = id => {
return request({
url : 'cms/pages/' + id,
})
}
export {
cms
}

View File

@@ -2,7 +2,7 @@
"name" : "抖火", "name" : "抖火",
"appid" : "__UNI__C305C03", "appid" : "__UNI__C305C03",
"description" : "", "description" : "",
"versionName" : "1.1.0", "versionName" : "1.1.1",
"versionCode" : "100", "versionCode" : "100",
"transformPx" : false, "transformPx" : false,
/* 5+App */ /* 5+App */

View File

@@ -25,8 +25,8 @@
> >
<u-checkbox shape="circle" name="agreement" activeColor="#446EFE"></u-checkbox> <u-checkbox shape="circle" name="agreement" activeColor="#446EFE"></u-checkbox>
我已阅读并同意 我已阅读并同意
<my-link class="agreement-nav" :to="{name: 'richText', params: {id: 1}}">服务协议</my-link> <my-link class="agreement-nav" :to="{name: 'RichText', params: {id: 1}}">服务协议</my-link>
<my-link class="agreement-nav" :to="{name: 'richText', params: {id: 2}}">隐私权政策</my-link> <my-link class="agreement-nav" :to="{name: 'RichText', params: {id: 2}}">隐私权政策</my-link>
</u-checkbox-group> </u-checkbox-group>
</view> </view>
</view> </view>

View File

@@ -1,25 +1,39 @@
<template> <template>
<view> <view class="richText">
<rich-text :nodes="content"></rich-text>
</view> </view>
</template> </template>
<script> <script>
import { cms } from '@/apis/interfaces/public.js'
export default { export default {
data() { data() {
return { return {
content: ''
}; };
}, },
created() { created() {
console.log(this.$Route.query.id)
uni.setNavigationBarTitle({ uni.setNavigationBarTitle({
title: '服务协议' title: '服务协议'
}) })
cms(this.$Route.query.id).then(res => {
let { content, title } = res
this.content = content;
uni.setNavigationBarTitle({
title
})
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
} }
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.richText{
padding: 30rpx;
}
</style> </style>