图片组件滚动条隐藏

This commit is contained in:
luJianJun 2023-08-10 18:24:26 +08:00
parent 8f2c376ba8
commit bf15ed40ab

View File

@ -814,7 +814,7 @@
</div>
</div>
<div class="dis-f jus-x bottom-tps"
v-if="(recommendListData.length > 0&&housingInfo['data']&&!housingInfo['data']['info'].verified) || (recommendListData.length > 0&&housingInfo['data']&&!housingInfo['data'].isintermediary)">
v-if="(recommendListData.length > 0 && housingInfo['data'] && !housingInfo['data']['info'].verified) || (recommendListData.length > 0 && housingInfo['data'] && !housingInfo['data'].isintermediary)">
- {{ loadText }} -
</div>
</div>
@ -1115,7 +1115,7 @@ let imgListTab = ref(0)
let interval = ''
let clientWidth = ref(null)
let scrollWidth = ref(null)
let scrollMove=false
let scrollMove = false
//
let moveImageList = (type) => {
if (type === 'right' && imgScrollBottom()) return
@ -1127,17 +1127,17 @@ let moveImageList = (type) => {
//
let setOffsetWidth = (num, type) => {
let scroll = 0
if(scrollMove)return
scrollMove=true
if (scrollMove) return
scrollMove = true
interval = setInterval(() => {
if (!imageList.value) {
scrollMove=false
scrollMove = false
clearInterval(interval)
return
}
scroll = type === 'left' ? imageList.value.scrollLeft -= 10 : imageList.value.scrollLeft += 10
if ((type === 'left' ? num >= scroll : num <= scroll)) {
scrollMove=false
scrollMove = false
clearInterval(interval)
}
})
@ -1599,7 +1599,7 @@ img {
color: #555555;
text-align: center;
padding: 30px 0;
width:876px;
width: 876px;
}
.need-houing-type {
@ -2467,8 +2467,10 @@ img {
.list-box {
overflow-x: scroll;
overflow: -moz-scrollbars-none; // Firefox
-ms-overflow-style: none;//
scrollbar-color: transparent transparent;
scrollbar-track-color: transparent;
-ms-scrollbar-track-color: transparent;
-ms-overflow-style: none; //
height: 120px;
color: #fff;