|
|
@@ -3,7 +3,9 @@
|
|
|
<view class="title flex">
|
|
|
<view class="flex">
|
|
|
<picker value="{{selectDay.year+'-'+selectDay.month}}" bindchange="editMonth" mode="date" fields="month"
|
|
|
- class="year-month">{{selectDay.year}}.{{selectDay.month>9?selectDay.month:"0"+selectDay.month}}</picker>
|
|
|
+ class="year-month">{{selectDay.year}}.{{selectDay.month>9?selectDay.month:"0"+selectDay.month}}</picker>
|
|
|
+ </view>
|
|
|
+ <view class="flex open" >
|
|
|
<view class="icon" bindtap="lastMonth" style="transform:rotate(180deg);">
|
|
|
<view class="iconfont icon-playfill"></view>
|
|
|
</view>
|
|
|
@@ -11,10 +13,6 @@
|
|
|
<view class="iconfont icon-playfill"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view catchtap="openChange" class="flex open" wx:if="{{isopenshow}}">
|
|
|
- <view>{{open?"收起":"展开"}}</view>
|
|
|
- <view style="margin-left:6rpx;font-size:20rpx" class="iconfont icon-{{open?'fold':'unfold'}}"></view>
|
|
|
- </view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 日历头部 -->
|
|
|
@@ -29,7 +27,7 @@
|
|
|
</view>
|
|
|
|
|
|
<!-- 日历主体 -->
|
|
|
- <view class="flex-start flex-wrap calendar-main" style="height:{{dateList.length/7*72}}rpx">
|
|
|
+ <view class="flex-start flex-wrap calendar-main" style="height:{{dateList.length/7*89}}rpx; ">
|
|
|
<view wx:for="{{dateList}}" wx:key="dateList" class="day">
|
|
|
<view
|
|
|
class="bg {{(item.year === selectDay.year && item.month === selectDay.month) ? (item.day === selectDay.day?'select':''): 'other-month'}}"
|
|
|
@@ -37,8 +35,9 @@
|
|
|
data-date-string="{{item.dateString}}">
|
|
|
{{item.day}}
|
|
|
</view>
|
|
|
- <!--isnormal 0 正常 1 异常 -->
|
|
|
- <view class="{{item.isnormal ? 'spot':'notnormalspot'}}" wx:if="{{item.spot}}">
|
|
|
+ <!--isnormal 0 正常 1 异常 wx:if="{{item.spot}}"-->
|
|
|
+ <view class="notnormalspot" style="{{'color:' + (item.isnormal?'#EBC07F':'#ac0909')}}">
|
|
|
+ 漏签
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|