| | |
| | | //判断是否首单 |
| | | $.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', |
| | |
| | | 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; |