diff --git a/src/components/common/header.vue b/src/components/common/header.vue index 67524a4..dea204a 100644 --- a/src/components/common/header.vue +++ b/src/components/common/header.vue @@ -536,8 +536,9 @@ export default { switchRole(command) { if (!command) { return; + } else if (command === 'marketMaker') { + location.href = '/marketAnnounce'; } - location.href = '/market-announce'; }, exit(params) { logOut().then(res => { diff --git a/src/components/common/market-header.vue b/src/components/common/market-header.vue index 35a4045..aeed6f9 100644 --- a/src/components/common/market-header.vue +++ b/src/components/common/market-header.vue @@ -85,8 +85,8 @@ import {yyyfUrl} from '@/api/app.js'; const Menu = { icon: [{t: 'nav.menu_name', link: '/'}], left: [ - {t: '发布广告', link: '/market-announce'}, - {t: '法币交易', link: '/market-order'}, + {t: '发布广告', link: '/marketAnnounce'}, + {t: '法币交易', link: '/marketOrder'}, ], right: [], }; @@ -119,7 +119,7 @@ export default { }, userData: '', headerImg: '', - perUrl: 'market-announce', + perUrl: 'marketAnnounce', file: '', showCounting: true, //0 考试 1 练习 2 不计分 @@ -285,8 +285,9 @@ export default { switchRole(command) { if (!command) { return; + } else if (command === 'tradeUser') { + location.href = '/'; } - location.href = '/'; }, }, }; diff --git a/src/pages/market-announce.app.js b/src/pages/marketAnnounce.app.js similarity index 74% rename from src/pages/market-announce.app.js rename to src/pages/marketAnnounce.app.js index 00522aa..ccf2d31 100644 --- a/src/pages/market-announce.app.js +++ b/src/pages/marketAnnounce.app.js @@ -1,6 +1,6 @@ import pageCommon from '@/common/page-common'; -import App from './market-announce'; +import App from './marketAnnounce'; pageCommon.createPageInstance({ render: h => h(App), diff --git a/src/pages/market-announce.vue b/src/pages/marketAnnounce.vue similarity index 99% rename from src/pages/market-announce.vue rename to src/pages/marketAnnounce.vue index 9eb9eaa..b78b81d 100644 --- a/src/pages/market-announce.vue +++ b/src/pages/marketAnnounce.vue @@ -48,7 +48,7 @@ import AnnounceTableSell from '@/components/announce/announce-table-sell'; import MarketHeader from '@/components/common/market-header'; export default { - name: 'market-announce', + name: 'marketAnnounce', components: { MarketHeader, Footer, diff --git a/src/pages/market-order.app.js b/src/pages/marketOrder.app.js similarity index 76% rename from src/pages/market-order.app.js rename to src/pages/marketOrder.app.js index bacaa91..5ce322a 100644 --- a/src/pages/market-order.app.js +++ b/src/pages/marketOrder.app.js @@ -1,6 +1,6 @@ import pageCommon from '@/common/page-common'; -import App from './market-order'; +import App from './marketOrder'; pageCommon.createPageInstance({ render: h => h(App), diff --git a/src/pages/market-order.vue b/src/pages/marketOrder.vue similarity index 97% rename from src/pages/market-order.vue rename to src/pages/marketOrder.vue index f6aa757..39f38db 100644 --- a/src/pages/market-order.vue +++ b/src/pages/marketOrder.vue @@ -18,7 +18,7 @@ import OrderOtcGoods from '@/components/order/order-otc-goods'; import MarketHeader from '@/components/common/market-header'; export default { - name: 'market-order', + name: 'marketOrder', components: { MarketHeader, Footer, diff --git a/title.config.js b/title.config.js index cd4c1ef..a32d41e 100644 --- a/title.config.js +++ b/title.config.js @@ -29,6 +29,8 @@ const Titles = { about: '关于我们', help: '帮助中心', }, + marketAnnounce: '发布广告', + marketOrder: '法币管理', }; /**