60 lines
1022 B
Vue
60 lines
1022 B
Vue
<template>
|
|
<view>
|
|
<uni-nav-bar leftText=" " :fixed="true" :border="false" leftIcon="back" @clickLeft="leftClick" color="#000000"
|
|
backgroundColor="#fff" :statusBar="true" title="隐私政策"></uni-nav-bar>
|
|
<view class="contents">
|
|
<view class="title">
|
|
{{title}}
|
|
</view>
|
|
<view class="" v-html="content">
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import {
|
|
request,
|
|
showToast
|
|
} from '@/api/apiT.js'
|
|
export default {
|
|
data() {
|
|
return {
|
|
content: '',
|
|
title: ''
|
|
}
|
|
},
|
|
onLoad() {
|
|
this.getcont()
|
|
},
|
|
methods: {
|
|
leftClick() {
|
|
uni.navigateBack({})
|
|
},
|
|
getcont() {
|
|
request({
|
|
url:'common/agreement?type=privacy_policy',
|
|
method:'GET'
|
|
}).then(res => {
|
|
console.log(res.data.data)
|
|
if (res.data.code == 200) {
|
|
this.content = res.data.data.content
|
|
this.title = res.data.data.title
|
|
}
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
.contents {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.title {
|
|
text-align: center;
|
|
font-size: 18px;
|
|
}
|
|
</style> |