From 252e18105791823288994c60b833e67b74eb93fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Thu, 17 Aug 2023 16:22:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A0=B7=E5=BC=8F=E5=92=8C?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/Viewprescription/Viewprescription.vue | 2 +- pages/add/add.vue | 20 +++++++++----------- pages/prescription/prescription.vue | 2 +- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/pages/Viewprescription/Viewprescription.vue b/pages/Viewprescription/Viewprescription.vue index 0fc7c53..a987b43 100644 --- a/pages/Viewprescription/Viewprescription.vue +++ b/pages/Viewprescription/Viewprescription.vue @@ -441,7 +441,7 @@ } .bindtitle { - width: 500rpx; + width: 470rpx; height: 50rpx; line-height: 70rpx; font-size: 24rpx; diff --git a/pages/add/add.vue b/pages/add/add.vue index f9dd079..3ecc48f 100644 --- a/pages/add/add.vue +++ b/pages/add/add.vue @@ -258,21 +258,19 @@ }, 1000) } else if (res.code == 500) { - - uni.showToast({ - title: res.msg, - duration: 2000, - mask: true, - icon: 'none' + console.log('11111111') + this.$refs.uToast.show({ + message: res.msg, + type: 'error', + duration: '2000' }) } }) }).catch(errors => { - uni.showToast({ - title: errors, - duration: 2000, - mask: true, - icon: 'none' + this.$refs.uToast.show({ + message: errors, + type: 'error', + duration: '2000' }) }) diff --git a/pages/prescription/prescription.vue b/pages/prescription/prescription.vue index d584449..efb7eed 100644 --- a/pages/prescription/prescription.vue +++ b/pages/prescription/prescription.vue @@ -515,7 +515,7 @@ } .bindtitle { - width: 500rpx; + width: 470rpx; height: 50rpx; line-height: 70rpx; font-size: 24rpx;