diff --git a/config/app.js b/config/app.js index 9da6f0f..ac13477 100644 --- a/config/app.js +++ b/config/app.js @@ -9,8 +9,8 @@ let httpApiThree // 网络接口修改此字符 小程序域名要求https // let httpApi = 'http://192.168.31.110:8324' // 测试 if (process.env.NODE_ENV === "development") { - // httpApi = "https://crmeb-test.shop.lihaink.cn" - httpApi = "http://192.168.0.222" + httpApi = "https://crmeb-test.shop.lihaink.cn" + // httpApi = "http://192.168.0.222" // #ifdef MP-WEIXIN httpApiTwo = "http://cms.com" httpApiThree = 'http://ceshi-oa.lihaink.cn' diff --git a/pages/store/home/index.vue b/pages/store/home/index.vue index 1c9f442..677dad2 100644 --- a/pages/store/home/index.vue +++ b/pages/store/home/index.vue @@ -671,7 +671,7 @@ order: '', keyword: '', page: 1, - limit: 30 + limit: 10 }; this.getGoods(); break; @@ -688,7 +688,6 @@ this.getCoupon(); break; case 7: - this.loadTitle='' this.getProductSpu() break; } @@ -783,11 +782,14 @@ let list = res.data.list; let goodsList = that.$util.SplitArray(list, that.goods); let loadend = list.length < that.where.limit; + console.log(list.length); + console.log(that.where.limit); that.loadend = loadend; that.loading = false; that.loadTitle = loadend ? '已全部加载' : '加载更多'; that.$set(that, 'goods', goodsList); that.$set(that.where, 'page', that.where.page + 1); + console.log(loadend); console.log(that.loadTitle); console.log(that.loadend); }).catch(err => { @@ -1146,13 +1148,15 @@ // 商铺底部切换 tab: function(param) { if (this.tabActive == param) { + console.log(123); + this.getProductSpu() return false; } this.goods = [] this.where.page=1 + this.goodsLoading = this.loadend = this.loading = false this.tabActive = param; - console.log(this.goods); - this.goodsLoading = this.loadend = this.loading = false + // console.log(this.goods); }, resetParmas() { this.where = {