Merge branch 'feature/GFRS-2432【需求】金掌柜增加展示防范销售误导小视频' into dev

This commit is contained in:
proudlx
2021-04-27 17:29:39 +08:00

View File

@@ -220,7 +220,7 @@
<van-popup v-model="videoShow" position="bottom" style="height: 100vh; background: #666"> <van-popup v-model="videoShow" position="bottom" style="height: 100vh; background: #666">
<!-- <video controls style="width: 100%; max-height: calc(100vh - 60px)" src="/app/video/rlsb.mp4"></video> --> <!-- <video controls style="width: 100%; max-height: calc(100vh - 60px)" src="/app/video/rlsb.mp4"></video> -->
<div class="" v-if="videoShow" style="height: calc(100vh - 60px); display: flex; align-items: center; flex-flow: column; justify-content: center"> <div class="" v-if="videoShow" style="height: calc(100vh - 60px); display: flex; align-items: center; flex-flow: column; justify-content: center">
<van-notice-bar :scrollable="false" class="notice" style="width: 100%">为维护您的合法权益请您务必观看防范销售误导视频</van-notice-bar> <!-- <van-notice-bar :scrollable="false" class="notice" style="width: 100%">为维护您的合法权益请您务必观看防范销售误导视频</van-notice-bar> -->
<video <video
controls controls
style="width: 100%; max-height: calc(100vh - 60px)" style="width: 100%; max-height: calc(100vh - 60px)"
@@ -230,7 +230,7 @@
></video> ></video>
</div> </div>
<div class="bottom-btn bg-white"> <div class="bottom-btn bg-white">
<van-button type="danger" :disabled="isVideoNext" size="large" @click="isVideoUrlClick()" v-no-more-click="1000">下一步</van-button> <van-button type="danger" size="large" @click="isVideoUrlClick()" v-no-more-click="1000">下一步</van-button>
</div> </div>
</van-popup> </van-popup>
<!-- 短信验证 --> <!-- 短信验证 -->
@@ -279,7 +279,7 @@ export default {
let isWeixin = this.$utils.device().isWeixin //判断环境 let isWeixin = this.$utils.device().isWeixin //判断环境
return { return {
isVideo: false, //是否已阅读视频 isVideo: false, //是否已阅读视频
isVideoNext: true, isVideoNext: false,
videoShow: false, //防误导视频 videoShow: false, //防误导视频
show: false, // 获取短信验证码 show: false, // 获取短信验证码
codeDisabled: false, // 获取验证码按钮是否禁用 codeDisabled: false, // 获取验证码按钮是否禁用
@@ -367,7 +367,7 @@ export default {
timeupdate() { timeupdate() {
console.log(this.$refs['vid'].paused) console.log(this.$refs['vid'].paused)
if (!this.$refs['vid'].paused) { if (!this.$refs['vid'].paused) {
this.isVideoNext = false this.isVideoNext = true
} }
}, },
fakeFaceAuth(expect) { fakeFaceAuth(expect) {
@@ -424,8 +424,20 @@ export default {
}, },
isVideoUrlClick() { isVideoUrlClick() {
console.log(this.isVideoUrl) console.log(this.isVideoUrl)
this.isVideoNext = !this.isVideoNext if (!this.isVideoNext) {
this.isVideoUrl == 'goUrl' ? this.goUrl() : this.insuredUrl() this.$dialog
.alert({
className: 'dialog-alert',
title: '提示',
message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
confirmButtonColor: '#ee0a24',
confirmButtonText: '确认'
})
.then(() => {})
} else {
this.isVideoNext = !this.isVideoNext
this.isVideoUrl == 'goUrl' ? this.goUrl() : this.insuredUrl()
}
}, },
// 初始化 // 初始化
async init() { async init() {
@@ -957,26 +969,27 @@ export default {
getAgentInfo({}).then((res) => { getAgentInfo({}).then((res) => {
console.log(res) console.log(res)
if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) { if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) {
this.$dialog this.$jump({
.alert({ flag: 'navigation',
className: 'dialog-alert', extra: {
title: '提示', title: '防范销售误导',
message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。', hiddenRight: '1'
confirmButtonColor: '#ee0a24', }
confirmButtonText: '确认' })
}) this.videoShow = true
.then(() => { this.isVideo = true
this.$jump({ this.isVideoUrl = 'goUrl'
flag: 'navigation', // this.$nextTick(() => {
extra: { // this.$dialog
title: '防范销售误导', // .alert({
hiddenRight: '1' // className: 'dialog-alert',
} // title: '提示',
}) // message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
this.videoShow = true // confirmButtonColor: '#ee0a24',
this.isVideo = true // confirmButtonText: '确认'
this.isVideoUrl = 'goUrl' // })
}) // .then(() => {})
// })
} else { } else {
let that = this let that = this
let path = '' let path = ''
@@ -1046,26 +1059,27 @@ export default {
console.log(res) console.log(res)
console.log(this.isVideo) console.log(this.isVideo)
if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) { if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) {
this.$dialog this.$jump({
.alert({ flag: 'navigation',
className: 'dialog-alert', extra: {
title: '提示', title: '防范销售误导',
message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。', hiddenRight: '1'
confirmButtonColor: '#ee0a24', }
confirmButtonText: '确认' })
}) this.videoShow = true
.then(() => { this.isVideo = true
this.$jump({ this.isVideoUrl = 'insuredUrl'
flag: 'navigation', // this.$nextTick(() => {
extra: { // this.$dialog
title: '防范销售误导', // .alert({
hiddenRight: '1' // className: 'dialog-alert',
} // title: '提示',
}) // message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
this.videoShow = true // confirmButtonColor: '#ee0a24',
this.isVideo = true // confirmButtonText: '确认'
this.isVideoUrl = 'insuredUrl' // })
}) // .then(() => {})
// })
} else { } else {
let that = this let that = this
let path = '' let path = ''