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

feat: 不隐藏订单数据

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