<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<jsp:include page="../../common.jsp" />
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
    content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<title>输入消费金额</title>
</head>
<body>
        <div class="page-title tcenter h40 bluebg white">
            <span>输入消费金额</span>
            <a href="${ctx }/vip/myVIPCard?storeId=${sessionScope.sessionMerchantMenber.storeId}&phone=${sessionScope.sessionMerchantMenber.phone}" class="white f21 h40 left0 top0 positiona">
                <span class="dblock w40 h40 icon icon-59 white f22"></span>
            </a>
        </div>
        <div class="weui-cells weui-cells_form bdbe">
            <div class="weui-cell weui-cell_warn">
                <div class="weui-cell__hd"><label for="" class="weui-label f-black f22">¥</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input tright" name="comsumeMoney" id="comsumeMoney" type="number" pattern="[0-9]*" value="weui input error" placeholder="请输入消费金额">
                </div>
            </div>
        </div>
        <input type="hidden" id="cardNo" value="${cardNo}">
        <input type="hidden" id="storeId" value="${storeId}">
        <div class="btn mt60 ml20 mr20">
            <a href="javascript:void(0);onclick=paySuccessOrFail()"  class="weui-btn weui-btn_primary radius10 f14 pt15 pb15">确认</a>
        </div>
    </body>
    
     <script type="text/javascript">
      function paySuccessOrFail(){
            var comsumeMoney=$("#comsumeMoney").val();
            var storeId=$("#storeId").val();
            var cardNo=$("#cardNo").val();
            if(comsumeMoney==""){
            	alert("请输入金额");
            	return;
            }
             window.location=ctx+'/vip/paySuccessOrFail?cardNo='+cardNo+'&storeId='+storeId+'&comsumeMoney='+comsumeMoney+'';
         }
 </script>

</html>