confirm_order.html 2.8 KB
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="yes" name="apple-touch-fullscreen">
    <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,maximum-scale=1, minimum-scale=1, user-scalable=no">
    <title>确认订单</title>
    <link rel="stylesheet" href="/static/css/common.css">
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body style="background-color: #f6f6f6">
<div class="box">
    <div class="orderTop">
        <img src="/static/image/car3.png">
    </div>
    <h1 class="goodsName">
        <b>{$gdata.name}</b>
        <i>1对1教练教学</i>
    </h1>
    <h2 class="goodsPrice">¥{$gdata.price}.00</h2>
    <div class="orderInfo">
        <h1 class="order_info_tab">
            <b></b>
            <i>学员信息</i>
        </h1>
        <ul class="infoList">
            <li>
                <b>姓名</b>
                <i>{$data.user_nickname}</i>
            </li>
            <li>
                <b>性别</b>
                <i>{$data.sex|sex_name}</i>
            </li>
            <li>
                <b>年龄</b>
                <i>{$data.birthday}</i>
            </li>
            <li>
                <b>身份证</b>
                <i>{$data.idnumber}</i>
            </li>
            <li>
                <b>手机号</b>
                <i>{$data.mobile}</i>
            </li>
        </ul>
    </div>
    <div class="orderFooter_none"></div>
    <div class="orderFooter">
        <i>应付金额:<span>¥{$gdata.price}.00</span></i>
        <b class="btn_buy">去付款</b>
    </div>
</div>
<form action="/paycenter/wechat/index.php" id="wxpay" style="display: none" >
    <input type="text" name="fe" value="{$gdata.price}">
    <input type="text" name="ot" value="" id="otqq" class="oott">
    <input type="text" name="sn" value="{$gdata.name}">
    <input type="text" name="at" value="{$data.mobile}">
    <input type="text" name="op" value="{$data.openid}">
</form>


<script type="text/javascript" src="/static/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/static/js/common.js"></script>
<script>
    $('.btn_buy').click(function(){
        //step1--提交信息
        $.ajax({
            type:"post",
            url:"{:url('portal/index/baoming_dodata')}",
            data:{
                gid:{$gid},
            },
            success:function(data){
                if(data.code=='1'){
                    $("#otqq").attr("value",data.data);
                    $('#wxpay').submit();
                }else{
                    alert(data.msg);
                }
            }
        })
    })
</script>
</body>
</html>