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

feat: 下架泰康和华泰

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