<answer id='answer'></answer>
<view class='fap'>
  <text class="title">详情</text>
  <view class='desc'>
       <view>问诊医生：{{info.name}}</view>
    <view>服务类别：{{info.counsel_name}}</view>
    <view>支付时间：{{info.create_time}}</view>
    <view>服务单号：{{info.ordernumber}}</view>
    <view>支付金额：
      <text class='text'>{{info.money}}元</text>
    </view>
    <view>购买时长：
      <text class='text' >{{info.duration}}</text>
    </view>
    <view wx:if='{{info.begin_time!=""}}'>接诊开始时间：{{info.begin_time}}</view>
    <view wx:if='{{info.begin_time==""}}'>接诊开始时间：
      <text class='text'>未开始</text>
    </view>
    <view wx:if='{{info.end_time!=""}}'>接诊结束时间：{{info.end_time}}</view>
  </view>
</view>

<button class='btn' wx:if='{{info.status==1||info.status==0}}' bindtap='connect'>去咨询</button>
<button class='btn' wx:if='{{info.status==2}}' bindtap='repurchase'>重新购买</button>
<button class='btn' wx:if='{{info.status==2||info.status==1}}' bindtap='chatLog'>历史聊天记录</button>