zhaoxw 4 жил өмнө
parent
commit
3001e56c58

+ 1 - 1
pagesMain/orderDetail.vue

@@ -189,7 +189,7 @@
 			}, 'GET').then(res => {
 			}, 'GET').then(res => {
 				this.orderData = res.data
 				this.orderData = res.data
 				if (this.orderData.addOrderTime) {
 				if (this.orderData.addOrderTime) {
-					let tempTime = new Date(this.orderData.addOrderTime).getTime()
+					let tempTime = new Date(this.orderData.addOrderTime.replace(/\-/g, '/')).getTime()
 					let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
 					let addTempTime = new Date(tempTime + 1000 * 60 * 60 * 24)
 					let addYear = addTempTime.getFullYear()
 					let addYear = addTempTime.getFullYear()
 					let addMonth = addTempTime.getMonth() + 1
 					let addMonth = addTempTime.getMonth() + 1