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

This commit is contained in:
proudlx
2021-04-23 17:42:11 +08:00

View File

@@ -219,11 +219,11 @@
</div> </div>
<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;"> <div class="" v-if="videoShow" style="height: calc(100vh - 60px); display: flex; align-items: center">
<video controls style="width: 100%; max-height: calc(100vh - 60px)" :src="this.$assetsUrl + 'video/rlsb.mp4'"></video> <video controls style="width: 100%; max-height: calc(100vh - 60px)" :src="this.$assetsUrl + 'video/rlsb.mp4'"></video>
</div> </div>
<div class="bottom-btn bg-white"> <div class="bottom-btn bg-white">
<van-button type="danger" size="large" @click="goUrl" v-no-more-click="1000">下一步</van-button> <van-button type="danger" size="large" @click="isVideoUrl == 'goUrl' ? goUrl():insuredUrl()" v-no-more-click="1000">下一步</van-button>
</div> </div>
</van-popup> </van-popup>
<!-- 短信验证 --> <!-- 短信验证 -->
@@ -282,6 +282,7 @@ export default {
operaFlag: null, operaFlag: null,
encyCustomerMobile: null, encyCustomerMobile: null,
sid: null, sid: null,
isVideoUrl:'',
//人脸识别认证次数 //人脸识别认证次数
faceAuthCount: { faceAuthCount: {
appnt: 0, appnt: 0,
@@ -924,6 +925,7 @@ export default {
}) })
this.videoShow = true this.videoShow = true
this.isVideo = true this.isVideo = true
this.isVideoUrl = 'goUrl'
} else { } else {
let that = this let that = this
let path = '' let path = ''
@@ -980,21 +982,45 @@ export default {
}) })
}, },
insuredUrl() { insuredUrl() {
let that = this this.$toast.loading({
let path = '' // 持续展示 toast
if (that.insuredSign[0].documentStatus == 0) { duration: 0,
path = 'insuranceInformation' // 禁用背景点击s
} else { forbidClick: true,
path = 'SignatureOfElectronic' loadingType: 'spinner',
} message: '获取信息中……',
that.$jump({ })
flag: 'h5', getAgentInfo({}).then((res) => {
extra: { console.log(res)
url: location.origin + '/#/sale/' + path, if ((res.branchType == 'N1' || res.branchType == '1') && !this.isVideo) {
}, this.$jump({
routerInfo: { flag: 'navigation',
path: '/sale/' + path, extra: {
}, title: '防范销售误导',
hiddenRight: '1',
},
})
this.videoShow = true
this.isVideo = true
this.isVideoUrl = 'insuredUrl'
} else {
let that = this
let path = ''
if (that.insuredSign[0].documentStatus == 0) {
path = 'insuranceInformation'
} else {
path = 'SignatureOfElectronic'
}
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/' + path,
},
routerInfo: {
path: '/sale/' + path,
},
})
}
}) })
}, },
toTest() {}, toTest() {},