From d47cd5ca1e24b0105d866472f0e3935839e2d820 Mon Sep 17 00:00:00 2001 From: zpc Date: Thu, 19 Mar 2026 06:35:30 +0800 Subject: [PATCH] 21 --- uniapp/pages/assessment/loading/index.vue | 344 +--------------------- uniapp/pages/assessment/result/index.vue | 48 ++- uniapp/static/cepingzhong.png | Bin 0 -> 21094 bytes 3 files changed, 50 insertions(+), 342 deletions(-) create mode 100644 uniapp/static/cepingzhong.png diff --git a/uniapp/pages/assessment/loading/index.vue b/uniapp/pages/assessment/loading/index.vue index d544b31..cf8c7b7 100644 --- a/uniapp/pages/assessment/loading/index.vue +++ b/uniapp/pages/assessment/loading/index.vue @@ -32,22 +32,6 @@ const MAX_POLL_COUNT = 100 // 当前轮询次数 const pollCount = ref(0) -// 加载提示文字列表 -const loadingTips = [ - '正在分析您的测评数据...', - '正在生成智能分析报告...', - '正在整理八大智能评估...', - '正在计算个人特质分析...', - '正在生成细分能力报告...', - '报告即将生成完成...' -] - -// 当前提示文字索引 -const currentTipIndex = ref(0) - -// 提示文字切换定时器 -let tipTimer = null - /** * 开始轮询查询状态 */ @@ -110,7 +94,6 @@ async function checkStatus() { if (status === 4) { // 生成完成,跳转结果页 stopPolling() - stopTipRotation() // 携带 reportUrl 参数 const reportUrl = res.data.reportUrl || '' @@ -120,7 +103,6 @@ async function checkStatus() { } else if (status === 5) { // 生成失败 stopPolling() - stopTipRotation() uni.showModal({ title: '提示', @@ -141,25 +123,6 @@ async function checkStatus() { } } -/** - * 开始提示文字轮换 - */ -function startTipRotation() { - tipTimer = setInterval(() => { - currentTipIndex.value = (currentTipIndex.value + 1) % loadingTips.length - }, 2500) -} - -/** - * 停止提示文字轮换 - */ -function stopTipRotation() { - if (tipTimer) { - clearInterval(tipTimer) - tipTimer = null - } -} - /** * 页面加载 */ @@ -171,9 +134,6 @@ onLoad((options) => { // 开始轮询 startPolling() - - // 开始提示文字轮换 - startTipRotation() }) /** @@ -181,65 +141,23 @@ onLoad((options) => { */ onUnmounted(() => { stopPolling() - stopTipRotation() })