Commit afc481a1 authored by 郭志伟's avatar 郭志伟

fix: 华贵试算校验修复,添加阻断验证;第三方h5支付跳转修复

parent 09651732
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转) * @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Date: 2020-07-28 15:03:52 * @Date: 2020-07-28 15:03:52
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-24 19:59:04 * @LastEditTime: 2020-08-24 22:02:45
*/ */
// import cherry from "@qg/cherry-ui"; // import cherry from "@qg/cherry-ui";
...@@ -97,15 +97,13 @@ export function payByWay(type = "THIRD", payInfo) { ...@@ -97,15 +97,13 @@ export function payByWay(type = "THIRD", payInfo) {
// } // }
resolve(); resolve();
}); });
} else if (type === "MWEB") { } else {
if (payInfo.url.indexOf("weixin") > -1) { if (payInfo.url.indexOf("weixin") > -1) {
payByWeixinH5(payInfo); payByWeixinH5(payInfo);
} else { } else {
payByThirdPartyCashier(payInfo); payByThirdPartyCashier(payInfo);
} }
resolve(); resolve();
} else {
resolve();
} }
}); });
} }
...@@ -228,6 +228,13 @@ export default { ...@@ -228,6 +228,13 @@ export default {
this.popupShow = true; this.popupShow = true;
}, },
onSubmit() { onSubmit() {
const { payPeriod, payType, policyPeriod, birth } = this.formData;
if (!payPeriod || !payType || !policyPeriod || !birth) {
this.$notify({ type: "warning", message: "请选择保费方案" });
this.popupShow = true;
this.currentPupopIndex = 6;
return;
}
this.showLoginPopup(); this.showLoginPopup();
this.popupShow = false; this.popupShow = false;
}, },
......
...@@ -24,7 +24,7 @@ export default { ...@@ -24,7 +24,7 @@ export default {
const { age } = this; const { age } = this;
let _index = 0; let _index = 0;
const ageRangeList = [ const ageRangeList = [
[18, 35], [18, 30],
[31, 35], [31, 35],
[36, 40], [36, 40],
[41, 45], [41, 45],
...@@ -32,12 +32,7 @@ export default { ...@@ -32,12 +32,7 @@ export default {
[51, 55], [51, 55],
[56, 60] [56, 60]
]; ];
// 特殊情况 _index = ageRangeList.findIndex(item => item[0] <= age && age <= item[1]);
if (31 <= age && age <= 35) {
_index = 1;
} else {
_index = ageRangeList.findIndex(item => item[0] <= age && age <= item[1]);
}
if (this.ageIndexCache !== _index) { if (this.ageIndexCache !== _index) {
this.ageIndexCache = _index; this.ageIndexCache = _index;
this.isAgeIndexChange = true; this.isAgeIndexChange = true;
...@@ -66,7 +61,7 @@ export default { ...@@ -66,7 +61,7 @@ export default {
return termOptions.map((item, index) => { return termOptions.map((item, index) => {
switch (index) { switch (index) {
case 0: case 0:
item.disabled = p === "3"; item.disabled = p === "3" || p === "4";
break; break;
case 1: case 1:
item.disabled = p === "4" || a > 4; item.disabled = p === "4" || a > 4;
...@@ -78,7 +73,7 @@ export default { ...@@ -78,7 +73,7 @@ export default {
item.disabled = (a > 0 && p === "4") || (a > 2 && p === "3") || a > 4; item.disabled = (a > 0 && p === "4") || (a > 2 && p === "3") || a > 4;
break; break;
case 4: case 4:
item.disabled = (a > 1 && p === "4") || (a > 3 && p === "3") || a === 4; item.disabled = (a > 1 && p === "4") || (a > 3 && p === "3") || a > 5;
break; break;
case 5: case 5:
item.disabled = (a > 2 && p === "4") || (a > 4 && p === "3"); item.disabled = (a > 2 && p === "4") || (a > 4 && p === "3");
...@@ -102,7 +97,8 @@ export default { ...@@ -102,7 +97,8 @@ export default {
item.disabled = p === "1" || (+p >= 4 && +p <= 6 && a > 2); item.disabled = p === "1" || (+p >= 4 && +p <= 6 && a > 2);
break; break;
case 3: case 3:
item.disabled = a > 2; item.disabled =
+p < 3 || (a > 1 && +p !== 6) || (a === 1 && +p === 4) || (a > 3 && +p === 6);
break; break;
default: default:
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment