index.wxml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <skeleton />
  2. <view class='tab'>
  3. <view wx:for="{{tabs}}" wx:key="this" id="{{index}}" bindtap="selecttab" class="tabs {{activeIndex == index ? 'action' : ''}}">{{item}}</view>
  4. </view>
  5. <view class='order_list'>
  6. <block wx:if="{{item.length > 0}}">
  7. <block wx:for="{{item}}" wx:key="this" wx:for-index="idx" wx:for-item="rs" >
  8. <van-panel bindtap="onView" custom-class="order_item" title="{{rs.order_starttime}}" desc="{{rs.order_no}}" status="{{rs.status_text}}" id="{{rs.order_no}}" use-footer-slot>
  9. <view class="content">
  10. <block wx:for="{{rs.item}}" wx:key="this" wx:for-item="vo" >
  11. <view class="card">
  12. <view class="img"><image src="{{vo.img }}" /></view>
  13. <view class="info">
  14. <view class="name">{{ vo.name }}</view>
  15. <view class="price">
  16. <text class="amount">¥{{ vo.amount }}</text>
  17. <text class="right f12">x <text class="f16">{{ vo.buy_nums }}</text></text>
  18. </view>
  19. </view>
  20. </view>
  21. </block>
  22. </view>
  23. <view slot="footer" class="footer tar">金额:¥{{rs.order_amount}}元</view>
  24. </van-panel>
  25. </block>
  26. <include src="/component/loading.wxml" />
  27. </block>
  28. <block wx:else>
  29. <include src="/component/null.wxml" />
  30. </block>
  31. </view>