Commit a1571f3b by liimin

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

修复底部组件在渲染时边距计算不准确的问题,将固定值16rpx改为30rpx以更好适应布局需求
1 parent 46733e8f
...@@ -13,14 +13,20 @@ Component({ ...@@ -13,14 +13,20 @@ Component({
}, },
}, },
data: {
marginBottom: 0,
},
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
onRendered(e) { onRendered(e) {
if (e.detail.length) {
this.setData({ this.setData({
marginBottom: e.detail.length ? '16rpx' : 0 marginBottom: "30rpx",
}) });
}
}, },
// compute(item) { // compute(item) {
// let { applyQty, sellQty, redeemPoints, freightAmount = 0 } = 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!