fix:修改订阅

This commit is contained in:
2024-03-20 22:38:04 +08:00
parent 5d6abb0219
commit 90b72393be
5 changed files with 42 additions and 9 deletions

View File

@@ -23,6 +23,15 @@
swiper_h.value = store.systemInfo.windowHeight
}
getList()
uni.requestSubscribeMessage({
         tmplIds: ['PgxoZOOSDgBcmIGd_EVLDkRzNPA6Cr4MWeG9m4OO3n0'],
         success: (res) => {
             console.log(res);
        },
fail(res) {
 console.log(res);
}
    })
})
onPullDownRefresh(()=> { // 下拉刷新
init()

View File

@@ -19,12 +19,9 @@
if(!store.userInfo) { //没登录过
// console.log("没有store.userInfo",store.userInfo)
// getHospitalList()
setTimeout(()=>{
inputDialog.value.open()
},0)
// uni.navigateTo({
// url:'/pages/login/login'
// })
// setTimeout(()=>{
// inputDialog.value.open()
// },0)
} else {
setTimeout(()=>{
inputDialog.value.close()

View File

@@ -99,6 +99,21 @@
uni.showLoading({
mask:true
})
// 判断是否登录
let is_login = util.checkLogin()
if(!is_login) {
uni.showToast({
title:'请先登录',
icon:"error",
duration:2000,
mask:true,
success() {
store.afterFailLogin(2000)
}
})
return
}
// 判断是否有手术信息
let operation_info = null
if(uni.getStorageSync('operation_info')) {
operation_info = JSON.parse(uni.getStorageSync('operation_info'))
@@ -133,6 +148,18 @@
}
})
}
} else {
uni.showToast({
title:'请填写手术信息',
icon:"error",
duration:2000,
mask:true,
success() {
setTimeout(() => {
store.toProfile()
},2000)
}
})
}
uni.hideLoading();
}