index.wxml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <view style="overflow:hidden;margin: 24rpx 32rpx;">
  2. <calendar
  3. id="calendar"
  4. config="{{calendarConfig}}"
  5. bind:onSwipe="onSwipe"
  6. bind:whenChangeWeek="whenChangeWeek"
  7. bind:whenChangeMonth="whenChangeMonth"
  8. bind:takeoverTap="takeoverTap"
  9. bind:afterTapDate="afterTapDate"
  10. bind:afterCalendarRender="afterCalendarRender"
  11. ></calendar>
  12. </view>
  13. <view class="card-wrapper" wx:for="{{tableData}}" wx:key="index">
  14. <view class="i-class i-card i-card-radus" data-id="{{item.id}}" data-out="{{item.isOut}}" bindtap="gotoDetail" >
  15. <view class="i-class i-card-header mt10">
  16. <view class="i-card-header-title" style="font-size:36rpx">
  17. {{item.username}}
  18. <text wx:if="{{item.isOut}}" style="color:#F59E0B;font-size:28rpx;">【外出】</text>
  19. <text wx:else style="color:#059669;font-size:28rpx;">【莅临】</text>
  20. </view>
  21. <view class="i-card-header-extra" style="font-size:28rpx" >
  22. {{item.post}}
  23. </view>
  24. </view>
  25. <view class="i-card-footer" style="font-size:30rpx">
  26. {{item.fromDate}} 到 {{item.toDate}}
  27. </view>
  28. </view>
  29. </view>
  30. <!-- <view class='b cc wrap btn-wrap'>
  31. <button
  32. class='b cc btn btn-{{item.color}} btn-action-{{item.action}}'
  33. wx:for="{{actionBtn}}"
  34. wx:key="action"
  35. data-action="{{item.action}}"
  36. data-disable="{{item.disable}}"
  37. bindtap="handleAction">{{item.text}}</button>
  38. </view> -->
  39. <!-- <view class="show-rst-wrap">
  40. <view wx:if="{{rst}}" wx:for="{{rst}}" wx:key="index" class="show-rst">{{item}}</view>
  41. <view wx:if="{{rstStr}}" wx:key="index" class="show-rst">{{rstStr}}</view>
  42. </view> -->