diff --git a/src/components/common/header.vue b/src/components/common/header.vue
index 3c59b23..fd4aa34 100644
--- a/src/components/common/header.vue
+++ b/src/components/common/header.vue
@@ -183,6 +183,41 @@
+
+
@@ -280,6 +315,13 @@ export default {
/* {id: 'out', name: this.$t('nav.menu_logOut')},*/
],
},
+ menuRole: {
+ current: {id: 'tradeUser', name: '交易用户'},
+ list: [
+ {id: 'tradeUser', name: '交易用户'},
+ {id: 'marketMaker', name: '做市商'},
+ ],
+ },
userData: '',
headerImg: '',
perUrl: 'personal',
@@ -312,15 +354,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');
@@ -491,6 +533,12 @@ export default {
location.href = '/personal?perUrl=' + this.perUrl + '#/' + command;
}
},
+ switchRole(command) {
+ if (!command) {
+ return;
+ }
+ location.href = '/market-announce?perUrl=' + this.perUrl;
+ },
exit(params) {
logOut().then(res => {
if (res.data.code === 200 || res.data.code === 202) {
diff --git a/src/components/common/market-header.vue b/src/components/common/market-header.vue
new file mode 100644
index 0000000..2b8b3b5
--- /dev/null
+++ b/src/components/common/market-header.vue
@@ -0,0 +1,639 @@
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/market-announce.app.js b/src/pages/market-announce.app.js
new file mode 100644
index 0000000..00522aa
--- /dev/null
+++ b/src/pages/market-announce.app.js
@@ -0,0 +1,7 @@
+import pageCommon from '@/common/page-common';
+
+import App from './market-announce';
+
+pageCommon.createPageInstance({
+ render: h => h(App),
+});
diff --git a/src/pages/market-announce.vue b/src/pages/market-announce.vue
new file mode 100644
index 0000000..7c58d08
--- /dev/null
+++ b/src/pages/market-announce.vue
@@ -0,0 +1,141 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/market-order.app.js b/src/pages/market-order.app.js
new file mode 100644
index 0000000..bacaa91
--- /dev/null
+++ b/src/pages/market-order.app.js
@@ -0,0 +1,7 @@
+import pageCommon from '@/common/page-common';
+
+import App from './market-order';
+
+pageCommon.createPageInstance({
+ render: h => h(App),
+});
diff --git a/src/pages/market-order.vue b/src/pages/market-order.vue
new file mode 100644
index 0000000..30633dc
--- /dev/null
+++ b/src/pages/market-order.vue
@@ -0,0 +1,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+