Commit fa72de96249833cfb519ccc080e92c83a70dfceb

Authored by zhiyangdu
1 parent f379733e

领头雁项目样式优化,分享传isBack到扩展参数到原生

src/pages/mall/mall.less
@@ -10,10 +10,15 @@ @@ -10,10 +10,15 @@
10 } 10 }
11 } 11 }
12 .back-box{ 12 .back-box{
  13 + height:90px;
13 position: fixed; 14 position: fixed;
14 left: 0; 15 left: 0;
15 top: 0; 16 top: 0;
16 background-color: #ffffff; 17 background-color: #ffffff;
17 z-index:1000 18 z-index:1000
18 } 19 }
  20 + .back-box—lh{
  21 + width: 100%;
  22 + height:90px;
  23 + }
19 } 24 }
20 \ No newline at end of file 25 \ No newline at end of file
src/pages/mall/mall.vue
@@ -20,13 +20,13 @@ @@ -20,13 +20,13 @@
20 :backs="backs" 20 :backs="backs"
21 > 21 >
22 </back-box> 22 </back-box>
  23 + <!--back-box占位-->
  24 + <div v-if="$parent.isBack && isCNLive.value" class="back-box—lh" :style="'padding-top: ' + $parent.top.value + 'px'">
  25 +
  26 + </div>
23 <!--轮播--> 27 <!--轮播-->
24 <swiper 28 <swiper
25 - :style="  
26 - 'margin-top:' +  
27 - ($parent.isBack && isCNLive.value ? 62 : 10) +  
28 - 'px'  
29 - " 29 + style="margin-top:10px"
30 v-if="banner" 30 v-if="banner"
31 :swipers="banner" 31 :swipers="banner"
32 :options="{ 32 :options="{
@@ -228,7 +228,7 @@ export default { @@ -228,7 +228,7 @@ export default {
228 toShare() { 228 toShare() {
229 // 判断分享 229 // 判断分享
230 if (typeof this.$parent.toShare === "function") { 230 if (typeof this.$parent.toShare === "function") {
231 - this.$parent.toShare(38, this.$route.query.id || 0); 231 + this.$parent.toShare(38, this.$route.query.id || 0, {"isBack":"true"});
232 } 232 }
233 }, 233 },
234 /** 234 /**