<!--pages/sickInfo/sickInfo.wxml-->
<nav navName="病例信息"></nav>
<view class="page">
  <view class="wraper">
    <view class="databox">
      <view class="title">基本信息</view>

      <view class="cell">
        <view class="name">{{sick.name}}（<text wx:if="{{sick.sex=='1'}}">男</text><text wx:elif="{{sick.sex=='2'}}">女</text><text wx:else>未知</text>，{{sick.age}}岁）</view>
      </view>
      <view class="info">
        <view class="row">
          <view class="name">所患疾病：</view>
          <view class="desc">{{sick.disease_class_name}}</view>
        </view>
        <view class="row">
          <view class="name">确诊日期：</view>
          <view class="desc">{{sick.diagnosis_date}}</view>
        </view>
        <view class="row">
          <view class="name">病情主诉：</view>
          <view class="desc">{{sick.disease_desc}}
          </view>
        </view>
        <view class="row textbox" wx:if="{{sick.product.length>0}}">
          <view class="name">用药意向：</view>
          <view class="desc">
            <text class="goods" wx:for="{{sick.product}}" wx:key="product_id">{{item}}</text>
          </view>
        </view>
        <view class="row" wx:if="{{sick.diagnose_images.length>0}}">
          <view class="name">复诊凭证：</view>
        </view>
        <view class="imglist">
          <image src="{{item}}" class="img" wx:for="{{sick.diagnose_images}}" mode="aspectFill" wx:for-index="idx" wx:key="idx" bindtap="previewImage" data-id="{{idx}}" ></image>
        </view>
      </view>
    </view>

    <view class="databox other">
      <view class="title">其他信息</view>
      <view class="cell" wx:if="{{otherList.length>0}}">
        <view class="row" wx:for="{{otherList}}" wx:key="type">
          <view class="num">{{index+1}}、</view>
          <view class="qabox" wx:if="{{item.infoType==1}}">
            <view class="qa">
              {{item.name}}
              <text class="answer" wx:if="{{item.status==1}}">是</text><text class="answer" wx:else>否</text>
            </view>
            <view class="radiotip" wx:if="{{item.status==1 && item.desc}}">
              <text>{{item.nameTip}}</text>
              {{item.desc}}
            </view>
          </view>
          <view class="qabox" wx:elif="{{item.infoType==2}}">
            <view class="qa">
              {{item.name}}
              <text class="answer" wx:if="{{item.status==1}}">从不</text>
              <text class="answer" wx:elif="{{item.status==2}}">偶尔</text>
              <text class="answer" wx:elif="{{item.status==3}}">经常 </text>
              <text class="answer" wx:elif="{{item.status==4}}">每天</text>
              <text class="answer" wx:else>
               <text wx:if="{{item.type=='smoke'}}">已戒烟</text>
               <text wx:else>已戒酒</text>
              </text>
            </view>
          </view>
          <view class="qabox" wx:elif="{{item.infoType==3}}">
            <view class="qa">
              {{item.name}}
              <text class="answer" wx:if="{{item.status==1}}">从不</text>
              <text class="answer" wx:elif="{{item.status==2}}">偶尔</text>
              <text class="answer" wx:elif="{{item.status==3}}">经常 </text>
              <text class="answer" wx:elif="{{item.status==4}}">每天</text> 
            </view>
            <view class="radiotip"  wx:if="{{item.status && item.status!=1}}">
              <text>{{item.nameTip}}</text>
              {{item.desc}}
            </view>
          </view>
          <view class="qabox" wx:elif="{{item.infoType==4}}">
            <view class="qa">
              {{item.name}}
              <text class="answer" >{{item.desc}}</text>
            </view>
          </view>
        </view>
 
      </view>
      <view class="nonedata cell" style="padding-bottom: 0;" wx:else>暂无数据！</view>
    </view>
  </view>
</view>