From dbc25ea37f82ce4bda0430d0fa473e12ca398517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Wed, 29 Dec 2021 17:05:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8=E6=B8=A0=E9=81=93=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/allot/detail/index.js | 9 ++++++++- pages/channel/index.js | 6 +++++- pages/index/index.js | 6 +++++- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/pages/allot/detail/index.js b/pages/allot/detail/index.js index 5872416..2e4cbaf 100644 --- a/pages/allot/detail/index.js +++ b/pages/allot/detail/index.js @@ -7,6 +7,8 @@ Page({ note:'', isShowReport:false, transport:[],//请上传运输单 + id:'', + tran_id:'', }, onLoad: function (options) { for (let key in options) { @@ -25,7 +27,12 @@ Page({ //获取订单详情 getAppTransfer(){ let params = {}; - params['id'] = this.data.id; + if(this.data.id != ''){ + params['id'] = this.data.id; + } + if(this.data.tran_id != ''){ + params['tran_id'] = this.data.tran_id; + } _.apiQuery.getAppTransfer(params).then(res=>{ this.setData({ info:res.data, diff --git a/pages/channel/index.js b/pages/channel/index.js index d3e994e..34b7188 100644 --- a/pages/channel/index.js +++ b/pages/channel/index.js @@ -48,12 +48,12 @@ Page({ this.getUserInfo() this.getAppCity() - this.getAppTransferRemind() }, onShow: function () { this.getHoursTip() + this.getAppTransferRemind() }, //候取时间 @@ -92,6 +92,10 @@ Page({ this.setData({ isShowReport:true, }) + }else{ + this.setData({ + isShowReport:false, + }) } }); }, diff --git a/pages/index/index.js b/pages/index/index.js index d42a356..a2ef67b 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -57,13 +57,13 @@ Page({ this.getAppStatisticsHcust() this.getAppStatisticsHorder() - this.getAppTransferRemind() }, onShow: function () { this.getAppUserCal() this.getHoursTip() + this.getAppTransferRemind() }, //候取时间 @@ -103,6 +103,10 @@ Page({ isShowReport:true, isShowNotice:false, }) + }else{ + this.setData({ + isShowReport:false, + }) } }); },