update
This commit is contained in:
parent
d756015393
commit
06c8494e2e
@ -98,11 +98,12 @@
|
||||
|
||||
<!-- 右侧商品详情 -->
|
||||
<div class="shopDetailList" v-if="changBigTypeLoading">
|
||||
<scroll-view class="shopDetailScroll" scroll-y :scroll-top="topNum" @scroll="onVirtualScroll" :style="{
|
||||
height: `calc(100vh - 50px - ${safeHeight}px - ${menu.top + 32 + 32 + 12 + 12 + 23 + 95}px)`
|
||||
}">
|
||||
<scroll-view class="shopDetailScroll" scroll-y :scroll-top="topNum" @scroll="onVirtualScroll"
|
||||
:scroll-into-view='shopTopId' :style="{
|
||||
height: `calc(100vh - 50px - ${safeHeight}px - ${menu.top + 32 + 32 + 12 + 12 + 23 + 95}px)`
|
||||
}">
|
||||
<div :style="{ height: totalHeight + 'px', position: 'relative' }">
|
||||
|
||||
<div :id="'shopTop'"></div>
|
||||
<div v-for="(item, i) in visibleList" :key="item.COMMODITY_ID" class="shopDetailItem" :style="{
|
||||
position: 'absolute',
|
||||
height: itemHeight + 'px',
|
||||
@ -306,7 +307,8 @@ export default {
|
||||
scrollLock: false,
|
||||
imageLoadedMap: {},
|
||||
lastStartIndex: 0,
|
||||
hasWatched: 0
|
||||
hasWatched: 0,
|
||||
shopTopId: ''
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@ -1357,6 +1359,14 @@ export default {
|
||||
} else {
|
||||
this.rightShopList = [];
|
||||
}
|
||||
this.visibleList = shopList
|
||||
this.startIndex = 0;
|
||||
this.shopTopId = 'shopTop'
|
||||
this.$forceUpdate()
|
||||
let _this = this
|
||||
setTimeout(() => {
|
||||
_this.shopTopId = ''
|
||||
}, 1000)
|
||||
},
|
||||
// 选规格的悬浮框
|
||||
handleShowPopup(obj) {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -278,7 +278,8 @@ var _default = {
|
||||
scrollLock: false,
|
||||
imageLoadedMap: {},
|
||||
lastStartIndex: 0,
|
||||
hasWatched: 0
|
||||
hasWatched: 0,
|
||||
shopTopId: ''
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
@ -1246,6 +1247,14 @@ var _default = {
|
||||
} else {
|
||||
this.rightShopList = [];
|
||||
}
|
||||
this.visibleList = shopList;
|
||||
this.startIndex = 0;
|
||||
this.shopTopId = 'shopTop';
|
||||
this.$forceUpdate();
|
||||
var _this = this;
|
||||
setTimeout(function () {
|
||||
_this.shopTopId = '';
|
||||
}, 1000);
|
||||
}), (0, _defineProperty2.default)(_methods, "handleShowPopup", function handleShowPopup(obj) {
|
||||
var currentShop = JSON.parse(JSON.stringify(obj));
|
||||
if (currentShop.count > 0) {} else {
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user