Commit 71fcd5b9 authored by 郭志伟's avatar 郭志伟

feat: 不隐藏订单数据

parent 46217891
import good01 from "@/assets/images/goods/goods-01.png";
// import good02 from "@/assets/images/goods/goods-02.png";
import good02 from "@/assets/images/goods/goods-02.png";
import good03 from "@/assets/images/goods/goods-03.png";
import good04 from "@/assets/images/goods/goods-04.png";
// import good05 from "@/assets/images/goods/goods-05.png";
import good05 from "@/assets/images/goods/goods-05.png";
import medical_closed from "@/assets/images/user/medical_closed@2x.png";
import casualty_closed from "@/assets/images/user/casualty_closed@2x.png";
// import illness_closed from "@/assets/images/user/illness_closed@2x.png";
import illness_closed from "@/assets/images/user/illness_closed@2x.png";
import life_closed from "@/assets/images/user/life_closed@2x.png";
import medical from "@/assets/images/user/medical@2x.png";
import casualty from "@/assets/images/user/casualty@2x.png";
// import illness from "@/assets/images/user/illness@2x.png";
import illness from "@/assets/images/user/illness@2x.png";
import life from "@/assets/images/user/life@2x.png";
export default [
......@@ -18,6 +18,7 @@ export default [
itype: "mi", // 保险类型,英文收字母缩写,详情需要传
scope: [1, 2, 3], // 范围,列表中区分类型用,1成人 2老年 3少儿
img: good01,
hidden: false,
title: "万家保·百万医疗险",
sub: "看病报销医药费,最高600万",
glory: "好评榜第1名",
......@@ -40,38 +41,40 @@ export default [
paymentInstruction:
"因责任内“医疗和住院”所产生的费用,医疗险100%报销,赔多少钱,取决于您实际花费多少"
},
// {
// id: "HTDQZJX001",
// itype: "cii",
// scope: [1, 2, 3],
// img: good02,
// title: "万家保·重疾轻症险",
// sub: "100种重疾+40种轻症确诊即赔",
// glory: "",
// price: "3",
// unit: "首月",
// allow: true,
// shadowColor: "rgba(255, 216, 191, 0.8)",
// termType: "short",
// icon_closed: illness_closed,
// icon: illness,
// guarantee_title: "重疾保障",
// guarantee_sub: "100种重疾+40种轻症确诊即赔",
// company: "华泰财险",
// company_name: "华泰财产保险有限公司",
// payType: [
// { label: "月缴", value: 1 },
// { label: "一次交清", value: 2 }
// ],
// policyPeriod: [],
// paymentInstruction:
// "“确诊”责任内的重大疾病,重疾险即100%赔付,赔多少钱,取决于您投保的保额是多少"
// },
{
id: "HTDQZJX001",
itype: "cii",
scope: [1, 2, 3],
img: good02,
hidden: true,
title: "万家保·重疾轻症险",
sub: "100种重疾+40种轻症确诊即赔",
glory: "",
price: "3",
unit: "首月",
allow: true,
shadowColor: "rgba(255, 216, 191, 0.8)",
termType: "short",
icon_closed: illness_closed,
icon: illness,
guarantee_title: "重疾保障",
guarantee_sub: "100种重疾+40种轻症确诊即赔",
company: "华泰财险",
company_name: "华泰财产保险有限公司",
payType: [
{ label: "月缴", value: 1 },
{ label: "一次交清", value: 2 }
],
policyPeriod: [],
paymentInstruction:
"“确诊”责任内的重大疾病,重疾险即100%赔付,赔多少钱,取决于您投保的保额是多少"
},
{
id: "ZAYWX001",
itype: "ai",
scope: [1, 2, 3],
img: good03,
hidden: false,
title: "万家保·综合意外险",
sub: "意外风险覆盖全,保额最高100万",
glory: "开车必备",
......@@ -91,39 +94,41 @@ export default [
paymentInstruction:
"因意外导致的身故,意外险100%赔付,伤残,按比例赔付,赔多少钱,取决于您投保的保额是多少"
},
// {
// id: "BNZJX001",
// itype: "cii",
// scope: [1, 3],
// img: good05,
// url: "",
// title: "百年康惠保(2.0)重大疾病险",
// sub: "终身保障155种重疾,最多赔付6次",
// glory: "",
// price: "256",
// unit: "年起",
// allow: true,
// shadowColor: "rgba(255, 216, 191, 0.8)",
// termType: "long",
// icon_closed: illness_closed,
// icon: illness,
// guarantee_title: "重疾保障",
// guarantee_sub: "终身保障155种重疾,最多赔付6次",
// company: "百年人寿",
// company_name: "",
// payType: [{ label: "年缴", value: 1 }],
// policyPeriod: [
// { label: "保至70周岁", value: 1 },
// { label: "保至终身", value: 2 }
// ],
// paymentInstruction:
// "“确诊”责任内的重大疾病,重疾险即100%赔付,赔多少钱,取决于您投保的保额是多少"
// },
{
id: "BNZJX001",
itype: "cii",
scope: [1, 3],
img: good05,
url: "",
hidden: true,
title: "百年康惠保(2.0)重大疾病险",
sub: "终身保障155种重疾,最多赔付6次",
glory: "",
price: "256",
unit: "年起",
allow: true,
shadowColor: "rgba(255, 216, 191, 0.8)",
termType: "long",
icon_closed: illness_closed,
icon: illness,
guarantee_title: "重疾保障",
guarantee_sub: "终身保障155种重疾,最多赔付6次",
company: "百年人寿",
company_name: "",
payType: [{ label: "年缴", value: 1 }],
policyPeriod: [
{ label: "保至70周岁", value: 1 },
{ label: "保至终身", value: 2 }
],
paymentInstruction:
"“确诊”责任内的重大疾病,重疾险即100%赔付,赔多少钱,取决于您投保的保额是多少"
},
{
id: "HGSX001",
itype: "li",
scope: [1, 2],
img: good04,
hidden: false,
title: "华贵大麦2020定期寿险",
sub: "最高350万保额,顶梁柱必备",
glory: "顶梁柱必备",
......
......@@ -26,6 +26,9 @@
.cr-divider {
margin-bottom: 0;
}
&.hidden {
display: none;
}
&.not-allow {
border-radius: 14px;
position: relative;
......
......@@ -2,7 +2,13 @@
<div class="goods-list">
<div v-if="hasChildren">
<template v-for="(item, index) in list">
<div class="goods-list-head" :key="'head' + index" v-if="item.children.length > 0">
<div
class="goods-list-head"
:key="'head' + index"
v-if="
item.children.length > 0 && item.children.filter(i => i.hidden === false).length > 0
"
>
<slot :data="item">
<h5>{{ item.title || "-" }}</h5>
<small>
......@@ -15,7 +21,7 @@
<cr-row
type="flex"
class="goods-list-item"
:class="{ 'not-allow': !it.allow }"
:class="{ 'not-allow': !it.allow, hidden: it.hidden }"
v-for="(it, idx) in item.children"
:key="idx"
@click.native="clickItem(it)"
......@@ -47,7 +53,7 @@
<cr-row
type="flex"
class="goods-list-item"
:class="{ 'not-allow': !it.allow }"
:class="{ 'not-allow': !it.allow, hidden: it.hidden }"
v-for="(it, idx) in list"
:key="idx"
@click.native="clickItem(it)"
......
......@@ -123,7 +123,7 @@ export default {
},
mounted() {
this.getSuggestion();
this.getGoodsLink();
// this.getGoodsLink();
},
methods: {
tagFilter(type) {
......
......@@ -72,9 +72,9 @@ export default {
isShowLogin(val) {
if (!val) {
this.mongoToken = localStorage.get("mongoToken");
if (this.mongoToken) {
this.getGoodsLink();
}
// if (this.mongoToken) {
// this.getGoodsLink();
// }
}
}
},
......@@ -109,7 +109,7 @@ export default {
},
mounted() {
this.getList();
this.getGoodsLink();
// this.getGoodsLink();
},
methods: {
async getList() {
......
......@@ -144,9 +144,9 @@ export default {
isShowLogin(val) {
if (!val) {
this.mongoToken = localStorage.get("mongoToken");
if (this.mongoToken) {
this.getGoodsLink();
}
// if (this.mongoToken) {
// this.getGoodsLink();
// }
}
}
},
......@@ -181,7 +181,7 @@ export default {
});
});
this.goodsList = goodsList;
this.getGoodsLink();
// this.getGoodsLink();
}
},
async getGoodsLink() {
......
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