mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-12 12:26:49 +08:00
Merge branch 'develop' of http://gitlab.dongwu-inc.com:10080/BOE/fe-stu into manage-release
This commit is contained in:
@@ -3,7 +3,9 @@
|
|||||||
<div v-for="(item,i) in detail.chapterDtoList" :key="i" class="cha"
|
<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`}">
|
: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)"
|
<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 }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -31,11 +33,12 @@ const imageAttrs = {
|
|||||||
width: 1437,
|
width: 1437,
|
||||||
height: 594,
|
height: 594,
|
||||||
positions: [
|
positions: [
|
||||||
{left: 84, top: 518},
|
{left: 63, top: 503},
|
||||||
{left: 307, top: 370},
|
{left: 828, top: 455},
|
||||||
{left: 848, top: 275},
|
{left: 268, top: 325},
|
||||||
{left: 617, top: 69},
|
{left: 1087, top: 183},
|
||||||
{left: 1047, top: 42},
|
{left: 647, top: 84},
|
||||||
|
{left: 1180, top: 40},
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -79,4 +82,12 @@ function close() {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
.nameClass{
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
-o-text-overflow: ellipsis;
|
||||||
|
padding:0 20px 0 50px;
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -451,7 +451,7 @@ function toFinish(d, sName, chapterOrStageId) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (d.type == 3 || d.type == 7) {
|
if (d.type == 3 || d.type == 7) {
|
||||||
request(STUDY_RECORD, {
|
d.status || request(STUDY_RECORD, {
|
||||||
studentId: data.value.userInfoBo.userId,
|
studentId: data.value.userInfoBo.userId,
|
||||||
targetId: data.value.routerId,
|
targetId: data.value.routerId,
|
||||||
logo: 2,
|
logo: 2,
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
<div class="goclass" :style="{
|
<div class="goclass" :style="{
|
||||||
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
|
background: `${types.path[value.type] ? '#2478ff' : '#999'}`,
|
||||||
}" @click="toFinish(value)">
|
}" @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>
|
||||||
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
|
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
|
||||||
<!-- <div-->
|
<!-- <div-->
|
||||||
@@ -460,7 +460,7 @@ function toFinish(d) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (d.type === 3 || d.type === 7) {
|
if (d.type === 3 || d.type === 7) {
|
||||||
request(STUDY_RECORD, {
|
d.status || request(STUDY_RECORD, {
|
||||||
studentId: userInfo.value.id,
|
studentId: userInfo.value.id,
|
||||||
targetId: data.value.routerId,
|
targetId: data.value.routerId,
|
||||||
logo: 1,
|
logo: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user