From fcc0076c3507bc4e544c3cb3915204937fa46f60 Mon Sep 17 00:00:00 2001 From: qx <1084500556@qq.com> Date: 星期三, 06 八月 2025 11:15:42 +0800 Subject: [PATCH] qxtj --- pages/fg/fg.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/pages/fg/fg.vue b/pages/fg/fg.vue index ffe1252..b644ace 100644 --- a/pages/fg/fg.vue +++ b/pages/fg/fg.vue @@ -16,8 +16,8 @@ <view class="header"> <view class="search-bar"> <uni-icons class="search-icon" type="search" size="18" color="#999"></uni-icons> - <input type="text" placeholder="鎼滅储鍖婚櫌" placeholder-class="placeholder" /> - <view class="search-btn">鎼滅储</view> + <input type="text" placeholder="鎼滅储鍖婚櫌" placeholder-class="placeholder" v-model="name"/> + <view class="search-btn" @click="search">鎼滅储</view> </view> <!-- <view class="filter-bar"> <view class="filter-item"> @@ -142,6 +142,7 @@ value: 'other' } ], + name: '', timeOptions: [ '褰撴棩鍙害', '娆℃棩鍙害', @@ -165,6 +166,14 @@ this.getList(); }, methods: { + search(){ + getHospList({ + hospName:this.name + }).then((response) => { + this.hosplist = response.data; + + }); + }, /** 鏌ヨ闄㈠尯淇℃伅鍒楄〃 */ getList() { getHospList(this.queryParams).then((response) => { -- Gitblit v1.8.0