index.wxml 3.85 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:'male'}}"></template>
张杰's avatar
张杰 committed
7 8 9 10 11 12
  <view class='kg-flex-column' style='align-items:flex-end;'>
   <image class='top_logo' src='/src/img/parent_logo.png'></image>
    <view class='home-header-roll-call' bindtap='changePwdTap'>
      <image class='roll-call-image' src='{{rightIcon}}'></image>
      <view class='roll-call-title' style='margin-top:20rpx;'>修改密码</view>
    </view>
张杰's avatar
张杰 committed
13
  </view>
张杰's avatar
张杰 committed
14

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

<scroll-view style='height:calc(100vh - 200rpx)' scroll-y='true'>
19 20 21 22 23 24 25 26 27
  <view wx:for="{{records}}">
    <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'>
        <view class='kg-flex-row' style='margin-bottom:20rpx;'>
          <text class='kg-text-title'>{{item.recordDate}}</text>
张杰's avatar
张杰 committed
28
          <text class='kg-text-normal-gray'>{{item.teacher ? item.teacher.name : ""}}记录</text>
29
        </view>
张杰's avatar
张杰 committed
30

31 32 33 34 35 36 37 38

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

43 44 45 46

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


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

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



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