index.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!--mHome/pages/purchase/list/index.wxml-->
  2. <view class="container" style="padding-bottom: {{ safeBottom }}px;">
  3. <view class="tab-view" style="position: sticky; top: 0; z-index: 999;">
  4. <!-- 导航栏 -->
  5. <van-nav-bar custom-style="background-color: #407DB8">
  6. <van-icon slot="left" name="arrow-left" size="25px" color="#fff" bind:click="backToParent"/>
  7. <text slot="title" style="color: #fff;">集采交易</text>
  8. </van-nav-bar>
  9. <!-- tabs -->
  10. <van-tabs id="category" active="{{ active }}" swipeable bind:change="onTabChange" color="#2270D9" line-width="20px" title-inactive-color="#333" title-active-color="#407DB8">
  11. <van-tab wx:for="{{ tabs }}" wx:for-item="itm" wx:key="id" name="{{ itm.id }}" title="{{ itm.name }}"/>
  12. </van-tabs>
  13. <view class="filter-view">
  14. <van-tabs id="subCategory" bind:change="onTabChange" line-height="0px" title-inactive-color="#333" title-active-color="#407DB8">
  15. <van-tab wx:for="{{ subtabs }}" wx:for-item="itm" wx:key="id" name="{{ itm.id }}" title="{{ itm.name }}"/>
  16. </van-tabs>
  17. <van-icon name="add-o" size="25px" color="#387BDC" bind:click="addPurchase"/>
  18. </view>
  19. </view>
  20. <!-- 数据内容 -->
  21. <view class="container__list">
  22. <view wx:if="{{ active != 3 }}" class="container__list__item" wx:for="{{ values }}" wx:for-item="itm" wx:for-index="idx" id="{{ idx }}" wx:key="idx" bindtap="onItemClick">
  23. <view class="container__list__item__top">
  24. <text>{{ itm.wrstandardname }}</text>
  25. <text>{{ itm.surplusqty }}</text>
  26. <text>{{ itm.price }}</text>
  27. <text>{{ itm.status }}</text>
  28. </view>
  29. <view class="container__list__item__row">
  30. <text>卖方:{{ itm.customername }}</text>
  31. <text>预售数量:{{ itm.presaleqty }}</text>
  32. </view>
  33. <view class="container__list__item__row">
  34. <text>采购保证金:{{ itm.buymarginvalue }}</text>
  35. <text>最小采购单位:{{ itm.minbuyqty }}</text>
  36. </view>
  37. <view class="container__list__item__row">
  38. <text>开始日期:{{ itm.startdate }}</text>
  39. <text>最大采购单位:{{ itm.maxbuyqty }}</text>
  40. </view>
  41. <view class="container__list__item__row">
  42. <text>结束日期:{{ itm.enddate }}</text>
  43. <text>最低成团量:{{ itm.minsuccessqty }}</text>
  44. </view>
  45. </view>
  46. <view wx:if="{{ active === 3 }}" class="container__list__item" wx:for="{{ values }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx" bindtap="onItemClick">
  47. <view class="container__list__item__top">
  48. <text>{{ itm.wrstandardname }}</text>
  49. <text>{{ itm.orderqty }}</text>
  50. <text>{{ itm.tradeprice }}</text>
  51. <text>{{ itm.status }}</text>
  52. </view>
  53. <view class="container__list__item__row">
  54. <text>卖方:{{ itm.customername }}</text>
  55. <text>货款:{{ itm.tradeamount }}</text>
  56. </view>
  57. <view class="container__list__item__row">
  58. <text>采购保证金:{{ itm.marginvalue }}</text>
  59. <text>已付保证金:{{ itm.freezemargin }}</text>
  60. </view>
  61. <view class="container__list__item__row">
  62. <text>{{ itm.ordertime }}</text>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- empty -->
  68. <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>