<view class="container FlexColumn" style='height:{{Containnerheight}}rpx;'>
  <view class='panel1{{IsIPad}} FlexColumn'>
    <view class='text1 FlexRow'>第
      <text class="text11">{{DayNumber}}</text>天</view>
    <view class='text3' wx:if="{{CardType==0}}">日常练习</view>
    <view class='text3' wx:if="{{CardType==1}}">紧急练习</view>
    <view class='text3' wx:if="{{CardType==2}}">整体练习</view>
    <view class='panel11 FlexRow'>
      <view class='text2'>{{TodayTaskNumber}}</view>
    </view>
  </view>
  <image wx:if="{{TodayTaskNumber>0 && IsStart==1}}" class="study_index_start{{IsIPad}}" src='../images/study_index_start.png' bindtap="goto" data-url="./detail" />
  <image wx:if="{{TodayTaskNumber>0 && IsStart==0}}" class="study_index_start{{IsIPad}}" src='../images/study_index_goon.png' bindtap="goto" data-url="./detail" />
  <image wx:if="{{TodayTaskNumber==0}}" class="study_index_start{{IsIPad}}" src='../images/study_index_report.png' bindtap="goto" data-url="./detail" />

  <image class="study_index_plan{{IsIPad}}" src="../images/study_index_plan.png" bindtap="goto" data-url="../plan/studyplan" />

  <view class='panelBottom FlexColumn'>

    <image class="study_index_footer" src='../images/study_index_footer.png' wx:if="{{IsShowMarketing===3}}" />

    <view class="adPanel FlexColumn" wx:if="{{IsShowMarketing===0 || IsShowMarketing===2}}">
      <view class="adLine1 FlexRow" bindtap="goto" data-url="../marketing/index">
        <view class="text6">秒过推广计划 120天有效期等您来拿</view>
      </view>
      <view class="adLine2"></view>
      <view class="adLine3"></view>
      <view class="chalk1 chalk"><view class="chalk11 chalk"></view></view>
      <view class="chalk2 chalk"><view class="chalk11 chalk"></view></view>
      <image class="study_index_board_close" src='../images/study_index_board_close.png' wx:if="{{IsShowMarketing===2}}" catchtap="closeMarketing"/>
      <image class="avatar" src='../images/study_index_board_avater01.png' />
      <image class="message" src='../images/study_index_board_message.png' />
    </view>
    <view class='panelBottom1 FlexRow'>
      <view class='panelBottom11 FlexColumn'>
        <image class="program_tabbar_study_default" src='../images/program_tabbar_study_normal.png' />
        <view class='text5'>学习</view>
      </view>
      <view class='line1'></view>
      <view class='panelBottom11 FlexColumn' bindtap="goto" data-url="./add?type=add&id=0">
        <image class="program_tabbar_study_default" src='../images/program_tabbar_add_default.png' />
        <view>新建</view>
      </view>
      <view class='line1'></view>
      <view class='panelBottom11 FlexColumn' bindtap='gotoSearchCard'>
        <image class="program_tabbar_study_default" src='../images/program_tabbar_note_default.png' />
        <view>题卡</view>
      </view>
    </view>
    <view class="iphone10plus" wx:if="{{IsIPhoneX}}"></view>
  </view>

  <view class="ChangeUser" bindtap="showUserID"></view>
</view>

<view wx:if="{{IsTempCardNoSaved}}" class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
  <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
  <text class='RemindText'>新消息\n刚刚救回了一张尚未\n保存的题卡</text>
  <view class='btn1' catchtap="onOpenTempCard">打开</view>
  <view class='btn1' catchtap="onGiveupTempCard">丢弃</view>
</view>

<view wx:if="{{IsMaintain}}" class="TempCardNoSaved container FlexColumn" style='height:{{Containnerheight}}rpx;'>
  <image class="Avatar" src='../images/universalpic_logo_200x200.png' />
  <text class='RemindText'>数据正在排队维护\n联系天乐可为您加急做完</text>
  <text class='RemindText2'>您还可以尝试重启，没准快要结束了</text>
  <view class='btn1' catchtap="goto" data-url="../index/index">重启小程序</view>
</view>

<view wx:if="{{IsExit}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
  <view class='IsExitText'>点击关闭小程序。然后把屏幕竖起来，在竖屏情况下重开小程序。</view>
  <navigator class='isExit' open-type="exit" target="miniProgram">关闭小程序</navigator>
</view>

<view wx:if="{{IsShowUserID}}" class="IsExitContainer container FlexColumn" style='height:{{Containnerheight}}rpx;'>
    <input class='input' type="number" value="{{ChangeUserID}}" bindinput="onKeyInput" data-type="userid" />
    <button class="btnShowUserID" bindtap="setSelectUser">查看用户数据</button>
    <view style="height:50rpx;"></view>
    <button class="btnShowUserID" bindtap="goto" data-url="../other/webview?PageID=9999">网页访问钥匙</button>
    <button class="btnShowUserID" bindtap="goto" data-url="../other/webviewInterior">访问统计网页</button>
    <view style="height:50rpx;"></view>
    <button class="btnShowUserID" bindtap="goto" data-url="../other/paycustom">自定义开据</button>
    <view style="height:50rpx;"></view>
    <view class="panel2 FlexRow">
      <input class='input2 input' type="number" placeholder="新用户ID" value="{{ChangeNewUserID}}" bindinput="onKeyInput" data-type="newuserid"/>
      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeNewUserID}}" data-type="0">查看</button>
    </view>
    <view class="panel2 FlexRow" wx:if="{{NewUserAvatar}}">
      <image class="Avatar2" src='{{NewUserAvatar}}' />
      <view class="NickName2">{{NewUserNickName}}</view>
    </view>
    <view class="panel2 FlexRow">
      <input class='input2 input' type="number" placeholder="介绍人ID" value="{{ChangeIntroducerUserID}}" bindinput="onKeyInput" data-type="introduceruserid"/>
      <button class="btn2" bindtap="getUserInfoFunction" data-id="{{ChangeIntroducerUserID}}" data-type="1">查看</button>
    </view>
    <view class="panel2 FlexRow" wx:if="{{IntroducerAvatar}}">
      <image class="Avatar2" src='{{IntroducerAvatar}}' />
      <view  class="NickName2">{{IntroducerNickName}}</view>
    </view>
    <button class="btnShowUserID" bindtap="setUserIntroducer">更改用户介绍人</button>
    
</view>

