Commit 3d08a1a44bc805f2afa8bf35b6d861244eb7fac5
1 parent
4835cf1c
mall样式优化
Showing
2 changed files
with
26 additions
and
25 deletions
src/pages/mall/mall.less
src/pages/mall/mall.vue
| 1 | 1 | <template> |
| 2 | - <!-- <div class="mall-box" :style="'margin-top:'+ ($parent.isBack ? 62 : 10)+'px'"> --> | |
| 3 | 2 | <div class="mall-box"> |
| 4 | 3 | <!-- 下拉刷新 --> |
| 5 | 4 | <!-- <van-pull-refresh v-model="isLoading" pulling-text="下拉刷新..." loosing-text="释放刷新" loading-text="加载中..." success-text="刷新成功" @refresh="onRefresh"> --> |
| ... | ... | @@ -23,7 +22,7 @@ |
| 23 | 22 | </back-box> |
| 24 | 23 | <!--轮播--> |
| 25 | 24 | <swiper |
| 26 | - :style=" | |
| 25 | + :style=" | |
| 27 | 26 | 'margin-top:' + |
| 28 | 27 | ($parent.isBack && isCNLive.value ? 62 : 10) + |
| 29 | 28 | 'px' |
| ... | ... | @@ -164,29 +163,31 @@ export default { |
| 164 | 163 | } |
| 165 | 164 | }, |
| 166 | 165 | mounted() { |
| 167 | - // 唤起详情页 | |
| 168 | - if (typeof this.$parent.getOpenApp === "function") { | |
| 169 | - this.$parent.getOpenApp({ | |
| 170 | - type: 38, | |
| 171 | - id: this.$route.query.id || 0, | |
| 172 | - url: "" | |
| 173 | - }); | |
| 174 | - } | |
| 166 | + // 唤起详情页 | |
| 167 | + if (typeof this.$parent.getOpenApp === "function") { | |
| 168 | + this.$parent.getOpenApp({ | |
| 169 | + type: 38, | |
| 170 | + id: this.$route.query.id || 0, | |
| 171 | + url: "", | |
| 172 | + ext: this.$parent.isBack ? JSON.stringify({"isBack":'true'}) : "" | |
| 173 | + }); | |
| 174 | + } | |
| 175 | 175 | |
| 176 | - // 分享详情页 | |
| 177 | - if (typeof this.$parent.getShareData === "function") { | |
| 178 | - this.$parent.getShareData({ | |
| 179 | - type: 38, | |
| 180 | - id: this.$route.query.id || 0, | |
| 181 | - url: "" | |
| 182 | - }); | |
| 183 | - } | |
| 184 | - let schemeParams = this.$parent.schemeParams; | |
| 185 | - // 判断如果是分享链接没有isBack=true在后面加上isBack=true;为了在app内打开可以展示 | |
| 186 | - if (!schemeParams.isBack) { | |
| 187 | - // 设置参数 | |
| 188 | - this.$parent.schemeParams = this.$parent.schemeParams + "&isBack=true"; | |
| 189 | - } | |
| 176 | + // 分享详情页 | |
| 177 | + if (typeof this.$parent.getShareData === "function") { | |
| 178 | + this.$parent.getShareData({ | |
| 179 | + type: 38, | |
| 180 | + id: this.$route.query.id || 0, | |
| 181 | + url: "", | |
| 182 | + ext: this.$parent.isBack ? JSON.stringify({"isBack":'true'}) : "" | |
| 183 | + }); | |
| 184 | + } | |
| 185 | + // let schemeParams = this.$parent.schemeParams; | |
| 186 | + // // 判断如果是分享链接没有isBack=true在后面加上isBack=true;为了在app内打开可以展示 | |
| 187 | + // if (!schemeParams.isBack) { | |
| 188 | + // // 设置参数 | |
| 189 | + // this.$parent.schemeParams = this.$parent.schemeParams + "&isBack=true"; | |
| 190 | + // } | |
| 190 | 191 | }, |
| 191 | 192 | methods: { |
| 192 | 193 | // 下拉刷新 | ... | ... |