|
|
@@ -78,14 +78,15 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class=" dis a-c j-s mt-3" style="position: relative;">
|
|
|
+ <view id="targetElement" class=" dis a-c j-s mt-3" style="position: relative;">
|
|
|
<view style="color:#FF5600;font-size: 15px;font-weight: bold;">投保注意:</view>
|
|
|
<view class="dis a-c f-wrap">
|
|
|
- <view class="status-data" :class="carInfo.transferFlag? 'active1':''"
|
|
|
+ <view class="status-data"
|
|
|
+ :class="carInfo.transferFlag? 'active1':isTransferRequired?'deepenStyle':''"
|
|
|
@tap="immediatelyClick('transferFlag')">
|
|
|
过户车
|
|
|
</view>
|
|
|
- <view class="status-data" v-if="['034001','0330034002','0330034001'].includes(productId)"
|
|
|
+ <view class="status-data" v-if="['034001','034002','0330034002','0330034001'].includes(productId)"
|
|
|
:class="carInfo.transferFlagBi? 'active1':''" @tap="immediatelyClick('transferFlagBi')">
|
|
|
商业险过户
|
|
|
</view>
|
|
|
@@ -1411,6 +1412,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ isTransferRequired: false,
|
|
|
imagelist: [{
|
|
|
name: '车辆/人员信息'
|
|
|
},
|
|
|
@@ -1741,6 +1743,9 @@
|
|
|
const eventChannel = this.getOpenerEventChannel()
|
|
|
// 监听acceptData事件,获取上一页面通过eventChannel传送到当前页面的数据
|
|
|
await eventChannel.on('acceptData', (data) => {
|
|
|
+ console.log(data);
|
|
|
+ this.quoteno = data.quoteno;
|
|
|
+ this.orderno = data.orderno;
|
|
|
this.carInfo = data.carInfo; //车辆信息
|
|
|
this.ownerInfo = data.ownerInfo; //车主信息
|
|
|
this.policyHolderInfo = data.policyHolderInfo; //投保人信息
|
|
|
@@ -1764,6 +1769,7 @@
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
CTcoefficientSubmit() {
|
|
|
this.quotableCompanyList[this.CTcoefficientIndex].coefficient = this.CTcoefficientForm.pricingCoefficient;
|
|
|
this.quotableCompanyList[this.CTcoefficientIndex].discount = this.CTcoefficientForm.expectedDiscount;
|
|
|
@@ -2492,6 +2498,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2547,6 +2554,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2602,6 +2610,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2657,6 +2666,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2718,6 +2728,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2774,6 +2785,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2831,6 +2843,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2892,6 +2905,7 @@
|
|
|
};
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg = res.msg;
|
|
|
+
|
|
|
return;
|
|
|
}
|
|
|
} catch (error) {
|
|
|
@@ -2923,6 +2937,14 @@
|
|
|
renshou(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
},
|
|
|
+ //华安
|
|
|
+ huaan(num, id) {
|
|
|
+ this.quoteInsurance(num, id);
|
|
|
+ },
|
|
|
+ //人寿
|
|
|
+ taishan(num, id) {
|
|
|
+ this.quoteInsurance(num, id);
|
|
|
+ },
|
|
|
//恒邦
|
|
|
hengbang(num, id) {
|
|
|
this.quoteInsurance(num, id);
|
|
|
@@ -2979,6 +3001,8 @@
|
|
|
case '中国人寿':
|
|
|
case '太平财险':
|
|
|
case '华农财险':
|
|
|
+ case '华安财险':
|
|
|
+ case '泰山财险':
|
|
|
case '泰康财险':
|
|
|
if (res.code == '200') {
|
|
|
if (res.data.warnMessageList !=
|
|
|
@@ -3022,6 +3046,7 @@
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg =
|
|
|
res.msg;
|
|
|
+
|
|
|
}
|
|
|
break;
|
|
|
case '众安财险':
|
|
|
@@ -3060,6 +3085,7 @@
|
|
|
this.quotableCompanyList.splice(num, 1, updatedItem);
|
|
|
this.quotableCompanyList[num].msg =
|
|
|
res.msg;
|
|
|
+
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
@@ -3174,13 +3200,36 @@
|
|
|
},
|
|
|
// 显示报错信息
|
|
|
ErrorMsg(msg, title) {
|
|
|
+ let _this = this;
|
|
|
uni.showModal({
|
|
|
title: title + "报价提示",
|
|
|
content: msg,
|
|
|
showCancel: false,
|
|
|
- confirmText: "关闭"
|
|
|
+ confirmText: "关闭",
|
|
|
+ success: function(res) {
|
|
|
+ if (res.confirm) {
|
|
|
+ if (msg.includes('过户')) {
|
|
|
+ _this.isTransferRequired = true;
|
|
|
+ _this.scrollToElement();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
+ scrollToElement() {
|
|
|
+ // 创建查询对象
|
|
|
+ const query = uni.createSelectorQuery().in(this);
|
|
|
+ // 获取目标元素的位置信息
|
|
|
+ query.select('#targetElement').boundingClientRect((rect) => {
|
|
|
+ if (rect) {
|
|
|
+ // 滚动到目标位置
|
|
|
+ uni.pageScrollTo({
|
|
|
+ scrollTop: rect.top, // 目标元素的顶部位置
|
|
|
+ duration: 500, // 滚动动画时长(单位:ms)
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }).exec();
|
|
|
+ },
|
|
|
discountErrorMessageMsg(msg, title) {
|
|
|
this.discountInfoPopup = true;
|
|
|
this.discountInfoPopupContent = msg.replace(/\n/g, '<br>');
|
|
|
@@ -3282,6 +3331,8 @@
|
|
|
case '众安财险':
|
|
|
case '太平财险':
|
|
|
case '华农财险':
|
|
|
+ case '华安财险':
|
|
|
+ case '泰山财险':
|
|
|
case '中国人寿':
|
|
|
if (res.data.length > 0) {
|
|
|
this[items.cnName + 'InsuranceData'] = res.data; //意外险list
|
|
|
@@ -3509,6 +3560,7 @@
|
|
|
productId: this.productId, //险种id
|
|
|
productName: this.productName, //险种名称
|
|
|
quoteno: this.quoteno, //报价号
|
|
|
+ orderno: this.orderno, //订单号
|
|
|
})
|
|
|
}
|
|
|
}, "navigateTo", true);
|
|
|
@@ -3956,6 +4008,8 @@
|
|
|
case "中国人寿":
|
|
|
case "太平财险":
|
|
|
case "华农财险":
|
|
|
+ case "华安财险":
|
|
|
+ case "泰山财险":
|
|
|
case "泰康财险":
|
|
|
let pythonimage = await this.$http.post(
|
|
|
'/insurance/crawler/submitImage', {
|
|
|
@@ -4789,7 +4843,7 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- /deep/ {
|
|
|
+ ::deep {
|
|
|
.jq {
|
|
|
.u-th {
|
|
|
background: #F6F7FE;
|
|
|
@@ -4843,4 +4897,11 @@
|
|
|
color: #FFFFFF;
|
|
|
font-size: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .deepenStyle {
|
|
|
+ border-color: #FF4D4D;
|
|
|
+ color: #FF4D4D;
|
|
|
+ border-width: 4rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
</style>
|