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.
41 lines
661 B
41 lines
661 B
<template>
|
|
<view class="main">
|
|
<web-view :src="url"></web-view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
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() {
|
|
if(this.type==1) {
|
|
this.url = 'http://www.jakjgs.com/htmls/yszc.html'
|
|
}else {
|
|
this.url = 'http://www.jakjgs.com/htmls/yhxy.html'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style>
|
|
</style>
|