index.wxml 5.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <view class="flex b tb ac" wx:if="{{calendar}}">
  2. <view class="calendar b tb">
  3. <!-- 头部操作栏 -->
  4. <view class="handle {{config.theme}}_handle-color fs28 b lr ac pc">
  5. <view class="prev fs36" wx:if="{{!config.weekMode}}">
  6. <text class="prev-handle iconfont icon-doubleleft" bindtap="changeDate" data-type="prev_year"></text>
  7. <text class="prev-handle iconfont icon-left" bindtap="changeDate" data-type="prev_month"></text>
  8. </view>
  9. <view class="flex date-in-handle b lr cc" bindtap="doubleClickToToday">{{calendar.curYear || "--"}} 年 {{calendar.curMonth || "--"}} 月</view>
  10. <view class="next fs36" wx:if="{{!config.weekMode}}">
  11. <text class="next-handle iconfont icon-right" bindtap="changeDate" data-type="next_month"></text>
  12. <text class="next-handle iconfont icon-doubleright" bindtap="changeDate" data-type="next_year"></text>
  13. </view>
  14. </view>
  15. <!-- <view>这个是测试 此位置</view>
  16. <view class="main-module" wx:if="{{header}}">
  17. <view class="main-title">
  18. <image style="height: 60rpx;width:60rpx;" src="/static/images/money.png"></image>
  19. <view class="txt">我的收入
  20. <image src="/static/images/question.png" bindtap="goShowMoneyTip"></image></view>
  21. </view>
  22. <view style=" display: flex; justify-content: space-around;">
  23. <view class="coupon-block border-right" data-type="1" bindtap="goSalaryDetail">
  24. <text class="money">{{header.salary}}</text>
  25. <text class="module-text">本月预计收入</text>
  26. </view>
  27. <view class="coupon-block" data-type="2" bindtap="goSalaryDetail">
  28. <text class="money">{{header.salaryTotal}}</text>
  29. <text class="module-text">历史总收入</text>
  30. </view>
  31. </view>
  32. </view> -->
  33. <!-- 星期栏 -->
  34. <view class="weeks b lr ac {{config.theme}}_week-color">
  35. <view class="week fs28" wx:for="{{calendar.weeksCh}}" wx:key="index" data-idx="{{index}}">{{item}}</view>
  36. </view>
  37. <!-- 日历面板主体 bindtouchstart="calendarTouchstart" catchtouchmove="calendarTouchmove" catchtouchend="calendarTouchend"-->
  38. <view class="b lr wrap" >
  39. <!-- 上月日期格子 -->
  40. <view class="grid b ac pc {{config.theme}}_prev-month-date" wx:for="{{calendar.prevMonthGrids}}" wx:key="index" data-idx="{{index}}">
  41. <view class="date-wrap b cc">
  42. <view class="date">
  43. {{item.date}}
  44. </view>
  45. </view>
  46. </view>
  47. <!-- 本月日期格子 -->
  48. <view wx:for="{{calendar.dates}}" wx:key="index" data-idx="{{index}}" data-info="{{item}}" bindtap="tapDate" class="grid {{item.class ? item.class : ''}} {{config.theme}}_normal-date b ac pc">
  49. <view class="date-wrap b cc {{config.emphasisWeek && (item.week === 0 || item.week === 6) ? config.theme + '_weekend-color' : ''}}">
  50. <view class="date b ac pc {{item.class ? item.class : ''}} {{item.isToday && config.highlightToday ? config.theme + '_today' : ''}} {{item.choosed ? config.theme + '_choosed' : ''}} {{item.disable ? config.theme + '_date-disable' : ''}} {{config.chooseAreaMode ? 'date-area-mode' : ''}} {{calendar.todoLabelCircle && item.showTodoLabel && !item.choosed ? config.theme + '_todo-circle todo-circle' : '' }}">
  51. {{config.markToday && item.isToday ? config.markToday : item.date}}
  52. <view
  53. wx:if="{{(config.showLunar && item.lunar && !item.showTodoLabel) || (item.showTodoLabel && calendar.todoLabelPos !== 'bottom') || config.showHolidays}}"
  54. class="date-desc {{config.theme}}_date-desc date-desc-bottom {{(item.choosed || item.isToday) ? 'date-desc-bottom-always' : ''}} {{item.disable ? config.theme + '_date-desc-disable' : ''}}">
  55. <text class="{{config.showHolidays && !item.showTodoLabel && item.label && !item.choosed ? config.theme + '_date-desc-lunar' : ''}} {{item.type === 'festival' ? config.theme + '_festival' : ''}}">{{item.label || item.lunar.Term || item.lunar.IDayCn}}</text>
  56. </view>
  57. <view
  58. wx:if="{{item.showTodoLabel && !calendar.todoLabelCircle}}"
  59. class="{{item.todoText ? 'date-desc' : config.theme + '_todo-dot todo-dot'}} {{config.showLunar ? config.theme + '_date-desc-lunar' : ''}} {{calendar.todoLabelPos === 'bottom' ? 'date-desc-bottom todo-dot-bottom' : 'date-desc-top todo-dot-top'}} {{calendar.showLabelAlways && item.choosed && calendar.todoLabelPos === 'bottom' ? 'date-desc-bottom-always todo-dot-bottom-always' : ''}} {{calendar.showLabelAlways && item.choosed && calendar.todoLabelPos === 'top' ? 'date-desc-top-always todo-dot-top-always' : ''}}"
  60. style="background-color: {{item.todoText ? '' : item.color || calendar.todoLabelColor}}; color: {{item.color}}">
  61. <!-- <text> {{item.todoText}}</text> -->
  62. <view style="display: flex;margin: 1rpx 0;" wx:key="index" wx:if="{{index<3}}" wx:for="{{item.todoText}}" wx:for-item="book">
  63. <view class="{{book.cycle?'book-cycle':'date-book'}}" >{{book.startTime}}</view>
  64. <span wx:if="{{book.remark!='无'}}" style="border-radius: 50%;border: 1rpx solid red;width: 10rpx;height: 10rpx;background-color: red;"></span>
  65. <image wx:if="{{book.isComment}}" src="/static/images/smile.png" style="width: 20rpx;height: 20rpx;margin-left:5rpx"></image>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 下月日期格子 -->
  72. <view class="grid b ac pc {{config.theme}}_next-month-date" wx:for="{{calendar.nextMonthGrids}}" wx:key="index" data-idx="{{index}}">
  73. <view class="date-wrap b cc">
  74. <view class="date">
  75. {{item.date}}
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>