zs 2 years ago
parent
commit
7ae625573f
3 changed files with 16 additions and 8 deletions
  1. 8 0
      pagesHome/market/search.vue
  2. 7 7
      pagesHome/order/appraise.vue
  3. 1 1
      pagesHome/order/detail.vue

+ 8 - 0
pagesHome/market/search.vue

@@ -300,6 +300,14 @@
 					}
 
 				}
+
+				.screenList {
+					width: 17vw;
+					display: inline-block;
+					white-space: nowrap;
+					overflow: hidden;
+					text-overflow: ellipsis;
+				}
 			}
 
 			.two_2 {

+ 7 - 7
pagesHome/order/appraise.vue

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

+ 1 - 1
pagesHome/order/detail.vue

@@ -223,7 +223,7 @@
 				// 分享
 				share: {},
 				// 评论数
-				comment: '',
+				comment: 0,
 			};
 		},
 		onLoad: async function(e) {