ycm 2 years ago
parent
commit
3b49e5152d
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",
@@ -96,17 +96,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;