36 lines
934 B
Vue
36 lines
934 B
Vue
<!-- 使用 type="home" 属性设置首页,其他页面不需要设置,默认为page -->
|
||
<route lang="jsonc" type="page">{
|
||
"layout": "tabbar",
|
||
"style": {
|
||
// 'custom' 表示开启自定义导航栏,默认 'default'
|
||
"navigationStyle": "custom"
|
||
}
|
||
}</route>
|
||
|
||
<template>
|
||
<view class="">
|
||
<web-view :src="src"></web-view>
|
||
</view>
|
||
</template>
|
||
|
||
<script lang="ts" setup>
|
||
const src = ref<string>('')
|
||
|
||
onLoad((args) => {
|
||
switch (args.type) {
|
||
case 'service':
|
||
// 服务协议
|
||
src.value = 'https://76458.com/yhxy.html'
|
||
break
|
||
case 'privacy':
|
||
// 隐私政策
|
||
src.value = 'https://76458.com/yszc.html'
|
||
break
|
||
default:
|
||
break
|
||
}
|
||
// if (options.type) {
|
||
// src.value = decodeURIComponent(options.url as string)
|
||
// }
|
||
})
|
||
</script> |