From e57a0efbf13df9e17537be564c03e5739e675eb3 Mon Sep 17 00:00:00 2001 From: Hx <2294602187@qq.com> Date: Wed, 2 Apr 2025 10:06:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 5 +++-- src/pages/electionList/index.vue | 17 ++--------------- src/pages/login/login.vue | 15 +++++++++++---- src/pages/mine/index.vue | 25 ++++++++++++++++++++++--- src/pages/myElection/index.vue | 2 +- src/pages/votingElection/index.vue | 21 ++++++++++++++------- src/store/user.ts | 3 +-- src/utils/common.ts | 13 +++++++++++++ 8 files changed, 67 insertions(+), 34 deletions(-) diff --git a/src/api/user.ts b/src/api/user.ts index d348453..8f64218 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -14,13 +14,14 @@ export interface dateListtype extends listType { id: number } -export function infoForOpenid(data: { openid: string }) { +export function infoForOpenid(data: { openid: string; mobile: string }) { return request.http({ - url: '/api/member', + url: '/api/member_mobile', method: 'GET', data }) } + export function list(data: { name: string }) { return request.http({ url: '/api/member_name', diff --git a/src/pages/electionList/index.vue b/src/pages/electionList/index.vue index 43c7565..7c196f4 100644 --- a/src/pages/electionList/index.vue +++ b/src/pages/electionList/index.vue @@ -9,19 +9,6 @@ const doSearch = (formData: { page: number; limit: number }, onSuccess: Function onSuccess({ data }) }) } - -const setInerval = ref() - -onShow(() => { - setInerval.value = setInterval(() => { - reListRef.value.refreshFn() - }, 5000) -}) - -onHide(() => { - clearInterval(setInerval.value) - setInerval.value = null -})