mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-07 13:36:43 +08:00
Compare commits
7 Commits
release/【2
...
feature/FC
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff4cf2abd0 | ||
|
|
e17addb02d | ||
|
|
b1f3eab2b4 | ||
|
|
4d0823bd60 | ||
|
|
2e15f71b7d | ||
|
|
c136b1f4ca | ||
|
|
e1953900c9 |
29
src/App.vue
29
src/App.vue
@@ -28,13 +28,30 @@ export default {
|
||||
},
|
||||
created () {
|
||||
// 在页面加载时读取sessionStorage
|
||||
if (sessionStorage.getItem('store')) {
|
||||
this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))))
|
||||
// if (sessionStorage.getItem('store')) {
|
||||
// this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))))
|
||||
// }
|
||||
// // 在页面刷新时将store保存到sessionStorage里
|
||||
// window.addEventListener('beforeunload', () => {
|
||||
// sessionStorage.setItem('store', JSON.stringify(this.$store.state))
|
||||
// })
|
||||
//ios刷新时vuex信息保留
|
||||
let isiOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
||||
if (isiOS) {
|
||||
//在页面刷新时将vuex里的信息保存到缓存里
|
||||
window.addEventListener("pagehide", () => {
|
||||
localStorage.setItem("store", JSON.stringify(this.$store.state))
|
||||
})
|
||||
//在页面加载时读取localStorage里的状态信息
|
||||
localStorage.getItem("store") && this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(localStorage.getItem("store"))));
|
||||
} else {
|
||||
//在页面刷新时将vuex里的信息保存到缓存里
|
||||
window.addEventListener("beforeunload", () => {
|
||||
localStorage.setItem("store", JSON.stringify(this.$store.state))
|
||||
})
|
||||
//在页面加载时读取localStorage里的状态信息
|
||||
localStorage.getItem("store") && this.$store.replaceState(Object.assign(this.$store.state,JSON.parse(localStorage.getItem("store"))));
|
||||
}
|
||||
// 在页面刷新时将store保存到sessionStorage里
|
||||
window.addEventListener('beforeunload', () => {
|
||||
sessionStorage.setItem('store', JSON.stringify(this.$store.state))
|
||||
})
|
||||
},
|
||||
mounted(){
|
||||
},
|
||||
|
||||
@@ -362,4 +362,12 @@ export function getDoubleRecordProductLst(data) {
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export function appntIsAgent(data) {
|
||||
return request({
|
||||
url: getUrl('/sale/insure/appntIsAgent', 1),
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
* @Description:
|
||||
* @FilePath: \ebiz-h5\src\config\index.js
|
||||
*/
|
||||
import YB_agentSign from "../router/ebiz/YB_agentSign";
|
||||
|
||||
/**
|
||||
* 配置编译环境和线上环境之间的切换
|
||||
* 默认三套环境,可以增添
|
||||
@@ -13,7 +15,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl, REQ_PWD, CACHE_ENCRYP, API_VERSION, assetsUpUrl, YB_APP // 保融支付的收银台服务地址
|
||||
let apiDomain, imgDomain, assetsUrl, mainUrl, payUrl, zssqUrl, REQ_PWD, CACHE_ENCRYP, API_VERSION, YB_agenturl, assetsUpUrl, YB_APP // 保融支付的收银台服务地址
|
||||
function getSearchString (key) {
|
||||
var str = window.location.href.split('?')[1]
|
||||
str = str.substring(1, str.length) // 获取URL中?之后的字符(去掉第一位的问号)
|
||||
@@ -68,6 +70,7 @@ switch (process.env.VUE_APP_FLAG) {
|
||||
// YB_APP = 'http://10.10.100.98:7001'
|
||||
// YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/v1'
|
||||
YB_APP = 'https://iagentsales-test2.e-guofu.com:5200/api/' + apiVersion
|
||||
YB_agenturl ='https://iagentsales-test2.e-guofu.com:443'
|
||||
API_VERSION = apiVersion
|
||||
break
|
||||
case 'uat':
|
||||
@@ -91,6 +94,7 @@ switch (process.env.VUE_APP_FLAG) {
|
||||
// 上传影像地址 挂载共享盘 地址
|
||||
assetsUpUrl = 'https://iagentsales.e-guofu.com'
|
||||
mainUrl = 'https://iagentsales.e-guofu.com'
|
||||
YB_agenturl = 'https://iagentsales.e-guofu.com'
|
||||
payUrl = 'https://uns3.e-guofu.com/s3-modules-gateway/embed/gateway.action'
|
||||
zssqUrl = ''
|
||||
REQ_PWD = '41424344454631323334353637383930'
|
||||
@@ -130,6 +134,7 @@ export default {
|
||||
assetsUpUrl,
|
||||
mainUrl,
|
||||
payUrl,
|
||||
YB_agenturl,
|
||||
zssqUrl, //知识社区地址
|
||||
REQ_PWD, //报文加密密码
|
||||
CACHE_ENCRYP, //缓存加密密码
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
// this.pdfUrl = config.assetsUpUrl + res.content.rgssUrl
|
||||
//实例化
|
||||
this.pdfh5 = new Pdfh5("#pdfH5ID", {
|
||||
pdfurl: config.assetsUpUrl + res.content.rgssUrl,
|
||||
pdfurl: config.YB_agenturl + res.content.rgssUrl,
|
||||
// pdfurl: 'https://iagentsales-test2.e-guofu.com/opt/ebiz/webapps/ebiz-epolicy/pdf/2023/08/09/1000001078372351/1000001078372351.pdf',
|
||||
lazy:false,
|
||||
scale:1
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
class="attachmentManagement-next"
|
||||
size="large"
|
||||
:disabled="isDisabled"
|
||||
@click="next"
|
||||
@click="appntIsAgent"
|
||||
@touchstart="beforeNext(isDisabled)"
|
||||
v-no-more-click="1000"
|
||||
>立即投保</van-button
|
||||
@@ -148,7 +148,7 @@ import { Cell, CellGroup, Field, Uploader, RadioGroup, Radio, Dialog, Picker, Po
|
||||
import { cardOrderDetail,saveOrUpdateGroupCard } from '@/api/ebiz/cardList/cardList.js'
|
||||
import config from '@/config'
|
||||
import utils from '../../../assets/js/business-common'
|
||||
import { underWrite } from '@/api/ebiz/sale/sale'
|
||||
import { underWrite, appntIsAgent } from '@/api/ebiz/sale/sale'
|
||||
import { uploadImg, IDCardOCR } from '@/api/ebiz/sale/sale'
|
||||
|
||||
|
||||
@@ -1037,6 +1037,35 @@ export default {
|
||||
}
|
||||
});
|
||||
},
|
||||
appntIsAgent(){
|
||||
let params = {
|
||||
orderNo: this.cardOrderNo
|
||||
}
|
||||
appntIsAgent(params).then(res=>{
|
||||
if(res.result == '0') {
|
||||
if(res.content.isAgengFlag == '0') {
|
||||
this.$dialog.confirm({
|
||||
className: 'dialog-delete',
|
||||
title: '提示',
|
||||
message: '投保人/法人同时为代理人,此代理人费用为0。(虚拟账号的提示虚拟代理人费用为0。)请确认提交审核或者退回修改!',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF',
|
||||
cancelButtonText: '退回'
|
||||
})
|
||||
.then(() => {
|
||||
this.next()
|
||||
})
|
||||
.catch(() => {
|
||||
return
|
||||
})
|
||||
} else {
|
||||
this.next()
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 点击下一步
|
||||
next() {
|
||||
|
||||
@@ -579,7 +579,7 @@ import CustomerPicker from '@/components/ebiz/customer/CustomerPicker'
|
||||
import DataDictionary from '@/assets/js/utils/data-dictionary'
|
||||
import areaList from '@/assets/js/utils/areaForSale'
|
||||
import { getProductInfo,saveOrUpdateCard,insureTrial } from '@/api/ebiz/cardList/cardList.js'
|
||||
import { underWrite } from '@/api/ebiz/sale/sale'
|
||||
import { underWrite, appntIsAgent } from '@/api/ebiz/sale/sale'
|
||||
import utilsAge from '@/assets/js/utils/age'
|
||||
import getAreaName from '@/assets/js/utils/getAreaNameForSale'
|
||||
import IdentityCardScan from '@/components/ebiz/sale/IdentityCardScan'
|
||||
@@ -1097,6 +1097,35 @@ export default {
|
||||
this.areaCode = this.insuredInfo.homeArea
|
||||
}
|
||||
},
|
||||
appntIsAgent(orderNo){
|
||||
let params = {
|
||||
orderNo: orderNo
|
||||
}
|
||||
appntIsAgent(params).then(res=>{
|
||||
if(res.result == '0') {
|
||||
if(res.content.isAgengFlag == '0') {
|
||||
this.$dialog.confirm({
|
||||
className: 'dialog-delete',
|
||||
title: '提示',
|
||||
message: '投保人/法人同时为代理人,此代理人费用为0。(虚拟账号的提示虚拟代理人费用为0。)请确认提交审核或者退回修改!',
|
||||
cancelButtonColor: '#E9332E',
|
||||
confirmButtonColor: '#FFFFFF',
|
||||
cancelButtonText: '退回'
|
||||
})
|
||||
.then(() => {
|
||||
this.underWrite(orderNo)
|
||||
})
|
||||
.catch(() => {
|
||||
return
|
||||
})
|
||||
} else {
|
||||
this.underWrite(orderNo)
|
||||
}
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
underWrite(orderNo) {
|
||||
let data = {
|
||||
platform: 'app',
|
||||
@@ -2401,8 +2430,8 @@ export default {
|
||||
// console.log(this.userInfo)
|
||||
|
||||
let orderNo = (localStorage.orderNo = resultData.content.object)
|
||||
|
||||
this.underWrite(orderNo)
|
||||
this.appntIsAgent(orderNo)
|
||||
// this.underWrite(orderNo)
|
||||
} else {
|
||||
console.error(resultData.resultMessage)
|
||||
this.$toast(resultData.resultMessage)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user