登录页面图片验证处理
This commit is contained in:
39
pages/mission/webview/webview.vue
Normal file
39
pages/mission/webview/webview.vue
Normal file
@@ -0,0 +1,39 @@
|
||||
<template>
|
||||
<view>
|
||||
<web-view :src="src" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getVideoUrl
|
||||
} from '@/apis/interfaces/mission.js'
|
||||
import eventBus from '@/utils/eventBus.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
src:''
|
||||
};
|
||||
},
|
||||
onLoad(e) {
|
||||
this.id = e.id;
|
||||
getVideoUrl(e.id).then(res => {
|
||||
this.src = res
|
||||
}).catch(res => {
|
||||
uni.showModal({
|
||||
title: '视频播放出错',
|
||||
confirmText: '立即返回',
|
||||
showCancel: false,
|
||||
success: (res) => {
|
||||
uni.navigateBack()
|
||||
}
|
||||
})
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user