调整服务协议与隐私政策
This commit is contained in:
@@ -25,8 +25,8 @@
|
||||
>
|
||||
<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: 2}}">隐私权政策</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>
|
||||
</u-checkbox-group>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,25 +1,39 @@
|
||||
<template>
|
||||
<view>
|
||||
|
||||
<view class="richText">
|
||||
<rich-text :nodes="content"></rich-text>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { cms } from '@/apis/interfaces/public.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
content: ''
|
||||
};
|
||||
},
|
||||
created() {
|
||||
console.log(this.$Route.query.id)
|
||||
uni.setNavigationBarTitle({
|
||||
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>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
.richText{
|
||||
padding: 30rpx;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user