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
bbd9844a
authored
2020-04-07 15:53:52 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
保單新增兩個字段
1 parent
aec5495f
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
47 additions
and
6 deletions
src/common/lang/en.js
src/common/lang/tc.js
src/common/lang/zh.js
src/pages/custom-service/components/policy-head-list.js
src/pages/custom-service/components/policy-head-list.vue
src/pages/register/register.js
src/pages/register/register.vue
src/utils/biz.js
src/common/lang/en.js
View file @
bbd9844
...
...
@@ -742,6 +742,8 @@ module.exports = {
modify
:
"modify"
,
InsurantNumber
:
"Policy Number"
,
policyState
:
"Policy State"
,
activeDate
:
"Active Date"
,
Insurant
:
"Insured"
,
InsurantName
:
"Policy Type"
,
InsurantAmount
:
"Sum Insured"
,
...
...
src/common/lang/tc.js
View file @
bbd9844
...
...
@@ -736,6 +736,8 @@ module.exports = {
modify
:
"修改"
,
InsurantNumber
:
"保單號碼"
,
policyState
:
"保單狀態"
,
activeDate
:
"生效日期"
,
Insurant
:
"受保人"
,
InsurantName
:
"險種名稱"
,
InsurantAmount
:
"保額"
,
...
...
src/common/lang/zh.js
View file @
bbd9844
...
...
@@ -737,6 +737,8 @@ module.exports = {
modify
:
"修改"
,
InsurantNumber
:
"保单号码"
,
policyState
:
"保单状态"
,
activeDate
:
"生效日期"
,
Insurant
:
"受保人"
,
InsurantName
:
"险种名称"
,
InsurantAmount
:
"保额"
,
...
...
src/pages/custom-service/components/policy-head-list.js
View file @
bbd9844
...
...
@@ -10,6 +10,7 @@ import {
import
{
formatMoney
,
getInsuredPeriod
,
getInsuredState
,
getPolicyName
}
from
"@/utils/biz.js"
;
import
Modal2Comp
from
'@/components/modal2-comp/modal2-comp.vue'
;
...
...
@@ -226,6 +227,9 @@ export default {
formatInsuredPeriod
(
t
,
v
)
{
return
getInsuredPeriod
(
this
.
$i18n
.
locale
,
t
,
v
);
},
formatInsuredState
(
c
)
{
return
getInsuredState
(
this
.
$i18n
.
locale
,
c
);
},
formatPolicyName
(
c
,
n
)
{
return
getPolicyName
(
this
.
$i18n
.
locale
,
c
,
n
);
},
...
...
src/pages/custom-service/components/policy-head-list.vue
View file @
bbd9844
...
...
@@ -6,6 +6,8 @@
<div
class=
"table-header orange"
>
<div
class=
"normal-header"
>
<div
class=
"td w1"
>
{{
$t
(
'customService.insuranceQuery.InsurantNumber'
)
}}
</div>
<div
class=
"td w2"
>
{{
$t
(
'customService.insuranceQuery.policyState'
)
}}
</div>
<div
class=
"td w2"
>
{{
$t
(
'customService.insuranceQuery.activeDate'
)
}}
</div>
<div
class=
"td w2"
>
{{
$t
(
'customService.insuranceQuery.Insurant'
)
}}
</div>
<div
class=
"td w1"
>
{{
$t
(
'customService.insuranceQuery.InsurantName'
)
}}
</div>
<div
class=
"td w2"
>
{{
$t
(
'customService.insuranceQuery.InsurantAmount'
)
}}
</div>
...
...
@@ -43,6 +45,9 @@
</template>
</div>
<div
class=
"td w2"
>
{{formatInsuredState(item.policyState)}}
</div>
<div
class=
"td w2"
>
{{item.activeDate?item.activeDate.split(" ")[0]:""}}
</div>
<div
class=
"td w2"
>
{{lan == 'en' ? (item.insuredNameEn ? item.insuredNameEn : item.insuredNameCn) : (item.insuredNameCn ? item.insuredNameCn : item.insuredNameEn)}}
</div>
<div
class=
"td w1"
>
{{formatPolicyName(item.productCode, item.productName)}}
</div>
<div
class=
"td w2"
>
{{item.moneyCode}} {{formatMoney(item.amount,0)}}
</div>
...
...
src/pages/register/register.js
View file @
bbd9844
...
...
@@ -266,6 +266,13 @@ export default {
});
});
},
checkMobileActivity
()
{
this
.
errorTips
.
p1
=
""
;
if
(
!
this
.
registerForm
.
mobileNo
)
{
return
;
}
this
.
_checkMobileLegal
();
},
registerV2Handler
()
{
if
(
this
.
registerDisabledV2
)
{
return
;
...
...
@@ -573,10 +580,11 @@ export default {
watch
:
{
mobileNoType
()
{
this
.
mobileOptions
.
forEach
(
element
=>
{
// this.errorTips.p1 = "";
if
(
element
.
type
==
this
.
mobileNoType
)
{
this
.
$set
(
this
,
'mobileTip'
,
element
);
this
.
checkMobileActivity
();
}
this
.
errorTips
.
p1
=
""
;
})
},
'registerForm.mobileNo'
:
function
()
{
...
...
src/pages/register/register.vue
View file @
bbd9844
...
...
@@ -147,7 +147,7 @@
</div>
<div
class=
"ipt ipt2"
:class=
"
{err : errorTips.p1.length > 0}">
<input
:placeholder=
"mobileTip.placeHolder"
class=
"ipt-tel"
type=
"text"
v-model=
"registerForm.mobileNo"
>
<input
:placeholder=
"mobileTip.placeHolder"
class=
"ipt-tel"
type=
"text"
v-model=
"registerForm.mobileNo"
@
blur=
"checkMobileActivity($event)"
>
</div>
</div>
<div
class=
"validator"
v-if=
"errorTips.p1.length > 0 "
>
...
...
src/utils/biz.js
View file @
bbd9844
...
...
@@ -1069,16 +1069,16 @@ export function getInsuredPeriod(lan, t, v) {
let
value
=
""
;
switch
(
t
)
{
case
"1"
:
value
=
lan
==
"zh"
?
"
保终身"
:
lan
==
"tc"
?
"保
終身"
:
"Cover whole life"
;
value
=
lan
==
"zh"
?
"
终身"
:
lan
==
"tc"
?
"
終身"
:
"Cover whole life"
;
break
;
case
"2"
:
value
=
lan
==
"zh"
?
"保"
+
v
+
"年"
:
lan
==
"tc"
?
"保"
+
v
+
"年"
:
"Cover "
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
);
value
=
lan
==
"zh"
?
v
+
"年"
:
lan
==
"tc"
?
v
+
"年"
:
"Cover "
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
);
break
;
case
"3"
:
value
=
lan
==
"zh"
?
"至"
+
v
+
"岁"
:
lan
==
"tc"
?
"至"
+
v
+
"歲"
:
"Cover up to "
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
)
+
" old"
;
value
=
lan
==
"zh"
?
v
+
"岁"
:
lan
==
"tc"
?
v
+
"歲"
:
"Cover up to "
+
v
+
" "
+
(
v
>
1
?
"years"
:
"year"
)
+
" old"
;
break
;
case
"4"
:
value
=
lan
==
"zh"
?
"保"
+
v
+
"月"
:
lan
==
"tc"
?
"保"
+
v
+
"月"
:
"Cover "
+
v
+
" "
+
(
v
>
1
?
"months"
:
"month"
);
value
=
lan
==
"zh"
?
v
+
"月"
:
lan
==
"tc"
?
v
+
"月"
:
"Cover "
+
v
+
" "
+
(
v
>
1
?
"months"
:
"month"
);
break
;
default
:
value
=
lan
==
"zh"
?
"无关"
:
lan
==
"tc"
?
"無關"
:
"NA"
;
...
...
@@ -1086,6 +1086,24 @@ export function getInsuredPeriod(lan, t, v) {
}
return
value
;
}
export
function
getInsuredState
(
lan
,
c
)
{
let
value
=
""
;
switch
(
c
)
{
case
"1"
:
value
=
lan
==
"zh"
?
"有效"
:
lan
==
"tc"
?
"有效"
:
"Inforce"
;
break
;
case
"2"
:
value
=
lan
==
"zh"
?
"失效"
:
lan
==
"tc"
?
"失效"
:
"Lapsed"
;
break
;
default
:
value
=
lan
==
"zh"
?
"终止"
:
lan
==
"tc"
?
"終止"
:
"Terminated"
;
break
;
}
return
value
;
}
export
function
getBenefitType
(
lan
,
t
)
{
let
value
=
""
;
let
candidates
=
lan
==
"zh"
?
relationList
:
lan
==
"tc"
?
relationTcList
:
relationEnList
;
...
...
Please
register
or
sign in
to post a comment