index.wxml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <view class="container">
  2. <view class="tab">
  3. <view class="tab_cell {{tabIndex === 1 ? 'active' : ''}}" bindtap="tabChange" data-index="1">获取记录</view>
  4. <view class="tab_cell {{tabIndex === 0 ? 'active' : ''}}" bindtap="tabChange" data-index="0">使用记录</view>
  5. </view>
  6. <!-- <view class="content" wx:if="{{tabIndex === 0}}">
  7. <view class="content_item content_column" wx:for="{{result[0].list}}" wx:key="`withdrawItem${item.id}`">
  8. <view class="content_info content_row">
  9. <text class="content_order">{{item.title}}</text>
  10. <label class="content_price">
  11. +{{item.amount}} <text class="content_price-unit">元</text>
  12. </label>
  13. </view>
  14. <view class="content_row">
  15. <text class="content_datetime">{{item.create_time}}</text>
  16. <text class="content_status {{item.reason ? 'underline' : ''}}" bindtap="showReason" data-reason="{{item.reason}}">{{item.status}}</text>
  17. </view>
  18. </view>
  19. </view> -->
  20. <view class="content" wx:if="{{tabIndex === 0}}">
  21. <view class="content_item content_row" wx:for="{{result[0].list}}" wx:key="`incomeItem${item.id}`">
  22. <image class="content_avatar" src="{{item.icon}}"></image>
  23. <view class="content_intro">
  24. <text class="content_nickname">{{item.title}}</text>
  25. <text class="content_text">{{item.desc}}</text>
  26. </view>
  27. <view class="text-right">
  28. <label class="content_price content_price-fixed" wx:if="{{mpType === 'rp'}}">
  29. -{{item.amount}} <text class="content_price-unit">元</text>
  30. </label>
  31. <label class="content_price content_price-fixed" wx:elif="{{mpType === 'gd'}}">
  32. -{{item.integral}} <text class="content_price-unit">金币</text>
  33. </label>
  34. <text class="content_datetime">{{item.create_time}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="content" wx:if="{{tabIndex === 1}}">
  39. <view class="content_item content_row" wx:for="{{result[1].list}}" wx:key="`incomeItem${item.id}`">
  40. <image class="content_avatar" src="{{item.icon}}"></image>
  41. <view class="content_intro">
  42. <text class="content_nickname">{{item.title}}</text>
  43. <text class="content_text">{{item.desc}}</text>
  44. </view>
  45. <view class="text-right">
  46. <label class="content_price content_price-fixed" wx:if="{{mpType === 'rp'}}">
  47. +{{item.amount}} <text class="content_price-unit">元</text>
  48. </label>
  49. <label class="content_price content_price-fixed" wx:elif="{{mpType === 'gd'}}">
  50. +{{item.integral}} <text class="content_price-unit">金币</text>
  51. </label>
  52. <text class="content_datetime">{{item.create_time}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. <no-more wx:if="{{result[tabIndex].count <= (params[tabIndex].page - 1) * params[tabIndex].offset}}"/>
  57. </view>