dwh 2 år sedan
förälder
incheckning
998bb6fc44
1 ändrade filer med 6 tillägg och 7 borttagningar
  1. 6 7
      src/views/login/login.vue

+ 6 - 7
src/views/login/login.vue

@@ -18,7 +18,7 @@
 			
 		</video> -->
 		<img class="lv-logo" :src="`${assetsUrl}login-sugar.png`"/>
-		<img class="lv-phone" :src="`${assetsUrl}login-btn.png`" @click="getStatusBarHeight"/>
+		<img class="lv-phone" :src="`${assetsUrl}login-btn.png`" @click="toPhoneLogin"/>
 		<div class="lv-pro">
 			登录即代表您已阅读并同意<span @click="toUserService">《用户服务协议》</span> 和 <span @click="toPrivate">《隐私政策》</span>
 		</div>
@@ -37,13 +37,17 @@
 			this.$nextTick(()=>{
 				this.$refs.myvideo.play();
 			})
+			window.getStatusBarHeightInvoke=(data)=>{
+				this.$toast(JSON.stringify(data))
+			};
+			this.getStatusBarHeight();
 		},
 		methods: {
 			onVideoPause(){//解决切换页面视频自动暂停
 				this.$refs.myvideo.play();
 			},
 			toPhoneLogin(){
-				
+				this.$router.push('loginByPhone');
 			},
 			toUserService(){
 				window.location.href=protocal.userAgreement;
@@ -60,11 +64,6 @@
 					callback:'getStatusBarHeightInvoke'
 				}) 
 			},
-			getStatusBarHeightInvoke(data){
-				this.$toast(JSON.stringify(data));
-				return;
-				this.$router.push('loginByPhone');
-			},
 		}
 	}
 </script>