Commit 41a7252529acdfa779be7c3fb1bbf5c400527d94

Authored by yvan.ni
1 parent ed05fa97

物流

packageF/pages/wuliu/wuliu.js
... ... @@ -3,17 +3,15 @@ Page({
3 3 data:{
4 4 isLoad:0,
5 5 url: os.imghost,
6   - show:0
7 6 },
8 7 onLoad:function(t){
9 8 var th=this;
10 9 var order_id=t.order_id;
11 10 getApp().promiseGet('/api/weshop/order/getWaybillToken/'+os.stoid+'/'+order_id,{}).then(res=>{
12   -
13 11 if(res.data.code==0){
14 12 th.data.isLoad=1;
15   - this.setData({show:0});
16 13 setTimeout(()=>{
  14 + var arr = getCurrentPages();
17 15 var plugin = requirePlugin("logisticsPlugin");
18 16 plugin.openWaybillTracking({
19 17 waybillToken: res.data.data
... ... @@ -31,15 +29,11 @@ Page({
31 29 })
32 30 },
33 31 onShow: function(){
34   - this.setData({show:0})
35 32 if(this.data.isLoad){
36 33 this.data.isLoad=0;
37 34 wx.navigateBack({ delta: 1 }) //返回上一页
38 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 2 <view>
3   - <view style="text-align:center">查询中</view>
  3 + <view style="text-align:center">
  4 + 查询中
  5 + </view>
4 6 <view class="loading4">
5 7 <text class="three1"></text>
6 8 <text class="three2" style="margin-left:15rpx"></text>
... ...