微信小店联盟带货小程序

list.wxml 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <view class="container">
  2. <view class="bank-list">
  3. <view
  4. class="bank-card"
  5. wx:for="{{bankCards}}"
  6. wx:key="id"
  7. >
  8. <view class="card-header">
  9. <view class="bank-name-group">
  10. <text class="bank-name">{{item.bankName}}</text>
  11. <text class="card-type-tag">{{item.cardType}}</text>
  12. </view>
  13. <view wx:if="{{item.isDefault}}" class="default-tag">默认</view>
  14. </view>
  15. <view class="card-number">{{item.cardNumber}}</view>
  16. <view class="card-actions">
  17. <view class="action-buttons">
  18. <button
  19. class="edit-btn"
  20. data-id="{{item.id}}"
  21. bindtap="editBankCard"
  22. >
  23. 编辑
  24. </button>
  25. <button
  26. class="delete-btn"
  27. data-id="{{item.id}}"
  28. bindtap="deleteBankCard"
  29. >
  30. 删除
  31. </button>
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <button
  37. class="add-card-btn"
  38. bindtap="addBankCard"
  39. >
  40. + 添加收款账户
  41. </button>
  42. </view>