<!--pages/prescription/details/details.wxml-->
<answer id='answer'></answer>
<view class="wrap" wx:if="{{type==1}}" >
	<view class="hd-title">
		<view>小懂健康互联网医院</view>
		<view>医生建议</view>
	</view>
	<view class="line1"></view>
	<view class="diagnose">
		<view class="userinfo">
			<view>
				<text>姓名</text>
				<text>{{list.user_info.name}}</text>
			</view>
			<view>
				<text>性别</text>
				<text>{{list.user_info.sex}}</text>
			</view>
			<view>
				<text>年龄</text>
				<text>{{list.user_info.age}}</text>
			</view>
			<view>
				<text>科别</text>
				<text>便民门诊</text>
			</view>
		</view>
	</view>
	<!-- <view class="zdjg">
		<view class="zdjg-name">诊断结果</view>
		<view class="zdjg-con">{{list.diagnosis}}</view>
	</view> -->
	<view class="medicine">
		<!-- <view class="yaof">
			<view class="h6">RP</view>
			<view class="yaof-con"></view>
		</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">
						<text>用法用量：</text>
						<text>{{item.usage}}</text> 
					</view>
					<view class="medicine-number" wx:if="{{item.remarks!=''}}">备注：{{item.remarks}}</view>
				</view>
				<view class="medicine-num">x {{item.num}}</view>
			</view>
		</block>
	</view>
	<view class="line2"></view>
	<view class="yaoshi">
		<view class="yishi">
			<text>医师：</text>
			<text>{{list.doctor_info}}</text>
		</view>
		<view class="yishi">
			<text>时间：</text>
			<text>{{list.create_time}}</text>
		</view>
		<!-- <view class="yishi">
			<text>审核：</text>
			<text>栾文娟</text>
		</view>
		<view class="yishi">
			<text>复审：</text>
			<text>傅美来</text>
		</view> -->
		<!-- <image class="img" src="/images/zhang.png"></image> -->
	</view>
	<!-- <view class="specialTips">
		<view>备注</view>
		<view>1.本用药建议只限于在本平台或者本平台定点药房使用;</view>
		<view>2.本用药建议有效期为24小时，超出有效期作废，请及时购药;</view>
		<view>3.用药过程中遇到不适感，请及时联系医生或去医院诊疗。</view>
	</view> -->
	<!-- <view class="height"></view>
	<view class="btns" wx:if="{{list.status!=3}}">
		<view class="date2"><image src="/images/sf.png"></image><text>顺丰配送</text><text style="margin-left:20rpx;">闪电发货</text>    </view>
		<view class="btn" style="" bindtap="putDemand" wx:if='{{list.status==0}}'>立即购药</view>
		<view class="btn" style="" bindtap="checkorder" wx:if='{{list.status==1}}'>查看订单</view>
	</view> -->
	
</view>
<view class="wrap"  wx:else>
	<view class="header" wx:if='{{list.status==0}}'>
		<view class="pre">
			<view>药师审核通过，请放心购药，处方将在{{time1}}后失效</view> 
		</view>
	</view>
	<view class="header" wx:if='{{list.status==1}}'>
		<view class="pre">
			<view>药师审核通过，购药更放心</view>
		</view>
	</view>
	<view class="header" wx:if='{{list.status==3}}'>
		<view class="pre">
			<view>处方已超出有效期，若需购买药品，请申请续方</view>
		</view>
	</view>
	<view class="hd-title">
		<view>小懂健康互联网医院</view>
		<view>电子处方笺</view>
	</view>
	<view class="line1"></view>
	<view class="diagnose">
		<view class="userinfo">
			<view>
				<text>姓名</text>
				<text>{{list.user_info.name}}</text>
			</view>
			<view>
				<text>性别</text>
				<text>{{list.user_info.sex}}</text>
			</view>
			<view>
				<text>年龄</text>
				<text>{{list.user_info.age}}</text>
			</view>
			<view>
				<text>科别</text>
				<text>便民门诊</text>
			</view>
		</view>
	</view>
	<view class="zdjg">
		<view class="zdjg-name">诊断结果</view>
		<view class="zdjg-con">{{list.diagnosis}}</view>
	</view>
	<view class="medicine">
		<view class="yaof">
			<view class="h6">RP</view>
			<view class="yaof-con"></view>
		</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">
						<text>用法用量：</text>
						<text>{{item.usage}}</text> 
					</view>
					<view class="medicine-number" wx:if="{{item.remarks!=''}}">备注：{{item.remarks}}</view>
				</view>
				<view class="medicine-num">x {{item.num}}</view>
			</view>
		</block>
	</view>
	<view class="line2"></view>
	<view class="yaoshi">
		<view class="yishi">
			<text>医师：</text>
			<text>{{list.doctor_info}}</text>
		</view>
		<view class="yishi">
			<text>审核：</text>
			<text>欧兆智</text>
		</view>
		<!-- <view class="yishi">
			<text>复审：</text>
			<text>傅美来</text>
		</view> -->
		<image class="img" src="/images/zhang.png"></image>
	</view>
	<view class="specialTips">
		<view>备注</view>
		<view>1.本处方只限于在本平台或者本平台定点药房使用;</view>
		<view>2.本处方有效期为24小时，超出有效期处方作废，请及时购药;</view>
		<view>3.用药过程中遇到不适感，请及时联系医生或去医院诊疗。</view>
	</view>
	<!-- <view class="height"></view>
	<view class="btns" wx:if="{{list.status!=3}}">
		<view class="date2"><image src="/images/sf.png"></image><text>顺丰配送</text><text style="margin-left:20rpx;">闪电发货</text>    </view>
		<view class="btn" style="" bindtap="putDemand" wx:if='{{list.status==0}}'>立即购药</view>
		<view class="btn" style="" bindtap="checkorder" wx:if='{{list.status==1}}'>查看订单</view>
	</view> -->
</view>