diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue
index f9d25828b..dbf0328e4 100644
--- a/src/views/ebiz/common/CalculatePremium.vue
+++ b/src/views/ebiz/common/CalculatePremium.vue
@@ -277,12 +277,12 @@
保额(元):
{{ trialList[index].showPrem | moneyFormat }}
-
+
指定保单生效日
- 2021年1月1日
+ {{cvalidateStr}}
@@ -385,6 +385,8 @@ export default {
return {
activeRadio: '1',
activeType: localStorage.getItem('active_type'),
+ cvalidateFlag : false,
+ cvalidateStr:'',
chooseProducts: [],
productIndex: '',
calFactorIndex: '',
@@ -443,7 +445,7 @@ export default {
//初始化数据
init() {
// 获取是否从建议书过来的
- this.isFrom = localStorage.isFrom
+ this.isFrom = window.localStorage.isFrom
//获取投保人信息
if (this.$CacheUtils.getLocItem('saleInsuredInfo')) {
this.saleInsuredInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo'))
@@ -455,6 +457,8 @@ export default {
//构建提交数据、渲染险种
this.chooseProducts = JSON.parse(localStorage.chooseProducts)
this.chooseProducts.map(item => {
+ this.cvalidateFlag = item.isMainRisk == 0 && (this.activeType == 'KMH'||this.activeType == 'SQY') && this.isFrom != 'proposal'
+ this.cvalidateStr = this.cvalidateFlag?this.activeType == 'KMH'?'2021-01-01':this.activeType == 'SQY'?'2021-06-01':'':''
if (item.mainRiskCode == 'GFRS_M0006') {
item.isHidden = true
}
diff --git a/src/views/ebiz/common/MainRiskList.vue b/src/views/ebiz/common/MainRiskList.vue
index 591b3a252..768fde30a 100644
--- a/src/views/ebiz/common/MainRiskList.vue
+++ b/src/views/ebiz/common/MainRiskList.vue
@@ -76,14 +76,20 @@ export default {
},
methods: {
checkItemShow(item) {
- if (this.activeFlag != 'KMH') {
+ if (this.activeFlag != 'KMH' && this.activeFlag != 'SQY') {
return true
}
let showFlag = false
if (item.activeLst && item.activeLst.length > 0) {
item.activeLst.forEach(subItem => {
- if (subItem == 'KMH') {
- showFlag = true
+ if (this.activeFlag && this.activeFlag == 'KMH') {
+ if (subItem == 'KMH') {
+ showFlag = true;
+ }
+ }else if (this.activeFlag && this.activeFlag == 'SQY') {
+ if (subItem == 'SQY') {
+ showFlag = true;
+ }
}
})
}
diff --git a/src/views/ebiz/common/SelectedProduct.vue b/src/views/ebiz/common/SelectedProduct.vue
index e2615abb9..1ecd92ba0 100644
--- a/src/views/ebiz/common/SelectedProduct.vue
+++ b/src/views/ebiz/common/SelectedProduct.vue
@@ -58,12 +58,38 @@
-

+
-
+
@@ -97,7 +123,9 @@ export default {
isFrom: localStorage.isFrom,
salePageFlag: '3',
active_show: false,
+ active_sqy_show:false,
active_radio: '1',
+ active_sqy_radio: '1',
checkedUrl: require('@/assets/images/kmh/checked.png'),
noCheckedUrl: require('@/assets/images/kmh/no_checked.png')
}
@@ -397,6 +425,23 @@ export default {
this.$toast(resultData.resultMessage)
return
}
+
+ // 司庆月活动
+ let paramSQY = {
+ activeType: 'SQY'
+ }
+ let SQYResultData = await getOrderActiveInfo(paramSQY)
+ if (SQYResultData.result == 0) {
+ if (SQYResultData.content.activeFlag != '1') {
+ this.active_sqy_show = true
+ return
+ }
+ //正常后续跳转流程
+ } else {
+ this.$toast(SQYResultData.resultMessage)
+ return
+ }
+
}
this.$jump({
flag: 'h5',
@@ -408,18 +453,19 @@ export default {
}
})
},
- comfirmCheckActive() {
+ comfirmCheckActive(type) {
let param = {
orderDTO: {
orderInfoDTO: {
orderNo: localStorage.orderNo,
- activeType: this.active_radio == '1' ? 'KMH' : ''
+ activeType: type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':''
}
}
}
saveOrderActiveType(param).then(res => {
this.active_show = false
- localStorage.setItem('active_type', this.active_radio == '1' ? 'KMH' : '')
+ this.active_sqy_show = false
+ localStorage.setItem('active_type', type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':'')
if (res.result == 0) {
this.$jump({
flag: 'h5',
@@ -507,6 +553,13 @@ export default {
right: 26px;
top: -22px;
}
+ .icon_image_close {
+ width: 19px;
+ height: 19px;
+ position: absolute;
+ right: 4px;
+ top: -22px;
+ }
.icon_title_image {
width: 50px;
padding-top: 45px;