index.wxml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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:click="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:click="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="20px" 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. </view>
  28. <view class="container__list__item__row">
  29. <text>卖方:{{ itm.customername }}</text>
  30. <text>预售数量:{{ itm.presaleqty }}</text>
  31. </view>
  32. <view class="container__list__item__row">
  33. <text>采购保证金:{{ itm.buymarginvalue }}</text>
  34. <text>最小采购单位:{{ itm.minbuyqty }}</text>
  35. </view>
  36. <view class="container__list__item__row">
  37. <text>开始日期:{{ itm.startdate }}</text>
  38. <text>最大采购单位:{{ itm.maxbuyqty }}</text>
  39. </view>
  40. <view class="container__list__item__row">
  41. <text>结束日期:{{ itm.enddate }}</text>
  42. <text>最低成团量:{{ itm.minsuccessqty }}</text>
  43. </view>
  44. </view>
  45. <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">
  46. <view class="container__list__item__top">
  47. <text>{{ itm.wrstandardname }}</text>
  48. <text>{{ itm.orderqty }}</text>
  49. <text>{{ itm.tradeprice }}</text>
  50. <text>{{ itm.status }}</text>
  51. </view>
  52. <view class="container__list__item__row">
  53. <text>卖方:{{ itm.customername }}</text>
  54. <text>货款:{{ itm.tradeamount }}</text>
  55. </view>
  56. <view class="container__list__item__row">
  57. <text>采购保证金:{{ itm.marginvalue }}</text>
  58. <text>已付保证金:{{ itm.freezemargin }}</text>
  59. </view>
  60. <view class="container__list__item__row">
  61. <text>{{ itm.ordertime }}</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. <!-- empty -->
  67. <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>