diff --git a/src/views/YB_APP/home.vue b/src/views/YB_APP/home.vue index 2cb805365..8458330d0 100644 --- a/src/views/YB_APP/home.vue +++ b/src/views/YB_APP/home.vue @@ -343,12 +343,12 @@ export default { methods:{ setMarginTop(){ EWebBridge.webCallAppInJs("top_bar_height").then(data => { - let result = JSON.parse(data) - if(result){ - // 获取高度成功 - let height = result.height - // 设置高度 - this.marginTop = height + console.log(data,'top_bar_height') + if(data){ + // 获取高度成功 + let height = data.height + // 设置高度 + this.marginTop = height } }) }, diff --git a/src/views/YB_APP/mine.vue b/src/views/YB_APP/mine.vue index 036fc8f81..8530644b2 100644 --- a/src/views/YB_APP/mine.vue +++ b/src/views/YB_APP/mine.vue @@ -8,7 +8,8 @@
- + +

@@ -59,6 +60,7 @@