Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
a667adbf
authored
2020-02-14 19:45:24 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
4b5df67e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
11 deletions
src/pages/vhis-detail/vhis-detail.js
src/pages/vhis-detail/vhis-detail.scss
src/pages/vhis-detail/vhis-detail.vue
src/pages/vhis-detail/vhis-detail.js
View file @
a667adb
...
...
@@ -152,20 +152,37 @@ export default {
},
initProduct
()
{
let
productList
=
[{
title
:
"保證續保至100歲"
showMore
:
false
,
title
:
"保證續保至100歲"
,
desc
:
"平安人壽(香港)「好e時」自願醫保標準計劃 接受任何介乎14天至80歲人士投保,您可以一直續保至100歲。計劃保證不會因您的索償記錄或身體狀況變而調高續保保費,而您的續保保費將根據當時保單週年日之保費表釐定。"
},
{
showMore
:
false
,
title
:
"不設終身保障限額"
},
{
showMore
:
false
,
title
:
"一家投保 盡享稅務扣減"
},
{
showMore
:
false
,
title
:
"承保投保前未知的已有疾病"
},
{
showMore
:
false
,
title
:
"出院免找數 讓您安心無憂"
},
{
showMore
:
false
,
title
:
"無索償折扣"
}];
this
.
productList
=
productList
;
},
onShowMoreHandler
(
idx
)
{
console
.
log
(
"idx:"
,
idx
);
let
productList
=
this
.
productList
;
let
curProduct
=
productList
[
idx
];
if
(
curProduct
)
{
curProduct
.
showMore
=
!
curProduct
.
showMore
;
}
this
.
productList
=
productList
;
console
.
log
(
"this.productList:"
,
this
.
productList
);
},
initData
()
{
this
.
initProduct
();
let
targetData
=
null
;
...
...
@@ -210,8 +227,7 @@ export default {
try
{
this
.
sourceData
=
JSON
.
parse
(
d
);
this
.
initData
();
}
catch
(
e
)
{
}
}
catch
(
e
)
{}
}
}
},
...
...
@@ -219,7 +235,12 @@ export default {
this
.
initActivity
();
},
created
()
{
httpGet
({
url
:
api
.
productInfo
,
data
:
{
code
:
"voluntary"
}
}).
then
(
res
=>
{
httpGet
({
url
:
api
.
productInfo
,
data
:
{
code
:
"voluntary"
}
}).
then
(
res
=>
{
if
(
res
)
{
localStorage
.
setItem
(
"voluntaryInfo"
,
JSON
.
stringify
(
res
));
this
.
sourceData
=
res
;
...
...
src/pages/vhis-detail/vhis-detail.scss
View file @
a667adb
...
...
@@ -221,7 +221,7 @@
@extend
.fcc
;
padding
:
2px
;
width
:
582px
;
height
:
2
62
px
;
height
:
2
80
px
;
margin-bottom
:
25px
;
.cont
{
...
...
@@ -237,8 +237,8 @@
}
.detail
{
padding
:
52px
40
px
0
0
;
//
flex: 1;
padding
:
52px
32
px
0
0
;
flex
:
1
;
flex-grow
:
1
;
.t1
{
...
...
@@ -247,7 +247,7 @@
font-weight
:
bold
;
}
.
desc
{
.
more
{
display
:
flex
;
// margin: 12px auto 0;
...
...
@@ -261,6 +261,13 @@
font-size
:
18px
;
}
}
.desc
{
margin-top
:
6px
;
font-size
:
18px
;
font-weight
:
300
;
// letter-spacing: -0.45px;
}
}
}
}
...
...
src/pages/vhis-detail/vhis-detail.vue
View file @
a667adb
...
...
@@ -67,11 +67,14 @@
</div>
<div
class=
"detail"
>
<div
class=
"t1"
v-html=
"item.title"
>
{{
item
.
title
}}
</div>
<div
class=
"
desc
"
>
<div
class=
"
desc-icon-wrap"
>
<div
class=
"
more pointer"
@
click=
"onShowMoreHandler(index)
"
>
<div
class=
"
more-icon-wrap"
>
<img
src=
"@/assets/images/vhis/vhis-plus.png"
>
</div>
<div
class=
"c1"
>
展開
</div>
<div
class=
"c1"
>
{{
item
.
showMore
?
'收起'
:
'展開'
}}
</div>
</div>
<div
v-if=
"item.showMore"
class=
"desc"
>
{{
item
.
desc
}}
</div>
</div>
</div>
...
...
Please
register
or
sign in
to post a comment