luck 2 years ago
parent
commit
de7f2bc4a1
2 changed files with 5 additions and 5 deletions
  1. 2 2
      pages/order/access/access.js
  2. 3 3
      pages/order/deposit/deposit.js

+ 2 - 2
pages/order/access/access.js

@@ -21,7 +21,7 @@ Page({
         if(options.q){
             var url=decodeURIComponent(options.q)
             var order_num=app.getQueryVariable(url,"orde_num");
-            var network_id=app.getQueryVariable(url,"network_id");
+            var network_id=wx.getStorageSync('nid');
         }
         this.setData({
             network_id:network_id,
@@ -35,7 +35,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;
             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=1"

+ 3 - 3
pages/order/deposit/deposit.js

@@ -32,7 +32,7 @@ Page({
         var netwrok_id = options.network_id;
         var order_num = options.order_num;
         var is_deposit = options.is_deposit;
-        var device_id = options.device_id;
+        var device_id = options.device_id?options.device_id:0;
 
         console.log(options);
         this.setData({
@@ -129,7 +129,7 @@ Page({
 
         app.api.useApi(app.globalData.baseAppUrl + "api/order/index", data, "get").then(function (res) {
             if (res.code != 200) {
-                console.log(res.message.msg)
+                console.log(res)
                 wx.showLoading({
                     title: '订单加载失败',
                 })
@@ -144,7 +144,7 @@ Page({
             wx.hideLoading();
 
         }).catch(function (err) {
-            console.log(222);
+            console.log(err);
         })
     },
     opentask(no = "", type = "") {