<import src="/common/common.wxml" />
<answer id='answer'></answer>
<block wx:if='{{showview}}'>
	<view class="list" wx:for="{{list}}" wx:key="index" wx:if="{{list.length!=0}}">
		<view class="title" wx:if="{{item.type==0}}">处方编号：{{item.ordernumber}}</view>
		<view class="title" wx:if="{{item.type==1}}">产品编号：{{item.ordernumber}}</view>
		<view class="item">
			<view>
				<text>医生姓名：</text>
				<text class="con">{{item.name}}</text>
			</view>
			<view wx:if="{{item.type==0}}">
				<text >诊断结果：</text>
				<text class="con">{{item.diagnosis}}</text>
			</view>
			<view>
				<text>开具时间：</text>
				<text class="con">{{item.create_time}}</text>
			</view>
			<view>
				<text  wx:if="{{item.type==0}}">处方价格：</text>
				<text  wx:if="{{item.type==1}}">商品价格：</text>
				<text class="con2">￥ {{item.money}}</text>
			</view>
			<view>
				<text  wx:if="{{item.type==0}}">处方状态：</text>
				<text  wx:if="{{item.type==1}}">商品状态：</text>
				<text class="con">{{item.status}}</text>
			</view>
		</view>
		<view class="foo">
			<view class="btn" bindtap="getRecipe" data-id="{{item.id}}" data-type="{{item.type}}" wx:if="{{item.type==0}}">查看处方</view>
			<view class="btn" bindtap="getRecipe" data-id="{{item.id}}" data-type="{{item.type}}" wx:if="{{item.type==1}}">查看建议</view>
		</view>
	</view>
	<view class='noFriend' wx:if='{{list.length==0}}'>
		<template is="noRecord" data="{{...noRecord}}" />
	</view>
</block>
<block wx:else>
	<template is="loading" data="{{...loading}}" />
</block>