f41ab33d by simon

标题和三语修改

1 parent 05a9a63c
......@@ -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"
},
......
......@@ -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"
},
......
......@@ -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"
},
......
......@@ -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() {
}
}
......
......@@ -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>
......
......@@ -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);
......