标题和三语修改
Showing
6 changed files
with
42 additions
and
12 deletions
| ... | @@ -32,9 +32,9 @@ module.exports = { | ... | @@ -32,9 +32,9 @@ module.exports = { |
| 32 | datePlaceholder: "please select date" | 32 | datePlaceholder: "please select date" |
| 33 | }, | 33 | }, |
| 34 | modalUploadCard: { | 34 | modalUploadCard: { |
| 35 | tit: "請上傳證件資料", | 35 | tit: "Please upload identity information", |
| 36 | front: "證件正面", | 36 | front: "Front side of identity card", |
| 37 | back: "證件反面", | 37 | back: "Back side of identity card", |
| 38 | } | 38 | } |
| 39 | }, | 39 | }, |
| 40 | error: { | 40 | error: { |
| ... | @@ -114,6 +114,14 @@ module.exports = { | ... | @@ -114,6 +114,14 @@ module.exports = { |
| 114 | path: "/custom/service?q=m41" | 114 | path: "/custom/service?q=m41" |
| 115 | }, | 115 | }, |
| 116 | { | 116 | { |
| 117 | name: "Change of Contact Information", | ||
| 118 | path: "/custom/service?q=m42" | ||
| 119 | }, | ||
| 120 | { | ||
| 121 | name: "Change of Customer Information", | ||
| 122 | path: "/custom/service?q=m43" | ||
| 123 | }, | ||
| 124 | { | ||
| 117 | name: "Claims Application", | 125 | name: "Claims Application", |
| 118 | path: "/custom/service?q=m5" | 126 | path: "/custom/service?q=m5" |
| 119 | }, | 127 | }, | ... | ... |
| ... | @@ -33,7 +33,7 @@ module.exports = { | ... | @@ -33,7 +33,7 @@ module.exports = { |
| 33 | modalUploadCard: { | 33 | modalUploadCard: { |
| 34 | tit: "請上傳證件資料", | 34 | tit: "請上傳證件資料", |
| 35 | front: "證件正面", | 35 | front: "證件正面", |
| 36 | back: "證件反面" | 36 | back: "證件背面" |
| 37 | } | 37 | } |
| 38 | }, | 38 | }, |
| 39 | error: { | 39 | error: { |
| ... | @@ -114,6 +114,14 @@ module.exports = { | ... | @@ -114,6 +114,14 @@ module.exports = { |
| 114 | path: "/custom/service?q=m41" | 114 | path: "/custom/service?q=m41" |
| 115 | }, | 115 | }, |
| 116 | { | 116 | { |
| 117 | name: "更改聯絡方式", | ||
| 118 | path: "/custom/service?q=m42" | ||
| 119 | }, | ||
| 120 | { | ||
| 121 | name: "更改客戶資料", | ||
| 122 | path: "/custom/service?q=m43" | ||
| 123 | }, | ||
| 124 | { | ||
| 117 | name: "理賠申請", | 125 | name: "理賠申請", |
| 118 | path: "/custom/service?q=m5" | 126 | path: "/custom/service?q=m5" |
| 119 | }, | 127 | }, | ... | ... |
| ... | @@ -34,7 +34,7 @@ module.exports = { | ... | @@ -34,7 +34,7 @@ module.exports = { |
| 34 | modalUploadCard: { | 34 | modalUploadCard: { |
| 35 | tit: "请上传证件资料", | 35 | tit: "请上传证件资料", |
| 36 | front: "证件正面", | 36 | front: "证件正面", |
| 37 | back: "证件反面" | 37 | back: "证件背面" |
| 38 | } | 38 | } |
| 39 | }, | 39 | }, |
| 40 | error: { | 40 | error: { |
| ... | @@ -115,6 +115,14 @@ module.exports = { | ... | @@ -115,6 +115,14 @@ module.exports = { |
| 115 | path: "/custom/service?q=m41" | 115 | path: "/custom/service?q=m41" |
| 116 | }, | 116 | }, |
| 117 | { | 117 | { |
| 118 | name: "联系方式变更", | ||
| 119 | path: "/custom/service?q=m42" | ||
| 120 | }, | ||
| 121 | { | ||
| 122 | name: "客户资料变更", | ||
| 123 | path: "/custom/service?q=m43" | ||
| 124 | }, | ||
| 125 | { | ||
| 118 | name: "理赔申请", | 126 | name: "理赔申请", |
| 119 | path: "/custom/service?q=m5" | 127 | path: "/custom/service?q=m5" |
| 120 | }, | 128 | }, | ... | ... |
| ... | @@ -94,7 +94,8 @@ export default { | ... | @@ -94,7 +94,8 @@ export default { |
| 94 | insuredFrontPicSrc: null, | 94 | insuredFrontPicSrc: null, |
| 95 | insuredBackPicSrc: null, | 95 | insuredBackPicSrc: null, |
| 96 | insuredFrontPicFile: null, | 96 | insuredFrontPicFile: null, |
| 97 | insuredBackPicFile: null | 97 | insuredBackPicFile: null, |
| 98 | confirmTextStr:"", | ||
| 98 | } | 99 | } |
| 99 | }, | 100 | }, |
| 100 | components: {}, | 101 | components: {}, |
| ... | @@ -193,5 +194,6 @@ export default { | ... | @@ -193,5 +194,6 @@ export default { |
| 193 | }, | 194 | }, |
| 194 | mounted() { }, | 195 | mounted() { }, |
| 195 | created() { | 196 | created() { |
| 197 | |||
| 196 | } | 198 | } |
| 197 | } | 199 | } | ... | ... |
| ... | @@ -33,8 +33,8 @@ | ... | @@ -33,8 +33,8 @@ |
| 33 | </div> | 33 | </div> |
| 34 | </div> | 34 | </div> |
| 35 | <div class="modal-btn-wrap"> | 35 | <div class="modal-btn-wrap"> |
| 36 | <div @click="onCancelHandler()" v-if="showCancel" class="btn">{{cancelText}}</div> | 36 | <div @click="onCancelHandler()" v-if="showCancel" class="btn">{{ $t("common.Confirm") }}</div> |
| 37 | <div @click="onConfirmHandler()" v-if="showConfirm" class="btn" :class="{disabled: submitBtnDisabled}">{{confirmText}}</div> | 37 | <div @click="onConfirmHandler()" v-if="showConfirm" class="btn" :class="{disabled: submitBtnDisabled}">{{$t("common.Confirm")}}</div> |
| 38 | </div> | 38 | </div> |
| 39 | </div> | 39 | </div> |
| 40 | </div> | 40 | </div> | ... | ... |
| ... | @@ -313,9 +313,7 @@ const router = new Router({ | ... | @@ -313,9 +313,7 @@ const router = new Router({ |
| 313 | }); | 313 | }); |
| 314 | 314 | ||
| 315 | 315 | ||
| 316 | 316 | function setTitleByRouter(to) { | |
| 317 | |||
| 318 | function setTitleByRouter(to){ | ||
| 319 | let langStr = localStorage.getItem("lang") || 'tc'; | 317 | let langStr = localStorage.getItem("lang") || 'tc'; |
| 320 | let lang; | 318 | let lang; |
| 321 | 319 | ||
| ... | @@ -337,6 +335,7 @@ function setTitleByRouter(to){ | ... | @@ -337,6 +335,7 @@ function setTitleByRouter(to){ |
| 337 | break; | 335 | break; |
| 338 | } | 336 | } |
| 339 | 337 | ||
| 338 | |||
| 340 | // lang对象为当前语言配置 见 en.js,tc.js,zh.js | 339 | // lang对象为当前语言配置 见 en.js,tc.js,zh.js |
| 341 | let title = ""; | 340 | let title = ""; |
| 342 | lang.nav.navList.forEach(e1 => { | 341 | lang.nav.navList.forEach(e1 => { |
| ... | @@ -350,6 +349,12 @@ function setTitleByRouter(to){ | ... | @@ -350,6 +349,12 @@ function setTitleByRouter(to){ |
| 350 | }); | 349 | }); |
| 351 | } | 350 | } |
| 352 | }); | 351 | }); |
| 352 | |||
| 353 | // 不在下拉菜单的在三语的title取 | ||
| 354 | // title = title || to.name | ||
| 355 | title = lang[to.name + ''] && lang[to.name + ''].title || title; | ||
| 356 | |||
| 357 | |||
| 353 | // to参数可以获取要前往页面的信息,包括参数 | 358 | // to参数可以获取要前往页面的信息,包括参数 |
| 354 | title = title || to.meta && to.meta.title; | 359 | title = title || to.meta && to.meta.title; |
| 355 | if (title) { | 360 | if (title) { |
| ... | @@ -362,7 +367,6 @@ function setTitleByRouter(to){ | ... | @@ -362,7 +367,6 @@ function setTitleByRouter(to){ |
| 362 | 367 | ||
| 363 | router.beforeEach((to, from, next) => { | 368 | router.beforeEach((to, from, next) => { |
| 364 | setTitleByRouter(to); | 369 | setTitleByRouter(to); |
| 365 | |||
| 366 | // const scrollTopList = [ | 370 | // const scrollTopList = [ |
| 367 | // "newsList", "newsDetail", "protocol", "privacy", "terms", "paymentType", "reservation" | 371 | // "newsList", "newsDetail", "protocol", "privacy", "terms", "paymentType", "reservation" |
| 368 | // ] | 372 | // ] | ... | ... |
-
Please register or sign in to post a comment