From 98a72d295a27cff259d337b00188e1af97e33360 Mon Sep 17 00:00:00 2001 From: congzc Date: Wed, 27 Sep 2023 18:32:42 +0800 Subject: [PATCH] 6 --- src/pages/camera/index.vue | 4 ++-- src/pages/chooseStyle/index.vue | 4 ++-- src/pages/created/index.vue | 4 ++-- src/pages/createing/index.vue | 24 ++++++++++++------------ 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/pages/camera/index.vue b/src/pages/camera/index.vue index a7cb926..ac1791c 100644 --- a/src/pages/camera/index.vue +++ b/src/pages/camera/index.vue @@ -483,12 +483,12 @@ onMounted(() => { resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); onUnload(() => { clearTimeout(resetTimer.value); diff --git a/src/pages/chooseStyle/index.vue b/src/pages/chooseStyle/index.vue index 9bdd35c..45aa26e 100644 --- a/src/pages/chooseStyle/index.vue +++ b/src/pages/chooseStyle/index.vue @@ -281,12 +281,12 @@ onMounted(() => { resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); onUnload(() => { clearTimeout(resetTimer.value); diff --git a/src/pages/created/index.vue b/src/pages/created/index.vue index 3c4e273..50a009d 100644 --- a/src/pages/created/index.vue +++ b/src/pages/created/index.vue @@ -291,13 +291,13 @@ onMounted(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); onUnload(() => { clearTimeout(resetTimer.value); diff --git a/src/pages/createing/index.vue b/src/pages/createing/index.vue index 569abf9..e19cfa4 100644 --- a/src/pages/createing/index.vue +++ b/src/pages/createing/index.vue @@ -24,12 +24,7 @@ >重新选择模版 - + @@ -42,10 +37,15 @@ " >剩余生成次数不足,请扫码充值! - {{ payCount }}秒后过期 - 取 消 + 取 消 @@ -219,7 +219,7 @@ async function getQRCode() { //#region 获取用户信息 const payMask = ref(false); //支付状态遮罩层 -const payCount = ref(90); //支付倒计时数 +const payCount = ref(300); //支付倒计时数 const payCountTimer = ref(null); //支付倒计时 // 获取登录信息 async function getUser() { @@ -293,7 +293,7 @@ watch( payMask.value = false; clearInterval(payCountTimer.value); payCountTimer.value = null; - payCount.value = 90; + payCount.value = 300; } } ); @@ -376,12 +376,12 @@ onMounted(() => { resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); resetTimer.value = setTimeout(() => { userInfoModulesPinia.clearStorage(); uni.redirectTo({ url: "/pages/login/index" }); - }, 180000); + }, 300000); }); onUnload(() => { clearTimeout(resetTimer.value);