index.wxml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <view class="topView">
  2. <!-- 导航栏 -->
  3. <van-nav-bar custom-style="background-color: #fff">
  4. <van-icon slot="left" name="arrow-left" size="25px" color="#333" bind:click="backToParent"/>
  5. <text slot="title" style="color: #333;">历史订单</text>
  6. </van-nav-bar>
  7. <!-- 过滤条件 -->
  8. <view class="result-view" style="background-color: white;">
  9. <van-tabs custom-class="buyOrSell" type="card" sticky animated bind:change="onDTabChange" line-height="0px" color="#2270D9" title-active-color="#2270D9" title-inactive-color="#8F8AA6">
  10. <van-tab wx:for="{{['买', '卖']}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx" active="{{idx}}" title="{{itm}}"/>
  11. </van-tabs>
  12. <text>从</text>
  13. <van-button size="normal" id="startdate" custom-class="sell" plain type="default" bind:click="onButtonPressed">{{startdate}}</van-button>
  14. <text>到</text>
  15. <van-button size="normal" id="enddate" custom-class="sell" plain type="default" bind:click="onButtonPressed">{{enddate}}</van-button>
  16. </view>
  17. <!-- 列头 -->
  18. <view class="title-view">
  19. <view class="title-view-up">
  20. <text wx:for="{{titles[0]}}" 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[1]}}" 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">
  29. <!-- 数据 -->
  30. <van-swipe-cell wx:for="{{values}}" wx:for-item="itm" wx:key="wrtradedetailid" right-width="{{ 50 }}">
  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-down">
  36. <text wx:for="{{itm.dwn}}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{data}}</text>
  37. </view>
  38. </view>
  39. <view slot="right" class="van-swipe-cell__right">
  40. <view class="item detail" id="detail {{idx}}" style="background-color: yellowgreen; color: white;" bindtap="onButtonPressed">详情</view>
  41. </view>
  42. </van-swipe-cell>
  43. </scroll-view>
  44. <!-- empty -->
  45. <van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>
  46. <!-- toast -->
  47. <van-toast id="van-toast" />
  48. <!-- 选择日期 -->
  49. <van-calendar wx:if="{{ show }}" min-date="{{minDate}}" bind:close="onClose" bind:confirm="onConfirm" />