Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
71fcd5b9
Commit
71fcd5b9
authored
Feb 01, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 不隐藏订单数据
parent
46217891
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
85 additions
and
71 deletions
+85
-71
goodsList.mock.js
src/api/goodsList.mock.js
+64
-59
index.less
src/components/GoodList/index.less
+3
-0
index.vue
src/components/GoodList/index.vue
+9
-3
index.vue
src/views/Consultant/Plan/index.vue
+1
-1
index.vue
src/views/Goods/index.vue
+4
-4
index.vue
src/views/Home/index.vue
+4
-4
No files found.
src/api/goodsList.mock.js
View file @
71fcd5b9
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
:
"
顶梁柱必备
"
,
...
...
src/components/GoodList/index.less
View file @
71fcd5b9
...
...
@@ -26,6 +26,9 @@
.cr-divider {
margin-bottom: 0;
}
&.hidden {
display: none;
}
&.not-allow {
border-radius: 14px;
position: relative;
...
...
src/components/GoodList/index.vue
View file @
71fcd5b9
...
...
@@ -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)"
...
...
src/views/Consultant/Plan/index.vue
View file @
71fcd5b9
...
...
@@ -123,7 +123,7 @@ export default {
},
mounted
()
{
this
.
getSuggestion
();
this
.
getGoodsLink
();
//
this.getGoodsLink();
},
methods
:
{
tagFilter
(
type
)
{
...
...
src/views/Goods/index.vue
View file @
71fcd5b9
...
...
@@ -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
()
{
...
...
src/views/Home/index.vue
View file @
71fcd5b9
...
...
@@ -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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment