yuwenjun 4 years ago
parent
commit
069e1bf634
1 changed files with 1 additions and 12 deletions
  1. 1 12
      pages/index/index.vue

+ 1 - 12
pages/index/index.vue

@@ -134,12 +134,6 @@ export default {
 			waitShipmentsCount: 0, //待收货角标
 			shipmentsCount: 0, //已发货角标
 			salesReturnCount: 0, //退货/款角标
-
-			// paymentCount: 16,  //代付款
-			// salesReturnCount: 1,
-			// shipmentsCount: 2,
-			// waitShipmentsCount: 15,
-
 			organizeId: '',
 			refresh: false
 		}
@@ -161,12 +155,7 @@ export default {
 	},
 	filters: {
 		countNum(value) {
-			const numstr = value + ''
-			if (numstr.length > 2) {
-				return numstr.substr(0, 2) + '+'
-			} else {
-				return numstr
-			}
+			return value > 99 ? '99+' : value
 		}
 	},
 	methods: {