| | |
| | | } |
| | | this.$u.api.checkPreferenceGoods({ |
| | | }).then(e => { |
| | | console.log(e); |
| | | if(e.code != 0) |
| | | { |
| | | that.currentPage = 1; |
| | |
| | | this.loadingState = false |
| | | var that = this; |
| | | |
| | | if(that.currentPage==7&&that.preferData) |
| | | if(that.bottomType==7&&that.preferData) |
| | | {//猜你喜欢 |
| | | this.$u.api.gussessLikeGoods({ |
| | | platefrom:that.preferData.p_platefrom, |
| | |
| | | pageId:this.currentPage, |
| | | pageSize:10 |
| | | }).then(e=>{ |
| | | console.log(e) |
| | | console.log(e); |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | | var res = e.data.list; |
| | | if (res.length < 10) { |
| | | that.loadingState = false |
| | | that.loadstatus = 'normal' |
| | | } else { |
| | | that.currentPage++ |
| | | that.loadstatus = 'loading' |
| | | that.loadingState = true |
| | | } |
| | | that.bottomGoodsList = that.bottomGoodsList.concat(res); |
| | | }) |
| | | } |
| | | else{ |