feat: 新增拼团
This commit is contained in:
+23
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user