11wqe1 4 周之前
父节点
当前提交
4d808fc4a3
共有 1 个文件被更改,包括 6 次插入8 次删除
  1. 6 8
      src/views/login/loginPage.vue

+ 6 - 8
src/views/login/loginPage.vue

@@ -39,7 +39,7 @@
 						<div
 							class="fa_input"
 							v-if="['default', 'bind', 'orgL'].includes(loginType)"
-						>
+						> 
 							<div
 								class="fa_i_item"
 								style="position: relative"
@@ -155,10 +155,6 @@
 							</div>
 
 						</div>
-						<div class="fa_weChat" v-if="['weChat'].includes(loginType)">
-							<div id="QRcode" class="QRcode" ref="QRcode"></div>
-							<!-- @click="loginType = 'bind'" -->
-						</div>
 					</div>
 
 					<div
@@ -379,7 +375,9 @@ export default {
 	watch: {
 		loginType(newValue) {
 			if (newValue != "weChat") {
-				this.$refs.QRcode.innerHTML = "";
+				if (this.$refs.QRcode && this.$refs.QRcode.innerHTML) {
+					this.$refs.QRcode.innerHTML = "";
+				}
 			}
 		},
 	},
@@ -498,7 +496,7 @@ export default {
 			} else {
 				email = str;
 			}
-			if (["default", "orgL", "code"].includes(this.loginType)) {
+			if (["default", "orgL"].includes(this.loginType)) {
 				let params = {
 					geetest_challenge: "",
 					geetest_validate: "",
@@ -1040,7 +1038,7 @@ export default {
 		// 获取荔园校区数据
 		getData() {
 			this.loginType = "code";
-			this.org = "";
+			this.SuffixData = '';
 			this.Codeloading = true;
 			let params = [
 				{