<import src="/common/common.wxml" />
<!-- <official-account class="account"></official-account> -->
<block>
	<view class='user-box' wx:if='{{isShow}}'>
		<view class='user-info'>
			<view class='user-name' wx:if='{{nickname!=""}}'>{{nickname}}</view>
			<button class='user-name' wx:if='{{nickname==0}}' bindtap='getUserInfo'>点击登录</button>
			<image src='{{headimgurl}}' class='header-img' binderror="binderrorimg"></image>
		</view>
		<view class="server">
			<view bindtap='goToURL' data-src='/packageB/myService/myService'>
				<view class="server-img">
					<image src="../../images/server.png"></image>
				</view>
				<view class="server-text">我的服务</view>
			</view>
			<view bindtap='goToURL' data-src='/packageA/myDoctor/myDoctor?type=2'>
		<!-- <view bindtap='goToURL' data-src='/pages/addressBook/addressBook?type=2'> -->
				<view class="server-img">
					<image src="../../images/doc.png"></image>
				</view>
				<view class="server-text">我的医生</view>
			</view>
			<view bindtap='goToURL' data-src="/packageA/myPrescription/myPrescription">
				<view class="server-img">
					<image src="../../images/Rx.png"></image>
				</view>
				<view class="server-text">我的处方</view>
			</view>
			<view bindtap='myReport'>
				<view class="server-img">
					<image src="../../images/report.png"></image>
					<view class="reportRedD" wx:if='{{reportRedD}}'>{{reportRedNum}}</view>
				</view>
				<view class="server-text">我的报告</view>
			</view>
		</view>
		<view class='item' bindtap='goToURL' data-src="/packageB/myDetails/myDetails">
			<text>交易明细</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<view class='item' bindtap="goToURL" data-src="/packageA/drugOrder/drugOrder">
			<text>药品订单</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<view class='item' bindtap="goToURL" data-src="/packageA/patientList/patientList">
			<text>患者信息</text><text class="memo">完善后医生更好的为您服务</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<!-- <view class='item' bindtap='goToURL' data-src="/packageB/followUp/followUp">
			<text>预约记录</text>
			<image src='../../images/l@2x.png'></image>
		</view> -->
		<view class='item' bindtap='goToURL' data-src="/packageB/invoice/invoice">
			<text>开具发票</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<view class='item' bindtap='goToURL' data-src="/packageB/promise/promise">
			<text>承诺保证</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<view class='item' bindtap="setPush">
			<text>推送设置</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<view class='item' bindtap='dial' data-tel='4001199218'>
			<text>客服电话</text>
			<image src='../../images/l@2x.png'></image>
		</view>
		<view class='item version'>
			<text>小程序版本 {{version}}</text>
		</view>
		<view class="my">
			<view>小懂健康小程序涉及到的医疗服务由「小懂健康互联网医院」提供；其他技术支持由「北京小懂科技有限公司」提供；</view>
			<view class="my-mt-15">使用「小懂健康」即代表您完全接受我们的 <text class="my-text" bindtap="goToURL" data-src="/packageB/agreement/agreement">用户协议 </text></view>
		</view>
		<view class="my-logo">
			<image src="/images/xdjklogo.png"></image>
		</view>
	</view>
	<view wx:else>
		<template is="loading" data="{{...loading}}" />
	</view>
</block>
<modal id='modal' showCancel='false' modalTitle='标题' modalMsg='我是内容' bind:cancelEvent="_cancelEvent" bind:confirmEvent="_confirmEvent">
</modal>
<login id='login' showClose='{{showClose}}' bind:refreshEvent="_refreshEvent"></login>
<answer id='answer' TabBar='show'></answer>