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