shish 5 år sedan
förälder
incheckning
db2ba06d94
2 ändrade filer med 18 tillägg och 15 borttagningar
  1. 8 12
      ghs/src/components/chat/index.vue
  2. 10 3
      ghs/src/pages/layout/topbar/index.vue

+ 8 - 12
ghs/src/components/chat/index.vue

@@ -87,14 +87,7 @@
 			</div>
 		</el-dialog>
 
-		<el-button
-			class="cl-chat__notice"
-			v-show="!visible"
-			icon="el-icon-message-solid"
-			round
-			size="small"
-			@click="show()"
-		></el-button>
+        <el-button class="global_kd_button" type="primary" size="medium" @click="globalGoToKd()" icon="el-icon-edit" circle></el-button>
 
 	</div>
 </template>
@@ -103,7 +96,7 @@
 export default {
 	data() {
 		return {
-			visible: fale,
+			visible: false,
 			userList: [],
 			messageList: [
 				{
@@ -142,8 +135,11 @@ export default {
 				console.log(res);
 			});
 		},
-
+		globalGoToKd() {
+		            this.$router.push('/order/add');
+		},
 		show() {
+            this.$router.push('/my/info');
             this.$message.success('即将开通...')
             return false
 			this.visible = true
@@ -370,10 +366,10 @@ export default {
         }
     }
 
-    .cl-chat__notice {
+    .global_kd_button {
         position fixed;
         bottom: 30px;
-        right: 20px;
+        right: 50px;
     }
 }
 </style>

+ 10 - 3
ghs/src/pages/layout/topbar/index.vue

@@ -24,6 +24,8 @@
 			<li-notice></li-notice>
 		</ul> -->
 
+		<div class="layout-global-kd" @click="layoutGlobalKd()">开单</div>
+
 		<div class="user" v-if="userInfo">
 			<el-dropdown trigger="click" :hide-on-click="false" @command="onCommand">
 				<span class="el-dropdown-link">
@@ -31,7 +33,6 @@
 					<img class="avatar" :src="userInfo.avatarUrl | default_avatar" alt="头像" />
 					<i class="el-icon-caret-bottom"></i>
 				</span>
-
 				<el-dropdown-menu slot="dropdown" class="popper-dropdown-menu-user">
 					<!-- <el-dropdown-item command="my">个人中心</el-dropdown-item> -->
 					<el-dropdown-item command="exit">退出</el-dropdown-item>
@@ -99,8 +100,10 @@ export default {
 					});
 					break;
 			}
+		},
+		layoutGlobalKd(){
+			this.$router.push('/order/add');
 		}
-
 		// collapse() {
 		// 	this.COLLAPSE_MENU(!this.menuCollapse);
 		// }
@@ -224,7 +227,11 @@ export default {
 			}
 		}
 	}
-
+	.layout-global-kd{
+		margin-right:60px;
+		cursor:pointer;
+		font-size:14px;
+	}
 	.user {
 		margin-right: 10px;
 		cursor: pointer;