diff --git a/packageA/my/pendinPayStatus.vue b/packageA/my/pendinPayStatus.vue index 6b2880b..f237f4d 100644 --- a/packageA/my/pendinPayStatus.vue +++ b/packageA/my/pendinPayStatus.vue @@ -63,23 +63,27 @@ + + + + + {{item.name}} + + + {{item.idnum}} + + - - - {{item.name}} - - - {{item.idnum}} - - - - - - - @@ -197,8 +201,13 @@ export default { computed: { scrollViewHeight() { - // 假设每条内容高度 80rpx,最小高度 100rpx - return Math.max(this.detailAny.ordercode.length * 80, 100); + // 根据内容数量计算合适的高度 + const baseHeight = 80; // 每项基础高度 + const minHeight = 100; // 最小高度 + const maxHeight = 240; // 最大高度 + const calculatedHeight = this.detailAny.ordercode.length * baseHeight; + + return Math.min(Math.max(calculatedHeight, minHeight), maxHeight); }, formattedTimeList() { return this.timeList.map(item => { @@ -517,12 +526,14 @@