4 Commits 8279cfe2a6 ... cd381e3f9c

Author SHA1 Message Date
  ycm cd381e3f9c 扫码 2 years ago
  ycm e42cc7dae7 Merge branch 'master' of http://git.nanodreamtech.com/dream/laundry 2 years ago
  ycm b5e9bf0c43 扫码 2 years ago
  ycm 3b49e5152d 扫码 2 years ago
1 changed files with 15 additions and 12 deletions
  1. 15 12
      pages/order/access/access.js

+ 15 - 12
pages/order/access/access.js

@@ -56,7 +56,7 @@ Page({
             onlyFromCamera: true,
             success: (result) => {
                 var url=result.result;
-                var network_id=this.data.network_id?this.data.network_id:getQueryVariable(url,"network_id");
+                var network_id=this.data.network_id?this.data.network_id:app.getQueryVariable(url,"network_id");
                 var order_num=app.getQueryVariable(url,"orde_num");
                 wx.navigateTo({
                   url: '/pages/order/deposit/deposit?network_id='+network_id+"&order_num="+order_num+"&is_deposit=0",
@@ -112,17 +112,20 @@ Page({
             network_id:this.data.network_id
         }).then((res)=>{
             if(res.code!=200){
-                wx.showToast({
-                    title: res.message.msg,
-                    icon:"none",
-                    success:function(){
-                       setTimeout(() => {
-                           wx.hideLoading({
-                             success: (res) => {},
-                           })
-                       }, 2000);
-                    }
-                  })
+                setTimeout(() => {
+                    that.getDeviceinfo(order_num)
+                }, 1000);
+                // wx.showToast({
+                //     title: res.message.msg,
+                //     icon:"none",
+                //     success:function(){
+                //        setTimeout(() => {
+                //            wx.hideLoading({
+                //              success: (res) => {},
+                //            })
+                //        }, 2000);
+                //     }
+                //   })
             }else{
                 wx.hideLoading()
                 var orders=res.message.data;