<view class="container FlexColumn" style='min-height:{{Containnerheight}}rpx;'>
  <block wx:if="{{PanelShow===-1}}">
    <text class="text00">烦劳您\n关注公众号</text>
    <text class="text01">公众号用于帐户验证、开通服务、\n传递通知，保障秒过小程序运行正常。\n关注后就能继续使用。</text>
    <text class="text02">公众号名称：秒过学习法</text>
    <view class="btn00" bindtap="goto" data-url="../other/webview?url={{officialAccounts}}">去扫码</view>
    <text class="text03" bindtap="onPullDownRefresh">如已关注</text>
    <text class="text04" bindtap="onPullDownRefresh">点这里刷新状态</text>
  </block>

  <block wx:if="{{PanelShow>0}}">
    <view class='userinfo FlexRow'>
      <view class="left FlexRow" bindtap="updateMember">
        <image class='avatar' src="{{AvatarUrl}}" />
        <view class="nickname">{{NickName}}</view>
      </view>
      <view class="right FlexRow" bindtap="goto" data-url="../main/systemsetting" wx:if="{{IsShow==1 && ClassDayNumber>=0 && !IsLoseEfficacy && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1)}}">
        <image class='universalpic_setup_white_50x50' src="../images/universalpic_setup_white_50x50.png" />
        <view>设置</view>
      </view>
    </view>
    <view class="panel10 panel1 FlexRow" wx:if="{{IsMember==1 && (ClassDayNumber>=0 || IsPay==1)}}">
      <view class="left">有效期</view>
      <view class="right FlexColumn">
        <view class="panel11">{{ProductServiceTime}}</view>
      </view>
    </view>
    <view class="panel2 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || IsPay==1)}}">
      
      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/coupon" wx:if="{{IsPay==1}}">
        <image class="usermanual_index_handshake" src='../images/usermanual_index_coupon.png' />
        <view>优惠券</view>
      </view>

      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) && !ChildUserID }}">
        <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
        <view>去续费</view>
      </view>
      
      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/pay?PayUserID={{UserID}}&PayType=6&EndDate={{EndDate}}" wx:if="{{ClassDayNumber>=ClassTotalDayNumber && (IsPay==1 && !IsLoseEfficacy) && !ChildUserID }}">
        <image class="usermanual_index_handshake" src='../images/usermanual_index_wallet.png' />
        <view>去续费</view>
      </view>
      
      <view class="panel21 FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}" wx:if="{{!IsLoseEfficacy && ClassDayNumber<ClassTotalDayNumber}}">
        <image class="usermanual_index_handshake" src='../images/usermanual_index_writing.png' />
        <view>作业清单</view>
      </view>    

      <view class="panel21 FlexColumn" bindtap="goto" data-url="../marketing/index" wx:if="{{IsPay==1 && !IsLoseEfficacy}}">
        <image class="usermanual_index_handshake" src='../images/usermanual_index_handshake.png' />
        <view>推广计划</view>
      </view>

      <view class="panel21 FlexColumn" bindtap="goto" data-url="./binding"  wx:if="{{!ChildUserID}}">
        <image class="usermanual_index_handshake" src='../images/usermanual_index_link.png' />
        <view>帐号绑定</view>
      </view>
    </view>
    <view class='lineFooter'></view>
    <view class="panel3 FlexRow" wx:if="{{IsShow==1 && ClassDayNumber>=0 && ((ClassDayNumber<ClassTotalDayNumber && IsPay==0) || !IsLoseEfficacy)}}">
      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=0" wx:if="{{ClassDayNumber<ClassTotalDayNumber}}">
        <view>新手包指南</view>
      </view>
      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/webview?PageID=8" wx:if="{{ClassDayNumber>=ClassTotalDayNumber}}">
        <view>小组须知</view>
      </view>
      <view class="panel31 FlexColumn" bindtap="goto" data-url="../other/lessonlist">
        <view>课程</view>
      </view>
      <view class="panel31 FlexColumn" bindtap="goto" data-url="./tips">
        <view>小贴士</view>
      </view>
    </view>

    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && (IsPay==0 || IsLoseEfficacy==1) }}">
      <view class='line'></view>
      <view class="panelItem2 panelItem FlexColumn">
        <text class="text11">使用期限已过期！续费后可立即恢复使用。</text>
      </view>
      <view class='lineFooter'></view>
    </block>

    <view class="panelItem3 panelItem FlexColumn" wx:if="{{PanelShow===2 && ClassDayNumber<0}}">
      <view class="text41 text4">
        您的开班时间：{{ClassTimeStart}}-{{ClassTimeEnd}}。
      </view>
      <view class="text4">
        用户手册用于发布课程、优惠活动等最新消息。目前，尚未正式启用。更多消息，开班后请再过来看看。
      </view>
      <view class="text42 text4">
        开班当日，会通过公众号向您发送资料和通知，请勿取消关注。
      </view>
    </view>

    <view class="panelTitle FlexRow" wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && (!IsLoseEfficacy || IsPay==0)}}">
      <view class="panelTitle1">会员活动</view>
      <view class="panelTitle2"></view>
    </view>

    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>0 && IsPay==1 && !IsLoseEfficacy}}">
      <view class="panelItem FlexColumn">
        <image class="salesactivity_a05_usermanual_banner" src='{{ImagePath}}web/salesactivity_a05_usermanual_banner.png' bindtap="goto" data-url="../marketing/index" />
        <view class="marketingDetail" bindtap="goto" data-url="../../pages/other/webview?PageID=7"></view>
      </view>
    </block>

    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=ClassTotalDayNumber && IsPay==0 && !ChildUserID}}">
      <view class="panelItem FlexColumn">
        <image class="salesactivity_a04_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a04_usermanual_banner_header.png' />
        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/pay?PayType=5&EndDate={{ClassTimeEnd}}">续费</view>
      </view>
      <view class='lineFooter'></view>
    </block>

    <block wx:if="{{IsShow==1 && PanelShow===2 && IsPay==0 && ClassDayNumber>=(ClassTotalDayNumber-4) && ClassDayNumber<ClassTotalDayNumber && !ChildUserID}}">
      <view class="panelItem FlexColumn">
        <image class="salesactivity_a02_usermanual_banner_header" src='{{ImagePath}}web/salesactivity_a02_usermanual_banner_header.png' />
        <view class="text9">活动日期：{{EarlyBirdTimeStart}}-{{EarlyBirdTimeEnd}}</view>
        <view class="btn3 btn2 btn" bindtap="goto" data-url="../other/activity?ActivityID=2&EarlyBirdTimeStart={{EarlyBirdTimeStart}}&EarlyBirdTimeEnd={{EarlyBirdTimeEnd}}&EndTime={{ClassTimeEnd}}">活动详情</view>
      </view>
      <view class='lineFooter'></view>
      <view class="line"></view>
    </block>

    <block wx:if="{{IsShow==1 && PanelShow===2 && ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber}}">
      <view class="panelItem FlexColumn" bindtap="goto" data-url="../other/homework?EndTime={{ClassTimeEnd}}">
        <image class="salesactivity_a01_usermanual_banner" src='{{ImagePath}}web/salesactivity_a01_usermanual_banner.png' />
        <view class="text6" catchtap="goto" data-url="../other/activity?ActivityID=1&EndTime={{ClassTimeEnd}}"></view>
      </view>
    </block>

    <view class="panelItem FlexColumn" wx:if="{{PanelShow===1}}">
      <view class="line"></view>
      <text class="text3">开班事宜需要通过微信与您沟通。请添加班务员微信，否则无法继续为您服务。班务员服务时间：上午10点到晚上8点。\n\n班务员微信号：changyibzr</text>
      <view class="btn" bindtap='copyManager'>复制微信号</view>
      <text class="text3">添加后请等待确认。这需要一点时间。之后通过微信和您联系。</text>
      <view class="btn4 btn" bindtap='gotoIndex'>刷新状态</view>
    </view>

    <view class="panelTitle FlexRow">
      <view class="panelTitle1">最新消息</view>
      <view class="panelTitle2"></view>
    </view>

    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=ClassTotalDayNumber && IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=8">
      <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b02.png' />
      <view class="text7">新闻</view>
      <view class="text8">秒过学习小组须知</view>
    </view>

    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && (ClassDayNumber>=ClassTotalDayNumber-1 || IsPay==1) }}" bindtap="goto" data-url="../other/lesson?LessonID=5">
      <image class="news_mustread" src='{{ImagePath}}web/news_lesson_b01.png' />
      <view class="text7">新闻</view>
      <view class="text8">养孩子是一场Team Working，有你、有我、有秒过</view>
    </view>

    <view class="panelItem FlexColumn" wx:for="{{ArrInformation}}" wx:key="index" wx:if="{{PanelShow===2  && ((ClassDayNumber*2>=item.PageID && ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/webview?PageID={{item.PageID}}">
      <image class="news_lesson_a01" src='{{ImagePath}}web/news_kwk_0{{item.PageID}}.png' />
      <view class="text7">{{item.text1}}</view>
      <view class="text8">{{item.text2}}</view>
      <view class="text10">{{item.text3}}</view>
    </view>

    <view class="panelItem FlexColumn" wx:if="{{PanelShow===2 && ((ClassDayNumber>=0 && ClassDayNumber<ClassTotalDayNumber) || (IsPay==1 && !IsLoseEfficacy)) }}" bindtap="goto" data-url="../other/lessonlist">
      <image class="news_lesson_a01" src='{{ImagePath}}web/news_lesson_a01.png' />
      <view class="text7">课程</view>
      <view class="text8">4节课程告诉您，家长做什么可以迅速提高孩子的成绩</view>
    </view>

    <view class="panelItem FlexColumn" wx:if="{{ PanelShow===1 || (PanelShow===2 && !IsLoseEfficacy) || (IsPay==1 && !IsLoseEfficacy) }}" bindtap="goto" data-url="../other/webview?PageID=0">
      <image class="news_mustread" src='{{ImagePath}}web/news_mustread.png' />
      <view class="text7">新闻</view>
      <view class="text8">新手包使用指南</view>
    </view>

  </block>

  <view style="height:80rpx"></view>
</view>