index.wxml 1.2 KB

1234567891011121314151617181920
  1. <van-popup show="{{ show }}" position="bottom" custom-style="height:100%;" round closeable bind:close="onClose">
  2. <view class="header">选择项目</view>
  3. <view style="height: 90rpx;" />
  4. <van-search value="{{ value }}" shape="round" placeholder="请输入搜索关键词" bind:search='startSearch' bind:clear='onClear' />
  5. <van-checkbox-group value="{{ result }}" bindchange="onChange">
  6. <navigator url="#" wx:for="{{showList}}" wx:key="item.sa_projectid">
  7. <van-checkbox shape="square" name="{{item.sa_projectid}}" custom-class='checkbox' icon-class='icon-class' label-class='label-class'>
  8. <view class="label line-1">项目:{{item.projectname}}</view>
  9. <view class="check-text line-1">项目编号:{{item.projectnum}}</view>
  10. <view class="check-text line-1">项目地址:{{item.address}}</view>
  11. </van-checkbox>
  12. </navigator>
  13. </van-checkbox-group>
  14. <My_empty wx:if="{{showList.length==0}}" />
  15. <view class="footer">
  16. <view>已选择:{{result.length}}个</view>
  17. <van-button custom-class='but' bindtap="handleReturn" disabled='{{!result.length}}'>确认添加</van-button>
  18. </view>
  19. <view style="height: 110rpx;" />
  20. </van-popup>