diff --git a/pageB/comment/index.vue b/pageB/comment/index.vue index 915cdbe..096b5d6 100644 --- a/pageB/comment/index.vue +++ b/pageB/comment/index.vue @@ -3,9 +3,9 @@ {{ index + '(' + label + ')' }} - + - + @@ -25,6 +25,7 @@ export default { evaluateSpec: {}, loadStatus: 'loadmore', timer: true, + isShow: false, } }, components: { @@ -50,7 +51,7 @@ export default { if(!this.timer) return false; this.loadStatus = "loading"; this.page++; - this.getAllEvalue({ type: this.current, load: 'more' }).then(length => { + this.getAllEvalue({ type: this.current, load: 'loadmore' }).then(length => { if(length == 0) { this.page--; this.loadStatus = 'nomore'; @@ -72,15 +73,17 @@ export default { } }) }, - async getAllEvalue({ type, load } = {}) { + async getAllEvalue({ type, load = 'reload' } = {}) { let params = { goods_id: this.id, page: this.page, } if(type) Object.assign(params, { type: type }); + this.isShow = false; const res = await this.$u.api.getAllEvalue(params); + this.isShow = true; if (res.errCode == 0) { - if(load) this.evalueList.push(...res.data); + if(load == 'loadmore') this.evalueList.push(...res.data); else this.evalueList = res.data; } else { this.evalueList = [];