没展示指定生效日问题,现在activeType从订单详情接口取值了

This commit is contained in:
liyuetong
2021-12-01 11:29:44 +08:00
parent 6c330db28b
commit aeb103cec0
2 changed files with 6 additions and 4 deletions

View File

@@ -431,7 +431,8 @@ export default {
return {
isEnterAddtionRisk: true, //附加险list
activeRadio: '1',
activeType: localStorage.getItem('active_type'),
// activeType: localStorage.getItem('active_type'), 现在从订单详情接口取值了
activeType: '',
cvalidateFlag: false,
cvalidateStr: '', //活动生效日
chooseProducts: [],
@@ -504,7 +505,6 @@ export default {
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
}
// this.cvalidateFlag = (this.activeType == 'KMH'||this.activeType == 'SQY') && this.isFrom != 'proposal'
this.cvalidateFlag = this.activeType && this.isFrom != 'proposal'
// this.cvalidateStr = this.cvalidateFlag?this.activeType == 'KMH'?'2021-01-01':this.activeType == 'SQY'?'2021-06-01':'':''
//GFRS-2552【需求】关于金掌桂投保流程增设指定生效日按钮的申请
const orderNo = this.$CacheUtils.getLocItem('orderNo')
@@ -512,7 +512,9 @@ export default {
if (this.isFrom != 'proposal') {
//活动生效日期
this.cvalidateStr = detailPromise.orderDTO.orderInfoDTO.cvaliDate
this.activeType = detailPromise.orderDTO.orderInfoDTO.activeType
}
this.cvalidateFlag = this.activeType && this.isFrom != 'proposal'
//构建提交数据、渲染险种
this.chooseProducts = JSON.parse(localStorage.chooseProducts)

View File

@@ -161,7 +161,7 @@ export default {
mounted() {
if (localStorage.isFrom == 'sale') {
// 清除活动标志
localStorage.removeItem('active_type')
// localStorage.removeItem('active_type')
setTimeout(() => {
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('webview_left_button', {
@@ -536,7 +536,7 @@ export default {
this.active_show = false
this.active_sqy_show = false
// localStorage.setItem('active_type', type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':'')
localStorage.setItem('active_type', this.activityList[this.active_sqy_radio].isKmh)
// localStorage.setItem('active_type', this.activityList[this.active_sqy_radio].isKmh)
if (res.result == 0) {
this.$jump({
flag: 'h5',