<import src="../../template/imageBe/imageBe.wxml" />

<block>

	<view class="weui-cell">
		<view class="weui-cell__hd" style="position: relative;margin-right: 10px;">
			<image src="{{payerImg}}" style="width: 50px; height: 50px; display: block" />
		</view>
		<view class="weui-cell__bd">
			<view>{{payerName}}</view>
			<view style="font-size: 13px;color: #888888;">请您帮忙代付一笔订单</view>
		</view>
	</view>

	<view class="weui-form-preview">
		<view class="weui-form-preview__hd">
			<view class="weui-form-preview__item">
				<view class="weui-form-preview__label">付款金额</view>
				<view class="weui-form-preview__value_in-hd">{{language['money']}}{{totalPrice}}</view>
			</view>
		</view>
		<view class="goods">
			<view class="ul">
				<view wx:for="{{goodList}}" wx:key="index">
					<view class="li" wx:for="{{item.has_many_order_goods}}" wx:for-index="goodidx" wx:key="{{goodidx}}">
						<image src="{{item.thumb}}" background-size="cover"></image>
						<view class="text">
							<view class="t1">{{item.title}}</view>
							<view class="t2" wx:if="{{item.goods_option_title}}">规格：{{item.goods_option_title}}</view>
						</view>
						<view class="num">
							<view class="n1">{{language['money']}}{{item.goods_price}}</view>
							<view class="n2">x{{item.total}}</view>
						</view>
					</view>
				</view>
			</view>

			<view class="bottom">
				合计：
				<text class="s2">{{language['money']}}{{totalPrice}}</text>
			</view>
		</view>

	</view>

	<view class="weui-cell">
		<view class="weui-cell__bd">
			<view>好友代付说明</view>
			<view style="font-size: 13px;color: #888888;">代付前请和好友确认核实订单详情,以免下错订单</view>
		</view>
	</view>

	<view class="b-btn-area" wx:for="{{buttons}}" wx:key="index" wx:if="{{item.value!=16}}">
		<button type="primary" bindtap="confirm" data-value="{{item.value}}" data-btn="{{item}}">{{item.name}}</button>
	</view>
	<!--商品-->
</block>

<pay-keyboard show="{{popupSpecs}}" wx:if="{{popupSpecs}}" bindclose="payKeyboardClose" bindcomplete="payKeyboardComplete"></pay-keyboard>
