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 @@
* @Description: 泰康600万医疗保障
* @Date: 2020-07-27 15:46:37
* @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";
......@@ -108,7 +108,7 @@ export default {
popupArray: [
{
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: "健康告知",
......
......@@ -18,6 +18,7 @@ export default [
itype: "mi", // 保险类型,英文收字母缩写,详情需要传
scope: [1, 2, 3], // 范围,列表中区分类型用,1成人 2老年 3少儿
img: good01,
hidden: false,
title: "万家保·百万医疗险",
sub: "看病报销医药费,最高600万",
glory: "好评榜第1名",
......@@ -45,6 +46,7 @@ export default [
itype: "cii",
scope: [1, 2, 3],
img: good02,
hidden: true,
title: "万家保·重疾轻症险",
sub: "100种重疾+40种轻症确诊即赔",
glory: "",
......@@ -72,6 +74,7 @@ export default [
itype: "ai",
scope: [1, 2, 3],
img: good03,
hidden: false,
title: "万家保·综合意外险",
sub: "意外风险覆盖全,保额最高100万",
glory: "开车必备",
......@@ -97,6 +100,7 @@ export default [
scope: [1, 3],
img: good05,
url: "",
hidden: true,
title: "百年康惠保(2.0)重大疾病险",
sub: "终身保障155种重疾,最多赔付6次",
glory: "",
......@@ -124,6 +128,7 @@ export default [
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)"
......
......@@ -90,6 +90,9 @@
border-radius: @border-radius-md;
margin-bottom: 10px;
padding: @padding-lg;
&.hidden {
display: none;
}
}
&-title {
font-size: @font-size-20;
......
......@@ -49,7 +49,12 @@
</table>
</card>
<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">
{{ item.productName || "" }}
<cr-tag :type="tagClassFilter(item.productNo)" plain>
......@@ -123,7 +128,7 @@ export default {
},
mounted() {
this.getSuggestion();
this.getGoodsLink();
// this.getGoodsLink();
},
methods: {
tagFilter(type) {
......
......@@ -24,7 +24,7 @@ import AiTestTip from "./modules/AiTestTip";
import GoodList from "@/components/GoodList/index";
import Tabbar from "@/components/Tabbar";
import copyright from "@/components/Copyright";
import InstructionModal from "./Detail/modules/InstructionModal";
// import InstructionModal from "./Detail/modules/InstructionModal";
const categoryList = [
{
......@@ -55,8 +55,8 @@ export default {
AiTestTip,
GoodList,
Tabbar,
copyright,
InstructionModal
copyright
// InstructionModal
},
data() {
return {
......@@ -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