Commit ad53c917 by 展昭

update

parent 819c6b2e
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
margin: 0; margin: 0;
list-style: none; list-style: none;
} }
#app{
}
i { i {
font-style: normal; font-style: normal;
} }
......
...@@ -46,27 +46,10 @@ Vue.prototype.setPageNavState = function () { ...@@ -46,27 +46,10 @@ Vue.prototype.setPageNavState = function () {
// console.log("setPageNavState来自 ios/android的回传数据: ", response); // console.log("setPageNavState来自 ios/android的回传数据: ", response);
// } // }
// ); // );
window.WebViewJavascriptBridge.callHandler(
"getBarHeight",
null,
function(response) {
console.log(
"main getBarHeight来自 ios/android的回传数据: ",
response
);
if (response) {
response=JSON.parse(response);
console.log('main response=',response);
const barHeight = response.statusBarHeight;
const conHeight = 46 + barHeight;
console.log('barHeight=',barHeight);
}
}
);
}); });
} catch (err) { } catch (err) {
console.log("main setPageNavState is error,err=",err); console.log("main setPageNavState is error,err=", err);
} }
}; };
......
...@@ -427,8 +427,8 @@ export default { ...@@ -427,8 +427,8 @@ export default {
function(response) { function(response) {
console.log("getBarHeight来自 ios/android的回传数据: ", response); console.log("getBarHeight来自 ios/android的回传数据: ", response);
if (response) { if (response) {
response=JSON.parse(response); response = JSON.parse(response);
console.log('response=',response); console.log("response=", response);
const barHeight = response.statusBarHeight; const barHeight = response.statusBarHeight;
const conHeight = 46 + barHeight; const conHeight = 46 + barHeight;
document document
...@@ -470,7 +470,7 @@ export default { ...@@ -470,7 +470,7 @@ export default {
}, },
async mounted() { async mounted() {
this.setPageNavState(); this.setPageNavState();
//this.getBarHeight(); this.getBarHeight();
this.globalNavLeftArrowClick(this.navLeftArrowClick); this.globalNavLeftArrowClick(this.navLeftArrowClick);
await this.loadPeriodData(); await this.loadPeriodData();
this.payUrl = await this.loadPayUrl(); this.payUrl = await this.loadPayUrl();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment