parentsList.wxml 6.4 KB
<!--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>