pay_success.html 2.9 KB
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title></title>
    <script src="../../assets/js/fontsize.js"></script>
    <link rel="stylesheet" href="../../assets/css/api.css"/>
    <link rel="stylesheet" href="../../assets/css/index.css">
    <link rel="stylesheet" href="../../assets/icon/iconfont.css">
    <style>
        .success_box {
            display: flex;
            align-items: center;
            flex-direction: column;
            position: fixed;
            left: 0;
            top: 20%;
            width: 100%;
            height: 100%;
            font-size: 18px;
            color: #424242;
        }

        .success_box .icon-duigou1 {
            color: #D8B25F;
            font-size: 50px;
            margin-bottom: 0.7rem;
        }

        .pay_money {
            font-size: 30px;
            color: #E87136;
            padding: 1rem 0;
            text-align: center;
        }

        .back_index {
            text-align: center;
            padding: 0.3rem 0;
            width: 83%;
            margin: 1rem auto;
            background-color: #dbb25f;
            color: #fff;
            font-size: 16px;
            border-radius: 0.16rem;
        }
    </style>
</head>
<body>
<!--<div id="loadStart"></div>-->
<div id="app" v-cloak>
    <div class="success_box">
        <div class="iconfont icon-duigou1"></div>
        <span style="color: #D7B35F">付款成功!</span>
        <span class="pay_money">¥{{pay_money}}</span>
        <span class="back_index" @click="back">返回首页</span>
    </div>
</div>
</body>
</html>
<script type="text/javascript" src="../../assets/js/api.js"></script>
<script type="text/javascript" src="../../assets/js/public.js"></script>
<script type="text/javascript" src="../../assets/js/fastclick.js"></script>
<script>
    new FastClick(document.body);
</script>
<script type="text/javascript" src="../../assets/js/vue.min.js"></script>
<script type="text/javascript" src="../../assets/js/axios.min.js"></script>
<script type="text/javascript" src="../../assets/icon/iconfont.js"></script>
<script>
    var app = new Vue({
        el: '#app',
        data: {
            pay_money: 0
        },
        created: function () {
            apiready = function () {
                app.pay_money = api.pageParam.pay_price;
            }
        },
        methods: {
            back: function () {
                api.openWin({
                    url: '../common/index_win.html',
                    name: 'index_win'
                });
                api.sendEvent({
                    name: 'pay_success',

                });

            }
        }
    })
</script>