Commit 4376a9307ffa7ea7ee70e1f0c3de31fc96572df1

Authored by WXD-SEASON\season
2 parents a6ab719c 41a72525

Merge branch 'dev_oa_fu5' into dev

... ... @@ -1314,24 +1314,10 @@ App({
1314 1314 if(conf && conf.express_searchtype==1){
1315 1315 //在此通过调用api来查询微信快递服务详情
1316 1316 //必须用预览才能测试这个功能,无法在工具端模拟
1317   - var res= await th.promiseGet('/api/weshop/order/getWaybillToken/'+stoid+'/'+order_id,{});
1318   - if(res.data.code==0){
1319   - var plugin = requirePlugin("logisticsPlugin")
1320   - plugin.openWaybillTracking({
1321   - waybillToken: res.data.data
1322   - });
1323   - }else{
1324   - var msg="查询物流失败";
1325   - if(res.data.msg) msg=res.data.msg;
1326   - wx.showToast({
1327   - title: msg,
1328   - icon: 'none',
1329   - duration: 1000,
1330   - });
1331   - }
1332   - }else{
1333   - getApp().goto(url);
  1317 + url="/packageF/pages/wuliu/wuliu?order_id="+order_id;
1334 1318 }
  1319 + th.goto(url);
  1320 +
1335 1321 })
1336 1322 }
1337 1323  
... ...
packageF/pages/wuliu/wuliu.js 0 → 100644
  1 +var os=getApp().globalData.setting;
  2 +Page({
  3 + data:{
  4 + isLoad:0,
  5 + url: os.imghost,
  6 + },
  7 + onLoad:function(t){
  8 + var th=this;
  9 + var order_id=t.order_id;
  10 + getApp().promiseGet('/api/weshop/order/getWaybillToken/'+os.stoid+'/'+order_id,{}).then(res=>{
  11 + if(res.data.code==0){
  12 + th.data.isLoad=1;
  13 + setTimeout(()=>{
  14 + var arr = getCurrentPages();
  15 + var plugin = requirePlugin("logisticsPlugin");
  16 + plugin.openWaybillTracking({
  17 + waybillToken: res.data.data
  18 + });
  19 + },100)
  20 + }else{
  21 + var msg="查询物流失败";
  22 + if(res.data.msg) msg=res.data.msg;
  23 + wx.showToast({
  24 + title: msg,
  25 + icon: 'none',
  26 + duration: 1000,
  27 + });
  28 + }
  29 + })
  30 + },
  31 + onShow: function(){
  32 + if(this.data.isLoad){
  33 + this.data.isLoad=0;
  34 + wx.navigateBack({ delta: 1 }) //返回上一页
  35 + return false;
  36 + }
  37 + }
  38 +
  39 +
  40 +});
... ...
packageF/pages/wuliu/wuliu.json 0 → 100644
  1 +{}
0 2 \ No newline at end of file
... ...
packageF/pages/wuliu/wuliu.wxml 0 → 100644
  1 +<view class="flex j_c a_c" style="height:80vh">
  2 + <view>
  3 + <view style="text-align:center">
  4 + 查询中
  5 + </view>
  6 + <view class="loading4">
  7 + <text class="three1"></text>
  8 + <text class="three2" style="margin-left:15rpx"></text>
  9 + <text class="three3" style="margin-left:15rpx"></text>
  10 + </view>
  11 + </view>
  12 +</view>
... ...
packageF/pages/wuliu/wuliu.wxss 0 → 100644
  1 +.flex{
  2 + display: flex
  3 +}
  4 +.j_c{ justify-content: center}
  5 +.a_c{ align-items: center}
  6 +
  7 +.loading4{
  8 + width:150px;
  9 + margin:10px auto;
  10 + text-align: center;
  11 +}
  12 +.loading4 text{
  13 + width: 24rpx;
  14 + height: 24rpx;
  15 + border-radius: 100%;
  16 + display:inline-block;
  17 + /*background-color: #67CF22;*/
  18 + background-color: #999;
  19 + -webkit-animation: three 1.4s infinite ease-in-out;
  20 + animation: three 1.4s infinite ease-in-out;
  21 + -webkit-animation-fill-mode: both;
  22 + animation-fill-mode: both;
  23 +}
  24 +.loading4 .three1{
  25 + -webkit-animation-delay: -0.30s;
  26 + animation-delay: -0.30s;
  27 +}
  28 +.loading4 .three2{
  29 + -webkit-animation-delay: -0.15s;
  30 + animation-delay: -0.15s;
  31 +}
  32 +@-webkit-keyframes three {
  33 + 0%, 80%, 100% {-webkit-transform: scale(0.0) }
  34 + 40% { -webkit-transform: scale(1.0) }
  35 +}
  36 +@keyframes three {
  37 + 0%, 80%, 100% {-webkit-transform: scale(0.0) }
  38 + 40% { -webkit-transform: scale(1.0) }
  39 +}
0 40 \ No newline at end of file
... ...
pages/index/index/index.js
... ... @@ -91,9 +91,7 @@ Page({
91 91  
92 92  
93 93 onLoad: async function (tt) {
94   - console.error('分享群id');
95   - console.error(tt);
96   - console.error('...................................');
  94 +
97 95 wx.showShareMenu({
98 96 withShareTicket:true,
99 97 menus:['shareAppMessage','shareTimeline']
... ...