<!--pages/my/my.wxml-->
<wxs src="../../filters/filter.wxs" module="filter"></wxs>
<view class="ui-navigatorbar" style="background-color:transparent;backdrop-filter:blur(0px)">
    <view class="ui-title" style="opacity: {{1-opacity}};" >我的</view>
  </view>
<view class="page">
  <image src="../../assets/images/mybg.png"  mode="widthFix" class="dcimg"	lazy-load/>
  <view class="contentWrap">
    <view class="infobox" bindtap="goCenter">
      <view class="headbox">
        <image src="{{patient_info.avatar}}" class="head" wx:if="{{patient_info.avatar}}"></image>
        <image src="{{img_host+'/patient_avatar.png'}}"  class="head" wx:else></image>
        <view class="namebox">
          <view class="name">{{patient_info.user_name}}</view>
          <!-- <view class="intro">
            个人介绍
          </view> -->
        </view>
      </view>
      <view class="rightbox">
       <text class="set">设置</text>
       <image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
      </view>

    </view>
    <view class="viewcell" style="margin-top: -10rpx;">
      <view class="title">我的订单</view>
      <view class="iconbox">
        <view class="iconcell" bindtap="goConsultOrder">
          <image src="../../assets/images/wz_new.png"  class="myicon"></image>
          <view class="name">问诊</view>
          <view class="bage" wx:if="{{patient_info.order_inquiry_count>0}}">{{filter.formatNumber(patient_info.order_inquiry_count)}}</view>
        </view>
        <view class="iconcell" bindtap="goMyPrescript">
          <image src="../../assets/images/cf_new.png"  class="myicon"></image>
          <view class="name">处方</view>
          <view class="bage" wx:if="{{patient_info.order_prescription_count>0}}">{{filter.formatNumber(patient_info.order_prescription_count)}}</view>
        </view>
        <view class="iconcell" bindtap="goMedinceOrder">
          <image src="../../assets/images/yp_new.png"  class="myicon"></image>
          <view class="name">药品</view>
          <view class="bage" wx:if="{{patient_info.order_product_count>0}}">{{filter.formatNumber(patient_info.order_product_count)}}</view>
        </view>
        <view class="iconcell" bindtap="goCheckOrder">
          <image src="../../assets/images/check_new.png"  class="myicon"></image>
          <view class="name">检测</view>
          <view class="bage" wx:if="{{patient_info.order_detection_count>0}}">{{filter.formatNumber(patient_info.order_detection_count)}}</view>
        </view>
      </view>
    </view>
    <view class="fuli" style="background: #FFF3F3;" wx:if="{{show_fuli}}" bindtap="goWelfare">
      <view class="headbox">
        <image src="{{img_host+'/fuli.png'}}" src="{{img_host+'/fuli.png'}}" class="fulicon"></image>
        <view class="name">新人福利~立即查看</view>
      </view>
      <image src="{{img_host+'/righticon.png'}}" class="righticon"></image>

    </view>
    <view class="fuli" bindtap="goWelfare" wx:else style="background-image: linear-gradient(160deg,#fef5ee 15%,#fff 85%);">
      <view class="headbox">
        <image src="{{img_host+'/fuli.png'}}" class="fulicon"></image>
        <view class="name">我的福利</view>
      </view>
      <image src="{{img_host+'/righticon.png'}}" class="righticon"></image>

    </view>
    <view class="viewcell service">
      <view class="title">健康档案</view>
      <view class="iconbox">
        <view class="iconcell" bindtap="goMedinceRecord">
          <image src="../../assets/images/record_new.png" class="myicon"></image>
          <view class="name">用药记录</view>
        </view>
        <view class="iconcell"  bindtap="goMyDoctor">
          <image src="../../assets/images/doctor_new.png"  class="myicon"></image>
          <view class="name" bindtap="goMyDoctor">我的医生</view>
        </view>
        <view class="iconcell"  bindtap="goFamily">
          <image src="../../assets/images/edoc_new.png"  class="myicon"></image>
          <view class="name">家庭档案</view>
        </view>
        <view class="iconcell"  bindtap="goSickMange">
          <image src="../../assets/images/sickManage.png"  class="myicon"></image>
          <view class="name">病情管理</view>
        </view>
      </view>
    </view>
   <view class="dcellcontent">
    <view class="dcell" bindtap="goAddress">
      <view class="decllbox">
        <view class="name">收货地址</view>
      <image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
      </view>
    </view>
    <view class="dcell" bindtap="goAgreement">
      <view class="decllbox">
        <view class="name">资质协议和患者知情同意书</view>
      <image src="{{img_host+'/righticon.png'}}" class="righticon"></image>
      </view>
    </view>
   </view>

  </view>
</view>