新增功能: webview浏览器更新
This commit is contained in:
parent
3ec2b3fbdb
commit
973f7c82f2
@ -312,6 +312,15 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/webview/webview",
|
||||||
|
"type": "page",
|
||||||
|
"layout": "default",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "h5小程序",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/mall/index/index",
|
"path": "pages/mall/index/index",
|
||||||
"aliasPath": "/mall",
|
"aliasPath": "/mall",
|
||||||
|
24
acdr-ui/src/pages/webview/webview.vue
Normal file
24
acdr-ui/src/pages/webview/webview.vue
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<route lang="json5" type="page">
|
||||||
|
{
|
||||||
|
layout: 'default',
|
||||||
|
style: {
|
||||||
|
navigationBarTitleText: 'h5小程序',
|
||||||
|
navigationStyle: 'custom',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
</route>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<view class="webview">
|
||||||
|
<web-view :src="path" />
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script lang="js" setup>
|
||||||
|
const path = ref('')
|
||||||
|
onLoad((options) => {
|
||||||
|
path = options.path || ''
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped></style>
|
1
acdr-ui/src/types/uni-pages.d.ts
vendored
1
acdr-ui/src/types/uni-pages.d.ts
vendored
@ -43,6 +43,7 @@ interface NavigateToOptions {
|
|||||||
"/pages/service/store" |
|
"/pages/service/store" |
|
||||||
"/pages/settings/index" |
|
"/pages/settings/index" |
|
||||||
"/pages/space/index" |
|
"/pages/space/index" |
|
||||||
|
"/pages/webview/webview" |
|
||||||
"/pages/mall/index/index" |
|
"/pages/mall/index/index" |
|
||||||
"/pages/mall/index/user" |
|
"/pages/mall/index/user" |
|
||||||
"/pages/mall/index/category" |
|
"/pages/mall/index/category" |
|
||||||
|
Loading…
Reference in New Issue
Block a user