<popup show="{{show}}" height="{{height}}" bind:close="close" class="popupHeight">
  <view class="monthTitle">{{title}}</view>
  <view class="container">
    <view class='week_body white-bg'>
      <view wx:for="{{week}}" class='week_date {{item=="六"||item=="日"?"subtitleColor":""}}' wx:key="item">
        {{item}}
      </view>
    </view>
    <view class="layout_body white-bg">
      <!-- 这里用 bindtouchstart 和 bindtouchend 两个事件来控制滑动的 -->
      <view class="date_container" bindtouchstart="touchStart" bindtouchend="touchEnd">
        <view class="date_box1 flex {{slideOne}}">
          <view wx:for="{{calendar}}" wx:for-item='x' wx:key='index' bindtap='bindDayTap'
            class='grid{{x.date == today ? " todayBg":(x.dateSecond < todaySecond || x.month != month ? " old":"")}}{{x.date == clickDate ? " clickBg":""}}'
            data-day="{{today}}" bindtap='bindDayTap' data-date='{{x.date}}' data-dateSecond='{{x.dateSecond}}'
            data-year='{{x.year}}' data-month='{{x.month}}' data-day='{{x.day}}' data-num='{{x.num}}'>
            {{(x.month!=todayMonth&&x.day == 1 ? months[x.month - 1]+'月' : x.day)}}
            <text class='tips' wx:if="{{(x.dateSecond > todaySecond || x.date== today) && x.num}}">{{x.num}}</text>
          </view>
        </view>
      </view>
    </view>
  </view>
</popup>