fix: 订阅提示

This commit is contained in:
阿怪 2024-03-21 18:17:06 +08:00
parent cad3bd0c69
commit d35fab34e3
2 changed files with 24 additions and 9 deletions

View File

@ -23,15 +23,6 @@
swiper_h.value = store.systemInfo.windowHeight swiper_h.value = store.systemInfo.windowHeight
} }
getList() getList()
uni.requestSubscribeMessage({
         tmplIds: ['PgxoZOOSDgBcmIGd_EVLDkRzNPA6Cr4MWeG9m4OO3n0'],
         success: (res) => {
             console.log(res);
        },
fail(res) {
 console.log(res);
}
    })
}) })
onPullDownRefresh(()=> { // onPullDownRefresh(()=> { //
init() init()
@ -86,6 +77,17 @@
} }
]) ])
// //
function subscribeFunc() {
uni.requestSubscribeMessage({
         tmplIds: ['PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY'],
         success: (res) => {
             console.log(res);
        },
fail(res) {
 console.log(res);
}
    })
}
function init(){ function init(){
// list.value = [] // list.value = []
list_box.value[c_index.value].list = [] list_box.value[c_index.value].list = []
@ -147,6 +149,7 @@
handle_info.value = item handle_info.value = item
handle_info_index.value = i handle_info_index.value = i
inputDialog.value.open() inputDialog.value.open()
subscribeFunc()
} }
function finishFunc() { function finishFunc() {
// api.todoFinished // api.todoFinished

View File

@ -52,6 +52,17 @@
key:'' key:''
}) })
// //
function subscribeFunc() {
uni.requestSubscribeMessage({
         tmplIds: ['PgxoZOOSDgBcmIGd_EVLDnYUmL3eu6NQTAZCsHQeuWY'],
         success: (res) => {
             console.log(res);
        },
fail(res) {
 console.log(res);
}
    })
}
async function getHospitalList() { async function getHospitalList() {
const res = await api.getHospitalList(h_queryParams.value) const res = await api.getHospitalList(h_queryParams.value)
if(res.code == 0) { if(res.code == 0) {
@ -162,6 +173,7 @@
// if(state_index === 0) { // if(state_index === 0) {
// url = '/pages/index/done?state_index='+state_index // url = '/pages/index/done?state_index='+state_index
// } // }
subscribeFunc()
uni.navigateTo({ uni.navigateTo({
url url
}) })