Files
crm-uni/pages/login/agreementuser.vue
T

54 lines
925 B
Vue
Raw Normal View History

2025-03-14 16:55:12 +08:00
<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:'agreement/user',
method:'get',
}).then(res => {
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>