2 Commits bd13164d64 ... 8e8bb1282a

Author SHA1 Message Date
  LiChengjin 8e8bb1282a Merge remote-tracking branch 'origin/dev' into dev 2 months ago
  LiChengjin d3b284764b opt:修改订单详情页面早餐数量显示 2 months ago
1 changed files with 5 additions and 2 deletions
  1. 5 2
      subpkg/orderDetail/orderDetail.vue

+ 5 - 2
subpkg/orderDetail/orderDetail.vue

@@ -128,8 +128,11 @@
 					.paymentTime).format('YYYY-MM-DD HH:mm:ss')
 					.paymentTime).format('YYYY-MM-DD HH:mm:ss')
 				this.orderInfo.status = this.status[this.orderInfo.status]
 				this.orderInfo.status = this.status[this.orderInfo.status]
 				this.orderInfo.paymentStatus = this.paymentStatus[this.orderInfo.paymentStatus]
 				this.orderInfo.paymentStatus = this.paymentStatus[this.orderInfo.paymentStatus]
-				this.orderInfo.breakfastNum = this.orderInfo.breakfastNum === undefined ? 0 : this.orderInfo
-					.breakfastNum
+				if (this.orderInfo.breakfastNum === 0) {
+					this.orderInfo.breakfastNum = '不含早'
+				} else {
+					this.orderInfo.breakfastNum = `含${this.orderInfo.breakfastNum}早`
+				}
 				this.orderInfo.paymentMethod = this.paymentMethod[this.orderInfo.platform]
 				this.orderInfo.paymentMethod = this.paymentMethod[this.orderInfo.platform]
 			},
 			},
 			async deleteOrder() {
 			async deleteOrder() {