This commit is contained in:
许允枞 2025-03-03 17:58:44 +08:00
parent 0ee566077f
commit b69588d115
2 changed files with 15 additions and 6 deletions

View File

@ -54,8 +54,8 @@
>
</u-empty>
</view>
<u-popup round="55" :show="isShowPop" @close="closePop" @open="openPop" style="z-index: 10070; position: relative;">
<view class="popup-content">
<u-popup round="55" :show="isShowPop" @close="closePop" @open="openPop" :key="windowsHeight">
<view class="popup-content" :style="{'height':windowsHeight + 'px'}">
<view class="popup-header">
<text>选择筛选项</text>
@ -249,7 +249,8 @@ export default {
selectTime: new Date().toString(),
goodsList: [],
isShowGoods: false,
goodsName: null
goodsName: null,
windowsHeight:600,
}
},
onReachBottom() { //
@ -267,6 +268,12 @@ export default {
headersVue
},
onReady() {
uni.getSystemInfo({
success: function(res) {
this.windowsHeight = res.windowHeight;
console.log('屏幕高度:', res.windowHeight);
}
});
this.getTableData();
this.getDictData();
this.getCustomerSource();
@ -560,7 +567,8 @@ export default {
}
.popup-content {
padding: 20rpx;
padding: 20rpx 20rpx 20rpx 20rpx;
overflow-y: scroll;
background: white;
border-radius: 20rpx;
//height: 80vh;

View File

@ -1,5 +1,5 @@
<template>
<view class="u-popup">
<view class="u-popup" >
<u-overlay
:show="show"
@click="overlayClick"
@ -13,6 +13,7 @@
:customStyle="transitionStyle"
:mode="position"
:duration="duration"
@afterEnter="afterEnter"
@click="clickHandler"
>
@ -152,7 +153,7 @@
style.borderTopRightRadius = value
} else if(this.mode === 'center') {
style.borderRadius = value
}
}
}
return uni.$u.deepMerge(style, uni.$u.addStyle(this.customStyle))
},