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

Merge branch 'fix/goods' into 'master'

fix: 顾问计划保险显示问题修复

See merge request !126
parents 12d60f26 793e4e17
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
<script> <script>
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import { payByWay } from "@/service/pay"; import { payByWay } from "@/service/pay";
import { isXyqb } from "@/service/validation"; import { isXyqb, isWeixinBrower } from "@/service/validation";
import { mapActions, mapState } from "vuex"; import { mapActions, mapState } from "vuex";
import { create, goPay, getRemainNum } from "@/api/consultant"; import { create, goPay, getRemainNum } from "@/api/consultant";
import Card from "@/components/Card"; import Card from "@/components/Card";
...@@ -110,7 +110,7 @@ export default { ...@@ -110,7 +110,7 @@ export default {
price: [0.99, 199], price: [0.99, 199],
consultantOrderNo: "", consultantOrderNo: "",
openId: localStorage.get("openId"), openId: localStorage.get("openId"),
tradeType: isXyqb ? "MWEB" : "JSAPI", tradeType: isXyqb ? "MWEB" : isWeixinBrower ? "JSAPI" : "MWEB",
serviceList: [ serviceList: [
{ icon: "team", title: "资深", sub: "保险精算团队" }, { icon: "team", title: "资深", sub: "保险精算团队" },
{ icon: "card", title: "专属", sub: "保险顾问" }, { icon: "card", title: "专属", sub: "保险顾问" },
......
...@@ -129,13 +129,14 @@ export default { ...@@ -129,13 +129,14 @@ export default {
case "TKYLX001": case "TKYLX001":
_type = "医疗险"; _type = "医疗险";
break; break;
case "BNZJX001":
case "HTDQZJX001": case "HTDQZJX001":
_type = "重疾险"; _type = "重疾险";
break; break;
case "ZAYWX001": case "ZAYWX001":
_type = "意外险"; _type = "意外险";
break; break;
case "BNZJX001": case "HGSX001":
_type = "人寿险"; _type = "人寿险";
break; break;
default: default:
...@@ -150,13 +151,14 @@ export default { ...@@ -150,13 +151,14 @@ export default {
case "TKYLX001": case "TKYLX001":
_type = "warning"; _type = "warning";
break; break;
case "BNZJX001":
case "HTDQZJX001": case "HTDQZJX001":
_type = "danger"; _type = "danger";
break; break;
case "ZAYWX001": case "ZAYWX001":
_type = "primary"; _type = "primary";
break; break;
case "BNZJX001": case "HGSX001":
_type = ""; _type = "";
break; break;
default: default:
......
...@@ -263,6 +263,7 @@ export default { ...@@ -263,6 +263,7 @@ export default {
"relativeName", "relativeName",
"relativeIdNo" "relativeIdNo"
]; ];
console.log(errorInfo);
setTimeout(() => { setTimeout(() => {
this.$refs.navTab.showNavBar = false; this.$refs.navTab.showNavBar = false;
}, 0); }, 0);
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
/> />
<cr-field <cr-field
name="selfPhone" name="selfPhone"
v-model="formData.selfPhone" v-model="selfPhone"
type="tel" type="tel"
placeholder="请输入您的手机号码" placeholder="请输入您的手机号码"
label="手机号码" label="手机号码"
...@@ -201,6 +201,7 @@ export default { ...@@ -201,6 +201,7 @@ export default {
familyList: [], familyList: [],
showCount: false, showCount: false,
count: "", count: "",
selfPhone: "",
timer: null, timer: null,
autoSaveKey: AUTO_SAVE_KEY, autoSaveKey: AUTO_SAVE_KEY,
mongoToken: localStorage.get("mongoToken"), mongoToken: localStorage.get("mongoToken"),
......
...@@ -93,8 +93,6 @@ export default { ...@@ -93,8 +93,6 @@ export default {
this.getPayResult(); this.getPayResult();
}, 3000); }, 3000);
} else { } else {
this.setIsPayWait(false);
this.setIsLoading(false);
// 保单详情页支付需重新调用保单接口 // 保单详情页支付需重新调用保单接口
if (this.$route.name === "PolicyDetail") { if (this.$route.name === "PolicyDetail") {
this.getPolicy(); this.getPolicy();
...@@ -109,6 +107,8 @@ export default { ...@@ -109,6 +107,8 @@ export default {
this.$router.replace({ this.$router.replace({
path: "/policy/detail/" + orderNo + "?isWxH5=" + this.orderInfo.isWxH5 || "" path: "/policy/detail/" + orderNo + "?isWxH5=" + this.orderInfo.isWxH5 || ""
}); });
this.setIsPayWait(false);
this.setIsLoading(false);
} }
}); });
}, },
......
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