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 b8892799
authored
Sep 05, 2025
by
liimin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
refactor(订单组件): 移除未使用的hasUserInfo属性
清理订单相关组件中不再需要的hasUserInfo属性,简化组件接口
1 parent
f6ccb8ac
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
10 deletions
packageMine/pages/order/index/components/Bottom/Bottom.wxml
packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons.js
packageMine/pages/order/index/components/OrderCard/OrderCard.js
packageMine/pages/order/index/components/Bottom/Bottom.wxml
View file @
b889279
...
@@ -3,5 +3,5 @@
...
@@ -3,5 +3,5 @@
共{{item.___qty}}件,实付款
共{{item.___qty}}件,实付款
<text class="price">{{item.___totalPrice||'--'}}积分</text>
<text class="price">{{item.___totalPrice||'--'}}积分</text>
</view>
</view>
<order-action-buttons order="{{item}}"
has-user-info="{{hasUserInfo}}"
bindonRendered="onRendered" />
<order-action-buttons order="{{item}}" bindonRendered="onRendered" />
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageMine/pages/order/index/components/OrderActionButtons/OrderActionButtons.js
View file @
b889279
...
@@ -12,11 +12,7 @@ Component({
...
@@ -12,11 +12,7 @@ Component({
observer
:
function
()
{
observer
:
function
()
{
this
.
updateButtons
();
this
.
updateButtons
();
}
}
},
}
hasUserInfo
:
{
type
:
Boolean
,
value
:
false
,
},
},
},
/**
/**
...
...
packageMine/pages/order/index/components/OrderCard/OrderCard.js
View file @
b889279
...
@@ -16,10 +16,6 @@ Component({
...
@@ -16,10 +16,6 @@ Component({
type
:
Object
,
type
:
Object
,
value
:
{},
value
:
{},
},
},
hasUserInfo
:
{
type
:
Boolean
,
value
:
false
,
},
},
},
/**
/**
...
...
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