<!--pages/consultAndBuy.wxml-->
<nav navName="{{navName}}"></nav>
<!-- <view class="ui-navigatorbar" style="background: #FFFFFF;border-bottom: 1rpx solid #E3E4E5;">
    <image class="ui-navigatorbar-back" bindtap="goBack" src="{{img_host+'/back.png'}}" />
    <view class="ui-title" wx:if="{{inquiry_type}}}">问诊购药</view>
    <view class="ui-title" wx:else>快速问诊</view>
  </view> -->
<view class="page">

  <image src="{{img_host+'/main_bg.jpg'}}" alt="" class="bg" mode='widthFix' wx:if="{{inquiry_type==4}}"></image>
  <image src="{{img_host+'/quick_bg.png'}}"  alt="" class="bg" mode='widthFix' wx:else></image> 
  <image src="{{img_host+'/people.gif'}}" alt="" class="people" mode='widthFix'  wx:if="{{inquiry_type==4}}"></image> 
  <view class="timebox" wx:if="{{inquiry_type==4}}">
    <view class="time" wx:for="{{currentData.time}}" wx:key="index">
     {{item}}
   </view>
  </view>
  <view class="quicktimebox" wx:else>
   <view class="time quicktime" wx:for="{{currentData.time}}" wx:key="index" >
     {{item}}
   </view>
  </view>
  <view class="board" style="margin-top: 732rpx;" wx:if="{{inquiry_type==4}}">
    <view class="title">
      <image src="{{img_host+'/juxing.png'}}"  alt="" class="juxing" ></image>
       <!-- <view class="titlename" wx:if="{{inquiry_type==2}}">快速问诊</view> -->
       <view class="titlename">问诊开药</view>
    </view>
    <view class="rowcell" style="margin-top: 30rpx;">
      <image src="{{img_host+'/zjwz.png'}}" class="icon"></image>
      <view class="bold">无需等待</view>
      <view class="text"><text class="addcolor">5分钟</text>接诊、<text class="addcolor">{{currentData.duration}}分钟<text wx:if="{{currentData.times_number==0}}">不限次</text><text wx:else>{{currentData.times_number}}次</text></text>沟通</view>
    </view>
    <view class="rowcell">
      <image src="{{img_host+'/shandian.png'}}"  class="icon"></image>
      <view class="bold">服务保障</view>
      <view class="text">公立医院主治及以上医生服务</view>
    </view>
    <view class="rowcell">
      <image src="{{img_host+'/serviceicon.png'}}"  class="icon"></image>
      <view class="bold">服务费用</view>
      <view class="text">
       <text class="redcolor" wx:if="{{currentData.inquiry_price==0}}">免费</text>
       <text class="redcolor" wx:else>¥{{currentData.inquiry_price}}</text>
      </view>
    </view>
  </view>
  <view class="board" style="margin-top:672rpx;" wx:else>
    <view class="title">
      <image src="{{img_host+'/juxing.png'}}"  alt="" class="juxing" ></image>
       <view class="titlename">快速问诊</view>
    </view>
    <view class="rowcell" style="margin-top: 30rpx;">
      <image src="{{img_host+'/zjwz.png'}}"  class="icon"></image>
      <view class="bold">无需等待</view>
      <view class="text"><text class="addcolor">5分钟</text>接诊、<text class="addcolor">{{currentData.duration}}分钟<text wx:if="{{currentData.times_number==0}}">不限次</text><text wx:else>{{currentData.times_number}}次</text></text>沟通</view>
    </view>
    <view class="rowcell">
      <image src="{{img_host+'/shandian.png'}}"   class="icon"></image>
      <view class="bold">服务保障</view>
      <view class="text" style="color: #000000;">公立医院主治及以上医生服务</view>
    </view>
    <!-- <view class="rowcell">
      <image src="../../assets/images/serviceicon.png" class="icon"></image>
      <view class="bold">服务费用</view>
      <view class="text"><text class="redcolor">¥5</text></view>
    </view> -->
  </view>
  <view class="board" style="margin-top:20rpx;padding-bottom: 16rpx;box-shadow: 0rpx 4rpx 8rpx 0rpx #1A9D96;" wx:if="{{inquiry_type==4}}">
    <view class="title">
      <image src="{{img_host+'/juxing.png'}}"  alt="" class="juxing" ></image>
       <view class="titlename" >服务流程</view>
   
    </view>
    <view class="progressbox">
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p1.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">选择药品</view>
       </view>
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p2.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">填写病情</view>
       </view>
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p3.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">问诊开方</view>
       </view>
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p4.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">送药到家</view>
       </view>
       <view class="line"></view>
    </view>
  </view>
  <view class="board" style="margin-top:20rpx;padding-bottom: 16rpx;box-shadow: 0rpx 4rpx 8rpx 0rpx #1A9D96;" wx:else>
    <view class="title">
      <image src="{{img_host+'/juxing.png'}}"  alt="" class="juxing" ></image>
       <view class="titlename">服务流程</view>
    </view>
    <view class="progressbox" style="padding:0 111rpx">
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p2.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">填写病情</view>
       </view>
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p5.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">分配医生</view>
       </view>
       <view class="boxcell">
         <view class="imgbox">
          <image src="{{img_host+'/p6.png'}}" alt="" class="icon" mode='heightFix' ></image>
         </view>
         <view class="desc">等待接诊</view>
       </view>
       <view class="line" style="right:120rpx;left:120rpx;"></view>
    </view>
  </view>
  <view class="button"  bindtap="handleThrottle" wx:if="{{inquiry_type==4}}">
   立即问
  </view>
   <view class="box" wx:else >
    <view class="leftbox">
      <view class="imgbox">
        <image src="{{img_host+'/people2.gif'}}"  class="person" mode="widthFix"></image>
      </view>
      <view class="desc">
        <view class="name">快速图文问诊</view>
        <view class="tips">专业医生实时在线</view>
      </view>
    </view>
    <view class="rightbox">
       <view class="free" style="display: none;" wx:if="{{currentData.inquiry_price==0}}">免费</view>
       <view class="price" wx:else>¥{{currentData.inquiry_price}}<text class="unit"></text></view>
       <view class="btn" bindtap="handleThrottle">立即问</view>
    </view>
  </view> 
</view>
<dialog bind:confirm="confirm" showDialog="{{show}}" message="您有仍在进行中的问诊，是否立即前往继续咨询？" ></dialog>