This commit is contained in:
2020-08-14 21:38:23 +08:00
parent d79b0c5da7
commit e784bbf596
2 changed files with 5 additions and 2 deletions

View File

@@ -195,8 +195,8 @@ export default {
this.current = current;
},
setViewHeight() {
const sys = uni.getSystemInfoSync();
this.swiperHeight = sys.windowHeight - 88 / 2 + 'px';
const res = uni.getSystemInfoSync();
this.swiperHeight = res.windowHeight - (88 * (res.windowWidth / 750)) + 'px';
},
}
};
@@ -207,6 +207,7 @@ export default {
background-color: #ECECEC;
display: flex;
flex-direction: column;
overflow: hidden;
.swiper-item {
.order-scroll {
.item-container {