diff --git a/滦平县报告对比/pages/main/home/home.vue b/滦平县报告对比/pages/main/home/home.vue index d6943f4..39ea95c 100644 --- a/滦平县报告对比/pages/main/home/home.vue +++ b/滦平县报告对比/pages/main/home/home.vue @@ -23,14 +23,18 @@ const id_number = ref('') const phone=ref('') const toPage = () => { + if(id_number.value.length===0 || phone.value.length===0){ + uni.$lu.toast("请输入身份证和电话"); + return false; + } uni.navigateTo({ url: `/pages/main/list/list?hospital=4&id_number=${id_number.value}&phone=${phone.value}` }) } \ No newline at end of file