|
@@ -30,9 +30,22 @@
|
|
|
this.$TUIKit.registerPlugin({ 'tim-upload-plugin':TIMUploadPlugin });
|
|
|
},
|
|
|
mounted() {
|
|
|
-
|
|
|
+ this.getStatusBarHeight();
|
|
|
},
|
|
|
methods:{
|
|
|
+ getStatusBarHeight(){//获取状态栏和底部安全距离
|
|
|
+ window.webkit.messageHandlers.call.postMessage({
|
|
|
+ api:"com.js.getStatusBarHeight",
|
|
|
+ data:{},
|
|
|
+ callback:'getStatusBarHeightInvoke'
|
|
|
+ })
|
|
|
+ },
|
|
|
+ getStatusBarHeightInvoke(data){
|
|
|
+ this.$dialog.confirm({
|
|
|
+ title: '标题',
|
|
|
+ message:JSON.stringify(data),
|
|
|
+ })
|
|
|
+ },
|
|
|
resetLoginData() {
|
|
|
let user=JSON.parse(localStorage.getItem('userInfo'));
|
|
|
this.$api.IM.loadSig({}).then(res=>{
|