gjy 3 år sedan
förälder
incheckning
e3afe68792
1 ändrade filer med 12 tillägg och 3 borttagningar
  1. 12 3
      pages/public/login.vue

+ 12 - 3
pages/public/login.vue

@@ -13,7 +13,7 @@
 			<button @click='gocode' :class='codestatus?"active":""' class='Regular verificationCode'>获取验证码</button>
 			<button @click='gocode' :class='codestatus?"active":""' class='Regular verificationCode'>获取验证码</button>
 			<view @click='gonumber' class="Regular use-password" style='text-align:center;color:#6A6A6A;'>使用账号密码登录</view>
 			<view @click='gonumber' class="Regular use-password" style='text-align:center;color:#6A6A6A;'>使用账号密码登录</view>
 			
 			
-			<button @click='goregister' class='Regular register active'>手机号一键注册</button>
+			<button v-if='tabbar' @click='goregister' class='Regular register active'>手机号一键注册</button>
 		</view>
 		</view>
 		<view v-if="loginType === 'phone'" class="register-section">
 		<view v-if="loginType === 'phone'" class="register-section">
 			还没有账号?
 			还没有账号?
@@ -61,6 +61,8 @@
 				system:'',
 				system:'',
 				platform:'',
 				platform:'',
 				userData:undefined,
 				userData:undefined,
+				tabbar: true,
+				windowHeight: '',
 				canIUseProfile:false,
 				canIUseProfile:false,
 				codestatus:false
 				codestatus:false
 			}
 			}
@@ -72,8 +74,14 @@
 			// this.loginType = "wechat"
 			// this.loginType = "wechat"
 			this.$api.logout()
 			this.$api.logout()
 		},
 		},
-		onLoad(options) {
-			
+		onLoad(options) {    
+			    uni.onWindowResize((res) => {
+			        if(res.size.windowHeight < this.windowHeight){
+			            this.tabbar = false
+			        }else{
+			            this.tabbar = true
+			       }
+				   })
 			if( wx.getUserProfile ){  
 			if( wx.getUserProfile ){  
 			    console.log('--check getUserProfile--OK');  
 			    console.log('--check getUserProfile--OK');  
 			    this.canIUseProfile = true;  
 			    this.canIUseProfile = true;  
@@ -86,6 +94,7 @@
 			})
 			})
 			 uni.getSystemInfo({
 			 uni.getSystemInfo({
 				success:(res) => {
 				success:(res) => {
+					this.windowHeight = res.windowHeight;
 					// console.log(res)
 					// console.log(res)
 					this.system = res.system  // ios
 					this.system = res.system  // ios
 					this.platform = res.platform  // 14.3
 					this.platform = res.platform  // 14.3