删除配置

This commit is contained in:
moleier 2024-04-18 23:10:52 +08:00
parent 0a23a58068
commit e6d44a4598

View File

@ -1,6 +1,6 @@
<template>
<view>
<web-view class="webView" :webview-styles="webviewStyles" src="http://192.168.34.139:5173/" :fullscreen="false"
<web-view class="webView" src="http://192.168.34.139:5173/" :fullscreen="false"
@onPostMessage="handlePostMessage"></web-view>
<footers class="footer" activeTab="submit"></footers>
</view>
@ -13,24 +13,28 @@
footers
},
onReady() {
var currentWebview = this.$scope.$getAppWebview();
let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
let str = "需要发送的信息"
const _funName = 'msgFromUniapp'
const _data = {
token: userInfo.token,
loginUser: userInfo
};
setTimeout(function() {
let wv = currentWebview.children()[0]
console.log(wv, "wv");
// height:(windowHeight - uni.upx2px(110) - 22)
wv.setStyle({
top: 50,
bottom: uni.upx2px(110)
})
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
}, 1000);
try{
var currentWebview = this.$scope.$getAppWebview();
let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
let str = "需要发送的信息"
const _funName = 'msgFromUniapp'
const _data = {
token: userInfo.token,
loginUser: userInfo
};
setTimeout(function() {
let wv = currentWebview.children()[0]
console.log(wv, "wv");
// height:(windowHeight - uni.upx2px(110) - 22)
wv.setStyle({
top: 50,
bottom: uni.upx2px(110)
})
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
}, 1000);
}catch(e){
//TODO handle the exception
}
},
methods: {
handlePostMessage: function(data) {