Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
points-mall
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1571f3b
authored
Sep 05, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(订单页底部组件): 调整渲染时边距计算逻辑
修复底部组件在渲染时边距计算不准确的问题,将固定值16rpx改为30rpx以更好适应布局需求
1 parent
46733e8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
packageMine/pages/order/index/components/Bottom/Bottom.js
packageMine/pages/order/index/components/Bottom/Bottom.js
View file @
a1571f3
...
...
@@ -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;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment