调试接口

This commit is contained in:
wangxiaowei
2025-12-25 00:05:32 +08:00
parent b71687e898
commit 434fc0f041
13 changed files with 89 additions and 24 deletions

View File

@ -0,0 +1,36 @@
<!-- 使用 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>