Merge branch 'feature/GFRS-1623【待确定】隐私政策' into release/0807

This commit is contained in:
heweijie
2020-08-07 18:24:09 +08:00
3 changed files with 69 additions and 0 deletions

View File

@@ -46,3 +46,13 @@ export function getAgentIncome(data) {
data data
}) })
} }
//获取隐私政策
export function queryPrivacy(data) {
return request({
// url: getUrl('/agent/income/info', 0),
url: getUrl('/customer/privacy/query', 1),
method: 'post',
data
})
}

View File

@@ -3,6 +3,7 @@ const userCenter = () => import('@/views/ebiz/my/UserCenter')
const userSetting = () => import('@/views/ebiz/my/UserSetting') const userSetting = () => import('@/views/ebiz/my/UserSetting')
const userInfo = () => import('@/views/ebiz/my/UserInfo') const userInfo = () => import('@/views/ebiz/my/UserInfo')
const userIncome = () => import('@/views/ebiz/my/UserIncome') const userIncome = () => import('@/views/ebiz/my/UserIncome')
const PrivacyPolicy = () => import('@/views/ebiz/my/PrivacyPolicy')
export default [ export default [
{ {
@@ -40,5 +41,15 @@ export default [
title: '个人收入', title: '个人收入',
index: 4 index: 4
} }
},
{
//隐私政策
path: '/my/privacyPolicy',
name: 'PrivacyPolicy',
component: PrivacyPolicy,
meta: {
title: '金掌桂隐私政策',
index: 1
}
} }
] ]

View File

@@ -0,0 +1,48 @@
<template>
<div class="privacy-policy-container">
<div v-html="privacyContent"></div>
</div>
</template>
<script>
import { queryPrivacy } from '@/api/ebiz/my/my'
export default {
name: 'PrivacyPolicy',
data() {
return {
privacyContent: '' //隐私条款政策
}
},
mounted() {
document.getElementsByTagName('body')[0].classList.add('bg-white')
this.getPrivacy()
},
beforeDestroyed() {
document.getElementsByTagName('body')[0].classList.remove('bg-white')
},
methods: {
//获取隐私条款内容
getPrivacy() {
queryPrivacy({
type: 0
}).then(res => {
if (res.result == '0') {
this.privacyContent = res.content.privacyContent
// eslint-disable-next-line
EWebBridge.webCallAppInJs('navigation', {
title: res.content.title
})
} else {
this.$toast(res.resultMessage)
}
})
}
}
}
</script>
<style lang="scss" scoped>
.privacy-policy-container {
padding: 10px 10px 10px 12px;
}
</style>