12345678910111213141516171819202122232425262728293031 |
- <view class="tips" s-if="{{type==0||type==2}}">
- <view>
- <text></text>
- <text>开始时间仅支持近半年内的月份,最多可购买12个月</text>
- </view>
- </view>
- <view class="tabbar" >
- <view id="tabbar">
- <view class="{{selected==0?'selected':''}} {{tabbarStatus?'choosed':''}}" id="tabItem"><text>开始月份</text><text s-if="calendarStatus">{{sy}}年{{sm}}月</text></view>
- <view class="{{selected==1?'selected':''}} {{tabbarStatus==2?'choosed':''}}"><text>结束月份</text><text s-if="{{calendarStatus==2}}">{{ey}}年{{em}}月</text></view>
- <view class="blueline" animation="{{animationData}}"></view>
- </view>
- </view>
- <view class="yearItem" s-for="yearData">
- <view class="year">{{item}}</view>
- <view class="monthBox">
- <view
- s-for="mItem,mIndex in monthData"
- class="{{mItem > sMonth[index][0]&&mItem < sMonth[index][1]?'':'disable'}}{{(item==sy&&mItem==sm)||(item==ey&&mItem==em)?'selectedMonth':''}}"
- data-status="{{mItem > sMonth[index][0]&&mItem < sMonth[index][1]?'able':'disable'}}"
- data-value="{{item}}{{mItem}}"
- bindtap="{{canChoose?'choose':''}}"
- style="visibility:{{mIndex>11? 'hidden':'inherit'}}">
- <text>{{mItem}}</text><text style="font-size:26rpx">月</text>
- <view class="bluebg">
- <text s-if="item==sy&&mItem==sm">开始</text>
- <text s-if="item==ey&&mItem==em" style="z-index:10">结束</text>
- </view>
- </view>
- </view>
- </view>
|