JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_修复sitbug6
This commit is contained in:
@@ -60,7 +60,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { HolidayInfo, CompleteCallback, StartLotteryCallback } from './types/holiday';
|
||||
import type { HolidayInfo, CompleteCallback, StartLotteryCallback,pointsBadges } from './types/holiday';
|
||||
import { RewardType, AnimationStatus } from './types/holiday';
|
||||
import { ref, computed, reactive } from 'vue';
|
||||
import { optionErrorIcon, optionSuccessIcon } from '@/common/imgSvg';
|
||||
@@ -168,7 +168,9 @@
|
||||
// 背景图片的OSS存储key(用于图片上传/读取标识)
|
||||
backgroundOssKey: '',
|
||||
// 背景图片的OSS访问地址(图片完整URL)
|
||||
backgroundOssAddr: ''
|
||||
backgroundOssAddr: '',
|
||||
// 获得的徽章
|
||||
badgesList:[]
|
||||
});
|
||||
let completeCallback: CompleteCallback | undefined; // 关闭弹窗的回调
|
||||
let startLotteryCallback: StartLotteryCallback | undefined; // 抽奖的回调
|
||||
@@ -177,6 +179,7 @@
|
||||
const close = (status: boolean): void => {
|
||||
// 如果是固定积分,就设置一下
|
||||
console.log('如果是固定积分,就设置一下', holidayInfo.rewardType);
|
||||
|
||||
if(holidayInfo.rewardType === RewardType.FIXED_POINT) {
|
||||
startLotteryCallback({
|
||||
holidayCode: '',
|
||||
@@ -192,7 +195,8 @@
|
||||
console.log('点击退出,执行回调函数');
|
||||
typeof completeCallback === 'function' &&
|
||||
completeCallback({
|
||||
status
|
||||
status,
|
||||
badgesList:holidayInfo.badgesList
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -28,6 +28,14 @@ export interface HolidayInfo {
|
||||
ossAddr : string;
|
||||
backgroundOssKey : string;
|
||||
backgroundOssAddr : string;
|
||||
badgesList : Array<pointsBadges>;
|
||||
}
|
||||
|
||||
// 徽章弹窗列表项
|
||||
export interface pointsBadges {
|
||||
pointsBadgeImg:string;
|
||||
pointsBadgeName:string;
|
||||
remark:string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -38,6 +46,7 @@ export interface HolidayInfo {
|
||||
export interface CompleteCallback {
|
||||
(params : {
|
||||
status : boolean;
|
||||
badgesList : Array<pointsBadges>;
|
||||
}) : void;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user