parentsList.wxml
6.4 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
<!--pages/list/list.wxml-->
<import src="../../tabbar.wxml" />
<template is="tabBar" data="{{tabBar}}" />
<cover-view class="quitTestCount" wx:if='{{test}}' bindtap="quitTest">
退出体验
</cover-view>
<!-- 家长端导航 -->
<view class='parNav'>
<view class="parTopNav {{parid == 1 ?'parActive':''}}" data-parid = "1" bindtap='gay2'>日排名</view>
<view class="parTopNav {{parid == 2 ?'parActive':''}}" data-parid = "2" bindtap='gay2'>周排名</view>
<view class="parTopNav {{parid == 3 ?'parActive':''}}" data-parid = "3" bindtap='gay2'>月排名</view>
</view>
<!-- 内容 -->
<view class='listBox'>
<!--家长端banner -->
<view class='banner'>
<swiper bindchange='swiperChange' circular="true" autoplay='true' interval="4000">
<block wx:for="{{banner}}" wx:key>
<swiper-item>
<image src='{{item.image}}' bindtap="navgate" data-src="{{item.url}}"></image>
</swiper-item>
</block>
</swiper>
<!-- 小点点 -->
<view class='dots'>
<block wx:for="{{banner}}" wx:key>
<view class="dot {{index == currentSwiper ? 'active' : ''}}"></view>
</block>
</view>
</view>
<!-- 分享排行榜按钮 -->
<button class='list_Fen' open-type='share'>分享排行榜</button>
<!-- 家长端我的排行 -->
<view class='parMyList'>
<!-- 顶部 -->
<view class='parMyListTop'>
<picker class='picker2' bindchange='bindPickerChange2' value='{{index2}}' range='{{array}}' data-index="{{index}}">
<view class='picker2Txt'>{{array[index2]}}</view>
<view class='picker2Img'>
<image src='/image/85.png'></image>
</view>
</picker>
<view class='parMyListTime' wx:if="{{parid == 1}}">{{list.starttime}}</view>
<view class='parMyListTime' wx:if="{{parid == 2}}">{{list.starttime}}--{{list.endtime}}</view>
<view class='parMyListTime' wx:if="{{parid == 3}}">{{list.starttime}}</view>
</view>
<!-- 我的排行 -->
<view class='parMy'>
<view class='parMyTitle'>我的排行</view>
<view class='list_ConAfterLi' >
<view class='afterTxt1'>{{list.me.meweigh}}</view>
<view class='afterImg1'>
<image src='{{list.me.image}}'></image>
</view>
<view class='afterTxt2'>{{list.me.name}}</view>
<view class='afterflower' wx:if="{{list.me != ''}}">
<view class='afterImg3'>
<image src='/image/56.png'></image>
</view>
<view class='afterTxt3'>{{list.me.nowreward}}</view>
</view>
</view>
</view>
</view>
<!-- 排行 -->
<view class='list_Con'>
<!-- 前三排行 -->
<view class='listConTop'>
<view class='listConTopLi' >
<view class='listConImg1' >
<image src='/image/32.png'></image>
</view>
<view class='listConImg2'>
<image src='{{two.image}}'></image>
</view>
<view class='listConflower' wx:if="{{two !=''}}">
<view class='flowerImg'>
<image src='/image/56.png'></image>
</view>
<view class='flowerTxt'>{{two.nowreward}}</view>
</view>
<view class='listConName'>{{two.name}}</view>
</view>
<view class='listConTopLi liatConOne' >
<view class='listConOneImg'>
<image src='/image/54.png'></image>
</view>
<view class='listConOneImg2'>
<image src='{{one.image}}'></image>
</view>
<view class='listConflower' wx:if="{{one !=''}}">
<view class='flowerImg'>
<image src='/image/56.png'></image>
</view>
<view class='flowerTxt'>{{one.nowreward}}</view>
</view>
<view class='listConName'>{{one.name}}</view>
<view class='list_Oneleft'>
<image src='/image/28.png'></image>
</view>
<view class='list_OneRight'>
<image src='/image/27.png'></image>
</view>
</view>
<view class='listConTopLi' >
<view class='listConImg1'>
<image src='/image/55.png'></image>
</view>
<view class='listConImg2'>
<image src='{{there.image}}'></image>
</view>
<view class='listConflower' wx:if="{{there !=''}}">
<view class='flowerImg'>
<image src='/image/56.png'></image>
</view>
<view class='flowerTxt'>{{there.nowreward}}</view>
</view>
<view class='listConName'>{{there.name}}</view>
</view>
</view>
<!-- 之后 -->
<view class='list_ConAfter'>
<view class='list_ConAfterLi' wx:for="{{listtow}}" wx:key>
<view class='afterTxt1'>{{list.bef.length+index+1}}</view>
<view class='afterImg1'>
<image src='{{item.image}}'></image>
</view>
<view class='afterTxt2'>{{item.name}}</view>
<view class='afterflower'>
<view class='afterImg3'>
<image src='/image/56.png'></image>
</view>
<view class='afterTxt3'>{{item.nowreward}}</view>
</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/72.png' mode='widthFix'></image>
<view class='footer_txt'>小红花</view>
</view>
<view class='footer_li' bindtap='gonav3'>
<image class='footer_liImg' src='/image/1.png' mode='widthFix'></image>
<view class='footer_txt'>我的</view>
</view>
</view>