From 5bfc1352e82140ac098b9f0537cc7d1457c87122 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期二, 05 八月 2025 10:44:04 +0800 Subject: [PATCH] 1 --- 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