select.wxml 1.1 KB

123456789101112131415161718192021222324252627
  1. <van-search value="{{ content.where.condition }}" shape="round" background="#fff" placeholder="{{language['请输入关键字']||'请输入关键字'}}" bind:search='startSearch' bind:clear='onClear' />
  2. <view class="total" style="height: 20rpx;" />
  3. <Yl_ListBox id='ListBox' bind:getlist='getList'>
  4. <navigator class="item" url="#" wx:for="{{list}}" wx:key="sa_orderitemsid" data-item="{{item}}" bindtap="onChange">
  5. <van-checkbox value="{{ handle.isCheck(item.sa_orderitemsid,result) }}" shape="square" icon-size='28rpx' />
  6. <view style="flex: 1;margin-left: -30rpx;">
  7. <item item='{{item}}' />
  8. </view>
  9. </navigator>
  10. <My_empty wx:if="{{list.length==0}}" />
  11. </Yl_ListBox>
  12. <view class="footer">
  13. <view class="count">
  14. {{language['已选']||'已选'}}:{{result.length}}
  15. </view>
  16. <van-button custom-class='but' disabled='{{result.length==0}}' bind:click="submit">{{language['确定']||'确定'}}</van-button>
  17. </view>
  18. <wxs module="handle">
  19. module.exports = {
  20. isCheck: function (id, list) {
  21. return list.some(function (v) {
  22. return v == id
  23. });
  24. },
  25. }
  26. </wxs>