index.wxml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <van-popup show="{{ show }}" position="right" custom-style="width: 660rpx; height:100vh;" z-index="{{zIndex}}" bind:close="onClose">
  2. <view class="head" />
  3. <Yl_ListBox height="{{listHeight}}" pullDown='{{false}}'>
  4. <slot name='head' />
  5. <block wx:for="{{list}}" wx:key="label">
  6. <MultilevelClass id="MultilevelClass" item='{{item}}' wx:if="{{item.type=='multilevelClass'}}" />
  7. <view wx:elif="{{item.list.length}}" class="groud">
  8. <view class="label">
  9. {{language[item.label]||item.label}}
  10. </view>
  11. <view class="content" wx:if="{{item.type!='checkbox'}}">
  12. <van-button custom-class='but {{item.index==i?"active":""}}' wx:for="{{item.list}}" wx:for-item="data" wx:for-index="i" wx:key="i" data-item="{{data}}" data-index="{{index}}" data-i="{{i}}" bindtap="onSelect">{{language[data[item.showName]]||data[item.showName]}}</van-button>
  13. </view>
  14. <view wx:else class="content">
  15. <van-button custom-class='but {{per.query(item.index,i)?"active":""}}' wx:for="{{item.list}}" wx:for-item="data" wx:for-index="i" wx:key="i" data-item="{{data}}" data-index="{{index}}" data-i="{{i}}" bindtap="onSelectCheckbox">{{language[data[item.showName]]||data[item.showName]}}</van-button>
  16. </view>
  17. </view>
  18. </block>
  19. <view wx:if="{{dateRange}}" class="groud">
  20. <view class="label">
  21. {{language[dateRangeName]||dateRangeName}}
  22. </view>
  23. <view class="content time">
  24. <picker mode="date" bindchange='changeDate' data-name="startdate">
  25. <view class="tbox">{{startdate||language['开始日期']||'开始日期'}}</view>
  26. </picker>
  27. <view class="partition">-</view>
  28. <picker mode="date" bindchange='changeDate' data-name="enddate">
  29. <view class="tbox">{{enddate||language['结束日期']||"结束日期"}}</view>
  30. </picker>
  31. </view>
  32. </view>
  33. <view wx:if="{{dateRange1}}" class="groud">
  34. <view class="label">
  35. {{language['预测时间']||'预测时间'}}
  36. </view>
  37. <view class="content time">
  38. <picker mode="date" bindchange='changeDate' data-name="periodstart">
  39. <view class="tbox">{{periodstart||language['开始日期']||'开始日期'}}</view>
  40. </picker>
  41. <view class="partition">-</view>
  42. <picker mode="date" bindchange='changeDate' data-name="periodend">
  43. <view class="tbox">{{periodend||language['开始日期']||"结束日期"}}</view>
  44. </picker>
  45. </view>
  46. </view>
  47. <slot />
  48. </Yl_ListBox>
  49. <view class="footer" bindtap="onClick">
  50. <van-button data-name="close" custom-class='v-but'>{{language['关闭']||'关闭'}}</van-button>
  51. <van-button wx:if="{{isReset}}" data-name="reset" custom-class='v-but'>{{language['重置']||'重置'}}</van-button>
  52. <van-button data-name="confirm" custom-class='v-but confirm'>{{language['确定']||'确定'}}</van-button>
  53. </view>
  54. </van-popup>
  55. <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />