12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <view class="all-date">
- <view class="data-tier" catchTap="onClose"></view>
- <view class="date-header {{isShow?'showPop':''}}">
- <view class="flex-box selectDateType">
- <block a:if="{{showSelect}}">
- <view data-index="1" a:if="{{dateIndex == '1'}}" class="{{dateIndex == '1' ? 'dateActive':''}} flex-1" catchTap="activeDate">年</view>
- <view data-index="2" a:if="{{dateIndex == '2'}}" class="{{dateIndex == '2' ? 'dateActive':''}} flex-1" catchTap="activeDate">季度</view>
- <view data-index="3" a:if="{{dateIndex == '3'}}" class="{{dateIndex == '3' ? 'dateActive':''}} flex-1" catchTap="activeDate">月</view>
- </block>
- <block a:else>
- <view data-index="1" class="{{dateIndex == '1' ? 'dateActive':''}} flex-1" catchTap="activeDate">年</view>
- <view data-index="2" class="{{dateIndex == '2' ? 'dateActive':''}} flex-1" catchTap="activeDate">季度</view>
- <view data-index="3" class="{{dateIndex == '3' ? 'dateActive':''}} flex-1" catchTap="activeDate">月</view>
- <view data-index="4" class="{{dateIndex == '4' ? 'dateActive':''}} flex-1" catchTap="activeDate">自定义</view>
- </block>
- </view>
- <view class="data-main">
- <block a:if="{{dateIndex=='1'}}">
- <picker onChange="selectYear" value="{{yearIndex}}" range="{{yearArr}}">
- <view class="dateVal">{{yearArr[yearIndex]}}</view>
- </picker>
- <!--<text class="dateVal" onTap="selectYear">{{year}}</text> -->
- </block>
- <block a:if="{{dateIndex=='3'}}">
- <text class="dateVal" onTap="selectDate">{{month}}</text>
- </block>
- <block a:if="{{dateIndex=='2'}}">
- <view class="flex-box flex-center-center">
- <picker onChange="selectYear2" value="{{jdYearIndex}}" range="{{yearArr}}">
- <view class="dateVal">{{yearArr[jdYearIndex]}}</view>
- </picker>
- <!--<text class="dateVal" onTap="selectDay">{{jdYear}}</text> -->
- <text class="fontColorD" style="margin:0 20rpx;">--</text>
- <picker onChange="setjdji" value="{{jdji}}" range="{{jdArr}}">
- <view class="dateVal">{{jdArr[jdji]}}</view>
- </picker>
- <!--<text class="dateVal" onTap="selectDay2">{{jdji}}</text> -->
- </view>
- </block>
-
- <block a:if="{{dateIndex=='4'}}">
- <text data-index="customIndOn" class="dateVal" onTap="customDate">{{customIndOn}}</text>
- <text class="fontColorD" style="margin:0 20rpx;">--</text>
- <text data-index="customIndTw" class="dateVal" onTap="customDate">{{customIndTw}}</text>
- <!-- <view class="flex-box flex-center-center">
- <picker onChange="selectYear2" value="{{customIndOn}}" range="{{customArr}}">
- <view class="dateVal">{{customArr[customInd]}}</view>
- </picker>
- <text class="fontColorD" style="margin:0 20rpx;">--</text>
- <picker onChange="setjdji" value="{{customIndOnTw}}" range="{{customArr}}">
- <view class="dateVal">{{customArr[jdji]}}</view>
- </picker>
- </view> -->
- </block>
- </view>
- <view class="flex-box date-btn">
- <view class="flex-1" catchTap="onClose">取消</view>
- <view class="flex-1" catchTap="onConfirm">确定</view>
- </view>
- </view>
- <view class="meng" catchTap="onClose"></view>
- </view>
|