diff --git a/.env.development b/.env.development index a13ceb1c..f489073b 100644 --- a/.env.development +++ b/.env.development @@ -6,24 +6,26 @@ ENV = 'development' # VITE_APP_BASE_API_Url = 'https://aits.jlbank.com.cn:7001' -VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' + +# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002' + # VITE_APP_BASE_API_Url = 'http://192.168.247.200' # VITE_APP_BASE_API_Url = 'http://aitscdn.jlbank.com.cn:7001' # VITE_APP_BASE_API_Url = 'http://192.168.108.129' # dev # VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # sit -# VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' +VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786' # UAT # VITE_APP_BASE_API_Url = 'http://25.18.122.78:9786' # DEV # app入口 -#VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' +# VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_API_Url = 'http://25.16.122.91:9786' # VITE_APP_BASE_API_Url = 'http://25.18.122.66:9786' diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue index 7e4aa191..a9ab2d4a 100644 --- a/src/components/examination/question.vue +++ b/src/components/examination/question.vue @@ -202,8 +202,16 @@ console.log('声音加载完毕', e.duration); // 计算原始时长 const originalTime = Math.ceil(e.duration) || 1; - // 判断是否在118-123秒范围内 - const displayTime = originalTime >= 118 && originalTime <= 124 ? 120 : originalTime; + let displayTime + if(originalTime >= 118 && originalTime <= 122) { + // 判断是否在118-123秒范围内 + displayTime = 120 + } else if(originalTime >= 58 && originalTime <= 62) { + // 判断是否在58-62秒范围内 + displayTime = 60 + } else { + displayTime = originalTime + } // 赋值显示 console.log('displayTime', displayTime); voiceTime.value = displayTime + 's'; diff --git a/src/components/examination/touchBtn.vue b/src/components/examination/touchBtn.vue index 57b9d65e..f20efff3 100644 --- a/src/components/examination/touchBtn.vue +++ b/src/components/examination/touchBtn.vue @@ -39,7 +39,6 @@ mode="" @click="changeBtn" > - - @@ -147,7 +145,7 @@ console.log('延迟开始'); recordingStatus.value = 'preparing'; popupRef.value.open(); - recorderManager.start({ duration: 120000 }); + recorderManager.start({ duration: 59000 }); startTime = Date.now(); }, 80); }; diff --git a/src/components/points-and-badge/check-in.vue b/src/components/points-and-badge/check-in.vue index b78fa689..8edf2e8f 100644 --- a/src/components/points-and-badge/check-in.vue +++ b/src/components/points-and-badge/check-in.vue @@ -89,15 +89,17 @@ const expand = ref(false); // 展开状态 const isSigned = ref(false); // 今日签到状态 const continuousDay = ref(0); // 连续签到 + const continuousDay30 = computed(() => continuousDay.value % 30); // 连续签到取模30的天数 // 判断一下当前的签到显示在第几周 const nowLine = computed(() => { // 计算当前需要显示图标的天数(已签到则是连续天数,未签到则是下一天) - const currentDay = isSigned.value ? continuousDay.value : continuousDay.value + 1; - + const currentDay = isSigned.value ? continuousDay30.value : continuousDay30.value + 1; // 按每周7天分行,行数从0开始(例如:1-7天 → 第0行,8-14天 → 第1行...) // 注意:如果天数从1开始(不是0),需要减1再计算 + console.log('nowLine', Math.floor((currentDay - 1) / 7)); return Math.floor((currentDay - 1) / 7); }); + const emits = defineEmits(['checkInFun']); // 切换显示状态 const switchStatus = () => { @@ -174,7 +176,7 @@ // 计算当前是第几天(以"前X天"为第1天) const dayNumber = i - -X + 1; // 核心计算:转换为从1开始的序列 - + // 计算text字段 let text = '1'; // 默认显示1 if (dayNumber === 30) { @@ -209,6 +211,7 @@ const open = (isSignedStatus, days, onCheckInClick = () => {}, onCheckInSuccess = () => {}) => { isSigned.value = isSignedStatus; // 今日签到状态 // isSigned.value = false; // 今日签到状态 + // continuousDay.value = 1; // 连续签到 continuousDay.value = days; // 连续签到 checkInClickCallback = onCheckInClick; checkInSuccessCallback = onCheckInSuccess; @@ -218,7 +221,8 @@ // const X = 10; // console.log(`以${continuousDay.value}天`); // console.log(`以${X}天前为第1天的35天分组日期:`); - dateGroups.value = generateGroupedDateList(X); + console.log('取模', continuousDay30.value); + dateGroups.value = generateGroupedDateList(continuousDay30.value); } catch (err) { console.error(err.message); } diff --git a/src/pages.json b/src/pages.json index 20c296e6..8d0ca400 100644 --- a/src/pages.json +++ b/src/pages.json @@ -488,6 +488,7 @@ "path": "pages/sparring/tip", "style": { "navigationBarTitleText": "AI陪练提示", + "disableSwipeBack": true, "app-plus": { "titleNView": false } @@ -515,6 +516,7 @@ "path": "pages/sparring/result", "style": { "navigationBarTitleText": "AI陪练报告", + "disableSwipeBack": true, "app-plus": { "titleNView": false } diff --git a/src/pages/competition/matching.vue b/src/pages/competition/matching.vue index 4a0aa636..33f61916 100644 --- a/src/pages/competition/matching.vue +++ b/src/pages/competition/matching.vue @@ -2,12 +2,12 @@