57 lines
1020 B
Vue
57 lines
1020 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=user_agreement',
|
|
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>
|