index.wxml 3.2 KB

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