parentsMy.wxml
6.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!--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>