index.wxml 4.18 KB
Newer Older
张杰's avatar
张杰 committed
1
<!--pages/home/parents/index.wxml-->
张杰's avatar
张杰 committed
2
<import src='/template/operate_btn/index.wxml'></import>
张杰's avatar
张杰 committed
3

张杰's avatar
张杰 committed
4 5
<view class='kg-separater' style='height:2rpx;'></view>
<view class='kg-home-header kg-flex-row'>
张杰's avatar
张杰 committed
6
  <template is='userInfo' data="{{userImg:userIcon,title:student.name,subTitle:student.className,sex:sex}}"></template>
张杰's avatar
张杰 committed
7
  <view class='kg-flex-column' style='align-items:flex-end;'>
张杰's avatar
张杰 committed
8
    <!-- <image class='top_logo' src='/src/img/parent_logo.png'></image> -->
张杰's avatar
张杰 committed
9 10
    <view class='home-header-roll-call' bindtap='changePwdTap'>
      <image class='roll-call-image' src='{{rightIcon}}'></image>
张杰's avatar
张杰 committed
11
      <view class='roll-call-title' r>修改密码</view>
张杰's avatar
张杰 committed
12
    </view>
张杰's avatar
张杰 committed
13
  </view>
张杰's avatar
张杰 committed
14

张杰's avatar
张杰 committed
15
</view>
张杰's avatar
张杰 committed
16 17
<view class='kg-separater'></view>

张杰's avatar
张杰 committed
18 19
<scroll-view style='height:calc(100vh - 200rpx)' scroll-y='true' bindscrolltolower='scrollToLower' bindscrolltoupper='scrollToUpper'>
  <view class='kg-text-light-gray more-text' hidden='{{hideTopMore}}'>下拉加载中…</view>
张杰's avatar
张杰 committed
20
  <view wx:for="{{records}}" wx:key="item">
21 22 23 24 25 26
    <view class='timeline-cell'>
      <view class='timeline-line-container'>
        <view class='timeline-line'></view>
        <image class='timeline-cycle' src='/src/img/timeline-cycle.jpeg'></image>
      </view>
      <view class='kg-quantity-cell timeline-content'>
张杰's avatar
张杰 committed
27
        <view class='kg-flex-row'>
28
          <text class='kg-text-title'>{{item.recordDate}}</text>
张杰's avatar
张杰 committed
29
          <text class='kg-text-light-gray'>{{item.teacher ? item.teacher.name : ""}}记录</text>
30
        </view>
张杰's avatar
张杰 committed
31

32 33

        <!-- 饮食 -->
张杰's avatar
张杰 committed
34
        <view wx:for="{{item.dietRecord}}" wx:for-item="dietItem" wx:for-index="dietIndex" wx:key="dietItem.id">
35 36 37 38
          <view wx:if="{{dietIndex == 0}}">
            <template is='imgTextView' data="{{img:'eat',text:'饮食'}}"> </template>
          </view>
          <view class='kg-flex-row timeline-content-detail'>
张杰's avatar
张杰 committed
39 40
            <text class='kg-text-normal-gray' style='width:130rpx;'>{{dietItem.z_recordType}}</text>
            <text class='kg-text-normal-gray' style='width:130rpx;'>{{dietItem.z_eatState}}</text>
41 42
          </view>
        </view>
张杰's avatar
张杰 committed
43

44 45

        <!-- 睡觉 -->
张杰's avatar
张杰 committed
46
        <view wx:for="{{item.sleepRecord}}" wx:for-item="sleepItem" wx:for-index="sleepIndex" wx:key="sleepItem.id">
47
          <view wx:if="{{sleepIndex == 0}}">
张杰's avatar
张杰 committed
48
            <view class='kg-separater' style='height:2rpx;margin-left:80rpx;margin-right:0rpx;'></view>
49 50 51
            <template is='imgTextView' data="{{img:'sleep',text:'睡觉'}}"> </template>
          </view>
          <view class='kg-flex-row timeline-content-detail'>
张杰's avatar
张杰 committed
52 53
            <text class='kg-text-normal-gray' style='width:130rpx;'>午睡</text>
            <text class='kg-text-normal-gray' style='width:130rpx;'>{{sleepItem.value}}分钟</text>
54 55 56 57 58
          </view>
        </view>


        <!-- wc -->
张杰's avatar
张杰 committed
59
        <view wx:for="{{item.wcRecord}}" wx:for-item="wcItem" wx:for-index="wcIndex" wx:key="wcItem.id">
60
          <view wx:if="{{wcIndex == 0}}">
张杰's avatar
张杰 committed
61
            <view class='kg-separater' style='height:2rpx;margin-left:80rpx;margin-right:0rpx;'></view>
62 63 64
            <template is='imgTextView' data="{{img:'wc',text:'WC'}}"> </template>
          </view>
          <view class='kg-flex-row timeline-content-detail'>
张杰's avatar
张杰 committed
65 66
            <text class='kg-text-normal-gray' style='width:130rpx;'>{{wcItem.z_recordType}}</text>
            <text class='kg-text-normal-gray' style='width:130rpx;'>{{wcItem.value}}次</text>
67 68
          </view>
        </view>
张杰's avatar
张杰 committed
69 70
        <text class='kg-text-normal-gray' style='margin-left:60rpx;'>{{item.remark ? item.remark : ''}}</text>

张杰's avatar
张杰 committed
71
        <view class='kg-separater' style='height:2rpx;margin-left:80rpx;margin-right:0rpx;'></view>
72
        <!-- 今日照片 -->
张杰's avatar
张杰 committed
73
        <template is='imgTextView' data="{{img:'today',text:'今日照片'}}"> </template>
74
        <view class='home-student-picture-item' style='margin-left:40rpx;'>
张杰's avatar
张杰 committed
75
          <view wx:for="{{item.arrPic}}" wx:for-item="picItem" wx:for-index="picIndex" wx:key="picItem">
张杰's avatar
张杰 committed
76
            <image src='{{picItem}}' class='home-student-picture' catchtap='previewPic' data-index='{{index}}' data-picIndex='{{picIndex}}' mode='aspectFill'></image>
张杰's avatar
张杰 committed
77 78
          </view>
        </view>
张杰's avatar
张杰 committed
79
        <text class='kg-text-normal-gray' style='margin-left:60rpx;'>{{item.pictureRemark ? item.pictureRemark : ''}}</text>
张杰's avatar
张杰 committed
80 81
      </view>
    </view>
82 83 84



张杰's avatar
张杰 committed
85 86
  </view>
</scroll-view>