123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <van-popup show="{{ show }}" position="right" custom-style="width: 660rpx; height:100vh;" z-index="{{zIndex}}" bind:close="onClose">
- <view class="head" />
- <Yl_ListBox height="{{listHeight}}" pullDown='{{false}}'>
- <slot name='head' />
- <block wx:for="{{list}}" wx:key="label">
- <MultilevelClass id="MultilevelClass" item='{{item}}' wx:if="{{item.type=='multilevelClass'}}" />
- <view wx:elif="{{item.list.length}}" class="groud">
- <view class="label">
- {{language[item.label]||item.label}}
- </view>
- <view class="content" wx:if="{{item.type!='checkbox'}}">
- <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>
- </view>
- <view wx:else class="content">
- <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>
- </view>
- </view>
- </block>
- <view wx:if="{{dateRange}}" class="groud">
- <view class="label">
- {{language[dateRangeName]||dateRangeName}}
- </view>
- <view class="content time">
- <picker mode="date" bindchange='changeDate' data-name="startdate">
- <view class="tbox">{{startdate||language['开始日期']||'开始日期'}}</view>
- </picker>
- <view class="partition">-</view>
- <picker mode="date" bindchange='changeDate' data-name="enddate">
- <view class="tbox">{{enddate||language['结束日期']||"结束日期"}}</view>
- </picker>
- </view>
- </view>
- <view wx:if="{{dateRange1}}" class="groud">
- <view class="label">
- {{language['预测时间']||'预测时间'}}
- </view>
- <view class="content time">
- <picker mode="date" bindchange='changeDate' data-name="periodstart">
- <view class="tbox">{{periodstart||language['开始日期']||'开始日期'}}</view>
- </picker>
- <view class="partition">-</view>
- <picker mode="date" bindchange='changeDate' data-name="periodend">
- <view class="tbox">{{periodend||language['开始日期']||"结束日期"}}</view>
- </picker>
- </view>
- </view>
- <slot />
- </Yl_ListBox>
- <view class="footer" bindtap="onClick">
- <van-button data-name="close" custom-class='v-but'>{{language['关闭']||'关闭'}}</van-button>
- <van-button wx:if="{{isReset}}" data-name="reset" custom-class='v-but'>{{language['重置']||'重置'}}</van-button>
- <van-button data-name="confirm" custom-class='v-but confirm'>{{language['确定']||'确定'}}</van-button>
- </view>
- </van-popup>
- <wxs src='../../utils/wxmlQueryPer.wxs' module="per" />
|