myorders.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--pages/mine/myorders/myorders.wxml-->
  2. <!-- top-view -->
  3. <view class="top-view">
  4. <!-- 导航栏 -->
  5. <van-nav-bar custom-style="background-color: #E92020">
  6. <van-icon slot="left" name="arrow-left" size="25px" color="white" bind:click="backToParent"/>
  7. <text slot="title" style="color: white;">我的订单</text>
  8. </van-nav-bar>
  9. <!-- tabs -->
  10. <view class="tab-view">
  11. <van-tabs sticky animated bind:change="onTabChange">
  12. <van-tab wx:for="{{tabs}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" active="{{itm.id}}" title="{{itm.name}}"/>
  13. </van-tabs>
  14. </view>
  15. </view>
  16. <scroll-view class="scroll-view" scroll-x enable-flex style="padding-bottom: {{safeBottom+48}}px;">
  17. <!-- 列头 -->
  18. <view class="title-view" style="width: {{totalWidth}}px;">
  19. <text class="title-view-text" wx:for="{{titles}}" wx:for-index="idx" wx:for-item="itm" wx:key="idx" id="idx" style="width: {{widths[idx]}}px;">{{itm}}</text>
  20. </view>
  21. <!-- 数据内容 -->
  22. <view class="order-list">
  23. <view class="order-list-item" wx:for="{{values}}" wx:for-item="lists" wx:key="lists" id="{{index}}" bindtap="onListItemClick">
  24. <!-- 数据体 -->
  25. <view class="order-list-item-row" style="width: {{totalWidth}}px;">
  26. <text wx:for="{{lists}}" wx:for-index="idx" wx:for-item="itm" wx:key="itm" style="width: {{widths[idx]}}px;">{{itm}}</text>
  27. </view>
  28. <!-- 按钮 -->
  29. <view class="order-list-item-btn" wx:if="{{selectRow != -1 && selectRow == index}}">
  30. <!-- 商品详情 -->
  31. <button class="goods-detail" id="goods-detail" bindtap="onButtonPressed">商品详情</button>
  32. <!-- 出售详情 -->
  33. <button class="sale-detail" id="sale-detail" bindtap="onButtonPressed">出售详情</button>
  34. <!-- 挂牌详情 -->
  35. <button class="listing-detail" id="listing-detail" bindtap="onButtonPressed">挂牌详情</button>
  36. <!-- 买委托单 -->
  37. <button class="buy-order" id="buy-order" bindtap="onButtonPressed">买委托单</button>
  38. <!-- 卖委托单 -->
  39. <button class="sale-order" id="sale-order" bindtap="onButtonPressed">卖委托单</button>
  40. <!-- 撤销 -->
  41. <button class="cancel" id="cancel" bindtap="onButtonPressed">撤销</button>
  42. </view>
  43. </view>
  44. </view>
  45. </scroll-view>
  46. <!-- empty -->
  47. <van-empty wx:if="{{isEmpty}}" class="custom-image" description="无数据"/>