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
var page = {
    //获取订单列表
    getOrderList: function(page,callback) {
        
        var uid = yesApp.getUid();
        if (uid == null || uid == 0) {
            yesApp.login();
            return;
        }
        
        uid=323030;
        var params = {
            uid: uid,
            page: page
        };
        
        params = yesApp.getRequestBaseParams(params);
        
        
        $.ajax({
            type: "GET",
            data: JSON.parse(params),
            url: "http://api.flqapp.com/fanli/api/v1/elme/getOrderList",
            dataType: "jsonp",
            async: true,
            success: function(result) {
                yesApp.hideLoading();
                if (result.code == 0) {
                    callback(result);
                } else {
                    yesApp.toast(result.msg);
                }
            },
            error: function(data) {
                alert("fail");
                yesApp.hideLoading();
            }
        });
    }
};