his.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <!--mMine/pages/myorders/his/his.wxml-->
  2. <view class="topView">
  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. <!-- 过滤条件 -->
  9. <view class="result-view" style="background-color: white;">
  10. <van-tabs custom-class="buyOrSell" type="card" sticky animated bind:change="onDTabChange" line-height="0px">
  11. <van-tab wx:for="{{['买', '卖']}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx" active="{{idx}}" title="{{itm}}"/>
  12. </van-tabs>
  13. <text>从</text>
  14. <van-button size="normal" id="startdate" custom-class="sell" plain type="default" bind:click="onButtonPressed">{{startdate}}</van-button>
  15. <text>到</text>
  16. <van-button size="normal" id="enddate" custom-class="sell" plain type="default" bind:click="onButtonPressed">{{enddate}}</van-button>
  17. </view>
  18. <!-- 列头 -->
  19. <view class="title-view">
  20. <view class="title-view-up">
  21. <text wx:for="{{titles[0]}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{itm}}</text>
  22. </view>
  23. <view class="title-view-down">
  24. <text wx:for="{{titles[1]}}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{itm}}</text>
  25. </view>
  26. </view>
  27. </view>
  28. <!-- 内容滚动视图 -->
  29. <scroll-view class="content-view">
  30. <!-- 数据 -->
  31. <van-swipe-cell wx:for="{{values}}" wx:for-item="itm" wx:key="wrtradedetailid" right-width="{{ 50 }}">
  32. <view class="item-view">
  33. <view class="item-view-up">
  34. <text wx:for="{{itm.up}}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{data}}</text>
  35. </view>
  36. <view class="item-view-down">
  37. <text wx:for="{{itm.dwn}}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{data}}</text>
  38. </view>
  39. </view>
  40. <view slot="right" class="van-swipe-cell__right">
  41. <view class="item detail" id="detail {{idx}}" style="background-color: yellowgreen; color: white;" bindtap="onButtonPressed">详情</view>
  42. </view>
  43. </van-swipe-cell>
  44. </scroll-view>
  45. <!-- empty -->
  46. <van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>
  47. <!-- toast -->
  48. <van-toast id="van-toast" />
  49. <!-- 选择日期 -->
  50. <van-calendar wx:if="{{ show }}" min-date="{{minDate}}" bind:close="onClose" bind:confirm="onConfirm" />