Commit 92040f2cba0865fd0738916fe83a31984f5f5d1e

Authored by zhiyangdu
1 parent d4518966

顶部距离

src/pages/index/index.less
@@ -162,7 +162,6 @@ @@ -162,7 +162,6 @@
162 width: calc(100% - 60px); 162 width: calc(100% - 60px);
163 height: 100px; 163 height: 100px;
164 position: fixed; 164 position: fixed;
165 - top:0;  
166 left: 30px; 165 left: 30px;
167 display: flex; 166 display: flex;
168 justify-content: space-between; 167 justify-content: space-between;
src/pages/index/index.vue
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 66
67 </div> 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 <img @click="$parent.back()" src="../../../static/img/back.jpg" alt=""/> 70 <img @click="$parent.back()" src="../../../static/img/back.jpg" alt=""/>
71 <img @click="$parent.toShare('22','1')" src="../../../static/img/share.jpg" alt=""/> 71 <img @click="$parent.toShare('22','1')" src="../../../static/img/share.jpg" alt=""/>
72 </div> 72 </div>