record.wxml 4.2 KB
<!--pages/record/record.wxml-->

<cover-view class='record_tab'>
 <cover-view class="record_left border_left {{showrecord?' active':''}}" bindtap='setshowrecord'>趋势图</cover-view>
 <cover-view class="record_left {{showrecord?'':'active'}}" bindtap='setshowrecord'>病情记录</cover-view>
</cover-view>

  <view class='container_box' wx:if='{{showrecord}}'>
   <view class="container">
    <view class='container_txt'>白细胞</view>
    <canvas class="canvas" canvas-id="lineCanvaswhite" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerwhite"></canvas>
   </view>
   <view class="container">
    <view class='container_txt'>中性粒细胞</view>
    <canvas class="canvas" canvas-id="lineCanvasneutrophils" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerneutrophils"></canvas>
   </view>
   <view class="container">
    <view class='container_txt'>血红蛋白</view>
    <canvas class="canvas" canvas-id="lineCanvashemoglobin" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerhemoglobin"></canvas>
   </view>
   <view class="container">
    <view class='container_txt'>血小板</view>
    <canvas class="canvas" canvas-id="lineCanvasplatelet" disable-scroll="true" class="canvas" bindtouchstart="touchHandlerplatelet"></canvas>
   </view>
  </view>
  <!-- 病情记录 -->
  <scroll-view class='file_plan' wx:else scroll-y bindscrolltolower='scrollbottom'>
   <view class='plan_item1' wx:for='{{FilesLogList}}' wx:key>
    <view class='title_box'>
     <view>{{item.create_time}}</view>
     <view class='title_img' bindtap='goeditfile' data-id='{{item.id}}'>
      <image src='../../img/edit.png'></image>
     </view>
    </view>
    <view class="two_item two_items {{item.more.white_blood_cell_result=='正常'?'':'danger'}}">
     <view class='two_items_left'>
      <view class='two_txt'>白细胞计数</view>
      <view class='two_state' bindtap='gonormal'>
       <view class='iconbox'>
        <view class='iconfont icon-jinggao'></view>
       </view>
       {{item.more.white_blood_cell_result}}
      </view>
     </view>
     <view class="two_item_rigth">
      <text class='two_num'> {{item.more.white_blood_cell}}</text>*10^9/L</view>
    </view>
    <view class="two_item two_items {{item.more.neutrophils_result=='正常'?'':'danger'}}">
     <view class='two_items_left'>
      <view class='two_txt'>中性粒细胞计数</view>
      <view class='two_state' bindtap='gonormal'>
       <view class='iconbox'>
        <view class='iconfont icon-jinggao'></view>
       </view>
       {{item.more.neutrophils_result}}
      </view>
     </view>
     <view class="two_item_rigth">
      <text class='two_num'>{{item.more.neutrophils}}</text>*10^9/L</view>
    </view>
    <view class="two_item two_items {{item.more.hemoglobin_result=='正常'?'':'danger'}}">
     <view class='two_items_left'>
      <view class='two_txt'>血红蛋白</view>
      <view class='two_state' bindtap='gonormal'>
       <view class='iconbox'>
        <view class='iconfont icon-jinggao'></view>
       </view>
       {{item.more.hemoglobin_result}}
      </view>
     </view>
     <view class="two_item_rigth">
      <text class='two_num'> {{item.more.hemoglobin}}</text>g/L</view>
    </view>
    <view class="two_item two_items {{item.more.platelet_result=='正常'?'':'danger'}}">
     <view class='two_items_left'>
      <view class='two_txt'>血小板计数</view>
      <view class='two_state' bindtap='gonormal'>
       <view class='iconbox'>
        <view class='iconfont icon-jinggao'></view>
       </view>
       {{item.more.platelet_result}}
      </view>
     </view>
     <view class="two_item_rigth">
      <text class='two_num'>{{item.more.platelet}}</text>*10^9/L</view>
    </view>
    <view class='two_item' wx:if='{{item.doctor_reply != null}}'>
     <view>医生建议:</view>
     <view class='two_item_content'>{{item.doctor_reply == null ? '等待医生回复':item.doctor_reply}}</view>
    </view>
   </view>
   <view class='addnomore' wx:if='{{shownomore}}'>——没有更多数据了——</view>
  </scroll-view>

<!-- 趋势图 -->
<!-- <view class="container"  wx:if='{{showrecord}}'>
   <ec-canvas id="mychart-dom-line" canvas-id="mychart-line" ec="{{ ec }}"></ec-canvas>
</view> -->