新生报到移动端V1.0
This commit is contained in:
22
pages/common/webview.vue
Normal file
22
pages/common/webview.vue
Normal file
@@ -0,0 +1,22 @@
|
||||
<template>
|
||||
<web-view :src="pageUrl"></web-view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pageUrl: ''
|
||||
}
|
||||
},
|
||||
onLoad(item) {
|
||||
this.pageUrl = decodeURIComponent(item.pageUrl)
|
||||
console.log(this.pageUrl)
|
||||
// 传入需要跳转的链接 使用web-view标签进行跳转
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user