修复练习不弹出徽章bug
This commit is contained in:
+2
-2
@@ -14,9 +14,9 @@ ENV = 'development'
|
||||
# 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'
|
||||
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'
|
||||
|
||||
|
||||
@@ -210,9 +210,10 @@
|
||||
|
||||
const open = (isSignedStatus, days, onCheckInClick = () => {}, onCheckInSuccess = () => {}) => {
|
||||
isSigned.value = isSignedStatus; // 今日签到状态
|
||||
// isSigned.value = false; // 今日签到状态
|
||||
// continuousDay.value = 1; // 连续签到
|
||||
continuousDay.value = days; // 连续签到
|
||||
isSigned.value = false; // 今日签到状态
|
||||
continuousDay.value = 1; // 连续签到
|
||||
|
||||
checkInClickCallback = onCheckInClick;
|
||||
checkInSuccessCallback = onCheckInSuccess;
|
||||
// 示例:X=10时,以"10天前"为第1天,生成35天列表
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
|
||||
<script setup>
|
||||
import { onLoad } from '@dcloudio/uni-app';
|
||||
import { onMounted, ref, onUnmounted } from 'vue';
|
||||
import { onMounted, ref, onUnmounted, nextTick } from 'vue';
|
||||
import common from '@/common/common';
|
||||
import { setPageCache } from '@/common/common';
|
||||
import { startExamByCrs } from '@/api/examination.js';
|
||||
@@ -174,6 +174,7 @@
|
||||
console.log('提交练习状态成功');
|
||||
commit.value = true;
|
||||
pointAndBadgesRun('04', crsId.value, (status, msg, { points, pointsBadges, message }) => {
|
||||
console.log(status, msg, points, pointsBadges, message );
|
||||
if(!status) return;
|
||||
if (points?.length > 0) {
|
||||
showData.value.num = points[0]['changePoints'];
|
||||
@@ -183,7 +184,9 @@
|
||||
if (pointsBadges.length > 0) {
|
||||
nextTick(() => {
|
||||
setTimeout(() => {
|
||||
badgeRef.value.open([], pointsBadges);
|
||||
badgeRef.value.open([], pointsBadges, () => {
|
||||
badgeRef.value.close()
|
||||
});
|
||||
}, pop_up_time);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user