luke 6 жил өмнө
parent
commit
269793b902

+ 1 - 0
pc_chat/index.html

@@ -5,6 +5,7 @@
 	<meta name="viewport" content="width=device-width,initial-scale=1.0">
 	<!-- 外部链接图片加载 -->
 	<meta name="referrer" content="no-referrer"/>
+	<link rel ="shortcut icon" type="image/x-icon" href="static/logo.gif">
 	<title>pc-chat</title>
 </head>
 <body>

+ 3 - 2
pc_chat/src/components/chat.vue

@@ -402,7 +402,7 @@
 							</div>
 
 							<div class="row center allAlignment chattingBox">
-								<div style="width:300px;">
+								<div style="width:80%;">
 									<el-input
 											type="textarea"
 											maxlength="450"
@@ -1863,6 +1863,7 @@
 	}
 
 	.chatBox {
+		margin:0 auto;
 		width: 700px;
 		position: relative;
 	}
@@ -2248,8 +2249,8 @@
 	}
 
 	textarea {
+		width: 80%;
 		height: 40px;
-		width: 300px;
 		border: 0;
 		-webkit-user-select: auto;
 		user-select: auto;

+ 7 - 3
pc_chat/src/components/leaveMsg.vue

@@ -29,7 +29,7 @@
 						<label for="">
 							<span>您的QQ号</span>
 						</label>
-						<el-input v-model="QQ"  placeholder="请输入QQ号" style="paddiing:0 9px;"></el-input>
+						<el-input v-model="QQ"  placeholder="请输入QQ号" @blur="sureinfor" style="paddiing:0 9px;"></el-input>
 					</div>
 					<div class="wx">
 						<label for="">
@@ -176,8 +176,7 @@
 					} else {
 						this.error = false;
 					}
-				}
-				else if (type == 10) {
+				} else if (type == 10) {
 					if (!/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/.test(this.eMail)) {
 						this.emailError = true;
 						this.$message.error('邮箱格式不正确!')
@@ -185,6 +184,11 @@
 					} else {
 						this.emailError = false;
 					}
+				} else {
+					if (!(/^[0-9]+$/.test(this.QQ))) {
+						this.$message.error('只能输入数字!')
+						this.QQ = '';
+					}
 				}
 			},
 			// 上传之前

+ 1 - 0
pc_chat/src/css/index.css

@@ -208,6 +208,7 @@ body {
     line-height: 100px !important;
 }
 .chattingBox .el-textarea__inner{
+    widows: 80% !important;
     padding:5px 10px !important;
     height: 75px !important;
 }

BIN
pc_chat/static/logo.gif