feat: 新增拼团

This commit is contained in:
2026-09-23 10:29:41 +08:00
parent f7b9e66172
commit 67f8b3f352
33 changed files with 7491 additions and 858 deletions
+23 -1
View File
@@ -48,11 +48,33 @@
const leftPath = this.leftPath;
const leftPathType = this.leftPathType;
if(leftPathType === "navigateTo"){
uni.navigateBack();
const pages = getCurrentPages();
if (pages && pages.length > 1) {
const prevPage = pages[pages.length - 2];
const route = prevPage ? (prevPage.route || (prevPage.$page && prevPage.$page.route)) : '';
if (!leftPath || (route && leftPath.includes(route))) {
uni.navigateBack();
return;
}
}
if (leftPath) {
uni.redirectTo({
url: leftPath,
fail: () => {
uni.navigateTo({ url: leftPath });
}
});
} else {
uni.navigateBack();
}
}else if(leftPathType === "switchTab" && leftPath){
uni.switchTab({
url: leftPath,
});
}else if(leftPathType === "redirectTo" && leftPath){
uni.redirectTo({
url: leftPath,
});
}
},
rightJump() {