ss
重庆迈尖科技有限公司
2020-06-16 b67f2c4fce992a818f287783ae7029a0b03509d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>支付成功</title>
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <link rel="stylesheet" type="text/css" href="css/base.css" />
        <link rel="stylesheet" type="text/css" href="css/payCloudPushOrder.css" />
        <script>
            window.onresize = function() {
                document.documentElement.style.fontSize = document.documentElement.clientWidth / 7.5 + 'px';
            };
            window.onresize();
        </script>
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
        <script src="http://img.flqapp.com/resource/js/app2019112217.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
        <style type="text/css">
            [v-cloak] {
                display: none !important;
            }
        </style>
    </head>
    <body>
        <div id="root" v-cloak>
            <img src="img/icon_payResult.png" style="width: 1.86rem;height: 1.71rem;margin-left: 2.82rem;margin-top: 3.6rem;">
            <div style="color: #333333;font-size: 0.4rem;height: 0.4rem;display: -webkit-flex;align-items: center;justify-content: center;margin-top: 0.1rem;">
                订单支付成功
            </div>
            <div style="color: #FF3535;font-size: 0.48rem;height: 0.4rem;display: -webkit-flex;align-items: center;justify-content: center;margin-top: 0.18rem;">
                <span style="font-size: 0.3rem;">¥</span>{{money}}
            </div>
            <div @click="back" style="color: #FFFFFF;font-size: 0.36rem;width: 5.02rem;height: 0.75rem;background-color: #178BF7;border-radius: 0.375rem;display: -webkit-flex;align-items: center;justify-content: center;margin-left: 1.23rem;margin-top: 0.86rem;">
                返回
            </div>
        </div>
    </body>
 
    <script type="text/javascript">
        function getQueryString(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
            var r = window.location.search.substr(1).match(reg);
            if (r != null) return unescape(r[2]);
            return null;
        };
    </script>
 
    <script>
        // "http://api.flqapp.com";
        var host = "http://api.flqapp.com";
        var id = getQueryString('id');
        
        $(function() {
            var app = new Vue({
                el: '#root',
                data: {
                    money: '0.00'
                },
                watch: {
 
                },
                methods: {
                    back: function() {
                        yesApp.toast('s')
                        history.go(-2);
                    },
                    getInfo: function() {
                        yesApp.showLoading();
                        var uid = yesApp.getUid();
                        var params = {
                            uid: uid,
                            id: id
                        };
                        params = yesApp.getRequestBaseParams(params);
 
                        yesApp.showLoading();
                        $.ajax({
                            type: "GET",
                            data: JSON.parse(params),
                            url: host + "/fanli/api/v2/user/cloud/payEnd",
                            dataType: "jsonp",
                            async: true,
                            success: function(result) {
                                yesApp.hideLoading();
                                if (result.code == 0) {
                                    app.money = result.data.money;
 
                                } else {
                                    yesApp.toast(result.msg);
                                }
                            },
                            complete: function(e) {
                                yesApp.hideLoading();
                            }
                        });
                    }
                }
            });
            app.getInfo();
        });
    </script>
</html>