ycm 2 vuotta sitten
vanhempi
sitoutus
d8cefa7bb2

+ 4 - 0
pages/order/access/access.js

@@ -88,6 +88,9 @@ Page({
      */
     getDeviceinfo:function(order_num){
         var that=this;
+        wx.showLoading({
+          title: '加载中...',
+        })
         app.api.useApi(app.globalData.baseAppUrl+"api/order/getDeviceinfo",{
             order_num:order_num,
             network_id:this.data.network_id
@@ -105,6 +108,7 @@ Page({
                     }
                   })
             }else{
+                wx.hideLoading()
                 var orders=res.message.data;
                 that.setData({
                     orders:orders

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

@@ -237,7 +237,9 @@ Page({
                     }, 1000);
 
                 } else {
-                    that.getorderList(that.data.order_type, that.data.netwrok_id);
+                    let p = getCurrentPages().pop().options
+                    console.log(p);
+                    that.getorderList(p.order_type, p.network_id);
                     console.log(res);
                     if (is_deposit == 1) {
                         that.storeClothes()

+ 0 - 1
pages/order/detail/detail.js

@@ -143,7 +143,6 @@ Page({
         })
     },
     copy(e){
-        
         wx.setClipboardData({
             data: e.currentTarget.dataset.no,
             success (res) {