|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="page" :style="{'min-height':h+'px'}">
|
|
|
- <image :src="$imageUrl('2322ddce87aa42e7b4906e4286c7ffe1.png')" mode="widthFix" @click="handleHome"></image>
|
|
|
+ <web-view v-if="src" :src="src" @error="handleWebViewError"></web-view>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -8,10 +8,12 @@
|
|
|
export default {
|
|
|
data(){
|
|
|
return {
|
|
|
-
|
|
|
+ src: '',
|
|
|
+ h: 0
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
+ this.src = this.$htmlUrl('PERILL团队评估欢迎页.html')
|
|
|
this.handleLaunchOrShow(options)
|
|
|
},
|
|
|
methods:{
|
|
|
@@ -36,6 +38,12 @@
|
|
|
uni.reLaunch({
|
|
|
url:'/pages/home'
|
|
|
})
|
|
|
+ },
|
|
|
+ handleWebViewError(){
|
|
|
+ uni.showToast({
|
|
|
+ title: '欢迎页加载失败',
|
|
|
+ icon: 'none'
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -48,4 +56,4 @@
|
|
|
width: 100%;
|
|
|
}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|