<view class="page">
  <view class='page__bd'>
    <scroll-view class='monthBox' scroll-x='true'>
      <view class='monthList'>
        <view wx:for="{{monthList}}" wx:for-item="item" wx:key="index" data-date='{{item.date}}' bindtap='monthOn' class='monthList_item {{index===monthKey?"monthList_item_on":""}}'>
          <view class='monthList_item_month'>{{item.month}}月</view>
          <view class='monthList_item_price'>￥{{isMember===1?item.b2BMemberPrice:item.b2BPrice}}起</view>
        </view>
      </view>
    </scroll-view>
    <view class='calendar'>
      <view class='weeks'>
        <view class='weeks_item'>一</view>
        <view class='weeks_item'>二</view>
        <view class='weeks_item'>三</view>
        <view class='weeks_item'>四</view>
        <view class='weeks_item'>五</view>
        <view class='weeks_item'>六</view>
        <view class='weeks_item'>日</view>
      </view>
      <view class='days'>
        <view wx:for="{{calendar}}" wx:for-item="item" wx:key="index" class='days_item {{item.hasType===1?"days_item_has":""}} {{index===calendarNum?"days_item_on":""}}' data-hastype='{{item.hasType}}' data-index='{{index}}' bindtap='dayOn'>
          <view class='days_item_day'>{{item.day}}</view>
          <view class='days_item_price' wx:if="{{item.hasType===1&&isMember===1}}" style='{{monthList[monthKey].b2BMemberPrice===item.b2BMemberPrice&&index!==calendarNum?"color: #E73828":""}}'>{{'￥'+item.b2BMemberPrice}}</view>
          <view class='days_item_price' wx:if="{{item.hasType===1&&isMember!==1}}" style='{{monthList[monthKey].b2BPrice===item.b2BPrice&&index!==calendarNum?"color: #E73828":""}}'>{{'￥'+item.b2BPrice}}</view>
        </view>
      </view>
    </view>
    <view class='unitPrice'>
      <view class='unitPrice_name'>本团单价</view>
      <view class='{{unitPrice===""?"unitPrice_num_off":"unitPrice_num_on"}}'>{{unitPrice===''?'请选择团期':'￥'+unitPrice}}</view>
    </view>
    <view class='info_form'>
      <!-- 成人 -->
      <view class='info_form_item'>
        <view class='form_item_left'>
          <view class='form_item_left_1'>成人</view>
          <view class='form_item_left_2'></view>
        </view>
        <view class='form_item_right'>
          <text class="form_item_right_btn" data-name='ManNum' style='{{people.ManNum===0?"color: #CCCCCC;":""}}' bindtap='numLeft'>-</text>
          <input class="form_item_right_in" data-name='ManNum' value='{{people.ManNum}}' type="number" bindinput="bindKeyInput"/>
          <text class="form_item_right_btn" data-name='ManNum' bindtap='numRight'>+</text>
        </view>
      </view>
      <!-- 儿童占床 -->
      <view class='info_form_item'>
        <view class='form_item_left'>
          <view class='form_item_left_1'>儿童占床</view>
          <view class='form_item_left_2'>2-12周岁</view>
        </view>
        <view class='form_item_right'>
          <text class="form_item_right_btn" data-name='ChirdNeedBedNum' style='{{people.ChirdNeedBedNum===0?"color: #CCCCCC;":""}}' bindtap='numLeft'>-</text>
          <input class="form_item_right_in" data-name='ChirdNeedBedNum' value='{{people.ChirdNeedBedNum}}' type="number" bindinput="bindKeyInput"/>
          <text class="form_item_right_btn" data-name='ChirdNeedBedNum' bindtap='numRight'>+</text>
        </view>
      </view>
      <!-- 儿童不占床 -->
      <view class='info_form_item'>
        <view class='form_item_left'>
          <view class='form_item_left_1'>儿童不占床</view>
          <view class='form_item_left_2'>2-12周岁</view>
        </view>
        <view class='form_item_right'>
          <text class="form_item_right_btn" data-name='ChirdNoNeedBedNum' style='{{people.ChirdNoNeedBedNum===0?"color: #CCCCCC;":""}}' bindtap='numLeft'>-</text>
          <input class="form_item_right_in" data-name='ChirdNoNeedBedNum' value='{{people.ChirdNoNeedBedNum}}' type="number" bindinput="bindKeyInput"/>
          <text class="form_item_right_btn" data-name='ChirdNoNeedBedNum' bindtap='numRight'>+</text>
        </view>
      </view>
      <!-- 婴儿 -->
      <view class='info_form_item'>
        <view class='form_item_left'>
          <view class='form_item_left_1'>婴儿</view>
          <view class='form_item_left_2'>14天-2周岁(不含)</view>
        </view>
        <view class='form_item_right'>
          <text class="form_item_right_btn" data-name='BabyNum' style='{{people.BabyNum===0?"color: #CCCCCC;":""}}' bindtap='numLeft'>-</text>
          <input class="form_item_right_in" data-name='BabyNum' value='{{people.BabyNum}}' type="number" bindinput="bindKeyInput"/>
          <text class="form_item_right_btn" data-name='BabyNum' bindtap='numRight'>+</text>
        </view>
      </view>
      <!-- 老人 -->
      <view class='info_form_item'>
        <view class='form_item_left'>
          <view class='form_item_left_1'>老人</view>
          <view class='form_item_left_2'>60岁以上</view>
        </view>
        <view class='form_item_right'>
          <text class="form_item_right_btn" data-name='OldPeopleNum' style='{{people.OldPeopleNum===0?"color: #CCCCCC;":""}}' bindtap='numLeft'>-</text>
          <input class="form_item_right_in" data-name='OldPeopleNum' value='{{people.OldPeopleNum}}' type="number" bindinput="bindKeyInput"/>
          <text class="form_item_right_btn" data-name='OldPeopleNum' bindtap='numRight'>+</text>
        </view>
      </view>
      <!-- 备注 -->
      <view class='info_form_item'>
        <view class='form_item_remark'>
          <view class='form_item_remark_1'>备注</view>
          <view class='form_item_remark_2'>
            <input class="form_item_remark_in" data-name='Remarks' value='{{Remarks}}' type="text" bindinput="bindKeyInput2"/>
          </view>
        </view>
      </view>
    </view>
    <view class='footer_btnBox'>
      <view class='footer_btnBox_btn' bindtap='submit'>立即预定</view>
    </view>
  </view>
</view>
