|
@@ -13,7 +13,7 @@
|
|
|
<button @click='gocode' :class='codestatus?"active":""' class='Regular verificationCode'>获取验证码</button>
|
|
|
<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 v-if="loginType === 'phone'" class="register-section">
|
|
|
还没有账号?
|
|
@@ -61,6 +61,8 @@
|
|
|
system:'',
|
|
|
platform:'',
|
|
|
userData:undefined,
|
|
|
+ tabbar: true,
|
|
|
+ windowHeight: '',
|
|
|
canIUseProfile:false,
|
|
|
codestatus:false
|
|
|
}
|
|
@@ -72,8 +74,14 @@
|
|
|
// this.loginType = "wechat"
|
|
|
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 ){
|
|
|
console.log('--check getUserProfile--OK');
|
|
|
this.canIUseProfile = true;
|
|
@@ -86,6 +94,7 @@
|
|
|
})
|
|
|
uni.getSystemInfo({
|
|
|
success:(res) => {
|
|
|
+ this.windowHeight = res.windowHeight;
|
|
|
// console.log(res)
|
|
|
this.system = res.system // ios
|
|
|
this.platform = res.platform // 14.3
|