删除配置
This commit is contained in:
parent
0a23a58068
commit
e6d44a4598
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<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>
|
@onPostMessage="handlePostMessage"></web-view>
|
||||||
<footers class="footer" activeTab="submit"></footers>
|
<footers class="footer" activeTab="submit"></footers>
|
||||||
</view>
|
</view>
|
||||||
@ -13,24 +13,28 @@
|
|||||||
footers
|
footers
|
||||||
},
|
},
|
||||||
onReady() {
|
onReady() {
|
||||||
var currentWebview = this.$scope.$getAppWebview();
|
try{
|
||||||
let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
|
var currentWebview = this.$scope.$getAppWebview();
|
||||||
let str = "需要发送的信息"
|
let userInfo = JSON.parse(uni.getStorageSync('userInfo'));
|
||||||
const _funName = 'msgFromUniapp'
|
let str = "需要发送的信息"
|
||||||
const _data = {
|
const _funName = 'msgFromUniapp'
|
||||||
token: userInfo.token,
|
const _data = {
|
||||||
loginUser: userInfo
|
token: userInfo.token,
|
||||||
};
|
loginUser: userInfo
|
||||||
setTimeout(function() {
|
};
|
||||||
let wv = currentWebview.children()[0]
|
setTimeout(function() {
|
||||||
console.log(wv, "wv");
|
let wv = currentWebview.children()[0]
|
||||||
// height:(windowHeight - uni.upx2px(110) - 22)
|
console.log(wv, "wv");
|
||||||
wv.setStyle({
|
// height:(windowHeight - uni.upx2px(110) - 22)
|
||||||
top: 50,
|
wv.setStyle({
|
||||||
bottom: uni.upx2px(110)
|
top: 50,
|
||||||
})
|
bottom: uni.upx2px(110)
|
||||||
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
|
})
|
||||||
}, 1000);
|
wv.evalJS(`${_funName}(${JSON.stringify(_data)})`);
|
||||||
|
}, 1000);
|
||||||
|
}catch(e){
|
||||||
|
//TODO handle the exception
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handlePostMessage: function(data) {
|
handlePostMessage: function(data) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user