<view id="trainHistory">
  <view id="trainHistoryList">
    <view class="trainHistoryItem" data-id="{{item.id}}" bindtap="history" wx:for="{{historyList}}" wx:key="historyList">
      <view class="trainHistoryItemTitle">
        {{item.date}}
        <view class="histortStatus">
          <image src="../../assets/tips.png" />
          <text wx:if="{{item.finish==1}}">目标达成</text>
          <text wx:if="{{item.finish==0}}">未达成</text>
        </view>
      </view>
      <view class="trainHistoryItemData">
        共训练
        <text>{{125}}</text>分钟，
        <view wx:if="{{item.type ==1}}">视力提升到<text>{{item.degrees}}</text></view>
        <view wx:if="{{item.type ==0}}">视力降低到<text>{{item.degrees}}</text></view>
      </view>
      <view class="trainHistoryItemType">
        动态训练<text>{{item.dyn}}</text>，
        静态训练<text>{{item.static}}</text>，
        单词训练<text>{{item.word}}</text>；
      </view>
      <image class="itemArrow" src="../../assets/arrow_right.png" />
    </view>
  </view>
</view>
