mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 16:36:45 +08:00
Merge branch 'feature/GFRS-1623【待确定】隐私政策' into release/0807
This commit is contained in:
@@ -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
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
48
src/views/ebiz/my/PrivacyPolicy.vue
Normal file
48
src/views/ebiz/my/PrivacyPolicy.vue
Normal 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>
|
||||||
Reference in New Issue
Block a user