| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <view wx:if="{{type == 'sameYear'}}" class="global-card time-range" style='margin-bottom:0;' bindtap="openSameYear">
- <view class='left'>
- <view class="iconfont {{iconName}}">{{title}}</view>
- </view>
- <view class="right">
- <view style="width: 100%;" style="flex: 1;">
- <view style='color:#3874F6;'>{{value}}年 {{startMonth}}月-{{endMonth}}月</view>
- </view>
- <view class="iconfont icon-webxialaxuanxiangjiantou" />
- </view>
- </view>
- <view wx:else class="global-card time-range" style='margin-bottom:0;' bindtap="openActionSheet">
- <view class='left'>
- <view class="iconfont {{iconName}}">{{title}}</view>
- </view>
- <view class="right">
- <picker mode='date' value='{{value}}' fields='{{fields}}' start="{{start}}" end='{{end}}' style="width: 100%;" style="flex: 1;" bindchange='onChange'>
- <view style='color:#3874F6;'>{{value}}</view>
- </picker>
- <view class="iconfont icon-webxialaxuanxiangjiantou" />
- </view>
- </view>
- <van-dialog use-slot title="数据范围" width='355' show="{{ showSameYear }}" show-cancel-button bind:close="onClose" bind:confirm='onConfirm' confirm-button-color='#3874F6'>
- <view class="dialog">
- <view class="row">
- <view class="label">
- 年度:
- </view>
- <view class="year">
- <picker mode='date' value='{{year}}' fields='{{fields}}' start="{{start}}" end='{{end}}' style="width: 100%;flex: 1;" bindchange='onYear'>
- <view style='color:#3874F6;'>{{year}}</view>
- </picker>
- </view>
- </view>
- <view class="row">
- <view class="label">
- 月份:
- </view>
- <view class="options">
- <view class="option {{((item + 1) >= startMonth1 && (item + 1) <= endMonth1) ? 'active' : ''}}" wx:for="{{12}}" wx:key="item" bindtap="onMonthTap" data-month="{{item + 1}}">
- {{item + 1}}
- </view>
- </view>
- </view>
- </view>
- </van-dialog>
|