liuyu 4 gadi atpakaļ
vecāks
revīzija
e34e467d1a
1 mainītis faili ar 8 papildinājumiem un 7 dzēšanām
  1. 8 7
      src/views/login.vue

+ 8 - 7
src/views/login.vue

@@ -13,10 +13,10 @@
               </el-col>
               <el-col :span="24" class="form">
                 <el-form :model="form" :rules="rules" ref="form" class="demo-ruleForm">
-                  <el-form-item prop="roomid" class="roomid">
+                  <!-- <el-form-item prop="roomid" class="roomid">
                     <span slot="label"><el-image :src="image.roomid"></el-image></span>
                     <el-input v-model="form.roomid" placeholder="请输入房间号"></el-input>
-                  </el-form-item>
+                  </el-form-item> -->
                   <el-form-item prop="phone">
                     <span slot="label"><el-image :src="image.phone"></el-image></span>
                     <el-input v-model="form.phone" placeholder="请输入手机号" maxlength="11"></el-input>
@@ -69,11 +69,12 @@ export default {
         if (valid) {
           let res = await this.toLogin({ user: this.form });
           if (res.id) {
-            if (res.type == '0') {
-              this.$router.push('/');
-            } else {
-              this.$router.push('/liveIndex');
-            }
+            this.$router.push('/');
+            // if (res.type == '0') {
+            //   this.$router.push('/');
+            // } else {
+            //   this.$router.push('/liveIndex');
+            // }
           }
         } else {
           console.log('error submit!!');