zhaojs
2023-06-09 9b58dde126e5e0161a1eeb7506eda9758b615181
public/html/freebuy.html
@@ -348,7 +348,7 @@
                //判断是否首单
                $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                        "token":_this.getUrlPar("token")
                    },
                    //url:'http://dfg.shop.com/index.php/api/user/check_isfirst_free', 
                   //url:'http://dfgapp.ushopvip.com/api/user/check_isfirst_free',
@@ -358,30 +358,30 @@
                    data:{
                    }
                }).done(function(res){
                    if(res.data=='首单客户')
                    if(res.msg.info==1)
                    {
                        $.ajax({
                    headers:{
                        "token":this.getUrlPar("token")
                    },
                    //url:'http://dfg.shop.com/index.php/api/taoke/get_first_free_goods',
                   //url:'http://dfgapp.ushopvip.com/api/taoke/get_first_free_goods',
                   url:'http://appapitest.ushopvip.com/api/taoke/get_first_free_goods',
                   type:"post",
                    dataType:"json",
                    data:{
                        nineCid:1,
                        page: 1,
                        pageSize:20,
                    }
                      }).done(function(res){
                            var newlist=[];
                            res.data.list.map(function(r,k){
                                var buprice=r.actualPrice-r.topFanli;
                                if(buprice<=3)
                                {
                                    newlist.push(r);
                                }
                            headers:{
                                "token":_this.getUrlPar("token")
                            },
                                //url:'http://dfg.shop.com/index.php/api/taoke/get_first_free_goods',
                            //url:'http://dfgapp.ushopvip.com/api/taoke/get_first_free_goods',
                            url:'http://appapitest.ushopvip.com/api/taoke/get_first_free_goods',
                            type:"post",
                                dataType:"json",
                            data:{
                                nineCid:1,
                                page: 1,
                                pageSize:20,
                            }
                            }).done(function(res){
                                    var newlist=[];
                                    res.data.list.map(function(r,k){
                                        var buprice=r.actualPrice-r.topFanli;
                                        if(buprice<=3)
                                        {
                                            newlist.push(r);
                                        }
                            })
                            _this.lists=[].concat(_this.lists,newlist);
                            _this.loading = false;