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
<!--pages/home/reviewer/index.wxml-->
<import src='/template/operate_btn/index.wxml'></import>
<view class='kg-separater' style='height:2rpx;'></view>
<view class='kg-home-header kg-flex-row'>
<template is='userInfo' data="{{userImg:userIcon,title:reviewerName,subTitle:kindergarten,sex:''}}"></template>
<view></view>
</view>
<view class='kg-separater'></view>
<scroll-view style='height:calc(100vh - 200rpx)' scroll-y='true'>
<template is="section_header" data="{{title:dateStr}}"></template>
<view class="category">
<view wx:for="{{classList}}" wx:key="id" id="{{item.id}}" bindtap='tapClass'>
<view class="eat_category_btn {{selectIndex == index ? 'selected' : ''}}" data-index='{{index}}'>
{{item.departname}}
</view>
</view>
</view>
<view class='home-student-info' wx:for="{{records}}" data-index='{{index}}' wx:key="id" id="{{item.id}}" bindtap='tapStudent'>
<!-- 名字 -->
<view class='kg-flex-row' style='margin-right:30rpx;'>
<view class='home-student-name'>
<view class='kg-text-normal-dark'>{{item.signStudentName}}</view>
<template is="sex" data="{{sex:item.signStudentSex}}"></template>
</view>
</view>
<!-- 图片 -->
<!-- <view class='home-student-picture-item'>
<view wx:for="{{item.arrPic}}" wx:for-item="picItem" wx:for-index="picIndex">
<image src='{{picItem}}' class='home-student-picture' catchtap='previewPic' data-index='{{index}}' data-picIndex='{{picIndex}}' mode='aspectFill'></image>
</view>
</view> -->
<!-- 行为 -->
<view class='home-student-name' style='justify-content: space-between;margin:0rpx 30rpx;'>
<template is='imgTextView' data="{{img:'eat',text:item.eatCount ? item.eatCount : 0}}"> </template>
<template is='imgTextView' data="{{img:'sleep',text:item.sleepTotal ? item.sleepTotal : 0 }}"> </template>
<template is='imgTextView' data="{{img:'wc',text:item.wcCount ? item.wcCount : 0 }}"> </template>
<template is='imgTextView' data="{{img:'today',text:item.arrIds.length}}"></template>
</view>
</view>
</scroll-view>