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

feat: 下架泰康和华泰

parent 3186c7f1
...@@ -18,7 +18,7 @@ export default [ ...@@ -18,7 +18,7 @@ export default [
itype: "mi", // 保险类型,英文收字母缩写,详情需要传 itype: "mi", // 保险类型,英文收字母缩写,详情需要传
scope: [1, 2, 3], // 范围,列表中区分类型用,1成人 2老年 3少儿 scope: [1, 2, 3], // 范围,列表中区分类型用,1成人 2老年 3少儿
img: good01, img: good01,
hidden: false, hidden: true,
title: "万家保·百万医疗险", title: "万家保·百万医疗险",
sub: "看病报销医药费,最高600万", sub: "看病报销医药费,最高600万",
glory: "好评榜第1名", glory: "好评榜第1名",
......
...@@ -120,7 +120,7 @@ export default { ...@@ -120,7 +120,7 @@ export default {
ensureList() { ensureList() {
return this.goodInfo.ensure return this.goodInfo.ensure
? this.goodInfo.ensure.map(item => { ? this.goodInfo.ensure.map(item => {
item.detailIndex = this.goods.findIndex(it => it.id === item.productNo); item.detailIndex = this.goods.findIndex(it => it.id === item.productNo && !it.hidden);
return item; return item;
}) })
: []; : [];
......
...@@ -34,6 +34,7 @@ export default { ...@@ -34,6 +34,7 @@ export default {
return { return {
isLogin: localStorage.get("mongoToken"), isLogin: localStorage.get("mongoToken"),
showQuestion: false, showQuestion: false,
payStateTimer: null,
orderInfo: [ orderInfo: [
{ {
consultantOrderNo: "", consultantOrderNo: "",
...@@ -63,6 +64,9 @@ export default { ...@@ -63,6 +64,9 @@ export default {
Cookies.get("consultantPay") == 1; Cookies.get("consultantPay") == 1;
this.getOrderInfo(fromPay); this.getOrderInfo(fromPay);
}, },
beforeDestroy() {
clearTimeout(this.payStateTimer);
},
methods: { methods: {
...mapActions(["setIsLoading"]), ...mapActions(["setIsLoading"]),
// 1-待支付,3-支付成功,4-问卷收集完成,方案配置中,5-方案配置完成, -1 -支付失败订单关闭,-2 -支付超过1小时订单关闭,-3 -订单关闭 // 1-待支付,3-支付成功,4-问卷收集完成,方案配置中,5-方案配置完成, -1 -支付失败订单关闭,-2 -支付超过1小时订单关闭,-3 -订单关闭
...@@ -85,7 +89,7 @@ export default { ...@@ -85,7 +89,7 @@ export default {
this.setIsLoading(true); this.setIsLoading(true);
const res = await getPayState({ consultantOrderNo: this.orderInfo[0].consultantOrderNo }); const res = await getPayState({ consultantOrderNo: this.orderInfo[0].consultantOrderNo });
if (res.state === 2) { if (res.state === 2) {
setTimeout(() => { this.payStateTimer = setTimeout(() => {
this.setIsLoading(false); this.setIsLoading(false);
this.getPayState(); this.getPayState();
}, 3000); }, 3000);
......
...@@ -124,10 +124,7 @@ export default { ...@@ -124,10 +124,7 @@ export default {
}; };
}, },
planList() { planList() {
const ids = const ids = this.answers?.age < 60 ? ["ZAYWX001", "HGSX001"] : ["ZAYWX001"];
this.answers?.age < 60
? ["TKYLX001", "HTDQZJX001", "ZAYWX001", "HGSX001"]
: ["TKYLX001", "ZAYWX001"];
const goods = this.goodsList.filter(v => ids.includes(v.id)); const goods = this.goodsList.filter(v => ids.includes(v.id));
return goods; return goods;
}, },
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
<div class="user-family-insurance"> <div class="user-family-insurance">
<div <div
class="user-family-insurance-item" class="user-family-insurance-item"
v-show="!item.hidden && !item.productNo"
@click="go('/policy/detail', item)" @click="go('/policy/detail', item)"
v-for="(item, index) in policyList" v-for="(item, index) in policyList"
:key="index" :key="index"
......
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