重庆迈尖科技有限公司
2020-05-20 8b87de31af48eddeb7a17d863fd89dfb128ba5ac
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>到账数据预览</title>
        <meta name="viewport" content="width=device-width,viewport-fit=cover, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <link rel="stylesheet" type="text/css" href="./css/base.css" />
        <link rel="stylesheet" type="text/css" href="./css/receiveData.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/app20200227.js"></script>
        <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
    </head>
    <body>
        <div id="root">
            <div class="div_reivedData_list">
                <div class="div_item">
                    <div class="div_item_top">
                        <div class="title">金额</div>
                        <input id="inpunt_money" class="input" type="text" placeholder="不要超过7位数,支持小数点后两位" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1').replace(/^0{1,}/g,'')"
                         maxlength="10">
                    </div>
                    <div style="height: 1px; background-color: #E0E0E0; margin-left: 0.3rem;"></div>
                </div>
                <div class="div_item">
                    <div class="div_item_top">
                        <div class="title">创建时间</div>
                        <input id="inpunt_date" class="input" type="text" placeholder="你可复制一个时间填写于此处">
                    </div>
                    <div style="height: 1px; background-color: #E0E0E0; margin-left: 0.3rem;"></div>
                </div>
 
                <div class="div_item">
                    <div class="div_item_top">
                        <div class="title">订单号</div>
                        <input id="inpunt_order" class="input" type="text" placeholder="你可复制一个订单号填写于此处">
                    </div>
                </div>
            </div>
 
            <!-- 重要提示  -->
            <div class="div_tips">
                <div class="div_tips_title">重要提示</div>
                <div class="div_tips_content">
                    1.本页数据仅供数据预览使用,不可用作其他用途;<br>
                    2.本页仅对超级会员开放预览使用,且仅支持在板栗快省App中打开;<br>
                    3.系统将会记录上一次填写的预览数据;<br>
                </div>
                <div style="height: 0.33rem"></div>
            </div>
            <!-- 提交申请 -->
            <div class="div_commit">
                <div class="commitInfo" @click="commitInfo">{{buttonName}}</div>
            </div>
        </div>
 
    </body>
 
    <script>
        // "http://api.flqapp.com";
        var host = "http://192.168.1.253:8080";
        $(function() {
            var app = new Vue({
                el: '#root',
                data: {
                    buttonName: '提交预览'
                },
                watch: {},
                methods: {
                    commitInfo: function() {
                        var money = $('#inpunt_money').val();
                        var dayTime = $('#inpunt_date').val();
                        var orderNo = $('#inpunt_order').val();
 
                        if (money.length == 0 || money == null ||
                            dayTime.length == 0 || dayTime == null ||
                            orderNo.length == 0 || orderNo == null) {
                            yesApp.toast('请将信息填写完整')
                            return;
                        }
 
                        yesApp.showLoading();
                        var uid = yesApp.getUid();
                        var params = {
                            uid: uid,
                            dayTime: dayTime,
                            money: money,
                            orderNo: orderNo
                        };
                        params = yesApp.getRequestBaseParams(params);
 
                        $.ajax({
                            type: "GET",
                            data: JSON.parse(params),
                            url: host + "/fanli/api/v2/preview/saveMoneyArrival",
                            dataType: "jsonp",
                            async: false,
                            success: function(result) {
                                if (result.code == 0) {    
                                    yesApp.hideLoading();
                                    yesApp.savePicture(result.data.link);
                                    
                                } else {
                                    yesApp.toast('222')
                                    yesApp.hideLoading();
                                    yesApp.toast(result.msg);
                                }
                            },
                            error: function(XMLHttpRequest, textStatus, errorThrown) {
                                yesApp.hideLoading();
                                if (textStatus === 'timeout') {
                                }
                            }
                        });
                    },
 
                    fetchMoneyArrivalImg: function() {
 
                    }
                }
            });
 
            app.fetchMoneyArrivalImg();
        });
    </script>
</html>