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