| | |
| | | <!--pages/mService/cSchedule/cSchedule.wxml--> |
| | | <view class="schedule-card {{thisSchedule.diffDays > 0 ? 'schedule-card__2' : (thisSchedule.diffDays < 0 ? 'schedule-card__3' : '')}}" bindtap="goto"> |
| | | <view class="schedule-tag">{{thisSchedule.diffDays > 0 ? 'FUTURE' : (thisSchedule.diffDays == 0 ? 'TODAY' : 'PAST')}}</view> |
| | | <!-- <view |
| | | class="schedule-card {{thisSchedule.diffDays > 0 ? 'schedule-card__2' : (thisSchedule.diffDays < 0 ? 'schedule-card__3' : '')}}" |
| | | bindtap="goto" |
| | | > --> |
| | | <view class="schedule-card" bindtap="goto"> |
| | | <view class="schedule-tag" |
| | | >{{thisSchedule.diffDays > 0 ? 'FUTURE' : (thisSchedule.diffDays == 0 ? |
| | | 'TODAY' : 'PAST')}}</view |
| | | > |
| | | <view class="schedule-category"> |
| | | <image class="image-16" src="/res/icons/schedule_1.png"></image> |
| | | <!-- <text>{{thisSchedule.events[0].type == 1 ? '系统日程' : '环保日程'}}</text> --> |
| | | <text>环保工作日程</text> |
| | | <t-icon name="{{icon_setting}}" size="36rpx" /> |
| | | <text>工作日程</text> |
| | | </view> |
| | | <view class="schedule-title">{{thisSchedule.events[0].name}}</view> |
| | | <view class="schedule-title">{{thisSchedule.title}}</view> |
| | | <view class="schedule-time"> |
| | | <text>{{thisSchedule.time}}</text> |
| | | <text wx:if="{{thisSchedule.diffDays < 0}}">过去{{-thisSchedule.diffDays}}天</text> |
| | | <view class="schedule-time__right"> |
| | | <view |
| | | wx:if="{{thisSchedule.diffDays < 0}}" |
| | | class="{{thisSchedule.diffDays < -3 ? 'schedule-time__right-3' : 'schedule-time__right-2'}}" |
| | | > |
| | | <text |
| | | >已超期<text class="schedule-time__day" |
| | | >{{-thisSchedule.diffDays}}</text |
| | | >天</text |
| | | > |
| | | </view> |
| | | <text wx:elif="{{thisSchedule.diffDays == 0}}">今天</text> |
| | | <text wx:else>还有{{thisSchedule.diffDays}}天</text> |
| | | <text wx:else |
| | | >剩余<text class="schedule-time__day">{{thisSchedule.diffDays}}</text |
| | | >天超期</text |
| | | > |
| | | </view> |
| | | </view> |
| | | </view> |