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.
|
|
<template> <view class="main"> <web-view :src="url"></web-view> </view> </template>
<script> import indexApi from '@/api/index.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 [nulls, res] = await indexApi.getAgreement() if(this.type==1) { this.url = res.data.privacyAgreementUrl }else { this.url = res.data.useAgreementUrl } } } } </script>
<style> </style>
|