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