Jelajahi Sumber

信息填写

xuqiaoying 3 tahun lalu
induk
melakukan
9345aa60b0

+ 2 - 2
src/axios.js

@@ -5,9 +5,9 @@ import { Message } from 'element-ui'
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test
 // export const BASE_URL = 'https://test.xyyxt.net'   //预发布
 // export const BASE_URL = 'http://192.168.1.7:5055'    //dev
-export const BASE_URL = 'http://120.79.166.78:19012'    //测试-外网
+// export const BASE_URL = 'http://120.79.166.78:19012'    //测试-外网
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test
-// export const BASE_URL = 'http://192.168.1.222:5055'    //测试
+export const BASE_URL = 'http://192.168.1.222:5055'    //测试
 export const tenantId = '867735392558919680'
 
 

+ 6 - 2
src/pages/course-detail/index.vue

@@ -2034,7 +2034,7 @@
               :prop="item.required ? item.fieldKey : ''"
             >
               <el-input
-                :disabled="infoForm.name ? true : false"
+                :disabled="disName"
                 v-model="infoForm.name"
                 :placeholder="`请输入${item.fieldName}`"
               />
@@ -2048,7 +2048,7 @@
               :prop="item.required ? item.fieldKey : ''"
             >
               <el-input
-                :disabled="infoForm.idcard ? true : false"
+                :disabled="disCard"
                 v-model="infoForm.idcard"
                 :placeholder="`请输入${item.fieldName}`"
               />
@@ -2967,6 +2967,8 @@ export default {
       clickLock: false,
       liveLast: null,
       apply_post_disabled: false,
+      disName: false, // 姓名是否禁止输入
+      disCard: false, // 身份证是否禁止输入
     };
   },
   computed: {
@@ -4417,6 +4419,7 @@ export default {
         self.listData.forEach((item) => {
           if (item.fieldKey == "idcard") {
             this.infoForm.idcard = this.userInfo.idCard;
+            this.disCard = this.infoForm.idcard ? true : false
           }
           if (item.fieldKey == "telphone") {
             this.infoForm.telphone = this.userInfo.telphone;
@@ -4424,6 +4427,7 @@ export default {
 
           if (item.fieldKey == "name") {
             this.infoForm.name = this.userInfo.realname || "";
+            this.disName = this.infoForm.name ? true : false
           }
         });
         self.isRequired = self.listData.every((ims) => {

+ 16 - 16
src/pages/home/index.vue

@@ -914,17 +914,17 @@ export default {
      * 微信登入—返回数据
      */
     wxLoginBack(res) {
-      // if (res.data.full_info) {
+      if (res.data.full_info) {
         localStorage.setItem("user_account", res.data.user_account);
         localStorage.setItem("token", res.data.token);
         this.getInfo();
-      // } else {
+      } else {
         this.indexUserAccount = res.data.user_account;
         this.indexToken = res.data.token;
-        // this.isLogin = false;
-        //弹窗
-        // this.bindShow = true;
-      // }
+        this.isLogin = false;
+        // 弹窗
+        this.bindShow = true;
+      }
     },
     goLast() {
       if (this.recordList.goodsType == 6) {
@@ -1201,18 +1201,18 @@ export default {
           this.$request
             .login(loginForm)
             .then((res) => {
-              // if (res.data.full_info) {
+              if (res.data.full_info) {
                 localStorage.setItem("user_account", res.data.user_account);
                 localStorage.setItem("token", res.data.token);
 
                 this.getInfo();
-              // } else {
+              } else {
                 this.indexUserAccount = res.data.user_account;
                 this.indexToken = res.data.token;
-                // this.isLogin = false;
-                //弹窗
-                // this.bindShow = true;
-              // }
+                this.isLogin = false;
+                // 弹窗
+                this.bindShow = true;
+              }
             })
             .catch((err) => {
               this.isLogin = false;
@@ -1271,16 +1271,16 @@ export default {
             .loginSms(this.loginSmsForm)
             .then((res) => {
               this.isloginSms = false;
-              // if (res.data.full_info) {
+              if (res.data.full_info) {
                 localStorage.setItem("user_account", res.data.user_account);
                 localStorage.setItem("token", res.data.token);
                 this.$tools.setUuid(new Date().valueOf() + "");
                 this.getInfo();
-              // } else {
+              } else {
                 this.indexUserAccount = res.data.user_account;
                 this.indexToken = res.data.token;
-                // this.bindShow = true;
-              // }
+                this.bindShow = true;
+              }
             })
             .catch((err) => {
               this.isloginSms = false;

+ 7 - 1
src/pages/live-detail/index.vue

@@ -15,7 +15,7 @@
         </div>
         <div class="section__body">
           <div class="container">
-            <div class="course-info">
+            <div class="course-info"> 
               <div class="course-info__header clearfix">
                 <div
                   class="left-box"
@@ -1884,6 +1884,7 @@
             >
               <el-input
                 v-model="infoForm.name"
+                :disabled="disName"
                 :placeholder="`请输入${item.fieldName}`"
               />
             </el-form-item>
@@ -1898,6 +1899,7 @@
             >
               <el-input
                 v-model="infoForm.idcard"
+                :disabled="disCard"
                 :placeholder="`请输入${item.fieldName}`"
               />
             </el-form-item>
@@ -2779,6 +2781,8 @@ export default {
       menuIndex: [],
       clickLock: false,
       liveLast: null,
+      disName: false, // 姓名是否禁止输入
+      disCard: false, // 身份证是否禁止输入
     };
   },
   computed: {
@@ -4127,6 +4131,7 @@ export default {
         self.listData.forEach((item) => {
           if (item.fieldKey == "idcard") {
             this.infoForm.idcard = this.userInfo.idCard;
+             this.disCard = this.infoForm.idcard ? true : false
           }
           if (item.fieldKey == "telphone") {
             this.infoForm.telphone = this.userInfo.telphone;
@@ -4134,6 +4139,7 @@ export default {
 
           if (item.fieldKey == "name") {
             this.infoForm.name = this.userInfo.realname || "";
+            this.disName = this.infoForm.name ? true : false
           }
         });
         self.isRequired = self.listData.every((ims) => {