|
@@ -18,7 +18,7 @@
|
|
|
|
|
|
</video>
|
|
|
<img class="lv-logo" :src="`${assetsUrl}login-sugar.png`"/>
|
|
|
- <img class="lv-phone" :src="`${assetsUrl}login-btn.png`" @click="toPhoneLogin"/>
|
|
|
+ <img class="lv-phone" :src="`${assetsUrl}login-btn.png`" @click="getStatusBarHeight"/>
|
|
|
<div class="lv-pro">
|
|
|
登录即代表您已阅读并同意<span @click="toUserService">《用户服务协议》</span> 和 <span @click="toPrivate">《隐私政策》</span>
|
|
|
</div>
|
|
@@ -43,7 +43,7 @@
|
|
|
this.$refs.myvideo.play();
|
|
|
},
|
|
|
toPhoneLogin(){
|
|
|
- this.$router.push('loginByPhone');
|
|
|
+
|
|
|
},
|
|
|
toUserService(){
|
|
|
window.location.href=protocal.userAgreement;
|
|
@@ -51,7 +51,21 @@
|
|
|
toPrivate(){
|
|
|
window.location.href=protocal.privacy;
|
|
|
},
|
|
|
-
|
|
|
+ getStatusBarHeight(){//获取状态栏和底部安全距离
|
|
|
+ window.webkit.messageHandlers.call.postMessage({
|
|
|
+ api:"com.js.getStatusBarHeight",
|
|
|
+ data:{},
|
|
|
+ callback:'getStatusBarHeightInvoke'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getStatusBarHeightInvoke(data){
|
|
|
+ this.$dialog.confirm({
|
|
|
+ title: '标题',
|
|
|
+ message:JSON.stringify(data),
|
|
|
+ }).then(()=>{
|
|
|
+ this.$router.push('loginByPhone');
|
|
|
+ })
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|