|
@@ -63,22 +63,22 @@
|
|
user: {},
|
|
user: {},
|
|
btnlist: [{
|
|
btnlist: [{
|
|
name: '全部好评',
|
|
name: '全部好评',
|
|
- total: '0',
|
|
|
|
|
|
+ total: 0,
|
|
code: '0'
|
|
code: '0'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '好评',
|
|
name: '好评',
|
|
- total: '0',
|
|
|
|
|
|
+ total: 0,
|
|
code: '1'
|
|
code: '1'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '中评',
|
|
name: '中评',
|
|
- total: '0',
|
|
|
|
|
|
+ total: 0,
|
|
code: '2'
|
|
code: '2'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
name: '差评',
|
|
name: '差评',
|
|
- total: '0',
|
|
|
|
|
|
+ total: 0,
|
|
code: '3'
|
|
code: '3'
|
|
}
|
|
}
|
|
],
|
|
],
|
|
@@ -191,6 +191,9 @@
|
|
for (let val of list) {
|
|
for (let val of list) {
|
|
val.customer.phone = val.customer.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
|
val.customer.phone = val.customer.phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
|
}
|
|
}
|
|
|
|
+ that.$set(that, `list`, list)
|
|
|
|
+ that.$set(that, `total`, res.total)
|
|
|
|
+ that.$set(that.btnlist[0], `total`, res.total)
|
|
let one = list.filter(item => item.goods_score == 5);
|
|
let one = list.filter(item => item.goods_score == 5);
|
|
that.$set(that, `one`, one)
|
|
that.$set(that, `one`, one)
|
|
that.$set(that.btnlist[1], `total`, one.length);
|
|
that.$set(that.btnlist[1], `total`, one.length);
|
|
@@ -200,9 +203,6 @@
|
|
let thr = list.filter(item => item.goods_score <= 2)
|
|
let thr = list.filter(item => item.goods_score <= 2)
|
|
that.$set(that, `thr`, thr)
|
|
that.$set(that, `thr`, thr)
|
|
that.$set(that.btnlist[3], `total`, thr.length);
|
|
that.$set(that.btnlist[3], `total`, thr.length);
|
|
- that.$set(that, `list`, list)
|
|
|
|
- that.$set(that, `total`, res.total)
|
|
|
|
- that.$set(that.btnlist[0], `total`, res.total)
|
|
|
|
} else {
|
|
} else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: res.errmsg,
|
|
title: res.errmsg,
|