zhaojs
2023-06-05 d043cfde9b14f2c4245f0c3047273a1e14265822
uniapp/pages/active/tmsearch.vue
@@ -122,7 +122,9 @@
             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()
@@ -132,10 +134,12 @@
         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)
@@ -366,7 +370,7 @@
               .goods-items {
                  width: 336rpx;
                  height: 526rpx;
                  height: 546rpx;
                  margin-bottom: 20rpx;
                  .items-container {