Merge branch 'manage-release' of http://gitlab.dongwu-inc.com:10080/BOE/fe-stu into release

This commit is contained in:
dongruihua
2022-12-26 09:34:22 +08:00
5 changed files with 442 additions and 431 deletions

View File

@@ -36,7 +36,7 @@ import {useStore} from "vuex";
import {onMounted} from "vue";
import router from "@/router";
console.log("版本1.0.5------------");
console.log("版本1.0.6------------");
const store = useStore();
onMounted(() => {
getUserInfo();

View File

@@ -3,7 +3,9 @@
<div v-for="(item,i) in detail.chapterDtoList" :key="i" class="cha"
:style="{top:`${imgAttr.positions[i]?.top - (current===i?5:0)}px`,left:`${imgAttr.positions[i]?.left - (current===i?10:0)}px`}">
<div @click="toDetail(i)"
:style="{background: `url('${current===i?currentBack:nameBack}')`,backgroundSize:'100%',width:`${current===i?139:123}px`,height:`${current===i?60:53}px`,textAlign:'center',lineHeight:'45px',fontsize:'12px',color:'#FFF'}">
class="nameClass"
:title="item.name"
:style="{background: `url('${current===i?currentBack:nameBack}')`,backgroundSize:'100%',width:`${current===i?107:93}px`,height:`${current===i?80:70}px`,lineHeight:'50px',color:'#FFF'}">
{{ item.name }}
</div>
</div>
@@ -31,11 +33,12 @@ const imageAttrs = {
width: 1437,
height: 594,
positions: [
{left: 84, top: 518},
{left: 307, top: 370},
{left: 848, top: 275},
{left: 617, top: 69},
{left: 1047, top: 42},
{left: 63, top: 503},
{left: 828, top: 455},
{left: 268, top: 325},
{left: 1087, top: 183},
{left: 647, top: 84},
{left: 1180, top: 40},
]
}
}
@@ -79,4 +82,12 @@ function close() {
position: absolute;
cursor: pointer;
}
.nameClass{
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
-o-text-overflow: ellipsis;
padding:0 20px 0 50px;
font-size: 12px;
}
</style>

View File

@@ -11,7 +11,8 @@
<div v-if="pName != ''" class="return">
<div style="display: flex" @click="returnclick">
<el-button style="color:#0073FB"><img class="img2" style="margin-right:11px;cursor: pointer;"
src="../../assets/image/return.png" />返回</el-button>
src="../../assets/image/return.png"/>返回
</el-button>
</div>
</div>
</div>
@@ -27,7 +28,8 @@
<div class="time" style="margin-top: 30px">
<img style="width: 15px; height: 17px" src="../../assets/image/time.png"/>
<div style="margin-left: 8px">
{{ dayjs(data.planDto?.beginTime).format('YYYY-MM-DD HH:MM') + " 至 " +
{{
dayjs(data.planDto?.beginTime).format('YYYY-MM-DD HH:MM') + " 至 " +
dayjs(data.planDto?.endTime).format('YYYY-MM-DD HH:MM')
}}
</div>
@@ -37,8 +39,7 @@
<div style="margin-left: 8px">{{ data.planDto?.address }}</div>
</div>
<div class="time" style="margin-top: 37px">
<botton class="btn" style="margin-right: 20px;width: 160px;height: 46px;" @click="onLineSignUp">立即报名
</botton>
<botton class="btn" style="margin-right: 20px;width: 160px;height: 46px;" @click="onLineSignUp" :style="{ background: data.isSignUp ? '#999' : 'rgb(57, 146, 249)'}">{{data.isSignUp?'已报名':'立即报名'}}</botton>
</div>
</div>
</div>
@@ -134,6 +135,7 @@ import { useRoute, useRouter } from "vue-router";
import {useUserInfo} from "@/api/utils";
import {ElMessage, messageConfig} from "element-plus";
import dayjs from "dayjs";
const router = useRouter();
const returnclick = () => {
router.back();
@@ -143,7 +145,7 @@ const {
} = useRoute();
const {data} = useRequest(STU_OFFCOURSE_DETAIL, {courseId});
console.log("datadatadatadatadatadatadata", data);
const teacherInfo = useUserInfo(
computed(() => data.value?.planDto?.teacherId)
);
@@ -167,11 +169,9 @@ let timer = null;
// 报名
function onLineSignUp() {
request(FACETEACH_SIGNUP, { courseId }).then(res => {
console.log(res)
if (res.code == 200) {
data.value.isSignUp || request(FACETEACH_SIGNUP, {courseId}).then(() => {
ElMessage.success("报名成功");
}
router.push({path: 'faceteach', query: {courseId}})
}).catch(err => {
console.log(err)
});

View File

@@ -451,11 +451,11 @@ function toFinish(d, sName, chapterOrStageId) {
return;
}
if (d.type == 3 || d.type == 7) {
request(STUDY_RECORD, {
d.status || request(STUDY_RECORD, {
studentId: data.value.userInfoBo.userId,
targetId: data.value.routerId,
logo: 2,
stageOrChapterId: chapterId,
stageOrChapterId: chapterOrStageId,
taskId: d.projectTaskId,
});
}

View File

@@ -88,7 +88,7 @@
<div>当前进度</div>
<div class="progress">
<div style="width: 291px">
<el-progress :percentage="value.currentRatio * 100" :show-text="false" :stroke-width="8" :color="
<el-progress :percentage="value.currentRatio" :show-text="false" :stroke-width="8" :color="
{
0: 'rgba(238, 112, 108, 1)',
1: 'rgba(255, 151, 38, 1)',
@@ -96,7 +96,7 @@
3: 'rgba(59, 94, 251, 1)',
4: 'rgba(57, 219, 183, 1)',
5: 'rgba(57, 219, 183, 1)',
}[parseInt(value.currentRatio * 100 / 20)]
}[parseInt(value.currentRatio / 20)]
" />
</div>
<div style="font-size: 14px;font-weight: 500;color: #277aff;margin-left: 10px;"
@@ -108,9 +108,9 @@
3: 'rgba(59, 94, 251, 1)',
4: 'rgba(57, 219, 183, 1)',
5: 'rgba(57, 219, 183, 1)',
}[parseInt(value.currentRatio * 100 / 20)],
}[parseInt(value.currentRatio / 20)],
}">
{{ value.currentRatio * 100 }}%
{{ value.currentRatio }}%
</div>
</div>
</div>
@@ -118,7 +118,7 @@
<div class="goclass" :style="{
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
}" @click="toFinish(value)">
{{ value.currentRatio === 1 ? "已完成" : types.path[value.type] ? types.toName[value.type] : "未开放" }}
{{ value.status === 1 ? "已完成" : types.path[value.type] ? types.toName[value.type] : "未开放" }}
</div>
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
<!-- <div-->
@@ -460,7 +460,7 @@ function toFinish(d) {
}
}
if (d.type === 3 || d.type === 7) {
request(STUDY_RECORD, {
d.status || request(STUDY_RECORD, {
studentId: userInfo.value.id,
targetId: data.value.routerId,
logo: 1,
@@ -477,8 +477,8 @@ function toFinish(d) {
router.push({
path: types.value.path[d.type],
query: {
// id: d.routerTaskId,
id: routerId,
id: d.routerTaskId,
// id: routerId,
type: 1,
taskId: routerId,
taskIds: routerId,