Commit 92040f2cba0865fd0738916fe83a31984f5f5d1e

Authored by zhiyangdu
1 parent d4518966

顶部距离

src/pages/index/index.less
... ... @@ -162,7 +162,6 @@
162 162 width: calc(100% - 60px);
163 163 height: 100px;
164 164 position: fixed;
165   - top:0;
166 165 left: 30px;
167 166 display: flex;
168 167 justify-content: space-between;
... ...
src/pages/index/index.vue
... ... @@ -66,7 +66,7 @@
66 66  
67 67 </div>
68 68 <!--头部返回和分享-->
69   - <div v-show="isCNLive.value" class="top_box">
  69 + <div v-show="isCNLive.value" :style= "'top:'+ $parent.top.value + 'px'" class="top_box">
70 70 <img @click="$parent.back()" src="../../../static/img/back.jpg" alt=""/>
71 71 <img @click="$parent.toShare('22','1')" src="../../../static/img/share.jpg" alt=""/>
72 72 </div>
... ...