Răsfoiți Sursa

更改登录逻辑

gcz 2 ani în urmă
părinte
comite
fc3e7125d1
1 a modificat fișierele cu 11 adăugiri și 10 ștergeri
  1. 11 10
      pages/login/login.vue

+ 11 - 10
pages/login/login.vue

@@ -8,12 +8,13 @@
 			<view class="title">登录 旭烁</view>
 			<!-- <u-button text="getUserProfile" type="success" :hairline="false" throttleTime="2000" shape="circle" open-type="getUserProfile"
 				@click="getUserProfile"></u-button> -->
-			<u-button v-if="loginBtn" text="微信一键登录" type="success" :hairline="false" throttleTime="2000" shape="circle" 
-				@click="openAuth"></u-button>
+			<!-- <u-button v-if="loginBtn" text="微信一键登录" type="success" :hairline="false" throttleTime="2000" shape="circle" 
+				@click="openAuth"></u-button> -->
+			<u-button v-if="loginBtn" :hair-line='false' type="success" throttleTime="2000" shape="circle" open-type="getPhoneNumber" @getphonenumber="authPhone">登录</u-button>
 		</view>
 		
 		<!-- 微信获取手机号弹窗 -->
-	   <u-modal :show="showAuthorizePhone" :show-title="false"
+	  <!-- <u-modal :show="showAuthorizePhone" :show-title="false"
 				 :show-confirm-button="false">
 			<view class="slot-content">
 				<div class="auth-card">
@@ -28,9 +29,9 @@
 					<div class="btn-ok"><u-button :hair-line='false' :custom-style="customStyleOk" open-type="getPhoneNumber" @getphonenumber="authPhone"> 允许</u-button></div>
 				</div>
 			</view>
-		</u-modal>
+		</u-modal> -->
 		<!-- 微信获取用户头像昵称弹窗 -->
-		<u-modal :show="showAuthorizeUser" :show-title="false"
+		<!-- <u-modal :show="showAuthorizeUser" :show-title="false"
 		                 :show-confirm-button="false">
 		    <view class="slot-content">
 		        <div class="auth-card">
@@ -59,7 +60,7 @@
 		        <div class="btn-ok"><u-button :hair-line='false' :custom-style="customStyleOk" @click="authUser"> 允许</u-button></div>
 		    </div>
 		    </view>
-		</u-modal>
+		</u-modal> -->
 
 
 	</view>
@@ -110,10 +111,10 @@
 			// 	mask:true
 			// });
 			this.getChatCode();
-			setTimeout(() => {
-				this.openAuth();
-				// this.showAuthorizeUser = true //弹出头像用户名
-			}, 100);
+			// setTimeout(() => {
+			// 	this.openAuth();
+			// 	// this.showAuthorizeUser = true //弹出头像用户名
+			// }, 100);
 			let userInfo = uni.getStorageSync('userInfo');
 			this.user.name = userInfo.name;
 		},