gift.wxml 1.1 KB

1234567891011121314151617181920212223
  1. <skeleton />
  2. <scroll-view class="top" scroll-x="true" scroll-left="{{sliderLeft}}" scroll-with-animation>
  3. <view class='tab_cate'>
  4. <block wx:for="{{tabs}}" wx:key="this">
  5. <view id="{{index}}" bindtap="selecttab" class="tabs {{activeIndex == index ? 'action' : ''}}">{{item}}</view>
  6. </block>
  7. </view>
  8. </scroll-view>
  9. <view class='order_list'>
  10. <block wx:if="{{gift.length > 0}}">
  11. <van-panel wx:for="{{gift}}" wx:key="this" wx:for-index="idx" wx:for-item="rs" 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>
  12. <view class="content">
  13. <van-card title="{{rs.item.name}}" thumb="{{rs.item.img}}" lazy-load="{{ true }}" num="1"></van-card>
  14. <van-card wx:for="{{rs.gift}}" wx:key="this" title="{{item.name}}" thumb="{{item.img}}" num="1"></van-card>
  15. </view>
  16. <view slot="footer" class="footer tar">总金额:¥{{rs.real_amount}}元</view>
  17. </van-panel>
  18. <include src="/component/loading.wxml" />
  19. </block>
  20. <block wx:else>
  21. <include src="/component/null.wxml" />
  22. </block>
  23. </view>