Merge branch 'prd' of http://112.124.100.131/GFRS/ebiz-h5 into hotfix_Electric

This commit is contained in:
wangmingzhe
2019-12-19 16:29:19 +08:00
2 changed files with 50 additions and 3 deletions

44
public/appDownload.html Normal file
View File

@@ -0,0 +1,44 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>金掌桂-应用下载</title>
<style>
.android_bg {
height: 100%;
background-color: #000;
}
#coverImg {
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<img id="coverImg" src="" alt="" />
<script>
var userAgent = navigator.userAgent
var isAndroid = /android/gi.test(userAgent)
var isIDevice = /iphone|ipad/gi.test(userAgent)
var URL = {
android_download_url: 'https://iagentsales-sr.e-guofu.com:8443/gfrs/apk/GfLife.apk',
ios_download_url: 'https://apps.apple.com/cn/app/id1483906479'
}
if (isAndroid) {
location.replace(URL.android_download_url)
document.body.setAttribute('class', 'android_bg')
var coverImg = document.getElementById('coverImg')
coverImg.src = 'https://mobile.dingchenglife.com.cn:7001/images/cover_bg.png'
} else if (isIDevice) {
location.replace(URL.ios_download_url)
}
</script>
</body>
</html>

View File

@@ -27,13 +27,13 @@
<van-radio-group v-model="radio" class="pb10 pt20 pl30 fs14" v-if="!dayShow && chooseProductCodes[0] == 'GFRS_M0011'">
<van-radio name="1" @click="click" class="ml-25 pl10 pr10">
本人确认已阅读
<span>国富人寿人身保险投保单并指定本保险合同生效日为2020年1月1日</span>
<span>{{`${pdfName}并指定本保险合同生效日为2020年1月1日`}}</span>
</van-radio>
</van-radio-group>
<van-radio-group v-model="radio" class="pb10 pt20 pl30 fs14" v-else>
<van-radio name="1" @click="click">
本人确认已阅读
<span>国富人寿人身保险投保单</span>
<span>{{`${pdfName}`}}</span>
</van-radio>
</van-radio-group>
<div class="pt20 pl30 flex align-items-c">
@@ -152,7 +152,9 @@ export default {
// 判断时间展示不同pdf勾选不同话术
dayShow: false,
// 产品编码
chooseProductCodes: ''
chooseProductCodes: '',
// pdf名字
pdfName: ''
}
},
components: {
@@ -190,6 +192,7 @@ export default {
res.orderDTO.ebizSignDTOS.map(item => {
if (item.documentCode == '2') {
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${item.policyUrl}`)
this.pdfName = item.documentName
if (item.signType == '0') {
that.appntSign = item
// this.policyUrl = item.policyUrl