From d35fab34e3648b3c3f2ae8472a4847428cf3f3c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BF=E6=80=AA?= <690927457@qq.com> Date: Thu, 21 Mar 2024 18:17:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=A2=E9=98=85=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/done.vue | 21 ++++++++++++--------- pages/index/index.vue | 12 ++++++++++++ 2 files changed, 24 insertions(+), 9 deletions(-) diff --git a/pages/index/done.vue b/pages/index/done.vue index f72d8fd..b8dd0a6 100644 --- a/pages/index/done.vue +++ b/pages/index/done.vue @@ -23,15 +23,6 @@ swiper_h.value = store.systemInfo.windowHeight } getList() - uni.requestSubscribeMessage({ -          tmplIds: ['PgxoZOOSDgBcmIGd_EVLDkRzNPA6Cr4MWeG9m4OO3n0'], -          success: (res) => { -              console.log(res); -         }, - fail(res) { -  console.log(res); - } -     }) }) onPullDownRefresh(()=> { // 下拉刷新 init() @@ -86,6 +77,17 @@ } ]) // 函数 + function subscribeFunc() { + uni.requestSubscribeMessage({ +          tmplIds: ['PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY'], +          success: (res) => { +              console.log(res); +         }, + fail(res) { +  console.log(res); + } +     }) + } function init(){ // list.value = [] list_box.value[c_index.value].list = [] @@ -147,6 +149,7 @@ handle_info.value = item handle_info_index.value = i inputDialog.value.open() + subscribeFunc() } function finishFunc() { // api.todoFinished diff --git a/pages/index/index.vue b/pages/index/index.vue index 06818fc..72c459b 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -52,6 +52,17 @@ key:'' }) // 函数 + function subscribeFunc() { + uni.requestSubscribeMessage({ +          tmplIds: ['PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY'], +          success: (res) => { +              console.log(res); +         }, + fail(res) { +  console.log(res); + } +     }) + } async function getHospitalList() { const res = await api.getHospitalList(h_queryParams.value) if(res.code == 0) { @@ -162,6 +173,7 @@ // if(state_index === 0) { // url = '/pages/index/done?state_index='+state_index // } + subscribeFunc() uni.navigateTo({ url })