<view class="wrap">
	<view class="header" bindtap="gosite" wx:if='{{receiveAddress==""}}'>
		<view class="dz">请选择收货地址</view>
		<image src="/images/arrow@2x.png"></image>
	</view>
	<view class="header" bindtap="gosite" wx:else>
		<view class="dz">
			<view class="po-re">
				<text class="uname">收货人：</text>
				<text class="usname">{{receiveAddress.name}}</text>
				<view>{{tel}}</view>
			</view>
			<view class="site-dz">
				<text class="shouhdz">收货地址：</text>
				<text class="site">{{receiveAddress.take_over}}{{receiveAddress.detail_address}}</text>
			</view>
		</view>
		<image src="/images/arrow@2x.png"></image>
	</view>
	<image class="fengexian" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAGCAYAAACclRsMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgK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gqbvvftfUmORtk4P7KbRmMK8AOoKyGTbIkUlTON+5EhiF0DET6wm0TmQ9YmTdIKzPs1lzGVjPoBXC+nwr9j9yOUysq4T1BYyspylglRyQHJAckByQHMiMHPDd75pDO9nbXgf3R2jI8OalNrKWYYMcmVxGYLgMbteKtYaJdcSV1ft2vQlVM7A+QMNuEwzesKhAqmdgfYYGoU/CM1TQ1/0T1nUm1icvbxn0gOSA5IDkgOSA5EAa5oCm7kH1O9nbXwIMALoZYR4r6iuTAAAAAElFTkSuQmCC"></image>
	<view class="sf">
		<view class="sf-top">
			<view  class="sf-title">
				<image class="sf-img" src="/images/sf.png"></image>
				<text class="size-0 ml-15">顺丰配送 19:00前下单当日发货。平台承诺100%正品，假一罚十。</text>
			</view>
		</view>
	</view>
	<view class="hzxx" wx:if="{{ishow}}" bindtap='myDetails' data-src="/packageA/selectUser/selectUser">
		<text>患者信息</text>
		<view class="hz-info">
			<text>{{item==""||item==null?'请补充患者信息':item.name}}</text>
			<image class="more" src="/images/more.png"></image>
		</view>
	</view>
	<view class="line" wx:if='{{list.prescription.length>0}}'>
		<text>处方药</text>
	</view>
	<block wx:for="{{list.prescription}}" wx:key="index">
		<view class="list">
			<view class="list-item">
				<view class="image">
					<image src="{{item.picture}}"></image>
				</view>
				<view class="item-name">
					<view class="name">{{item.name}}</view>
					<view class="firm">{{item.firm}}</view>
					<view class="norms">{{item.norms}}</view>
					<view class="pirce">
						<text>￥</text>
						<text>{{item.drugPrice}}</text>
					</view>
				</view>
				<view class="number">x {{item.num}}</view>
			</view>
		</view>
	</block>
	<view wx:if='{{list.healthcare.length>0}}' class="line">
		<text>医生推荐</text>
	</view>
	<block wx:for="{{list.healthcare}}" wx:key="index" wx:for-index="index">
		<view class="list">
			<checkbox data-index="{{index}}" checked="{{item.checked}}" bindtap="updataRadio" color='#1384ff' />
			<view class="list-item1">
				<view class="image">
					<image src="{{item.picture}}"></image>
				</view>
				<view class="item-name">
					<view class="name" style="width:395rpx;">{{item.name}}</view>
					<view class="firm" style="width:395rpx;">{{item.firm}}</view>
					<view class="norms" style="width:395rpx;">{{item.norms}}</view>
					<view class="pirce">
						<text>￥</text>
						<text>{{item.price}}</text>
					</view>
				</view>
				<view class="number">x {{item.num}}</view>
			</view>
		</view>
	</block>
	<!-- 订单编号 -->
	<view class="order-list">
		<!-- <view class="order-num">
			<text>下单时间</text>
			<text  style="font-size:28rpx;">{{list.create_time}}</text>
		</view> -->
		<view class="order-num">
			<text>商品价格</text>
			<view>
				<text style="color:#EC5B68; font-size: 28rpx;">¥ </text>
				<text style="color:#EC5B68;font-weight: 700;font-size: 28rpx;">{{list.drug_money}}</text>
			</view>

		</view>
		<view class="order-num">
			<text>服务诊金</text>
			<view>
				<text style="color:#999999;font-size: 28rpx;">¥ </text>
				<text style="color:#999999;font-size: 28rpx;">{{list.zj}}</text>
			</view>
		</view>

		<view class="order-num">
			<text>顺丰运费</text>
			<view>
				<text style=" color:#999999; font-size: 28rpx;">¥ </text>
				<text class="fonw-400" style="font-size: 28rpx;">{{list.freight}}</text>
			</view>
		</view>
		<!-- <view class="order-num">
			<text>纸质发票</text>
			<radio-group class="radio-group" bindchange="radioChange">
				<label class="radio" wx:for="{{items}}" wx:key="key">
					<radio value="{{item.value}}" checked="{{item.value==0?true : false}}" color='#1384ff' />{{item.name}}
				</label>
			</radio-group>
		</view> -->
		<view class="tys" bindtap="agree">
			<view wx:if='{{!agree}}' class="unselected">
			</view>
			<view wx:if='{{agree}}' class="selected">
				<image src="/images/on2x.png"></image>
			</view>
			<text class="tys-text">我已阅读并接受</text>
			<text class="zqtys" catchtap="goConsent">《知情同意书》</text>
		</view>
		<view class="tsy">根据药品实际仓储位置，您的订单可能分开发货</view>
		<view class="tsy">遇到任何问题请拨打客服电话：<text bindtap='dial' data-tel='4001199218' style="color:#2684ff;">4001199218</text></view>
		<view class="user-logo">
			<image src="/images/xdjklogo.png"></image>
		</view>
		<view wx:if="{{iPhoneX}}" class="height"></view>
	</view>
	<!-- 微信支付 -->
	<view class="three-wrap" style="height:{{iPhoneX?160:100}}rpx;">
		<view class="flex-zf">
			<view class="jg">
				<text>合计:</text>
				<text class="text">¥ </text>
				<text>{{list.money}}</text>
			</view>
			<view wx:if='{{!agree||!isBtnAsh}}' class="qzf1">立即支付</view>
			<view wx:if='{{agree&&isBtnAsh}}' class="qzf" bindtap="applyPay">立即支付</view>
		</view>
	</view>
	<!-- <view class="btn" bindtap="applyPay">微信支付</view> -->
</view>
<view class="cu-modal {{errshow?'show':''}} shade" bindtap='hideModal' catchtouchmove="true">
	<view class='cu-dialog' catchtap style="width:650rpx;border-radius: 20rpx !important;">
		<view class='modal-top'>
			<view class='modal-title'>{{errmsg}}</view>
		</view>
		<view class='modal-body' style="margin:0">
			<block wx:for="{{errList}}" wx:key='key'>
				<view class="list1">
					<view class="list-item" style="padding-top:0;">
						<view class="image">
							<image src="{{item.picture}}"></image>
						</view>
						<view class="item-name">
							<view class="name">{{item.name}}</view>
							<!-- <view class="firm">{{item.firm}}</view> -->
							<view class="norms">{{item.norms}}</view>
							<view class="err_msg">
								{{item.msg}}
							</view>
						</view>
						<!-- <view class="number">x {{item.num}}</view> -->
					</view>
				</view>
			</block>
		</view>
		<view class='modal-footer'>
			<text class='sure width-100' catchtap='hideModal'>返回</text>
		</view>
	</view>
</view>
<login id='login' showClose='{{showClose}}' bind:refreshEvent="_refreshEvent">
</login>
<answer id='answer'></answer>