index.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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:change="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:change="onTabChange" line-height="0px" title-inactive-color="#333" title-active-color="#DC203D">
  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="25px" 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:key="presaleapplyid" wx:for-item="itm" wx:for-index="idx" id="{{ 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. <text>{{ itm.status }}</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:key="presaleapplyid" wx:for-item="itm" wx:for-index="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.buymarginvalue*100.0 }}%</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="无数据"/>