index.wxml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!-- top-view -->
  2. <view class="top-view">
  3. <!-- 导航栏 -->
  4. <van-nav-bar custom-style="background-color: #E92020">
  5. <van-icon slot="left" name="arrow-left" size="25px" color="white" bind:click="backToParent"/>
  6. <text slot="title" style="color: white;">保税服务</text>
  7. </van-nav-bar>
  8. <!-- tabs -->
  9. <view class="tab-view">
  10. <van-tabs sticky animated bind:change="onTabChange" color="#2270D9" title-active-color="#2270D9" title-inactive-color="#8F8AA6">
  11. <van-tab wx:for="{{tabs}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" title="{{itm.name}}"/>
  12. </van-tabs>
  13. </view>
  14. <!-- 列头 -->
  15. <view class="title-view">
  16. <view class="title-view-up">
  17. <text wx:for="{{titles[0]}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{itm}}</text>
  18. </view>
  19. <view class="title-view-mid">
  20. <text wx:for="{{titles[1]}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{itm}}</text>
  21. </view>
  22. <view class="title-view-dwn">
  23. <text wx:for="{{titles[2]}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{itm}}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 内容滚动视图 -->
  28. <scroll-view class="content-view" style="padding-bottom: {{safeBottom+48}}px;">
  29. <!-- 数据 -->
  30. <van-swipe-cell wx:for="{{values}}" wx:for-item="itm" wx:for-index="idx" right-width="{{ width }}" wx:key="orderid">
  31. <view class="item-view">
  32. <view class="item-view-up">
  33. <text wx:for="{{itm.up}}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{data}}</text>
  34. </view>
  35. <view class="item-view-mid">
  36. <text wx:for="{{itm.mid}}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{data}}</text>
  37. </view>
  38. <view class="item-view-dwn">
  39. <text wx:for="{{itm.dwn}}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{data}}</text>
  40. </view>
  41. </view>
  42. <!-- 取消收藏 -->
  43. <view slot="right" class="van-swipe-cell__right">
  44. <view class="item detail" id="detail {{ idx }}" style="background-color: yellowgreen; color: white;" bindtap="onButtonPressed">详情</view>
  45. <view class="item confirmprepayment" id="confirmprepayment {{ idx }}" style="background-color: darkgreen; color: white;" bindtap="onButtonPressed" wx:if="{{ orders[idx].gzbsstatus === 4 }}">确认预付款</view>
  46. <view class="item confirmpayment" id="confirmpayment {{ idx }}" style="background-color: maroon; color: white;" bindtap="onButtonPressed" wx:if="{{ orders[idx].gzbsstatus === 11 }}">确认付款</view>
  47. </view>
  48. </van-swipe-cell>
  49. </scroll-view>
  50. <!-- 无数据 -->
  51. <van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>
  52. <!-- toast -->
  53. <van-toast id="van-toast" />