调整服务协议与隐私政策
This commit is contained in:
20
apis/interfaces/public.js
Normal file
20
apis/interfaces/public.js
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
/**
|
||||
* Web唐明明
|
||||
* 匆匆数载恍如梦,岁月迢迢华发增。
|
||||
* 碌碌无为枉半生,一朝惊醒万事空。
|
||||
* moduleName: 公共的
|
||||
*/
|
||||
|
||||
import { request } from '../index'
|
||||
|
||||
// 协议
|
||||
const cms = id => {
|
||||
return request({
|
||||
url : 'cms/pages/' + id,
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
cms
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
"name" : "抖火",
|
||||
"appid" : "__UNI__C305C03",
|
||||
"description" : "",
|
||||
"versionName" : "1.1.0",
|
||||
"versionName" : "1.1.1",
|
||||
"versionCode" : "100",
|
||||
"transformPx" : false,
|
||||
/* 5+App特有相关 */
|
||||
|
||||
@@ -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