zhao_js
2023-11-15 b44e169dd8a6e0f15d3788970176922e96aec6e1
uniapp/components/indexPage.vue
@@ -580,6 +580,7 @@
            }
            this.$u.api.checkPreferenceGoods({
            }).then(e => {
               console.log(e);
               if(e.code != 0)
               {
                  that.currentPage = 1;
@@ -796,6 +797,7 @@
            var that = this;
            if(type==7&&that.preferData)
            {//猜你喜欢
            console.log(that.preferData);
               this.$u.api.gussessLikeGoods({
                  platefrom:that.preferData.p_platefrom,
                  cids:that.preferData.p_cids,
@@ -845,7 +847,7 @@
               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,
@@ -853,7 +855,18 @@
                     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{