<!--pages/emergency/index.wxml-->


<view class="emergency">
<t-navbar
    t-class-placeholder="t-navbar-placeholder"
    t-class-content="t-navbar-content"
    class="block"
    title="紧急通道"
    left-arrow
    bind:go-back="handleBack"
  />
<image src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/my/my-top-bg.png" class="image_3"></image>
<view class="emergency-container">

  <view class="title">症状自检</view>
  <view class="checkbox-group">
    <view class="check-item {{item.checked ? 'active':''}}" wx:for="{{options}}" wx:key="index" data-index="{{index}}" bind:tap="handleCheck"> 
      <view class="icon-box">
           <image src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/diagnosticResults/icon_{{index + 1}}.png"></image>
      </view>
      <view class="block">
        <view class="name">{{item.title}}</view>
        <view class="text">{{item.description}}</view>
      </view>
      <text class="check-box">
        <text class="iconfont icon-gouxuan1"></text>
      </text>
    </view>
  </view>
  <t-button bindtap="clockIn" theme="primary" block bindtap="openFlow">提交</t-button>
  </view>
</view>

<t-popup
  visible="{{visible}}"
  usingCustomNavbar
  bind:visible-change="onVisibleChange"
  placement="center"
>
  <view class="block block--center">
    <view class="waring-icon">
      <t-icon name="error-triangle-filled" size="48rpx" />
    </view>
    <view class="block-tip">高危预警</view>
    <view class="block-desp">{{message}}</view>
    <t-button class="block-btn" theme="danger" block>立即联系医生</t-button>
    <t-button block bind:tap="closeFlow">暂不处理</t-button>
  </view>
</t-popup>