洛阳学员端
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.
 
 
 
 
 

43 lines
745 B

<template>
<view class="main">
<web-view :src="url"></web-view>
</view>
</template>
<script>
import { getAgreement } from '@/config/api.js'
export default {
data() {
return {
type: 1,
url: ''
}
},
onLoad(options) {
this.type = options.type
// if(this.type==1) {
// uni.setNavigationBarTitle({
// title: '隐私政策'
// })
// }else {
// uni.setNavigationBarTitle({
// title: '用户使用协议'
// })
// }
this.getAgreementFn()
},
methods: {
async getAgreementFn() {
const {data: res} = await getAgreement()
if(this.type==1) {
this.url = res.privacyAgreementUrl
}else {
this.url = res.useAgreementUrl
}
}
}
}
</script>
<style>
</style>