Commit e461de3cc835770189581e8e23239ff92f60fed0
1 parent
f8b960aa
bug修复
Showing
2 changed files
with
4 additions
and
3 deletions
src/pages/goodDetails/goodDetails.vue
| @@ -19,7 +19,7 @@ | @@ -19,7 +19,7 @@ | ||
| 19 | > | 19 | > |
| 20 | </back-box> | 20 | </back-box> |
| 21 | <!-- pl --> | 21 | <!-- pl --> |
| 22 | - <div class="pl" :class="{'is-cnlive': isCNLive.value, 'is-open-app': $parent.isOpenApp.value, 'hide': $route.query.hideBack == true}"></div> | 22 | + <div class="pl" :style="'padding-top: ' + $parent.top.value + 'px'" :class="{'is-cnlive': isCNLive.value, 'is-open-app': $parent.isOpenApp.value, 'hide': $route.query.hideBack == true}"></div> |
| 23 | <!--轮播--> | 23 | <!--轮播--> |
| 24 | <!-- <swiper | 24 | <!-- <swiper |
| 25 | :style=" | 25 | :style=" |
| @@ -179,7 +179,8 @@ export default { | @@ -179,7 +179,8 @@ export default { | ||
| 179 | 179 | ||
| 180 | // 判断是否有处理函数 | 180 | // 判断是否有处理函数 |
| 181 | if (typeof this.$parent.back === 'function') { | 181 | if (typeof this.$parent.back === 'function') { |
| 182 | - | 182 | + // 隐藏通用浮层 |
| 183 | + this.$parent.$refs.showModal.hideLayer(); | ||
| 183 | // 后退 | 184 | // 后退 |
| 184 | this.$parent.back(); | 185 | this.$parent.back(); |
| 185 | } else { | 186 | } else { |
src/pages/pointsMall/pointsMall.vue
| @@ -174,7 +174,7 @@ export default { | @@ -174,7 +174,7 @@ export default { | ||
| 174 | safeDistance += this.$refs.backBox.$el.clientHeight; | 174 | safeDistance += this.$refs.backBox.$el.clientHeight; |
| 175 | } | 175 | } |
| 176 | 176 | ||
| 177 | - document.documentElement.scrollTop = document.body.scrollTop = this.$refs[item.ref].offsetTop - safeDistance - (20 * ((document.documentElement.clientWidth || document.body.clientWidth) / 750)) - 50; | 177 | + document.documentElement.scrollTop = document.body.scrollTop = this.$refs[item.ref].offsetTop - safeDistance - (20 * ((document.documentElement.clientWidth || document.body.clientWidth) / 750)) - (this.$parent.top.value + 60); |
| 178 | } | 178 | } |
| 179 | } else { | 179 | } else { |
| 180 | this.$parent.callApp();; | 180 | this.$parent.callApp();; |