Commit 41a7252529acdfa779be7c3fb1bbf5c400527d94
1 parent
ed05fa97
物流
Showing
2 changed files
with
5 additions
and
9 deletions
packageF/pages/wuliu/wuliu.js
@@ -3,17 +3,15 @@ Page({ | @@ -3,17 +3,15 @@ Page({ | ||
3 | data:{ | 3 | data:{ |
4 | isLoad:0, | 4 | isLoad:0, |
5 | url: os.imghost, | 5 | url: os.imghost, |
6 | - show:0 | ||
7 | }, | 6 | }, |
8 | onLoad:function(t){ | 7 | onLoad:function(t){ |
9 | var th=this; | 8 | var th=this; |
10 | var order_id=t.order_id; | 9 | var order_id=t.order_id; |
11 | getApp().promiseGet('/api/weshop/order/getWaybillToken/'+os.stoid+'/'+order_id,{}).then(res=>{ | 10 | getApp().promiseGet('/api/weshop/order/getWaybillToken/'+os.stoid+'/'+order_id,{}).then(res=>{ |
12 | - | ||
13 | if(res.data.code==0){ | 11 | if(res.data.code==0){ |
14 | th.data.isLoad=1; | 12 | th.data.isLoad=1; |
15 | - this.setData({show:0}); | ||
16 | setTimeout(()=>{ | 13 | setTimeout(()=>{ |
14 | + var arr = getCurrentPages(); | ||
17 | var plugin = requirePlugin("logisticsPlugin"); | 15 | var plugin = requirePlugin("logisticsPlugin"); |
18 | plugin.openWaybillTracking({ | 16 | plugin.openWaybillTracking({ |
19 | waybillToken: res.data.data | 17 | waybillToken: res.data.data |
@@ -31,15 +29,11 @@ Page({ | @@ -31,15 +29,11 @@ Page({ | ||
31 | }) | 29 | }) |
32 | }, | 30 | }, |
33 | onShow: function(){ | 31 | onShow: function(){ |
34 | - this.setData({show:0}) | ||
35 | if(this.data.isLoad){ | 32 | if(this.data.isLoad){ |
36 | this.data.isLoad=0; | 33 | this.data.isLoad=0; |
37 | wx.navigateBack({ delta: 1 }) //返回上一页 | 34 | wx.navigateBack({ delta: 1 }) //返回上一页 |
38 | return false; | 35 | return false; |
39 | } | 36 | } |
40 | - this.setData({show:1}) | ||
41 | - | ||
42 | - | ||
43 | } | 37 | } |
44 | 38 | ||
45 | 39 |
packageF/pages/wuliu/wuliu.wxml
1 | -<view wx:if="{{show}}" class="flex j_c a_c" style="height:80vh"> | 1 | +<view class="flex j_c a_c" style="height:80vh"> |
2 | <view> | 2 | <view> |
3 | - <view style="text-align:center">查询中</view> | 3 | + <view style="text-align:center"> |
4 | + 查询中 | ||
5 | + </view> | ||
4 | <view class="loading4"> | 6 | <view class="loading4"> |
5 | <text class="three1"></text> | 7 | <text class="three1"></text> |
6 | <text class="three2" style="margin-left:15rpx"></text> | 8 | <text class="three2" style="margin-left:15rpx"></text> |