mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-15 21:06:44 +08:00
【GFRS-3645】生成电子合同接口对接 接口封装的token拦截方法修改
This commit is contained in:
@@ -16,4 +16,13 @@ export function putContractInfo(data) {
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
data
|
data
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 生成电子合同pdf
|
||||||
|
export function generateAgreementYB(data) {
|
||||||
|
return request({
|
||||||
|
url: getUrl('/agent/enterYB/generateAgreementYB', 1),
|
||||||
|
method: 'post',
|
||||||
|
data
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@@ -220,7 +220,7 @@ service.interceptors.request.use(
|
|||||||
let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //判断是否是 android终端
|
let isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //判断是否是 android终端
|
||||||
if (isAndroid) {
|
if (isAndroid) {
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
if (window.location.hash !== '#/my/privacyPolicy') {
|
if (window.location.hash !== '#/my/privacyPolicy' && window.location.hash !== '#/YB_agentSign/step1' && window.location.hash !== '#/YB_agentSign/step2') {
|
||||||
console.log(window.Android.getToken(), 'Android获取token')
|
console.log(window.Android.getToken(), 'Android获取token')
|
||||||
CacheUtils.setLocItem('token', window.Android.getToken())
|
CacheUtils.setLocItem('token', window.Android.getToken())
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export default new Vuex.Store({
|
|||||||
answerType: false,//风险测评tab是否显示
|
answerType: false,//风险测评tab是否显示
|
||||||
YBidNo: '', //银保代理人电子化合同签署证件号码
|
YBidNo: '', //银保代理人电子化合同签署证件号码
|
||||||
YBname: '', //银保代理人电子化合同签署姓名
|
YBname: '', //银保代理人电子化合同签署姓名
|
||||||
|
YBuuid: '', //银保代理人电子化合同签署代理人uuid
|
||||||
},
|
},
|
||||||
mutations: {
|
mutations: {
|
||||||
setOrderDetail (state, data) {
|
setOrderDetail (state, data) {
|
||||||
@@ -88,6 +89,10 @@ export default new Vuex.Store({
|
|||||||
updateYBname (state, val) {
|
updateYBname (state, val) {
|
||||||
state.YBname = val
|
state.YBname = val
|
||||||
},
|
},
|
||||||
|
//更新 银保代理人电子化合同签署代理人uuid
|
||||||
|
updateYBuuid (state, val) {
|
||||||
|
state.YBuuid = val
|
||||||
|
},
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
getPageFlag (state) {
|
getPageFlag (state) {
|
||||||
@@ -120,6 +125,9 @@ export default new Vuex.Store({
|
|||||||
getYBname (state) {
|
getYBname (state) {
|
||||||
return state.YBname
|
return state.YBname
|
||||||
},
|
},
|
||||||
|
getYBuuid (state) {
|
||||||
|
return state.YBuuid
|
||||||
|
},
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -139,7 +139,8 @@ export default {
|
|||||||
this.isCaptchaModalShow = false
|
this.isCaptchaModalShow = false
|
||||||
this.$store.commit('updateYBidNo', this.idNo)
|
this.$store.commit('updateYBidNo', this.idNo)
|
||||||
this.$store.commit('updateYBname', this.name)
|
this.$store.commit('updateYBname', this.name)
|
||||||
this.$router.push({ path: '/YB_agentSign/step2',query:{uuid:this.uuid} })
|
this.$store.commit('updateYBuuid', this.uuid)
|
||||||
|
this.$router.push({ path: '/YB_agentSign/step2'})
|
||||||
} else {
|
} else {
|
||||||
this.$toast(res.resultMessage)
|
this.$toast(res.resultMessage)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<van-notice-bar :scrollable='false' v-if='!Time' class='notice'>
|
<van-notice-bar :scrollable='false' v-if='!Time' class='notice'>
|
||||||
{{ `提示:阅读时长需在${this.Time ? this.time : this.number}秒以上` }}
|
{{ `提示:阅读时长需在${this.Time ? this.time : this.number}秒以上` }}
|
||||||
</van-notice-bar>
|
</van-notice-bar>
|
||||||
<iframe :src='src + pdfUrl' class='iframe'></iframe>
|
<iframe :src="pdfUrl" class="iframe" id="iframepage"></iframe>
|
||||||
<van-radio-group v-model='radio' class='pb10 pt20 pl30 fs14'>
|
<van-radio-group v-model='radio' class='pb10 pt20 pl30 fs14'>
|
||||||
<van-radio name='1' @click='click'>
|
<van-radio name='1' @click='click'>
|
||||||
本人确认已阅读<span>《电子化合同签署》</span>
|
本人确认已阅读<span>《电子化合同签署》</span>
|
||||||
@@ -24,6 +24,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
import { RadioGroup, Radio, Dialog, NoticeBar } from 'vant'
|
||||||
import config from '@/config'
|
import config from '@/config'
|
||||||
|
import { generateAgreementYB } from '@/api/ebiz/YB_agentSign/YB_agentSign'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
let isWeixin = this.$utils.device().isWeixin //判断环境
|
let isWeixin = this.$utils.device().isWeixin //判断环境
|
||||||
@@ -51,16 +52,30 @@
|
|||||||
},
|
},
|
||||||
created(){
|
created(){
|
||||||
this.timeOut()
|
this.timeOut()
|
||||||
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
|
||||||
if (signInfo && signInfo.status == '0') {
|
|
||||||
this.base64 = sessionStorage.getItem('twoimgBase64Data')
|
|
||||||
this.$set(this.signInfo, 'status', '1')
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
let thispolicyUrl = "Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoMO3QJwd%2BpYNd%2BhiCehCCFibahgDp%2FtP6UD%0A6vy8eKAAs4hhrh0dSyUouHrBpcu%2FGM6VGLphInLPv0HGtHpZ3OhD"
|
let thispolicyUrl = "Ra4LpmZv2h6FrwZPS48QIETiI2AcWWLx6RavVjoAkoMO3QJwd%2BpYNd%2BhiCehCCFibahgDp%2FtP6UD%0A6vy8eKAAs4hhrh0dSyUouHrBpcu%2FGM6VGLphInLPv0HGtHpZ3OhD"
|
||||||
document.body.style.backgroundColor = '#fff'
|
document.body.style.backgroundColor = '#fff'
|
||||||
this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${thispolicyUrl}`)
|
// this.pdfUrl = encodeURIComponent(config.imgDomain + `/returnDirectStream?imgPath=${thispolicyUrl}`)
|
||||||
|
|
||||||
|
let dataParams = {
|
||||||
|
idType:'0',
|
||||||
|
idNo:this.$store.getters.getYBidNo,
|
||||||
|
name:this.$store.getters.getYBname
|
||||||
|
}
|
||||||
|
generateAgreementYB(dataParams).then(res=>{
|
||||||
|
if(res.result == 0){
|
||||||
|
this.pdfUrl = encodeURIComponent('https://iagentsales-test2.e-guofu.com:5443/updown' + `/returnDirectStream?imgPath=${res.content.rgssUrl}`)
|
||||||
|
// this.pdfUrl = res.content.rgssUrl
|
||||||
|
let signInfo = JSON.parse(localStorage.getItem('signInfo'))
|
||||||
|
if (signInfo && signInfo.status == '0') {
|
||||||
|
this.base64 = sessionStorage.getItem('twoimgBase64Data')
|
||||||
|
this.$set(this.signInfo, 'status', '1')
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
this.$toast(res.resultMessage)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 点击阅读时
|
// 点击阅读时
|
||||||
|
|||||||
Reference in New Issue
Block a user