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