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.
jiansheng/pages/user/userxy/userxy.vue

61 lines
918 B

5 months ago
<template>
<view>
<view class="content" v-html="content"></view>
4 months ago
{{title}}
5 months ago
</view>
</template>
<script>
export default {
data() {
return {
content:'',
title:'',
xy:''
}
},
onLoad(e) {
this.xy=e.xy
if(e.xy=='yonghu'){
4 months ago
this.title='服务协议'
5 months ago
}else{
this.title='隐私协议'
}
},
onReady() {
//新的标题
uni.setNavigationBarTitle({
title:this.title
})
},
onShow() {
4 months ago
// if(this.xy=='yonghu'){
// this.memberAgreement()
// }else{
// this.memberPrivacy()
// }
5 months ago
},
methods: {
memberPrivacy(){
this.$api.memberPrivacy().then(res=>{
console.log(7,res);
this.content=res.data.content
})
},
memberAgreement(){
this.$api.memberAgreement().then(res=>{
console.log(7,res);
this.content=res.data.content
})
}
}
}
</script>
<style scoped>
.content{
padding: 20rpx;
}
</style>