tanyanfei 4 years ago
parent
commit
cd31b68b05
1 changed files with 3 additions and 2 deletions
  1. 3 2
      pages/hotel/hotel.js

+ 3 - 2
pages/hotel/hotel.js

@@ -77,6 +77,7 @@ Page({
     data.id = this.data.aid;
     data.room_stime=this.data.s_time;
     data.room_etime = this.data.e_time;
+    data.room_nums = this.data.room_nums;
     wx.request({
       url: host + '/api/user/signup',
       method: 'PUT',
@@ -86,8 +87,8 @@ Page({
           wx.showToast({
             title: '预定成功',
           })
-          this.setData({
-            show: 0
+          wx.navigateTo({
+            url: '../order/order',
           })
         } else {
           wx.showToast({