diff --git a/src/patient/pages/medical/index.ts b/src/patient/pages/medical/index.ts index dbe56af..8992eaf 100644 --- a/src/patient/pages/medical/index.ts +++ b/src/patient/pages/medical/index.ts @@ -204,11 +204,12 @@ Page({ }, handleHosSure() { const { hostipalList, hIndex } = this.data - if (!hIndex) { + if (hIndex === '') { wx.showToast({ icon: 'none', title: '请选择医院', }) + return } const hItem = hostipalList[hIndex] this.setData({