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
f41ab33d
authored
2020-06-05 18:34:00 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
标题和三语修改
1 parent
05a9a63c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
13 deletions
src/common/lang/en.js
src/common/lang/tc.js
src/common/lang/zh.js
src/components/modal-upload-card-comp/modal-upload-card-comp.js
src/components/modal-upload-card-comp/modal-upload-card-comp.vue
src/router.js
src/common/lang/en.js
View file @
f41ab33
...
...
@@ -32,9 +32,9 @@ module.exports = {
datePlaceholder
:
"please select date"
},
modalUploadCard
:
{
tit
:
"
請上傳證件資料
"
,
front
:
"
證件正面
"
,
back
:
"
證件反面
"
,
tit
:
"
Please upload identity information
"
,
front
:
"
Front side of identity card
"
,
back
:
"
Back side of identity card
"
,
}
},
error
:
{
...
...
@@ -114,6 +114,14 @@ module.exports = {
path
:
"/custom/service?q=m41"
},
{
name
:
"Change of Contact Information"
,
path
:
"/custom/service?q=m42"
},
{
name
:
"Change of Customer Information"
,
path
:
"/custom/service?q=m43"
},
{
name
:
"Claims Application"
,
path
:
"/custom/service?q=m5"
},
...
...
src/common/lang/tc.js
View file @
f41ab33
...
...
@@ -33,7 +33,7 @@ module.exports = {
modalUploadCard
:
{
tit
:
"請上傳證件資料"
,
front
:
"證件正面"
,
back
:
"證件
反
面"
back
:
"證件
背
面"
}
},
error
:
{
...
...
@@ -114,6 +114,14 @@ module.exports = {
path
:
"/custom/service?q=m41"
},
{
name
:
"更改聯絡方式"
,
path
:
"/custom/service?q=m42"
},
{
name
:
"更改客戶資料"
,
path
:
"/custom/service?q=m43"
},
{
name
:
"理賠申請"
,
path
:
"/custom/service?q=m5"
},
...
...
src/common/lang/zh.js
View file @
f41ab33
...
...
@@ -34,7 +34,7 @@ module.exports = {
modalUploadCard
:
{
tit
:
"请上传证件资料"
,
front
:
"证件正面"
,
back
:
"证件
反
面"
back
:
"证件
背
面"
}
},
error
:
{
...
...
@@ -115,6 +115,14 @@ module.exports = {
path
:
"/custom/service?q=m41"
},
{
name
:
"联系方式变更"
,
path
:
"/custom/service?q=m42"
},
{
name
:
"客户资料变更"
,
path
:
"/custom/service?q=m43"
},
{
name
:
"理赔申请"
,
path
:
"/custom/service?q=m5"
},
...
...
src/components/modal-upload-card-comp/modal-upload-card-comp.js
View file @
f41ab33
...
...
@@ -94,7 +94,8 @@ export default {
insuredFrontPicSrc
:
null
,
insuredBackPicSrc
:
null
,
insuredFrontPicFile
:
null
,
insuredBackPicFile
:
null
insuredBackPicFile
:
null
,
confirmTextStr
:
""
,
}
},
components
:
{},
...
...
@@ -193,5 +194,6 @@ export default {
},
mounted
()
{
},
created
()
{
}
}
...
...
src/components/modal-upload-card-comp/modal-upload-card-comp.vue
View file @
f41ab33
...
...
@@ -33,8 +33,8 @@
</div>
</div>
<div
class=
"modal-btn-wrap"
>
<div
@
click=
"onCancelHandler()"
v-if=
"showCancel"
class=
"btn"
>
{{
cancelText
}}
</div>
<div
@
click=
"onConfirmHandler()"
v-if=
"showConfirm"
class=
"btn"
:class=
"
{disabled: submitBtnDisabled}">
{{
confirmText
}}
</div>
<div
@
click=
"onCancelHandler()"
v-if=
"showCancel"
class=
"btn"
>
{{
$t
(
"common.Confirm"
)
}}
</div>
<div
@
click=
"onConfirmHandler()"
v-if=
"showConfirm"
class=
"btn"
:class=
"
{disabled: submitBtnDisabled}">
{{
$t
(
"common.Confirm"
)
}}
</div>
</div>
</div>
</div>
...
...
src/router.js
View file @
f41ab33
...
...
@@ -313,9 +313,7 @@ const router = new Router({
});
function
setTitleByRouter
(
to
){
function
setTitleByRouter
(
to
)
{
let
langStr
=
localStorage
.
getItem
(
"lang"
)
||
'tc'
;
let
lang
;
...
...
@@ -337,6 +335,7 @@ function setTitleByRouter(to){
break
;
}
// lang对象为当前语言配置 见 en.js,tc.js,zh.js
let
title
=
""
;
lang
.
nav
.
navList
.
forEach
(
e1
=>
{
...
...
@@ -350,6 +349,12 @@ function setTitleByRouter(to){
});
}
});
// 不在下拉菜单的在三语的title取
// title = title || to.name
title
=
lang
[
to
.
name
+
''
]
&&
lang
[
to
.
name
+
''
].
title
||
title
;
// to参数可以获取要前往页面的信息,包括参数
title
=
title
||
to
.
meta
&&
to
.
meta
.
title
;
if
(
title
)
{
...
...
@@ -362,7 +367,6 @@ function setTitleByRouter(to){
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
setTitleByRouter
(
to
);
// const scrollTopList = [
// "newsList", "newsDetail", "protocol", "privacy", "terms", "paymentType", "reservation"
// ]
...
...
@@ -381,4 +385,4 @@ function initEvt() {
}
setTimeout
(()
=>
{
initEvt
();
},
0
);
\ No newline at end of file
},
0
);
...
...
Please
register
or
sign in
to post a comment