index.wxml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <view class="container">
  2. <!-- top-view -->
  3. <view class="top-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. <view class="tab-view">
  11. <van-tabs swipeable bind:change="onTabChange" color="#2270D9" line-width="20px" title-inactive-color="#333" title-active-color="#407DB8">
  12. <van-tab wx:for="{{tabs}}" wx:for-item="itm" wx:key="id" id="{{itm.id}}" title="{{itm.name}}"/>
  13. </van-tabs>
  14. </view>
  15. <!-- 履约模板 -->
  16. <view class="tmp_view" style="background-color: white;">
  17. <van-cell-group>
  18. <van-field label="履约模板:" value="{{ tmp.templatename }}" readonly is-link bind:click-input="showPlanTmps" />
  19. </van-cell-group>
  20. <view class="tmp_view__step">
  21. <view class="tmp_view__step__item" wx:for="{{ tmp.LstStep }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">
  22. <text style="color: white; background-color: {{ colors[idx] }};">{{ itm.stepinfo }}</text>
  23. <text>{{ itm.stepdate }}</text>
  24. </view>
  25. </view>
  26. </view>
  27. <!-- 列头 -->
  28. <view class="title-view">
  29. <view class="title-view-up">
  30. <text wx:for="{{ titles[0] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{ itm }}</text>
  31. </view>
  32. <view class="title-view-dwn">
  33. <text wx:for="{{ titles[1] }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx">{{ itm }}</text>
  34. </view>
  35. </view>
  36. </view>
  37. <van-swipe-cell wx:for="{{ values }}" wx:for-item="itm" wx:for-index="idx" wx:key="idx" bind:click="onSelectItem" id="{{ idx }}">
  38. <view class="item-view {{ values[idx].isChecked ? 'active' : '' }}">
  39. <view class="item-view-up">
  40. <text wx:for="{{ itm.up }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
  41. </view>
  42. <view class="item-view-dwn">
  43. <text wx:for="{{ itm.dwn }}" wx:for-item="data" wx:for-index="idx" wx:key="idx">{{ data }}</text>
  44. </view>
  45. </view>
  46. </van-swipe-cell>
  47. <!-- empty -->
  48. <van-empty wx:if="{{ isEmpty }}" class="custom-image" description="无数据"/>
  49. <!-- 提交按钮视图 -->
  50. <view class="button-view" style="padding-bottom: {{ safeBottom }}px;">
  51. <van-button id="close" block round color="#7232dd" bind:click="doListingSell">确认出售</van-button>
  52. </view>
  53. </view>
  54. <!-- 履约模板 -->
  55. <van-popup show="{{ show }}" position="bottom" custom-style="height: 30%" bind:click-overlay="onClose">
  56. <van-picker show-toolbar bind:confirm="onSelect" bind:cancel="onClose" columns="{{ actions }}" title="请选择履约模板" />
  57. </van-popup>