From df67ab05c1ccab157f3f9f375cf35533db9d4a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E5=8F=B6?= Date: Thu, 10 Feb 2022 10:38:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=8B=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/allot/detail/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/allot/detail/index.js b/pages/allot/detail/index.js index 662e0a4..5580acf 100644 --- a/pages/allot/detail/index.js +++ b/pages/allot/detail/index.js @@ -10,6 +10,7 @@ Page({ transport:[],//请上传运输单 id:'',//查看id tran_id:'',//操作ID + mileage:'',//里程数 }, onLoad: function (options) { for (let key in options) { @@ -193,7 +194,7 @@ Page({ //确认发车/接车 putAppTransfer() { let that = this - if (that.data.mileage == ''){ + if (!that.data.mileage||that.data.mileage == ''){ wx.showToast({ title: '请填定里程数', icon: 'none'