| | |
| | | goodsList:[], |
| | | robbingNum:0, |
| | | }, |
| | | sortNumber:0, |
| | | sortNumber:'tb', |
| | | sortId:0, |
| | | fristOrderSort: [ |
| | | { |
| | |
| | | bool: true, |
| | | max: "", |
| | | min: "", |
| | | number: 0 |
| | | number: 'tb' |
| | | }, |
| | | { |
| | | name: "抖音", |
| | | bool: true, |
| | | max: "", |
| | | min: "", |
| | | number: 1 |
| | | number: 'dy' |
| | | }, |
| | | { |
| | | name: "京东", |
| | | bool: true, |
| | | max: "", |
| | | min: "", |
| | | number: 3 |
| | | number: 'jd' |
| | | } |
| | | ], |
| | | goodsItem: [], |
| | |
| | | loading:true, |
| | | isUniReady:false, |
| | | plat:'dy', |
| | | posturl:"http://dfg.shop.com" |
| | | //posturl:"http://appapitest.ushopvip.com" |
| | | //posturl:"http://dfg.shop.com" |
| | | posturl:"http://appapitest.ushopvip.com" |
| | | //posturl:"http://dfgapp.ushopvip.com" |
| | | }, |
| | | methods: { |
| | |
| | | this.sortNumber = item.number; |
| | | this.sortId = item.max; |
| | | } |
| | | this.getgoodsSwitch(item.number); |
| | | }, |
| | | getUrlPar:function(name) |
| | | { |
| | |
| | | _this.loading = false; |
| | | }) |
| | | }, |
| | | getgoodsSwitch:function(plat) |
| | | { |
| | | switch(plat) |
| | | { |
| | | case "tb": |
| | | this.getTbGoodsList(); |
| | | break; |
| | | case "dy": |
| | | this.getDyGoodsList(); |
| | | break; |
| | | } |
| | | }, |
| | | //是否首单 |
| | | getIsSd:function(){ |
| | | var _this = this; |
| | |
| | | }).done(function(res){ |
| | | if(res.msg.info==1) |
| | | { |
| | | switch(_this.plat) |
| | | { |
| | | case "tb": |
| | | _this.getTbGoodsList(); |
| | | break; |
| | | case "dy": |
| | | _this.getDyGoodsList(); |
| | | break; |
| | | } |
| | | _this.getgoodsSwitch(_this.plat); |
| | | } |
| | | else{ |
| | | alert("您已下过首单,不可再次购买,请浏览其他商品吧~"); |
| | |
| | | }) |
| | | }, |
| | | }, |
| | | |
| | | mounted: function () { |
| | | this.getIsSd(); |
| | | var that=this; |