Merge branch 'develop' of http://25.13.9.101:9000/K17_AITS/tra-app into develop
This commit is contained in:
@@ -45,16 +45,16 @@ export const addPointsByCheckIn = (data) => {
|
||||
*/
|
||||
export const addPointsByTask = (data) => {
|
||||
// base_url
|
||||
// return request({
|
||||
// url: base_url + '/traPointsInfo/addPointsByTask',
|
||||
// method: 'post',
|
||||
// data
|
||||
// });
|
||||
return request({
|
||||
url: '/test/traPointsInfo/addPointsByTask',
|
||||
url: base_url + '/traPointsInfo/addPointsByTask',
|
||||
method: 'post',
|
||||
data
|
||||
});
|
||||
// return request({
|
||||
// url: '/test/traPointsInfo/addPointsByTask',
|
||||
// method: 'post',
|
||||
// data
|
||||
// });
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
/**
|
||||
完成课程学习 首次完成1分 每天最多获取5分 完成课程学习 crsId 02 完成调用 杨航
|
||||
完成课程练习 首次完成1分 每天最多获取5分 完成课程练习 crsId 04 完成练习调用 田岩 已完成
|
||||
通过课程考试 首次完成1分 每天最多获取5分 通过课程考试 crsId 03 通过调用 田岩 已完成
|
||||
完成课程学习 首次完成1分 每天最多获取5分 完成课程学习 crsId 02 完成调用 杨航
|
||||
完成课程练习 首次完成1分 每天最多获取5分 完成课程练习 crsId 04 完成练习调用 田岩 已完成
|
||||
通过课程考试 首次完成1分 每天最多获取5分 通过课程考试 crsId 03 通过调用 田岩 已完成
|
||||
完成考试中心考试 首次完成1分 每天最多获取5分 完成考试中心考试 papersId 05 完成调用 田岩 已完成
|
||||
完成竞赛PK 每次1分 每天最多获取5分 完成竞赛PK 11 完成调用 田岩 已完成
|
||||
通过AI陪练练习 每次1分 每天最多获取5分 通过AI陪练练习 07 通过调用 杨航
|
||||
通过AI陪练考试 每次1分 每天最多获取5分 通过AI陪练考试 08 通过调用 杨航
|
||||
完成竞赛PK 每次1分 每天最多获取5分 完成竞赛PK 11 完成调用 田岩 已完成
|
||||
获取AI问答 次数徽章 06 建立ws完成调用 杨航
|
||||
通过AI陪练练习 每次1分 每天最多获取5分 通过AI陪练练习 07 通过调用 杨航
|
||||
通过AI陪练考试 每次1分 每天最多获取5分 通过AI陪练考试 08 通过调用 杨航
|
||||
签到 每日1积分,
|
||||
第七天5积分,
|
||||
第30天20积分,
|
||||
@@ -42,6 +43,11 @@ const typeConfig = {
|
||||
paramsKey: 'papersId',
|
||||
rule: '首次完成1分,每天最多5分'
|
||||
},
|
||||
'06': {
|
||||
name: 'AI问答次数徽章',
|
||||
paramsKey: '',
|
||||
rule: ''
|
||||
},
|
||||
'07': {
|
||||
name: '通过AI陪练练习',
|
||||
paramsKey: '',
|
||||
@@ -107,15 +113,19 @@ export default function usePointsAndBadge() {
|
||||
setTimeout(() => {
|
||||
badgeRef.value.open(pointsList, badgesList, () => {
|
||||
badgeRef.value.close()
|
||||
complete(true, '积分获取成功', res);
|
||||
});
|
||||
}, pop_up_time);
|
||||
});
|
||||
}else{
|
||||
complete(true, '积分获取成功', res);
|
||||
}
|
||||
});
|
||||
// complete(true, '积分获取成功', res);
|
||||
} catch (error) {
|
||||
// console.error(`类型${type}积分获取失败:`, error);
|
||||
// complete(false, '积分获取失败', error);
|
||||
// console.log('积分获取失败')
|
||||
complete(false, '积分获取失败', error);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
+18
-11
@@ -1,6 +1,7 @@
|
||||
<template>
|
||||
<view class="exam-ranking">
|
||||
<image src="@/static/images/charts/bg-top.png" mode="aspectFit" class="bg-box"></image>
|
||||
<!-- <image src="@/static/images/charts/bg-top.png" mode="aspectFit" class="bg-box"></image> -->
|
||||
<view class="bg-box"></view>
|
||||
<view class="ranking-box">
|
||||
|
||||
<view class="nav-div">
|
||||
@@ -10,9 +11,9 @@
|
||||
</view>
|
||||
<view class="title-view">
|
||||
<!-- <view class="title-info">考试排行榜</view> -->
|
||||
<!-- <image class="title-image" src="@/static/images/examRanking/title.png" mode="aspectFit"></image> -->
|
||||
<image class="title-image" src="@/static/images/charts/text.png" mode="aspectFit"></image>
|
||||
<!-- <view class="title-desc">吾日三省吾身,传不习乎?</view> -->
|
||||
<!-- <image class="cup-image" src="@/static/images/examRanking/cup.png" mode="aspectFit"></image> -->
|
||||
<image class="cup-image" src="@/static/images/charts/cup.png" mode="aspectFit"></image>
|
||||
|
||||
</view>
|
||||
<view class="ranking-body">
|
||||
@@ -252,7 +253,8 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 289rpx;
|
||||
height: 400rpx;
|
||||
background: linear-gradient(0deg , #F8F8FA 0%, #6DA7FF 100%);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
@@ -306,15 +308,15 @@
|
||||
.title-view {
|
||||
height: 180rpx;
|
||||
position: relative;
|
||||
padding-left: 79rpx;
|
||||
padding-top: 20rpx;
|
||||
|
||||
.cup-image {
|
||||
position: absolute;
|
||||
right: 90rpx;
|
||||
bottom: 0;
|
||||
width: 178rpx;
|
||||
height: 159rpx;
|
||||
right: 46rpx;
|
||||
bottom: -33rpx;
|
||||
width: 208rpx;
|
||||
height: 208rpx;
|
||||
z-index: 0;
|
||||
}
|
||||
|
||||
.title-desc {
|
||||
@@ -324,8 +326,11 @@
|
||||
}
|
||||
|
||||
.title-image {
|
||||
width: 308rpx;
|
||||
height: 88rpx;
|
||||
width: 230rpx;
|
||||
height: 111rpx;
|
||||
position: absolute;
|
||||
bottom: 20rpx;
|
||||
left: 46rpx;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -336,6 +341,8 @@
|
||||
border-radius: 31rpx 31rpx 0 0;
|
||||
padding-top: 20rpx;
|
||||
box-sizing: border-box;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
.scroll-items-view{
|
||||
height: calc(100% - 308rpx);
|
||||
}
|
||||
|
||||
@@ -133,6 +133,8 @@
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<badge ref="badgeRef"></badge>
|
||||
<points ref="pointsRef"></points>
|
||||
<!-- 反馈组件 -->
|
||||
<Feedback ref="feedbackRef" @feedbackAnswer="feedbackAnswer"></Feedback>
|
||||
<!-- <file-preview ref="previewFileRef" :file-id="'603058d8-88e0-43d2-8242-3132b85bc91c'" v-model="showPreview" /> -->
|
||||
@@ -164,6 +166,9 @@
|
||||
import Feedback from './components/feedback.vue';
|
||||
import History from './components/history.vue';
|
||||
import badge from '@/components/points-and-badge/badge';
|
||||
import points from '@/components/points-and-badge/points';
|
||||
import usePointsAndBadge from '@/components/points-and-badge/usePointsAndBadge';
|
||||
const { pointAndBadgesRun, badgeRef, pointsRef } = usePointsAndBadge();
|
||||
|
||||
const { statusBarHeight } = uni.getWindowInfo();
|
||||
|
||||
@@ -284,6 +289,7 @@
|
||||
if (commond === 'ASK-START') {
|
||||
// console.log('开启对话!')
|
||||
reqBatch.value = body.reqBatch;
|
||||
pointAndBadgesRun('06')
|
||||
return;
|
||||
}
|
||||
if (commond === 'ASK') {
|
||||
|
||||
@@ -88,7 +88,6 @@
|
||||
})
|
||||
}
|
||||
const onSwiperChange = (data) => {
|
||||
console.log('轮播图切换:', e);
|
||||
currentIndex.value = data.index;
|
||||
}
|
||||
const isPreview = ref(false)
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
}
|
||||
.card-items{
|
||||
padding: 0 24rpx;
|
||||
height: calc(100% - 412rpx);
|
||||
height: calc(100% - 352rpx);
|
||||
overflow-y: auto;
|
||||
}
|
||||
.card-item {
|
||||
@@ -269,8 +269,8 @@
|
||||
}
|
||||
|
||||
.img-box {
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
width: 230rpx;
|
||||
height: 230rpx;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
margin: 0 auto;
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="item-publish">截至时间:{{itemInfo.limitTyp === '01'?'不限制':itemInfo.endTm}}</view>
|
||||
<view class="item-num">陪练次数:{{itemInfo.practiceTimes }}人次</view>
|
||||
<view class="item-publish">截止时间:{{itemInfo.limitTyp === '01'?'不限制':itemInfo.endTm}}</view>
|
||||
<view class="item-num">陪练次数:{{itemInfo.practiceTimes }} 人次</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -82,9 +82,9 @@
|
||||
overflow: hidden;
|
||||
|
||||
.item-title {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
// white-space: nowrap;
|
||||
// overflow: hidden;
|
||||
// text-overflow: ellipsis;
|
||||
line-height: 44rpx;
|
||||
font-size: 29rpx;
|
||||
font-weight: 500;
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
Reference in New Issue
Block a user