Browse Source

增加功能

lifanzai 9 months ago
parent
commit
1276d3d75a
1 changed files with 8 additions and 3 deletions
  1. 8 3
      pages/house/orderInfo.vue

+ 8 - 3
pages/house/orderInfo.vue

@@ -68,7 +68,7 @@
 			</u-cell-group>
 			<!-- 按钮 -->
 			<view class="button">
-				<button class="edit">编辑订单</button>
+				<button class="edit" @click="editOrder(id)">编辑订单</button>
 				<button  class="goRoom">办理入住</button>
 			</view>
 		</view>
@@ -96,7 +96,7 @@
 					// console.log(res)
 					if(res.data.code==0){
 						this.orderInfo = res.data.data
-						console.log(this.orderInfo)
+						// console.log(this.orderInfo)
 					}
 				})
 			},
@@ -116,11 +116,16 @@
 					return '状态异常'
 				}
 			},
-			goStayCheck(){
+			goStayCheck(id){
 				uni.navigateTo({
 				  url: '/pages/house/stayCheck'
 				})
 				// console.log(1111)
+			},
+			editOrder(id){
+				uni.navigateTo({
+					url:`/pages/house/stayCheck?id=${this.orderId}`
+				})
 			}
 		},
 		computed:{