<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<%
    String path = request.getScheme() + "://" + request.getServerName()
            + ":" + request.getServerPort() + request.getContextPath()
            + "/";
    session.setAttribute("path", path);
%>
<!-- ==================================================================== -->
<!-- 【个人网站】：http://www.2b2b92b.com -->
<!-- 【网站源码】：http://git.oschina.net/zhoubang85/zb -->
<!-- 【技术论坛】：http://www.2b2b92b.cn -->
<!-- 【开源中国】：https://gitee.com/zhoubang85 -->

<!-- 【支付-微信_支付宝_银联】技术QQ群：470414533 -->
<!-- 【联系QQ】：842324724 -->
<!-- 【联系Email】：842324724@qq.com -->
<!-- ==================================================================== -->
<html>
<head>
    <title>支付收银台</title>
    <link href="${path}pay_files/pay.css" rel="stylesheet" type="text/css">
</head>
<body>

<div class="wrap_header">
    <div class="header clearfix">
        <div class="logo_panel clearfix">
            <div class="logo fl"><img src="${path}pay_files/logo.png" alt=""></div>
            <div class="lg_txt">| 收银台</div>
        </div>
        <div class="fr tip_panel">
            <div class="txt">欢迎使用微支付付款</div>
            <a href="">常见问题</a>
        </div>
    </div>
</div>

<div class="cashier_desk">
    <div class="head clearfix">
        <ul class="order_info">
            <li><span class="lb">收款方：</span>${payGateWayPageShowVo.merchantName}</li>
            <li><span class="lb">订单编号：</span>${payGateWayPageShowVo.merchantOrderNo}</li>
            <li><span class="lb">商品名称：</span>${payGateWayPageShowVo.productName}</li>
        </ul>
        <div class="price fr">￥<fmt:parseNumber type="number" pattern="#,#00.0#">${payGateWayPageShowVo.orderAmount}</fmt:parseNumber></div>
    </div>
    <div class="bd">
        <ul class="sele_pay_type">
            <span class="lb">请选择支付方式：</span>
            <c:forEach items="${payGateWayPageShowVo.payWayEnumMap}" var="payWay" >
                <li>
                    <label>
                        <a href="${path}scanPay/toPay/${payGateWayPageShowVo.merchantOrderNo}/${payWay.key}/${payGateWayPageShowVo.payKey}" style="font-size: 30px">
                            <c:if test="${payWay.key == 'WEIXIN'}">
                                <img src="${path}images/logo2.png" alt="${payWay.value.desc}" />
                            </c:if>
                            <c:if test="${payWay.key == 'ALIPAY'}">
                                <img src="${path}images/logo.png" alt="${payWay.value.desc}" />
                            </c:if>
                        </a>
                    </label>
                </li>
            </c:forEach>
        </ul>
    </div>
</div>

<div class="footer w100">
    <div class="container">
        <ul class="con-content">
            <li><br/></li>
        </ul>
        <ul class="con-content">
        </ul>
        <ul class="con-content">
        </ul>
    </div>
    <div class="copyright">Copyright © 2017 小周Java技术分享</div>

</div>

</body>
</html>
