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
81f4f819
authored
2020-02-17 18:36:42 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
821eb3e0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
123 additions
and
58 deletions
src/common/lang/en.js
src/common/lang/tc.js
src/common/lang/zh.js
src/components/vhis-modal/vhis-modal.js
src/components/vhis-modal/vhis-modal.scss
src/components/vhis-modal/vhis-modal.vue
src/common/lang/en.js
View file @
81f4f81
This diff is collapsed.
Click to expand it.
src/common/lang/tc.js
View file @
81f4f81
...
...
@@ -810,6 +810,7 @@ module.exports = {
},
vhis
:
{
title
:
"保單確認書"
,
titleAft
:
"(由保單持有人確認)"
,
desc1
:
"多謝閣下投保平安人壽保險產品。"
,
desc2
:
"保單已經承保,內附于此供閣下參考及保存。"
,
desc3
:
"保單是重要檔,請即查閱其內容準確性,"
,
...
...
src/common/lang/zh.js
View file @
81f4f81
This diff is collapsed.
Click to expand it.
src/components/vhis-modal/vhis-modal.js
View file @
81f4f81
...
...
@@ -24,7 +24,10 @@ export default {
...
mapState
({
userInfo
:
state
=>
state
.
userInfo
,
policyList
:
state
=>
state
.
policyList
})
}),
locale
()
{
return
this
.
$i18n
.
locale
||
'tc'
;
},
},
methods
:
{
initData
()
{
...
...
@@ -101,8 +104,11 @@ export default {
let
d
=
now
.
getDate
();
if
(
this
.
$i18n
.
locale
==
'en'
)
{
this
.
policyDetail
.
nowYmd1
=
m
>
10
?
m
:
"0"
+
m
;
this
.
policyDetail
.
nowYmd2
=
d
>
10
?
d
:
"0"
+
d
;
// this.policyDetail.nowYmd1 = m > 10 ? m : "0" + m;
// this.policyDetail.nowYmd2 = d > 10 ? d : "0" + d;
// this.policyDetail.nowYmd3 = y;
this
.
policyDetail
.
nowYmd2
=
m
>
10
?
m
:
"0"
+
m
;
this
.
policyDetail
.
nowYmd1
=
d
>
10
?
d
:
"0"
+
d
;
this
.
policyDetail
.
nowYmd3
=
y
;
}
else
{
this
.
policyDetail
.
nowYmd1
=
y
;
...
...
src/components/vhis-modal/vhis-modal.scss
View file @
81f4f81
...
...
@@ -22,7 +22,6 @@
.bold
{
font-weight
:
600
;
letter-spacing
:
.083333rem
;
}
.orange
{
...
...
@@ -42,30 +41,30 @@
position
:
relative
;
@extend
.bb
;
width
:
1200px
;
max-height
:
8
0
vh
;
max-height
:
8
4
vh
;
border-radius
:
16px
;
background-color
:
#ffffff
;
padding
:
8
0
px
0
;
font-size
:
36
px
;
padding
:
8
8
px
0
;
font-size
:
22
px
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
color
:
$cFontGray2
;
.content
{
max-width
:
10
00px
;
max-width
:
8
00px
;
margin
:
0
auto
;
}
.statement
{
@extend
.bb
;
padding-left
:
40
px
;
margin
:
8
0px
auto
0
;
padding-left
:
92
px
;
margin
:
5
0px
auto
0
;
}
.form
{
@extend
.bb
;
padding-left
:
40
px
;
margin
:
8
0px
auto
0
;
padding-left
:
92
px
;
margin
:
5
0px
auto
0
;
&
-item
{
display
:
flex
;
...
...
@@ -74,11 +73,20 @@
}
.bottom-wrap
{
margin
:
80px
auto
0
;
margin
:
50px
auto
0
;
.notice
{
letter-spacing
:
2
.2px
;
font-size
:
0
;
span
{
font-size
:
22px
;
}
}
}
.title
{
font-size
:
48
px
;
font-size
:
36
px
;
color
:
$cOrange2
;
font-weight
:
bold
;
letter-spacing
:
2
.45px
;
...
...
@@ -86,8 +94,9 @@
.desc
{
text-align
:
left
;
line-height
:
1
.
5
;
line-height
:
1
.
82
;
letter-spacing
:
3
.6px
;
@extend
.text-jtf
;
span
{
margin
:
0
2px
;
...
...
@@ -95,14 +104,29 @@
}
.value
{
flex
:
1
;
text-align
:
left
;
line-height
:
1
.
5
;
line-height
:
1
.
82
;
letter-spacing
:
3
.6px
;
font-size
:
0
;
span
{
font-size
:
22px
;
}
}
.ltz
{
letter-spacing
:
0
;
}
.ltr-zero
{
@extend
.ltz
;
text-align
:
justify
;
text-align-last
:
left
;
}
.line1
{
margin
:
8
0px
auto
0
;
margin
:
5
0px
auto
0
;
}
...
...
@@ -115,15 +139,15 @@
.download
{
margin
:
44px
auto
0
;
text-align
:
center
;
font-size
:
28px
;
&
-item
{
@extend
.bb
;
@extend
.fcc
;
margin
:
0
auto
24px
;
max-width
:
738
px
;
height
:
81
px
;
line-height
:
81
px
;
max-width
:
602
px
;
height
:
67
px
;
line-height
:
67
px
;
padding
:
2px
;
border-radius
:
8px
;
cursor
:
pointer
;
...
...
@@ -142,8 +166,8 @@
border-radius
:
8px
;
.icon
{
height
:
60
px
;
margin-right
:
64
px
;
height
:
47
px
;
margin-right
:
52
px
;
}
}
...
...
@@ -165,7 +189,7 @@
}
.btn-wrap
{
margin
:
4
0px
auto
0
;
margin
:
5
0px
auto
0
;
display
:
flex
;
justify-content
:
center
;
}
...
...
@@ -174,23 +198,21 @@
background
:
url("~@assets/images/vhis/vhis-btn.png")
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
width
:
405
px
;
height
:
6
0px
;
line-height
:
6
0px
;
width
:
300
px
;
height
:
5
0px
;
line-height
:
5
0px
;
color
:
#ffffff
;
font-weight
:
bold
;
cursor
:
pointer
;
letter-spacing
:
1
.4px
;
font-size
:
28px
;
letter-spacing
:
1
.1px
;
margin
:
0
25px
;
}
.contact
{
font-size
:
28px
;
margin
:
45px
auto
0
;
margin
:
50px
auto
0
;
font-weight
:
bold
;
span
{
span
{
text-decoration
:
underline
;
}
}
...
...
@@ -258,6 +280,11 @@
@media
(
max-width
:
768px
)
{
.close
{
right
:
-15px
;
top
:
-40px
;
}
.border
{
.modal
{
...
...
@@ -274,16 +301,29 @@
.form
{
margin
:
24px
auto
0
;
.value
{
span
{
font-size
:
18px
;
}
}
}
.bottom-wrap
{
margin
:
24px
auto
0
;
.notice
{
span
{
font-size
:
18px
;
}
}
.btn-wrap
{
margin
:
16px
auto
0
;
flex-wrap
:
wrap
;
.submit-btn
{
.submit-btn
{
height
:
48px
;
line-height
:
48px
;
font-size
:
18px
;
...
...
@@ -291,7 +331,7 @@
}
}
.contact
{
.contact
{
margin
:
16px
auto
0
;
font-size
:
18px
;
}
...
...
src/components/vhis-modal/vhis-modal.vue
View file @
81f4f81
...
...
@@ -6,56 +6,74 @@
<div
class=
"close"
@
click=
"onOverLayHandler()"
><img
src=
"@/assets/images/vhis/close.png"
></div>
<div
class=
"modal"
>
<div
class=
"content"
>
<div
class=
"title"
>
{{
$t
(
'vhis.title'
)
}}
</div>
<div
class=
"title"
>
{{
$t
(
'vhis.title'
)
}}
{{
$t
(
'vhis.titleAft'
)
}}
</div>
<div
class=
"statement"
>
<div
class=
"desc orange"
>
{{
$t
(
'vhis.desc1'
)
}}
</div>
<div
class=
"desc"
>
{{
$t
(
'vhis.desc2'
)
}}
</div>
<div
class=
"desc"
>
{{
$t
(
'vhis.desc3'
)
}}
</div>
<div
class=
"desc"
>
{{
$t
(
'vhis.desc4'
)
}}
</div>
<div
class=
"desc"
>
{{
$t
(
'vhis.desc5'
)
}}
</div>
<div
class=
"desc orange"
:class=
"
{'ltr-zero':locale == 'en'}"
>
{{
$t
(
'vhis.desc1'
)
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}"
>
{{
$t
(
'vhis.desc2'
)
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}"
>
{{
$t
(
'vhis.desc3'
)
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}"
>
{{
$t
(
'vhis.desc4'
)
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}"
>
{{
$t
(
'vhis.desc5'
)
}}
</div>
</div>
<hr
class=
"line1"
>
<div
class=
"form "
>
<div
class=
"form-item"
>
<div
class=
"desc"
>
{{
$t
(
'vhis.label1'
)
}}
:
</div>
<div
class=
"value orange"
>
{{
policyDetail
.
policyCode
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}">
{{
$t
(
'vhis.label1'
)
}}
:
</div>
<div
class=
"value orange"
>
<span>
{{
policyDetail
.
policyCode
}}
</span>
</div>
</div>
<div
class=
"form-item"
>
<div
class=
"desc"
>
{{
$t
(
'vhis.label2'
)
}}
:
</div>
<div
class=
"value orange"
>
{{
policyDetail
.
productName
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}">
{{
$t
(
'vhis.label2'
)
}}
:
</div>
<div
class=
"value orange"
>
<span>
{{
policyDetail
.
productName
}}
</span>
</div>
</div>
<div
class=
"form-item"
>
<div
class=
"desc"
>
{{
$t
(
'vhis.label3'
)
}}
:
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}"
>
{{
$t
(
'vhis.label3'
)
}}
:
</div>
<div
class=
"value"
>
<span
class=
"orange"
>
{{
policyDetail
.
ymd1
}}
</span>
{{
$t
(
'vhis.ymd1'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
ymd2
}}
</span>
{{
$t
(
'vhis.ymd2'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
ymd2
}}
</span>
{{
$t
(
'vhis.ymd3'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
ymd1
}}
</span>
<span>
{{
$t
(
'vhis.ymd1'
)
}}
</span>
<span
class=
"orange"
>
{{
policyDetail
.
ymd2
}}
</span>
<span>
{{
$t
(
'vhis.ymd2'
)
}}
</span>
<span
class=
"orange"
>
{{
policyDetail
.
ymd3
}}
</span>
<span>
{{
$t
(
'vhis.ymd3'
)
}}
</span>
</div>
</div>
<div
class=
"form-item"
>
<div
class=
"desc"
>
{{
$t
(
'vhis.label4'
)
}}
:
</div>
<div
class=
"value orange"
>
{{
policyDetail
.
clientNameCn
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}">
{{
$t
(
'vhis.label4'
)
}}
:
</div>
<div
class=
"value orange"
>
<span>
{{
policyDetail
.
clientNameCn
}}
</span>
</div>
</div>
<div
class=
"form-item"
>
<div
class=
"desc"
>
{{
$t
(
'vhis.label5'
)
}}
:
</div>
<div
class=
"value orange"
>
{{
policyDetail
.
insuredNameCn
}}
</div>
<div
class=
"desc"
:class=
"
{'ltr-zero':locale == 'en'}">
{{
$t
(
'vhis.label5'
)
}}
:
</div>
<div
class=
"value orange"
>
<span>
{{
policyDetail
.
insuredNameCn
}}
</span>
</div>
</div>
<div
class=
"download"
>
<div
class=
"border2 download-item"
@
click=
"downloadPolicy"
>
<div
class=
"cont"
>
<img
class=
"icon"
src=
"@/assets/images/vhis/vhis-download.png"
>
{{
$t
(
'vhis.btn1'
)
}}
<img
class=
"icon"
src=
"@/assets/images/vhis/vhis-download.png"
>
<span
class=
"t1"
>
{{
$t
(
'vhis.btn1'
)
}}
</span>
</div>
</div>
</div>
</div>
<hr
class=
"line1"
>
<div
class=
"bottom-wrap "
>
<span
class=
"desc"
>
{{
$t
(
'vhis.tip1'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
clientNameCn
}}
</span>
{{
$t
(
'vhis.tip2'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
nowYmd1
}}
</span>
{{
$t
(
'vhis.ymd1'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
nowYmd2
}}
</span>
{{
$t
(
'vhis.ymd2'
)
}}
<span
class=
"orange"
>
{{
policyDetail
.
nowYmd3
}}
</span>
{{
$t
(
'vhis.ymd3'
)
}}{{
$t
(
'vhis.tip3'
)
}}
</span>
<span
class=
"notice"
>
<span>
{{
$t
(
'vhis.tip1'
)
}}
</span>
<span
class=
"orange"
>
{{
policyDetail
.
clientNameCn
}}
</span>
<span>
{{
$t
(
'vhis.tip2'
)
}}
</span>
<span
class=
"orange"
>
{{
policyDetail
.
nowYmd1
}}
</span>
<span>
{{
$t
(
'vhis.ymd1'
)
}}
</span>
<span
class=
"orange"
>
{{
policyDetail
.
nowYmd2
}}
</span>
<span>
{{
$t
(
'vhis.ymd2'
)
}}
</span>
<span
class=
"orange"
>
{{
policyDetail
.
nowYmd3
}}
</span>
<span>
{{
$t
(
'vhis.ymd3'
)
}}{{
$t
(
'vhis.tip3'
)
}}
</span>
</span>
<div
class=
"btn-wrap"
>
<div
class=
"submit-btn"
@
click=
"handleConfirmPolicy"
>
{{
$t
(
'vhis.btn2'
)
}}
</div>
<div
class=
"submit-btn "
@
click=
"handleIgnorePolicy"
>
{{
$t
(
'vhis.btn3'
)
}}
</div>
...
...
Please
register
or
sign in
to post a comment