feat: 创建了取号的功能

This commit is contained in:
2026-07-23 15:07:27 +08:00
parent 8aa4e7973c
commit 362c37e74b
15 changed files with 2363 additions and 11 deletions

View File

@@ -152,6 +152,11 @@ const hasBackListener = computed(() => {
// 处理返回事件
const handleBack = () => {
if (hasBackListener.value) {
emit("back");
return;
}
const pages = getCurrentPages();
if (pages.length <= 1) {
@@ -161,10 +166,6 @@ const handleBack = () => {
return;
}
if (hasBackListener.value) {
emit("back");
return;
}
// 如果没有监听back事件默认执行返回上一页
uni.navigateBack({
delta: 1,