Commit 3186c7f1 authored by 郭志伟's avatar 郭志伟

Merge branch 'feat/protocol' into 'master'

Feat/protocol

See merge request !253
parents 73842e4d a346e26b
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description: 泰康600万医疗保障 * @Description: 泰康600万医疗保障
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-31 15:39:09 * @LastEditTime: 2021-02-03 15:16:51
*/ */
import goodsBg from "@/assets/images/goods/detail/yiliaoxian/bg.png"; import goodsBg from "@/assets/images/goods/detail/yiliaoxian/bg.png";
...@@ -108,7 +108,7 @@ export default { ...@@ -108,7 +108,7 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "https://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-bao-xian-tiao-kuan-v1/" url: "http://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-bao-xian-tiao-kuan-xin/"
}, },
{ {
title: "健康告知", title: "健康告知",
......
...@@ -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名",
...@@ -45,6 +46,7 @@ export default [ ...@@ -45,6 +46,7 @@ export default [
itype: "cii", itype: "cii",
scope: [1, 2, 3], scope: [1, 2, 3],
img: good02, img: good02,
hidden: true,
title: "万家保·重疾轻症险", title: "万家保·重疾轻症险",
sub: "100种重疾+40种轻症确诊即赔", sub: "100种重疾+40种轻症确诊即赔",
glory: "", glory: "",
...@@ -72,6 +74,7 @@ export default [ ...@@ -72,6 +74,7 @@ export default [
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: "开车必备",
...@@ -97,6 +100,7 @@ export default [ ...@@ -97,6 +100,7 @@ export default [
scope: [1, 3], scope: [1, 3],
img: good05, img: good05,
url: "", url: "",
hidden: true,
title: "百年康惠保(2.0)重大疾病险", title: "百年康惠保(2.0)重大疾病险",
sub: "终身保障155种重疾,最多赔付6次", sub: "终身保障155种重疾,最多赔付6次",
glory: "", glory: "",
...@@ -124,6 +128,7 @@ export default [ ...@@ -124,6 +128,7 @@ export default [
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)"
......
...@@ -90,6 +90,9 @@ ...@@ -90,6 +90,9 @@
border-radius: @border-radius-md; border-radius: @border-radius-md;
margin-bottom: 10px; margin-bottom: 10px;
padding: @padding-lg; padding: @padding-lg;
&.hidden {
display: none;
}
} }
&-title { &-title {
font-size: @font-size-20; font-size: @font-size-20;
......
...@@ -49,7 +49,12 @@ ...@@ -49,7 +49,12 @@
</table> </table>
</card> </card>
<card title="保障产品"> <card title="保障产品">
<div class="good-item" v-for="(item, index) in ensureList" :key="index"> <div
class="good-item"
:class="{ hidden: ['BNZJX001', 'HTDQZJX001'].indexOf(item.productNo) > -1 }"
v-for="(item, index) in ensureList"
:key="index"
>
<div class="good-title"> <div class="good-title">
{{ item.productName || "" }} {{ item.productName || "" }}
<cr-tag :type="tagClassFilter(item.productNo)" plain> <cr-tag :type="tagClassFilter(item.productNo)" plain>
...@@ -123,7 +128,7 @@ export default { ...@@ -123,7 +128,7 @@ export default {
}, },
mounted() { mounted() {
this.getSuggestion(); this.getSuggestion();
this.getGoodsLink(); // this.getGoodsLink();
}, },
methods: { methods: {
tagFilter(type) { tagFilter(type) {
......
...@@ -24,7 +24,7 @@ import AiTestTip from "./modules/AiTestTip"; ...@@ -24,7 +24,7 @@ import AiTestTip from "./modules/AiTestTip";
import GoodList from "@/components/GoodList/index"; import GoodList from "@/components/GoodList/index";
import Tabbar from "@/components/Tabbar"; import Tabbar from "@/components/Tabbar";
import copyright from "@/components/Copyright"; import copyright from "@/components/Copyright";
import InstructionModal from "./Detail/modules/InstructionModal"; // import InstructionModal from "./Detail/modules/InstructionModal";
const categoryList = [ const categoryList = [
{ {
...@@ -55,8 +55,8 @@ export default { ...@@ -55,8 +55,8 @@ export default {
AiTestTip, AiTestTip,
GoodList, GoodList,
Tabbar, Tabbar,
copyright, copyright
InstructionModal // InstructionModal
}, },
data() { data() {
return { return {
...@@ -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