<!--pages/sysMsgList/sysMsgList.wxml-->
<nav navName="服务消息"></nav>
<view class="page">
  <scroll-view scroll-y="true" bindscrolltolower="lower" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}"	refresher-threshold="100"	refresher-enabled="true" class="cellbox"  wx:if="{{list.length>0}}">
    <view class="cell" bindtap="handleGo"  data-index="{{index}}" data-id="{{item.notice_id}}" wx:for="{{list}}" wx:key="notice_id" data-type="{{item.link_type}}" data-params="{{item.link_params}}" data-status="{{item.read_status}}">
      <view class="circle" wx:if="{{item.read_status==0}}"></view>
      <image src="{{img_host+'/kefu.png'}}" class="icon"></image>
      <view class="right">
        <view class="namebox">
          <view class="name">{{item.from_name}}</view>
          <view class="date">{{item.notice_send_time}}</view>
        </view>
        <view class="detail">{{item.notice_content}}</view>
        <view class="row" >
          <button class="button" wx:if="{{item.button_type==2}}" open-type="contact" bindcontact="handleContact">
            联系客服
          </button>
          <view class="button" wx:elif="{{item.button_type==3}}">查看协议</view>
          <view class="button" wx:elif="{{item.button_type==4}}">订单详情</view>
          <view class="button" wx:elif="{{item.button_type==5}}">查看处方</view>
          <view class="button" wx:elif="{{item.button_type==6}}">问诊详情</view>
        </view>
      </view>

    </view>
    <!-- <view class="cell">
      <view class="circle"></view>
      <image src="https://img.applets.igandanyiyuan.com/applet/patient/static/kefu.png" class="icon"></image>
      <view class="right">
        <view class="namebox">
          <view class="name">肝胆小秘书</view>
          <view class="date">2022-09-26 12:30:50</view>
        </view>
        <view class="detail">您咨询快速问诊/问诊购药/义诊/专家问诊的服务医生已接诊，请查看详情。</view>
      </view>
    </view> -->
  </scroll-view >
  <view class="nonedata" wx:else>暂无数据！</view>
</view>