<!--pages/prescription/details/details.wxml-->
<answer id='answer'></answer>
<view class="wrap">
	<view class="header" wx:if='{{list.status==0}}'>
		<view class="pre">
			<i></i>
			<view>处方未使用</view>
		</view>
		<view class="date">将于{{list.preexpired_time}}过期</view>
	</view>
	<view class="header1" wx:if='{{list.status==1}}'>
		<view class="pre">
			<i></i>
			<view>处方已使用</view>
		</view>
		<view class="date">{{list.create_time}}生成</view>
	</view>
	<view class="header1" wx:if='{{list.status==3}}'>
		<view class="pre">
			<i></i>
			<view>处方已过期</view>
		</view>
		<view class="date">{{list.create_time}}生成</view>
	</view>
	<view class="diagnose">
		<view class="userinfo">
			<view>姓名：{{list.user_info.name}}</view>
			<view>性别：{{list.user_info.sex}}</view>
			<view>年龄：{{list.user_info.age}}</view>
		</view>
		<view>日期：{{list.user_info.create_time}}</view>
	</view>
	<view class="diagnose">
		<view>诊断：{{list.diagnosis}}</view>
	</view>

	<view class="medicine">
		<view class="h6">Rp</view>
		<block wx:for="{{list.prescription}}" wx:key="index">
			<view class="flex">
				<view class="medicine-list">
					<view class="medicine-name">{{item.name}}</view>
					<view class="medicine-number">用法用量：{{item.usage}}</view>
				</view>
				<view class="medicine-num">X1</view>
			</view>
		</block>
	</view>
	<view class="diagnose">
		<view class="yishi">医师：{{list.doctor_info}}</view>
		<view>审核：栾文娟</view>
	</view>
	<view class="specialTips">
		<view>特别提示</view>
		<view>1.本处方只限于在本平台使用;
		</view>
		<view>
			2.本处方有效期为24小时，超出有效期处方自动作废，请及时购药。</view>
	</view>
	<view style="height:{{iPhoneX?160:100}}rpx;width:100%;" wx:if='{{list.status!=3}}'></view>
	<view class="btn" style="line-height:{{iPhoneX?160:100}}rpx;height:{{iPhoneX?160:100}}rpx;" bindtap="putDemand" wx:if='{{list.status==0}}'>去买药</view>
	<view class="btn" style="line-height:{{iPhoneX?160:100}}rpx;height:{{iPhoneX?160:100}}rpx;" bindtap="checkorder" wx:if='{{list.status==1}}'>查看订单</view>
</view>