申请加入工会带工会ID跳到搜索页面

This commit is contained in:
2025-12-05 19:21:54 +08:00
parent 5dca8e3846
commit 4f66ae058c

View File

@@ -166,7 +166,8 @@
popupStstus: 0, popupStstus: 0,
messageText: "", messageText: "",
msgType: "success", msgType: "success",
statusData: null statusData: null,
guild_id: ''
} }
}, },
@@ -189,6 +190,9 @@
uni.$on('refreshList', (data) => { uni.$on('refreshList', (data) => {
this.refreshList(); // 执行刷新方法 this.refreshList(); // 执行刷新方法
}); });
if (options.guild_id) {
this.guild_id = options.guild_id
}
}, },
onUnload() { onUnload() {
// 页面卸载时移除事件监听,避免内存泄漏和重复监听 // 页面卸载时移除事件监听,避免内存泄漏和重复监听
@@ -360,9 +364,15 @@
}, },
// 申请加入公会,跳转至列表页 // 申请加入公会,跳转至列表页
applyUnion() { applyUnion() {
uni.navigateTo({ if(this.guild_id==''){
url: `/pages/union/list` uni.navigateTo({
}) url: `/pages/union/list`
})
}else{
uni.navigateTo({
url: `/pages/union/list?guild_id=${this.guild_id}`
})
}
}, },
reportUnion() { reportUnion() {
uni.navigateTo({ uni.navigateTo({