xie.bx 2 rokov pred
rodič
commit
30c69b81da
2 zmenil súbory, kde vykonal 7 pridanie a 8 odobranie
  1. 3 4
      im-ui/src/view/Login.vue
  2. 4 4
      im-ui/src/view/Register.vue

+ 3 - 4
im-ui/src/view/Login.vue

@@ -32,15 +32,14 @@
 			@keyup.enter.native="submitForm('loginForm')">
 			<div class="login-brand">登陆盒子IM</div>
 			<el-form-item label="终端" prop="userName" v-show="false">
-				<el-input type="terminal" v-model="loginForm.terminal" autocomplete="off"></el-input>
-
+				<el-input type="terminal" v-model="loginForm.terminal" autocomplete="off" ></el-input>
 			</el-form-item>
 			<el-form-item label="用户名" prop="userName">
-				<el-input type="userName" v-model="loginForm.userName" autocomplete="off"></el-input>
+				<el-input type="userName" v-model="loginForm.userName" autocomplete="off" placeholder="用户名"></el-input>
 
 			</el-form-item>
 			<el-form-item label="密码" prop="password">
-				<el-input type="password" v-model="loginForm.password" autocomplete="off"></el-input>
+				<el-input type="password" v-model="loginForm.password" autocomplete="off" placeholder="密码"></el-input>
 			</el-form-item>
 			<el-form-item>
 				<el-button type="primary" @click="submitForm('loginForm')">登陆</el-button>

+ 4 - 4
im-ui/src/view/Register.vue

@@ -5,16 +5,16 @@
 			<el-form :model="registerForm" status-icon :rules="rules" ref="registerForm" label-width="80px" class="web-ruleForm">
 				<div class="register-brand">欢迎成为盒子IM的用户</div>
 				<el-form-item label="用户名" prop="userName">
-					<el-input type="userName" v-model="registerForm.userName" autocomplete="off"></el-input>
+					<el-input type="userName" v-model="registerForm.userName" autocomplete="off" placeholder="用户名(登录使用)"></el-input>
 				</el-form-item>
 				<el-form-item label="昵称" prop="nickName">
-					<el-input type="nickName" v-model="registerForm.nickName" autocomplete="off"></el-input>
+					<el-input type="nickName" v-model="registerForm.nickName" autocomplete="off" placeholder="昵称"></el-input>
 				</el-form-item>
 				<el-form-item label="密码" prop="password">
-					<el-input type="password" v-model="registerForm.password" autocomplete="off"></el-input>
+					<el-input type="password" v-model="registerForm.password" autocomplete="off" placeholder="密码"></el-input>
 				</el-form-item>
 				<el-form-item label="确认密码" prop="confirmPassword">
-					<el-input type="password" v-model="registerForm.confirmPassword" autocomplete="off"></el-input>
+					<el-input type="password" v-model="registerForm.confirmPassword" autocomplete="off" placeholder="确认密码"></el-input>
 				</el-form-item>
 				<el-form-item>
 					<el-button type="primary" @click="submitForm('registerForm')">注册</el-button>