view goods evaluation
This commit is contained in:
parent
8f010c634c
commit
fe60d5a1cf
@ -37,7 +37,7 @@ export default {
|
|||||||
content: Object,
|
content: Object,
|
||||||
reply: Boolean,
|
reply: Boolean,
|
||||||
},
|
},
|
||||||
mounted() {
|
created() {
|
||||||
if(this.content.hasOwnProperty('scores_two')) this.rate = this.content.scores_two;
|
if(this.content.hasOwnProperty('scores_two')) this.rate = this.content.scores_two;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -81,14 +81,10 @@ export default {
|
|||||||
if(type) Object.assign(params, { type: type });
|
if(type) Object.assign(params, { type: type });
|
||||||
this.isShow = false;
|
this.isShow = false;
|
||||||
const res = await this.$u.api.getAllEvalue(params);
|
const res = await this.$u.api.getAllEvalue(params);
|
||||||
|
this.isShow = true;
|
||||||
if (res.errCode == 0) {
|
if (res.errCode == 0) {
|
||||||
if(load == 'loadmore') {
|
if(load == 'loadmore') this.evalueList.push(...res.data);
|
||||||
this.evalueList.push(...res.data);
|
else this.evalueList = res.data;
|
||||||
this.isShow = true;
|
|
||||||
} else {
|
|
||||||
this.evalueList = res.data;
|
|
||||||
this.isShow = true;
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.evalueList = [];
|
this.evalueList = [];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user