<mp-cell title="聚餐时间" link bindtap="openDateTimePicker">
<view slot="footer" class="cell-footer">
<text class="cell-value">
{{mealDate && mealTime ? mealDate + ' ' + mealTime : '请选择日期和时间'}}
</text>
</view>
</mp-cell>
/* 单元格值样式 */
.cell-value {
font-size: 28rpx;
color: #666666;
text-align: center;
min-height: 60rpx; /* 修改为 min-height */
display: flex;
align-items: center;
justify-content: center;
min-width: 200rpx;
}
.cell-footer {
display: flex;
align-items: center;
justify-content: flex-end;
min-height: 100%; /* 修改为 min-height */
min-height: 60rpx;
}
你的.cell-footer的justify-content: flex-end;得设置center吧