@dongkboy 1 月之前
父節點
當前提交
8471c0d99e
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      pages/orders/orders1.vue

+ 4 - 3
pages/orders/orders1.vue

@@ -119,8 +119,9 @@
 						<view v-for="(cardAllitem,cardAllindex) in cardAllbtns(item.orderStatus)" :key="cardAllindex"
 							@click="cardAllbtnChange(cardAllitem.value,item.mainDetails[cardAllitem.value],'ITEM')">
 							<text>{{cardAllitem.label}}</text>
-							<u-badge numberType="overflow" :max="99" :value="1" :absolute="true" bgColor="#FF4545"
-								:offset="[-5,-16]" style="font-size: 18rpx;"></u-badge>
+							<u-badge numberType="overflow" :max="99" :value="item.mainDetails[cardAllitem.value].length"
+								:absolute="true" bgColor="#FF4545" :offset="[-5,-16]"
+								style="font-size: 18rpx;"></u-badge>
 						</view>
 						<view @click="cardAllbtnChangeAll(item.mainDetails,'ALL')">查看全部</view>
 					</view>
@@ -794,7 +795,7 @@
 			 * @param {Object} list   该状态下的所有报价记录
 			 */
 			cardAllbtnChange(value, list, identifier) {
-				console.log(value, list);
+				console.log(value, list, identifier);
 				this.cardAllbtnsIndex = value;
 				this.bigOrderIndicator = identifier;
 				this.subOrderStatusModalList.map(val => {