You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
915 B
50 lines
915 B
<template>
|
|
<view class="wrap">
|
|
<view class="stabar"></view>
|
|
<view class="secbar"><label class="back" @click="back()"></label>
|
|
<view class="title">用户协议</view>
|
|
</view>
|
|
<view class="mainwrap2">
|
|
<view class="subwrap">
|
|
<view v-html="content"></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
content:""
|
|
};
|
|
},
|
|
onLoad() {
|
|
this.getAboutContent();
|
|
},
|
|
methods:{
|
|
async getAboutContent() {
|
|
|
|
const {
|
|
data: res
|
|
} = await uni.$http.post('/small/project/text/listAll',{type:1})
|
|
if (!res.success) return uni.$showMsg()
|
|
|
|
res.data.forEach(item=>{
|
|
this.content = item.content
|
|
})
|
|
|
|
// uni.$showMsg('数据请求成功!')
|
|
},
|
|
back(){
|
|
uni.navigateBack({
|
|
delta:1,//返回层数,2则上上页
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import url("@/static/base_css.css");
|
|
</style>
|
|
|