baodeng_xcx/page_shanghu/about.vue
2025-05-17 08:42:24 +08:00

48 lines
910 B
Vue

<template>
<view class="page">
<u-navbar :title="tit" :border-bottom="false" :background="bgc" back-icon-color="#262B37" title-color='#262B37'
title-size='36' height='36' id="navbar">
</u-navbar>
<view class="" v-html="cont" style="width: 700rpx;margin: auto;">
</view>
</view>
</template>
<script>
export default {
data() {
return {
bgc: {
backgroundColor: "#fff",
},
tit:'',
type:'',
cont:''
}
},
onLoad(option) {
this.tit = option.tit
this.type = option.type
this.getabout()
},
methods: {
getabout(){
this.$u.get(`/app/agreement/agreementByType?appId=1&agreementType=${this.type}`).then(res => {
if (res.code == 200) {
this.cont = res.data.content
}
})
},
}
}
</script>
<style lang="scss">
page {
background: #fff;
}
</style>