parentsMy.wxml 6.1 KB
<!--pages/parentsMy/parentsMy.wxml-->
<import src="../../tabbar.wxml" />
<template is="tabBar" data="{{tabBar}}" />

<cover-view class="quitTestCount" wx:if='{{test}}' bindtap="quitTest">
    退出体验
</cover-view> 
<!-- 弹框 -->
<view class='mask' wx:if="{{showModel}}">
  <view class='maskCon'>
    <view class='maskConTxt1'>是否解除与该学生的绑定关系</view>
    <view class='maskConBottom'>
      <view class='maskConBottom1' bindtap='maskNo'>取消</view>
      <view class='maskConBottom2' bindtap='maskOk'>确定</view>
    </view>
  </view>
</view>

<view class='parentsMyBox'>
  <!-- 顶部 -->
  <view class='myTop' wx:if="{{token == ''}}">
    <view class='top_Price'>
      <image src='/image/wdl.png'></image>
    </view>
    <view class='top_right'>
      <view class='notlogin' bindtap='notloginFun'>登录/注册</view>
    </view>
  </view>
  <view class='myTop' wx:else>
    <block wx:if='{{code!="1000"}}'>
      <view class='top_Price'>
        <image src='{{userInfodetail.image}}'></image>
      </view>
      <view class='top_right'>
        <view class='top_right1'>
          <view class='top_right1Txt'>{{userInfodetail.user_name}}</view>
          <view class='parMyL' bindtap="goDetail">
          {{userInfodetail.score}}积分
            <!-- <view class='parMyLrow'>
              <view class='parMyLrowImg'>
                <image src='/image/18.png'></image>
              </view>
              <view class='parMyLrowTxt' wx:if='me.studentInfo!=="null"'>{{me.studentInfo===null?'':me.studentInfo}}</view>
            </view> -->
            <!-- <view class='parMyLrow' bindtap='removeFun' wx:if="{{jchu}}">
              <view class='parMyLrowImg'>
                <image src='/image/21.png'></image>
              </view>
              <view class='parMyLrowTxt'>解除绑定</view>
            </view> -->
          </view>
        </view>
        <view class='top_right2' bindtap='goPersonal'>
            <image src='/image/7.png'></image>
        </view>
      </view>
    </block>
    <block wx:else>
      <view class='top_Price'>
        <image src='{{userInfodetail.image}}'></image>
      </view>
      <view class='top_info'>
        <view class='notlogin' >昵称:{{userInfodetail.user_name}}</view>
        <view class='notlogin' wx:if='{{userInfodetail.id}}' >ID:{{userInfodetail.id}}</view>
        <view class='notlogin' >点击加入班级</view>
      </view>
    </block>
  </view>

  <!-- 内容 -->
  <view class='parentsCon'>
    <!-- 学生绑定其他家长 -->
    <!-- <view class='main1'>
            <view class='main1_title'>学生绑定其他家长</view>

            <view class='main1_Ul'>
                <view class='main1_Li' wx:for="{{parents}}" wx:key wx:if="{{item != null}}">
                    <view class='main1_LiImg'>
                        <image src='{{item.image}}'></image>
                    </view>
                    <view class='main1_LiTxt'>{{item.studentInfo}}</view>
                </view>
                <view class='main1_Li'>
                    <button open-type='share'>
                        <view class='main1_LiImg'>
                            <image src='/image/68.png'></image>
                        </view>
                        <view class='main1_LiTxt'>添加家长</view>
                    </button>
                </view>
            </view>
        </view> -->
    <!-- 我的班级 -->
    <view class='main2'>
      <view class="topInfo">
        <view class='main1_title'>我的班级</view>
        <view class="creatClass"  class="joinClass" bindtap="JoinClass">加入班级</view>
      </view>
      
      <view class='main2_Ul'> 
        <view class='main2_Li' wx:for="{{allclass}}" wx:key id="{{item.id}}" bindtap="goClassDetail">
          <view class="left_info">
            <view class='main2_LiTxt1 className'>班级:{{item.name}}({{item.id}})</view>
            <view class='teacname'>老师:{{item.laos}}</view>
            <view class='parMyLrow'>
              <view class='parMyLrowImg'>
                <image src='/image/18.png'></image>
              </view>
              <view class='parMyLrowTxt'>{{item.studentInfo}}({{item.studentname}})</view>
            </view>
          </view>
          
          <view class="left">
            <view class='main2_LiTxt2'>{{item.rean}}人</view>
            <view class="left_img">
              <image src="/image/7.png" role='img'></image>
            </view>
          </view>

        </view>
        <view class="nodata" wx:if='{{!allclass}}'>你还没有加入任何班级哦</view>
      </view>
    </view>
    <!-- 其他 -->
    <view class='main3'>
      <view class='main3_li' bindtap='goService'>
        <view class='main3_liImg1'>
          <image src='/image/43.png'></image>
        </view>
        <view class="main3_txt">联系客服</view>
        <view class='main3_liImg2'>
          <image src='/image/7.png'></image>
        </view>
      </view>
      <view class='main3_li' bindtap='goProblem'>
        <view class='main3_liImg1'>
          <image src='/image/44.png'></image>
        </view>
        <view class="main3_txt">常见问题 Q&A</view>
        <view class='main3_liImg2'>
          <image src='/image/7.png'></image>
        </view>
      </view>
    </view>

        <!-- 其他 -->
    <view class='main3' wx:if='{{!getMessage}}'>
      
        <view class='main1_li' bindtap="setPush">
            <view class='main1_liTxt1'>作业消息提醒</view>
            <view class='switchWid'>
                <switch style='zoom:0.6' color="#4DA9FF" checked="{{getMessage}}"  />
            </view>
        </view>  
    </view>
  </view>

</view>
<view class='footer_bottos'>
  <view class='footer_li' bindtap='gonav1'>
    <image class='footer_liImg' src='/image/2.png' mode='widthFix'></image>
    <view class='footer_txt'>写作业</view>
  </view>
  <view class='footer_li' bindtap='gonav2'>
    <image class='footer_liImg' src='/image/51.png' mode='widthFix'></image>
    <view class='footer_txt'>小红花</view>
  </view>
  <view class='footer_li' bindtap='gonav3'>
    <image class='footer_liImg' src='/image/84.png' mode='widthFix'></image>
    <view class='footer_txt'>我的</view>
  </view>
</view>