隐私政策 用户协议
This commit is contained in:
parent
8dc8dc981f
commit
2ec742414e
20
api/login.js
20
api/login.js
|
|
@ -66,5 +66,25 @@ export const regionList = (query) => {
|
|||
})
|
||||
}
|
||||
|
||||
// 用户协议
|
||||
export const protocolUser = (query) => {
|
||||
return apiResquest({
|
||||
url: 'v1/protocol.user',
|
||||
method: 'get',
|
||||
query: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
// 隐私政策
|
||||
export const protocolPrivacy = (query) => {
|
||||
return apiResquest({
|
||||
url: 'v1/protocol.privacy',
|
||||
method: 'get',
|
||||
query: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -186,6 +186,15 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
{ // 新鲜事/话题/分类
|
||||
"path": "pages/mine/protocol",
|
||||
"style": {
|
||||
"navigationBarTitleText": "",
|
||||
"app-plus": {
|
||||
"bounce": "none"
|
||||
}
|
||||
}
|
||||
},
|
||||
{ // 新鲜事/话题/详情
|
||||
"path": "pages/news/news-topic-detail",
|
||||
"style": {
|
||||
|
|
|
|||
|
|
@ -87,6 +87,16 @@
|
|||
icon: 'iconshezhi1',
|
||||
name: '修改资料',
|
||||
url: 'set'
|
||||
},
|
||||
{
|
||||
icon: 'iconrenzheng',
|
||||
name: '用户协议',
|
||||
url: 'user'
|
||||
},
|
||||
{
|
||||
icon: 'iconrenzheng',
|
||||
name: '隐私政策',
|
||||
url: 'privacy'
|
||||
}
|
||||
],
|
||||
userInfo: {},
|
||||
|
|
@ -132,11 +142,11 @@
|
|||
case 'set':
|
||||
this.$u.route('/pages/mine/edit-info')
|
||||
break;
|
||||
case 'file2':
|
||||
this.downloadFile(this.flieList.file2)
|
||||
case 'user':
|
||||
this.$u.route('/pages/mine/protocol?type=user')
|
||||
break;
|
||||
case 'file1':
|
||||
this.downloadFile(this.flieList.file1)
|
||||
case 'privacy':
|
||||
this.$u.route('pages/mine/protocol?type=privacy')
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -0,0 +1,49 @@
|
|||
<template>
|
||||
<view style="width: 90%; margin: 0 auto;">
|
||||
<u-parse :content="detail"></u-parse>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
protocolUser,
|
||||
protocolPrivacy
|
||||
} from '@/api/login.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
type: '',
|
||||
detail: ''
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
this.type = options.type
|
||||
if (this.type == 'user') {
|
||||
this.getProtocolUser()
|
||||
uni.setNavigationBarTitle({
|
||||
title: '用户协议'
|
||||
})
|
||||
} else {
|
||||
this.getProtocolPrivacy()
|
||||
uni.setNavigationBarTitle({
|
||||
title: '隐私政策'
|
||||
})
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getProtocolUser() {
|
||||
protocolUser().then(res => {
|
||||
this.detail = res.data.content
|
||||
})
|
||||
},
|
||||
getProtocolPrivacy() {
|
||||
protocolPrivacy().then(res => {
|
||||
this.detail = res.data.content
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Loading…
Reference in New Issue