| | |
| | | isUniReady:false, |
| | | plat:'tb', |
| | | //posturl:"http://dfg.shop.com" |
| | | posturl:"http://appapitest.ushopvip.com" |
| | | //posturl:"http://appapitest.ushopvip.com" |
| | | //posturl:"http://dfgapp.ushopvip.com" |
| | | }, |
| | | methods: { |
| | |
| | | }) |
| | | }, |
| | | Infoformat: function(info){ |
| | | let formatObj = info.replace(/\%/g,"%25") |
| | | formatObj = info.replace(/\#/g,"%23") |
| | | formatObj = info.replace(/\&/g,"%26") |
| | | formatObj = info.replace(/\?/g,"%3F") |
| | | return formatObj; |
| | | info = info.replace(/\%/g,"%25") |
| | | info = info.replace(/\#/g,"%23") |
| | | info = info.replace(/\&/g,"%26") |
| | | info = info.replace(/\?/g,"%3F") |
| | | return info; |
| | | }, |
| | | targetItem:function(item){ |
| | | switch(this.plat) |
| | |
| | | headers:{ |
| | | "token":_this.getUrlPar("token") |
| | | }, |
| | | url:_this.posturl+'/api/taoke/get_first_free_jd_goods', |
| | | url:'/api/taoke/get_first_free_jd_goods', |
| | | type:"post", |
| | | dataType:"json", |
| | | data:{ |
| | |
| | | headers:{ |
| | | "token":_this.getUrlPar("token") |
| | | }, |
| | | url:_this.posturl+'/api/taoke/get_first_free_dy_goods', |
| | | url:'/api/taoke/get_first_free_dy_goods', |
| | | type:"post", |
| | | dataType:"json", |
| | | data:{ |
| | |
| | | headers:{ |
| | | "token":_this.getUrlPar("token") |
| | | }, |
| | | url:_this.posturl+'/api/taoke/get_first_free_goods', |
| | | url:'/api/taoke/get_first_free_goods', |
| | | type:"post", |
| | | dataType:"json", |
| | | data:{ |
| | |
| | | headers:{ |
| | | "token":_this.getUrlPar("token") |
| | | }, |
| | | url:_this.posturl+'/api/user/check_isfirst_free', |
| | | url:'/api/user/check_isfirst_free', |
| | | type:"post", |
| | | dataType:"json", |
| | | data:{ |