|
|
@ -29,11 +29,7 @@ |
|
|
|
<ul class="nav-menu"> |
|
|
|
<ul class="nav-menu"> |
|
|
|
<!-- menu --> |
|
|
|
<!-- menu --> |
|
|
|
<template v-for="m in menuRight"> |
|
|
|
<template v-for="m in menuRight"> |
|
|
|
<li |
|
|
|
<li :key="m.$index" class="menu-item" v-if="userData != '' && userData != undefined"> |
|
|
|
:key="m.$index" |
|
|
|
|
|
|
|
class="menu-item" |
|
|
|
|
|
|
|
v-if="userData != '' && userData != undefined" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<a |
|
|
|
<a |
|
|
|
:class="perUrl === m.link.split('/')[1] ? 'navColor' : ''" |
|
|
|
:class="perUrl === m.link.split('/')[1] ? 'navColor' : ''" |
|
|
|
v-t="m.t" |
|
|
|
v-t="m.t" |
|
|
@ -60,19 +56,12 @@ |
|
|
|
slot="dropdown" |
|
|
|
slot="dropdown" |
|
|
|
class="exRateDropdown" |
|
|
|
class="exRateDropdown" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
<el-dropdown-item v-for="items in exRate.list" :key="items.id" :command="items.id"> |
|
|
|
v-for="items in exRate.list" |
|
|
|
|
|
|
|
:key="items.id" |
|
|
|
|
|
|
|
:command="items.id" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
class="dropdown-menu-item-inner" |
|
|
|
class="dropdown-menu-item-inner" |
|
|
|
:class="[{'is-active': exRate.current === items}]" |
|
|
|
:class="[{'is-active': exRate.current === items}]" |
|
|
|
> |
|
|
|
> |
|
|
|
<i |
|
|
|
<i class="menu-item-icon el-icon-check" v-if="exRate.current === items"></i> |
|
|
|
class="menu-item-icon el-icon-check" |
|
|
|
|
|
|
|
v-if="exRate.current === items" |
|
|
|
|
|
|
|
></i> |
|
|
|
|
|
|
|
<span class="menu-item-text">{{ $t(items.name) }}</span> |
|
|
|
<span class="menu-item-text">{{ $t(items.name) }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
@ -98,19 +87,12 @@ |
|
|
|
slot="dropdown" |
|
|
|
slot="dropdown" |
|
|
|
class="langDropdown" |
|
|
|
class="langDropdown" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-dropdown-item |
|
|
|
<el-dropdown-item v-for="item in lang.list" :key="item.lang" :command="item.lang"> |
|
|
|
v-for="item in lang.list" |
|
|
|
|
|
|
|
:key="item.lang" |
|
|
|
|
|
|
|
:command="item.lang" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<div |
|
|
|
<div |
|
|
|
class="dropdown-menu-item-inner" |
|
|
|
class="dropdown-menu-item-inner" |
|
|
|
:class="[{'is-active': lang.current === item}]" |
|
|
|
:class="[{'is-active': lang.current === item}]" |
|
|
|
> |
|
|
|
> |
|
|
|
<i |
|
|
|
<i class="menu-item-icon el-icon-check" v-if="lang.current === item"></i> |
|
|
|
class="menu-item-icon el-icon-check" |
|
|
|
|
|
|
|
v-if="lang.current === item" |
|
|
|
|
|
|
|
></i> |
|
|
|
|
|
|
|
<span class="menu-item-text">{{ item.name }}</span> |
|
|
|
<span class="menu-item-text">{{ item.name }}</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</el-dropdown-item> |
|
|
|
</el-dropdown-item> |
|
|
@ -136,27 +118,20 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!-- 注册按钮 --> |
|
|
|
<!-- 注册按钮 --> |
|
|
|
<li class="menu-item" v-if="userData == '' || userData == undefined"> |
|
|
|
<li class="menu-item" v-if="userData == '' || userData == undefined"> |
|
|
|
<a |
|
|
|
<a :href="'/login?perUrl=' + perUrl + '#/signUp'" class="registered"> |
|
|
|
:href="'/login?perUrl=' + perUrl + '#/signUp'" |
|
|
|
|
|
|
|
class="registered" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span>{{ $t('login.signUp.btn') }}</span> |
|
|
|
<span>{{ $t('login.signUp.btn') }}</span> |
|
|
|
</a> |
|
|
|
</a> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<!-- 用户手机号码 --> |
|
|
|
<!-- 用户手机号码 --> |
|
|
|
<li class="menu-item" v-if="userData != '' && userData != undefined"> |
|
|
|
<li class="menu-item" v-if="userData != '' && userData != undefined"> |
|
|
|
<el-dropdown |
|
|
|
<el-dropdown @command="switchPage" trigger="click" class="menu-item-inner nav-dropdown"> |
|
|
|
@command="switchPage" |
|
|
|
|
|
|
|
trigger="click" |
|
|
|
|
|
|
|
class="menu-item-inner nav-dropdown" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<span class="dropdown-link"> |
|
|
|
<span class="dropdown-link"> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
{{ |
|
|
|
{{ |
|
|
|
userData.mobilePhone.replace( |
|
|
|
userData.mobilePhone.replace( |
|
|
|
/^(\d{3})\d*(\d{4})$/, |
|
|
|
/^(\d{3})\d*(\d{4})$/, |
|
|
|
'$1****$2' |
|
|
|
'$1****$2' |
|
|
|
) |
|
|
|
) |
|
|
|
}} |
|
|
|
}} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
@ -211,7 +186,6 @@ |
|
|
|
import {getCurrentLanguage} from '@/common/i18n'; |
|
|
|
import {getCurrentLanguage} from '@/common/i18n'; |
|
|
|
import {getExchangeRateCookie, setExchangeRateCookie} from '@/utils/auth'; |
|
|
|
import {getExchangeRateCookie, setExchangeRateCookie} from '@/utils/auth'; |
|
|
|
import {logOut} from '@/api/user'; |
|
|
|
import {logOut} from '@/api/user'; |
|
|
|
import Cookie from '@/common/cookie'; |
|
|
|
|
|
|
|
import {FILE_URL} from '@/api/app'; |
|
|
|
import {FILE_URL} from '@/api/app'; |
|
|
|
|
|
|
|
|
|
|
|
const Menu = { |
|
|
|
const Menu = { |
|
|
@ -303,7 +277,7 @@ export default { |
|
|
|
showClose: false, |
|
|
|
showClose: false, |
|
|
|
confirmButtonText: '确定', |
|
|
|
confirmButtonText: '确定', |
|
|
|
confirmButtonClass: 'btn-self-style', |
|
|
|
confirmButtonClass: 'btn-self-style', |
|
|
|
callback: action => { |
|
|
|
callback: () => { |
|
|
|
this.closeWindow(); |
|
|
|
this.closeWindow(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
}); |
|
|
|
}); |
|
|
|