refactor(OrderActionButtons): 重构订单操作按钮组件
- 新增 getButtons 和 updateButtons 方法,用于动态生成按钮 - 优化按钮渲染逻辑,使用 wx:for 循环生成按钮 - 重构按钮点击事件处理,统一使用 onButtonClick 方法 - 优化数据结构,将按钮配置移至组件数据中 - 添加组件生命周期钩子,初始化时更新按钮
Showing
2 changed files
with
195 additions
and
41 deletions
-
Please register or sign in to post a comment