浏览代码

feat: 订单bug

2912631854@qq.com 1 年之前
父节点
当前提交
940c9dbcc2
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 4 2
      pages/HotelMerchandise/record.vue
  2. 1 1
      pages/house/orderDetails.vue

+ 4 - 2
pages/HotelMerchandise/record.vue

@@ -61,14 +61,16 @@
 				}).then(res => {
 				}).then(res => {
 					if (res.data.code == 0) {
 					if (res.data.code == 0) {
 						var arr = []
 						var arr = []
+						var number = 0
 						res.data.data.list.forEach((item, index) => {
 						res.data.data.list.forEach((item, index) => {
-							this.totalAmount += item.orderAmount
+							number += item.orderAmount
 						});
 						});
+						this.totalAmount = number.toFixed(1)
 						this.totalNum = res.data.data.total;
 						this.totalNum = res.data.data.total;
 						this.data = res.data.data.list;
 						this.data = res.data.data.list;
 					}
 					}
 					console.log(res)
 					console.log(res)
-				})
+				}) i
 			},
 			},
 
 
 			confirmDate(e) {
 			confirmDate(e) {

+ 1 - 1
pages/house/orderDetails.vue

@@ -70,7 +70,7 @@
 				</u-cell>
 				</u-cell>
 
 
 				<u-cell :border="false" v-if="list.comboType==2">
 				<u-cell :border="false" v-if="list.comboType==2">
-					<text slot="icon" class="txt">就餐数</text>
+					<text slot="icon" class="txt">就餐数</text>
 					>
 					>
 					<text slot="title" class="val">{{list.num}}</text>
 					<text slot="title" class="val">{{list.num}}</text>
 				</u-cell>
 				</u-cell>