实现建制点击详细跳转未来规划
This commit is contained in:
parent
9d2c30f506
commit
6e8b40cf9a
|
|
@ -74,6 +74,7 @@ export default {
|
|||
console.log(rawData);
|
||||
this.institutionalData =
|
||||
InstitutionalDataFormatter.transformData(rawData);
|
||||
console.log("更新的数据", this.institutionalData);
|
||||
try {
|
||||
console.log("建制数据已更新, 数量:", this.institutionalData.length);
|
||||
} catch (error) {
|
||||
|
|
@ -88,17 +89,30 @@ export default {
|
|||
// 处理查看详细
|
||||
handleViewDetail(data) {
|
||||
console.log("查看详细:", data.item);
|
||||
// 跳转到捐款记录页面,传递建制ID
|
||||
uni.navigateTo({
|
||||
url: `/pages/institutionalStructure/donationRecord?formedId=${data.item.formedId}`,
|
||||
fail: (err) => {
|
||||
console.error("跳转失败:", err);
|
||||
uni.showToast({
|
||||
title: "页面跳转失败",
|
||||
icon: "none",
|
||||
});
|
||||
},
|
||||
});
|
||||
if (data.item.topRight === "进行中") {
|
||||
uni.navigateTo({
|
||||
url: `/pages/future/future?formedId=${data.item.formedId}`,
|
||||
fail: (err) => {
|
||||
console.error("跳转失败:", err);
|
||||
uni.showToast({
|
||||
title: "页面跳转失败",
|
||||
icon: "none",
|
||||
});
|
||||
},
|
||||
});
|
||||
} else {
|
||||
// 跳转到捐款记录页面,传递建制ID
|
||||
uni.navigateTo({
|
||||
url: `/pages/institutionalStructure/donationRecord?formedId=${data.item.formedId}`,
|
||||
fail: (err) => {
|
||||
console.error("跳转失败:", err);
|
||||
uni.showToast({
|
||||
title: "页面跳转失败",
|
||||
icon: "none",
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user