From 51ecf9b3b28d37531aa8cff7cda417030ea21539 Mon Sep 17 00:00:00 2001 From: linxi Date: Thu, 19 Sep 2024 15:35:23 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E3=80=90=E5=95=86=E5=9F=8E=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F=E3=80=91=E5=BE=85=E6=94=B6=E8=B4=A7=E3=80=81?= =?UTF-8?q?=E5=BE=85=E8=AF=84=E4=BB=B7=E8=AE=A2=E5=8D=95=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E2=80=94=E7=89=A9=E6=B5=81=E5=8C=BA=E5=9F=9F=EF=BC=8C?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E6=98=BE=E7=A4=BA=E6=9C=80=E6=96=B0=E4=B8=80?= =?UTF-8?q?=E6=9D=A1=E7=89=A9=E6=B5=81=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/OrderDetails/index.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pages/order/OrderDetails/index.vue b/pages/order/OrderDetails/index.vue index b5dabe4..88d15ff 100644 --- a/pages/order/OrderDetails/index.vue +++ b/pages/order/OrderDetails/index.vue @@ -39,7 +39,7 @@ - {{ logistics.reason }} + {{ logistics.reason }} @@ -493,7 +493,6 @@ export default { // inject: ["app"], mounted: function () { this.id = this.$yroute.query.id; - this.getExpressInfo() }, methods: { copyClipboard, @@ -505,15 +504,16 @@ export default { }; express(params) .then(res => { - this.logistics = res.data + this.logistics = res.data || {} + console.log(this.logistics); }) .catch(err => { - uni.showToast({ - title: - err.msg || err.response.data.msg || err.response.data.message, - icon: "none", - duration: 2000 - }); + // uni.showToast({ + // title: + // err.msg || err.response.data.msg || err.response.data.message, + // icon: "none", + // duration: 2000 + // }); }); }, goLogistics(order) { @@ -828,6 +828,7 @@ export default { this.system_store = res.data.systemStore || {}; this.mapKey = res.data.mapKay; this.setOfflinePayStatus(this.orderInfo.offlinePayStatus); + this.getExpressInfo() }) .catch(err => { uni.showToast({