Commit a1571f3b by liimin

fix(订单页底部组件): 调整渲染时边距计算逻辑

修复底部组件在渲染时边距计算不准确的问题,将固定值16rpx改为30rpx以更好适应布局需求
1 parent 46733e8f
......@@ -13,14 +13,20 @@ Component({
},
},
data: {
marginBottom: 0,
},
/**
* 组件的方法列表
*/
methods: {
onRendered(e) {
this.setData({
marginBottom: e.detail.length ? '16rpx' : 0
})
if (e.detail.length) {
this.setData({
marginBottom: "30rpx",
});
}
},
// compute(item) {
// let { applyQty, sellQty, redeemPoints, freightAmount = 0 } = item;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!