index.wxml 1.91 KB
<!--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:'/src/img/defaut_teacher_icon.png',title:'审核老师',subTitle:'向日葵幼儿园',sex:'m'}}"></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:'2018-09-12'}}"></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.name}}
      </view>
    </view>
  </view>
  <view class='home-student-info' wx:for="{{records}}" wx:key="id" id="{{item.id}}" bindtap='tapStudent'>
    <!-- 名字 -->
    <view class='home-student-name'>
      <view class='kg-text-normal-dark'>{{item.signStudentName}}</view>
      <template is="sex" data="{{sex:item.signStudentSex == '0' ? 'm' : 'f'}}"></template>
    </view>
    <!-- 图片 -->
    <view class='home-student-picture-item'>
      <image src='/src/img/student_picture.png' class='home-student-picture' mode='aspectFill'></image>
      <image src='/src/img/student_picture.png' class='home-student-picture' mode='aspectFill'></image>
      <image src='/src/img/student_picture.png' class='home-student-picture' mode='aspectFill'></image>
    </view>
    <!-- 行为 -->
    <view class='home-student-name' style='justify-content: space-between;margin:0rpx 30rpx;'>
      <template is='imgTextView' data="{{img:'eat',text:item.eatCount }}"> </template>
      <template is='imgTextView' data="{{img:'sleep',text:item.sleepTotal }}"> </template>
      <template is='imgTextView' data="{{img:'wc',text:item.wcCount }}"> </template>
    </view>
  </view>
</scroll-view>