index.wxml 5.5 KB
<view wx:if='{{showdoctor}}'>
 <view class='index_item' bindtap='gointroduce' data-id='{{doctorinfo.doctor_id}}'>
  <view class='index_item_left'>
   <view class='itemimg'>
    <image src='{{doctorinfo.avatar}}'></image>
   </view>
   <view class='item_box'>
    <view class='item_box_title'>{{doctorinfo.name}}</view>
    <view class='item_contenr'>{{doctorinfo.department_name}} {{doctorinfo.title_name}}</view>
    <view>{{doctorinfo.hospital_name}}</view>
   </view>
  </view>
  <view class='iconfont icon-xiangyou'></view>
 </view>
</view>
<view class='index_test' wx:if='{{show_notest}}'>
 <view class='test_frist'>
  <view class='dot'></view>
  记录血项测评结果,并获得专家建议和正确医学科普知识。
  <view class='button_box'>
   <button open-type="getUserInfo" bindgetuserinfo='getopwer' data-tag='1'></button>
   <view class='jia_box'>
    <view class='iconfont icon-jia'></view>
   </view>
   <view class='jia_txt'>添加血项检测记录</view>
  </view>
 </view>
</view>
<view class='index_twotest' wx:else>
 <view class='index_twotab'>
  <view>用户:{{fileslog.patient}} {{fileslog.age}}岁</view>
  <view class='twotab' wx:if='{{filesLogdata > 1}}'>
   <button class='twotab_button' open-type='getUserInfo' bindgetuserinfo='getopwer' data-tag='2' data-files_id='{{fileslog.files_id}}'></button>
   切换用户
  </view>
 </view>
 <view class='two_main'>
  <view class='two_item'>
   <view>
   最近添加记录:
    <text class='time_txt'>{{fileslog.create_time}}</text> 
    </view>
  </view>
  <view class='two_item_box' wx:if='{{showfilesLog}}'>
   <view class="two_item two_items {{fileslog.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>
      {{fileslog.more.white_blood_cell_result}}
     </view>
    </view>
    <view class="two_item_rigth">
     <text class='two_num'> {{fileslog.more.white_blood_cell}}</text>*10^9/L</view>
   </view>
   <view class="two_item two_items {{fileslog.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>
      {{fileslog.more.neutrophils_result}}
     </view>
    </view>
    <view class="two_item_rigth">
     <text class='two_num'> {{fileslog.more.neutrophils}}</text>*10^9/L</view>
   </view>
   <view class="two_item two_items {{fileslog.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>
      {{fileslog.more.hemoglobin_result}}
     </view>
    </view>
    <view class="two_item_rigth">
     <text class='two_num'> {{fileslog.more.hemoglobin}}</text>g/L</view>
   </view>
   <view class="two_item two_items {{fileslog.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>
      {{fileslog.more.platelet_result}}
     </view>
    </view>
    <view class="two_item_rigth">
     <text class='two_num'> {{fileslog.more.platelet}}</text>*10^9/L</view>
   </view>
  </view>
  <view class='notest' wx:else>暂无记录</view>
  <view class='two_item' wx:if='{{fileslog.doctor_reply != null}}'>
   <view>医生建议:</view>
   <view class='two_item_content'>{{fileslog.doctor_reply == null ? '等待医生回复':fileslog.doctor_reply}}</view>
  </view>
  <view class='two_item two_items'>
   <view class='two_item_yuan_box' bindtap='gorecord' data-files_id='{{fileslog.files_id}}' data-showrecord='1'>
    <view class='two_item_yuan'>
     <image src='../../img/qst.png'></image>
    </view>
    <view>趋势图</view>
   </view>
   <view class='two_item_yuan_box'>
    <button class='two_item_yuan_box_button' open-type='getUserInfo' bindgetuserinfo='getopwer' data-tag='3' data-files_id='{{fileslog.files_id}}' data-patient='{{fileslog.patient}}'></button>
    <view class='jia_box two_jiabox'>
     <view class='iconfont icon-jia'></view>
    </view>
    <view>添加血项检测记录</view>
   </view>
   <view class='two_item_yuan_box' bindtap='gorecord' data-showrecord='2' data-files_id='{{fileslog.files_id}}' data-patient='{{fileslog.patient}}'>
    <view class='two_item_yuan'>
     <image src='../../img/bq.png'></image>
    </view>
    <view>病情记录</view>
   </view>
  </view>
 </view>
</view>
<view class='index_three'>
 <view class='three'>
  <view class='three_title'>相关文章:</view>
 </view>
 <view  wx:for='{{articlelist}}' wx:key>
  <view class='three' bindtap='goarticle_details' id='{{item.id}}'>
   <view class='threeimg_box'>
    <image src='{{item.more.thumbnail}}'></image>
   </view>
   <view class='three_txtbox'>
    <view class='three_txtbox_title'>{{item.post_title}}</view>
    <view>
     {{item.hospital_name}} {{item.department_name}}{{item.title_name}} {{item.doctor_name}}</view>
   </view>
  </view>
 </view>
 <view class='three just_last' bindtap='goarticle'>
  <view class='more'>查看更多</view>
  <view class='iconfont icon-xiangyou'></view>
 </view>
</view>