Commit fa72de96249833cfb519ccc080e92c83a70dfceb

Authored by zhiyangdu
1 parent f379733e

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

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