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;