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

58 lines
840 B

8 months ago
<template>
<view>
8 months ago
<view v-html="content"></view>
8 months ago
</view>
</template>
<script>
export default {
data() {
return {
8 months ago
content:'',
title:'',
xy:''
8 months ago
}
},
8 months ago
onLoad(e) {
this.xy=e.xy
if(e.xy=='yonghu'){
this.title='用户协议'
}else{
this.title='隐私协议'
}
},
onReady() {
//新的标题
uni.setNavigationBarTitle({
title:this.title
})
},
onShow() {
if(this.xy=='yonghu'){
this.memberAgreement()
}else{
this.memberPrivacy()
}
8 months ago
8 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
})
}
8 months ago
}
}
</script>
<style>
</style>