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