| | |
| | | this.$u.api.getTopCalss({ctype:1,parentId:0}).then(e => { |
| | | console.log(e); |
| | | if(e.code != 0)return that.$alert(e.msg) |
| | | e.data.list.unshift({cid:"-1",cname:"天猫超市",ctype:"1"}); |
| | | e.data.list.unshift({cid:"0",cname:"全部",ctype:"1"}); |
| | | |
| | | that.navList = e.data.list; |
| | | that.nowCurrent = that.navList[0].cid |
| | | that.getData() |
| | |
| | | getData() { |
| | | var that = this; |
| | | var cateid=that.nowCurrent=="0"?"":that.nowCurrent; |
| | | var tchaoshi=cateid==-1?1:0; |
| | | this.$u.api.getTbGoodsList({ |
| | | cateId: cateid, |
| | | page: this.pageCurrent, |
| | | pageSize: 10 |
| | | pageSize: 10, |
| | | tchaoshi:tchaoshi |
| | | }).then(e => { |
| | | console.log(e); |
| | | if (e.code != 0) return that.$alert(e.msg) |
| | |
| | | |
| | | .goods-items { |
| | | width: 336rpx; |
| | | height: 526rpx; |
| | | height: 546rpx; |
| | | margin-bottom: 20rpx; |
| | | |
| | | .items-container { |