index.wxml 1.88 KB
Newer Older
张杰's avatar
张杰 committed
1 2
<!--pages/home/teacher/index.wxml-->
<import src='/template/operate_btn/index.wxml'></import>
张杰's avatar
张杰 committed
3 4 5
<view class='kg-separater' style='height:2rpx;'></view>
<view class='kg-home-header kg-flex-row'>
  <template is='userInfo' data="{{userImg:userIcon,title:'向日葵小班-张老师',subTitle:'共19人',sex:''}}"></template>
张杰's avatar
张杰 committed
6
  <view class='home-header-roll-call' bindtap='signTap'>
张杰's avatar
张杰 committed
7
    <image class='roll-call-image' src='{{signIcon}}'></image>
张杰's avatar
张杰 committed
8 9 10 11 12
    <view class='roll-call-title'>点名</view>
  </view>
</view>
<view class='kg-separater'></view>
<!-- 滑动区域 -->
张杰's avatar
张杰 committed
13
<scroll-view style='height:calc(100vh - 200rpx - 140rpx)' scroll-y='true'>
张杰's avatar
张杰 committed
14 15
  <template is="section_header" data="{{title:dateStr}}"></template>
  <view wx:for="{{records}}">
张杰's avatar
张杰 committed
16 17 18
    <view class='home-student-info'>
      <!-- 名字 -->
      <view class='home-student-name'>
张杰's avatar
张杰 committed
19 20
        <view class='kg-text-normal-dark'>{{item.signStudentName}}</view>
        <template is="sex" data="{{sex:item.signStudentSex == '0' ? 'm' : 'f'}}"></template>
张杰's avatar
张杰 committed
21 22
      </view>
      <!-- 图片 -->
张杰's avatar
张杰 committed
23
      <view class='home-student-picture-item'>
张杰's avatar
张杰 committed
24
        <image src='/src/img/student_picture.png' class='home-student-picture' mode='aspectFill'></image>
张杰's avatar
张杰 committed
25 26
        <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>
张杰's avatar
张杰 committed
27 28
      </view>
      <!-- 行为 -->
张杰's avatar
张杰 committed
29
      <view class='home-student-name' style='justify-content: space-between;margin:0rpx 30rpx;'>
张杰's avatar
张杰 committed
30 31 32
        <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>
张杰's avatar
张杰 committed
33 34 35 36
      </view>
    </view>
  </view>
</scroll-view>
张杰's avatar
张杰 committed
37
<template is="operate_btn" data="{{title:'记录一笔'}}"></template>