| | |
| | | <!--pages/m_service/c_schedule/c_schedule.wxml--> |
| | | <view class="schedule-card {{leftDays < 0 ? 'schedule-card__2' : ''}}" bindtap="goto"> |
| | | <view class="schedule-tag">{{leftDays < 0 ? 'FUTURE' : 'TODAY'}}</view> |
| | | <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-category"> |
| | | <image class="image-16" src="/res/icons/schedule_1.png"></image> |
| | | <text>环保日程</text> |
| | | <!-- <text>{{thisSchedule.events[0].type == 1 ? '系统日程' : '环保日程'}}</text> --> |
| | | <text>环保工作日程</text> |
| | | </view> |
| | | <view class="schedule-title">{{title}}</view> |
| | | <view class="schedule-title">{{thisSchedule.events[0].name}}</view> |
| | | <view class="schedule-time"> |
| | | <text>{{time}}</text> |
| | | <text wx:if="{{leftDays > 0}}">过去{{leftDays}}天</text> |
| | | <text wx:elif="{{leftDays == 0}}">今天</text> |
| | | <text wx:else>还有{{-leftDays}}天</text> |
| | | <text>{{thisSchedule.time}}</text> |
| | | <text wx:if="{{thisSchedule.diffDays < 0}}">过去{{-thisSchedule.diffDays}}天</text> |
| | | <text wx:elif="{{thisSchedule.diffDays == 0}}">今天</text> |
| | | <text wx:else>还有{{thisSchedule.diffDays}}天</text> |
| | | </view> |
| | | </view> |