From c212c9ab501e1aff9e2dd90e8e87871c0bc7f1bc Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期二, 30 七月 2024 14:03:29 +0800 Subject: [PATCH] fix bug --- pages/home/home.vue | 11 ++++++----- 1 files changed, 6 insertions(+), 5 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index af3d8c6..f96d8b9 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -23,7 +23,7 @@ <view class="flex1 input"> <u-input placeholder="请输入花名" v-model="search_flow"> <template slot="suffix"> - <uni-icons color="#20613D" type="search" size="24" @tap="buttonSearchFlow"></uni-icons> + <uni-icons color="#20613D" type="search" size="24" @click="buttonSearchFlow"></uni-icons> </template> </u-input> </view> @@ -226,14 +226,15 @@ },2000) //公告 - this.$http.request('get', '/api/announcement/page', { + this.$http.request('get', '/api/pub/announcement/list', { params: { size: 5, - status: 'A' + // status: 'A' } }).then(res => { - if (res.code === 0) { - this.noticeList = (res.data && res.data.records || []) + if (res.code === 0) { + // (res.data && res.data.records || []) + this.noticeList = res.data || [] console.log('this.noticeList', this.noticeList) if (this.noticeList.length > 0) { this.currentNotice = this.noticeList[0] -- Gitblit v1.9.3