Browse Source

新增希伯来语

master
liaoxinyu 9 months ago
parent
commit
dfcc823a02
  1. 8
      src/api/server/index.js
  2. BIN
      src/assets/img/flag/he.jpg
  3. 5
      src/components/CommonFooter.vue
  4. 9
      src/components/CommonHeader.vue
  5. 1178
      src/i18n/he.json
  6. 3
      src/i18n/index.js
  7. 22
      src/views/home/index.vue

8
src/api/server/index.js

@ -94,6 +94,8 @@ let loading = null;
server.interceptors.request.use(
config => {
let token = localStorage.getItem("token");
config.headers["authorization"] = `bearer ${token}`
// 剔除部分高频接口 主要是交易时的后台操作
if (!exclude.find(item => config.url.includes(item))) {
if (!config.config || config.config.loading) {
@ -136,9 +138,9 @@ server.interceptors.response.use(
case 1003: // 登陆失效
message = "登录失效,请重新登录!";
// 清除session
localStorage.removeItem("auth");
localStorage.removeItem("token");
location.href = "/"
// localStorage.removeItem("auth");
// localStorage.removeItem("token");
// location.href = "/"
break;
case 1034: // 请设置交易密码
message = "请先设置交易密码!";

BIN
src/assets/img/flag/he.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

5
src/components/CommonFooter.vue

@ -348,6 +348,11 @@ export default {
label: 'Turkey',
url: require("../assets/img/flag/tr.jpg"),
},
{
value: 'he',
label: 'עִברִית',
url: require("../assets/img/flag/he.jpg"),
},
{
value: "tw", // zh-TW
label: "繁体中文",

9
src/components/CommonHeader.vue

@ -367,6 +367,11 @@ export default {
label: 'Turkey',
url: require("../assets/img/flag/tr.jpg"),
},
{
value: 'he',
label: 'עִברִית',
url: require("../assets/img/flag/he.jpg"),
},
{
value: "tw", // zh-TW
label: "繁体中文",
@ -505,8 +510,8 @@ export default {
changeSightSense() { },
logout() {
localStorage.removeItem("token");
localStorage.removeItem("auth");
// localStorage.removeItem("token");
// localStorage.removeItem("auth");
Member.logout()
.then(response => {
// console.Info(response)

1178
src/i18n/he.json

File diff suppressed because it is too large

3
src/i18n/index.js

@ -18,6 +18,7 @@ import spa from './spa.json'
import swe from './swe.json'
import ukr from './ukr.json'
import tr from './tr.json'
import he from './he.json'
Vue.use(VueI18n)
@ -39,7 +40,7 @@ if (querystring.includes('lang')) {
// 加载i18n语言包
const i18n = new VueI18n({
locale: local, // 默认语言
messages: { en, cn,tw,kor,jp,de,fin,fra,it,pl,pt,spa,swe,ukr,tr } // 文件列表
messages: { en, cn,tw,kor,jp,de,fin,fra,it,pl,pt,spa,swe,ukr,tr,he } // 文件列表
});
// 加载element语言包

22
src/views/home/index.vue

@ -116,21 +116,21 @@
<div class="product">
<div>
<div class="product_text1">{{ $t("homeNewText.hh5") }}</div>
<div class="product_text2">{{ $t("homeNewText.hh6") }}</div>
<div class="product_text2" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh6") }}</div>
</div>
<img src="@/assets/img/home/home2.png" width="150">
</div>
<div class="product">
<div>
<div class="product_text1">{{ $t("homeNewText.hh7") }}</div>
<div class="product_text2">{{ $t("homeNewText.hh8") }}</div>
<div class="product_text2" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh8") }}</div>
</div>
<img src="@/assets/img/home/home4.png" width="150">
</div>
<div class="product">
<div>
<div class="product_text1">{{ $t("homeNewText.hh9") }}</div>
<div class="product_text2">{{ $t("homeNewText.hh10") }}</div>
<div class="product_text2" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh10") }}</div>
</div>
<img src="@/assets/img/home/home6.png" width="150">
</div>
@ -139,21 +139,21 @@
<div class="product">
<div>
<div class="product_text1">{{ $t("homeNewText.hh11") }}</div>
<div class="product_text2">{{ $t("homeNewText.hh12") }}</div>
<div class="product_text2" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh12") }}</div>
</div>
<img src="@/assets/img/home/home3.png" width="150">
</div>
<div class="product">
<div>
<div class="product_text1">{{ $t("homeNewText.hh13") }}</div>
<div class="product_text2">{{ $t("homeNewText.hh14") }}</div>
<div class="product_text2" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh14") }}</div>
</div>
<img src="@/assets/img/home/home5.png" width="150">
</div>
<div class="product">
<div>
<div class="product_text1">{{ $t("homeNewText.hh15") }}</div>
<div class="product_text2">{{ $t("homeNewText.hh16") }}</div>
<div class="product_text2" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh16") }}</div>
</div>
<img src="@/assets/img/home/home7.png" width="150">
</div>
@ -169,28 +169,28 @@
<img src="@/assets/img/home/home8.svg" alt="">
<div class="text_size">{{ $t("homeNewText.hh19") }}</div>
</div>
<div class="text_width">{{ $t("homeNewText.hh20") }}</div>
<div class="text_width" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh20") }}</div>
</div>
<div>
<div class="d-flex" style="align-items: center;">
<img src="@/assets/img/home/home9.svg" alt="">
<div class="text_size">{{ $t("homeNewText.hh21") }}</div>
</div>
<div class="text_width">{{ $t("homeNewText.hh22") }}</div>
<div class="text_width" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh22") }}</div>
</div>
<div>
<div class="d-flex" style="align-items: center;">
<img src="@/assets/img/home/home10.svg" alt="">
<div class="text_size">{{ $t("homeNewText.hh23") }}</div>
</div>
<div class="text_width" style="width: 170px;">{{ $t("homeNewText.hh24") }}</div>
<div class="text_width" :style="lang1 === 'he' ? { textAlign: 'right' } : {}" style="width: 170px;">{{ $t("homeNewText.hh24") }}</div>
</div>
<div>
<div class="d-flex" style="align-items: center;">
<img src="@/assets/img/home/home11.svg" alt="">
<div class="text_size">{{ $t("homeNewText.hh25") }}</div>
</div>
<div class="text_width">{{ $t("homeNewText.hh26") }}</div>
<div class="text_width" :style="lang1 === 'he' ? { textAlign: 'right' } : {}">{{ $t("homeNewText.hh26") }}</div>
</div>
</div>
@ -906,6 +906,7 @@
line: '',
guideList: [],
cid: '',
lang1:localStorage.getItem('lang')
};
},
methods: {
@ -1142,6 +1143,7 @@
this.indexList();
},
mounted() {
this.lang1 = localStorage.getItem('lang')
this.article()
if (this.isLogin) {
this.getCollect();

Loading…
Cancel
Save