|
|
@ -43,7 +43,7 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<span class="dropdown-link"> |
|
|
|
<span class="dropdown-link"> |
|
|
|
<span> |
|
|
|
<span> |
|
|
|
交易用户 |
|
|
|
{{ menuRole.current.name }} |
|
|
|
</span> |
|
|
|
</span> |
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
</span> |
|
|
|
</span> |
|
|
@ -78,9 +78,7 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
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 {FILE_URL} from '@/api/app'; |
|
|
|
import {FILE_URL} from '@/api/app'; |
|
|
|
import {submit, reStart} from '@/api/yyyf'; |
|
|
|
|
|
|
|
import {signUp, signIn} from '@/api/user'; |
|
|
|
import {signUp, signIn} from '@/api/user'; |
|
|
|
import {yyyfUrl} from '@/api/app.js'; |
|
|
|
import {yyyfUrl} from '@/api/app.js'; |
|
|
|
|
|
|
|
|
|
|
@ -113,7 +111,7 @@ export default { |
|
|
|
menuLeft: Menu.left, |
|
|
|
menuLeft: Menu.left, |
|
|
|
menuRight: Menu.right, |
|
|
|
menuRight: Menu.right, |
|
|
|
menuRole: { |
|
|
|
menuRole: { |
|
|
|
current: {id: 'tradeUser', name: '交易用户'}, |
|
|
|
current: {id: 'marketMaker', name: '做市商'}, |
|
|
|
list: [ |
|
|
|
list: [ |
|
|
|
{id: 'tradeUser', name: '交易用户'}, |
|
|
|
{id: 'tradeUser', name: '交易用户'}, |
|
|
|
{id: 'marketMaker', name: '做市商'}, |
|
|
|
{id: 'marketMaker', name: '做市商'}, |
|
|
@ -121,7 +119,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
userData: '', |
|
|
|
userData: '', |
|
|
|
headerImg: '', |
|
|
|
headerImg: '', |
|
|
|
perUrl: 'personal', |
|
|
|
perUrl: 'market-announce', |
|
|
|
file: '', |
|
|
|
file: '', |
|
|
|
showCounting: true, |
|
|
|
showCounting: true, |
|
|
|
//0 考试 1 练习 2 不计分 |
|
|
|
//0 考试 1 练习 2 不计分 |
|
|
@ -141,15 +139,15 @@ export default { |
|
|
|
let yyyfToken = localStorage.getItem('yyyfToken'); |
|
|
|
let yyyfToken = localStorage.getItem('yyyfToken'); |
|
|
|
this.isSubmit = localStorage.getItem('isSubmit') == 'true' ? true : false; |
|
|
|
this.isSubmit = localStorage.getItem('isSubmit') == 'true' ? true : false; |
|
|
|
if (yyyfToken == '' || yyyfToken == undefined) { |
|
|
|
if (yyyfToken == '' || yyyfToken == undefined) { |
|
|
|
// this.$alert('未从以渔有方登录,点击确定返回登录', '提示', { |
|
|
|
this.$alert('未从以渔有方登录,点击确定返回登录', '提示', { |
|
|
|
// type: 'error', |
|
|
|
type: 'error', |
|
|
|
// showClose: false, |
|
|
|
showClose: false, |
|
|
|
// confirmButtonText: '确定', |
|
|
|
confirmButtonText: '确定', |
|
|
|
// confirmButtonClass: 'btn-self-style', |
|
|
|
confirmButtonClass: 'btn-self-style', |
|
|
|
// callback: () => { |
|
|
|
callback: () => { |
|
|
|
// window.location.href = yyyfUrl; |
|
|
|
window.location.href = yyyfUrl; |
|
|
|
// }, |
|
|
|
}, |
|
|
|
// }); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
//请求类型 |
|
|
|
//请求类型 |
|
|
|
this.reqType = localStorage.getItem('reqType'); |
|
|
|
this.reqType = localStorage.getItem('reqType'); |
|
|
@ -162,7 +160,6 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.file = FILE_URL; |
|
|
|
this.file = FILE_URL; |
|
|
|
this.perUrl = window.location.pathname.split('/')[1]; |
|
|
|
this.perUrl = window.location.pathname.split('/')[1]; |
|
|
|
// console.log(this.perUrl); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// this.userData = Cookie.get('userData'); |
|
|
|
// this.userData = Cookie.get('userData'); |
|
|
|
this.userData = localStorage.getItem('userData'); |
|
|
|
this.userData = localStorage.getItem('userData'); |
|
|
@ -348,7 +345,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.menu-item { |
|
|
|
.menu-item { |
|
|
|
margin-right: 3%; |
|
|
|
margin-right: 6%; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -378,7 +375,7 @@ export default { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
flex-wrap: wrap; |
|
|
|
flex-wrap: wrap; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
justify-content: space-between; |
|
|
|
justify-content: flex-start; |
|
|
|
|
|
|
|
|
|
|
|
.menu-item { |
|
|
|
.menu-item { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|