mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 19:36:48 +08:00
fix:默认显示五条
This commit is contained in:
@@ -267,7 +267,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- 学员列表 -->
|
<!-- 学员列表 -->
|
||||||
<div>
|
<div>
|
||||||
<div v-for="(item, i) in tableRankData" :key="i"
|
<div v-for="(item, i) in tableRankData.slice(0,5)" :key="i"
|
||||||
style="display: flex;justify-content: center;align-items: center;width: 100%;position: relative;top:-60px;margin-bottom: 38px;">
|
style="display: flex;justify-content: center;align-items: center;width: 100%;position: relative;top:-60px;margin-bottom: 38px;">
|
||||||
<div
|
<div
|
||||||
style="font-size: 14px;color:rgba(36, 120, 255, 1);font-weight: 600;width:30%;display: flex;justify-content: center;align-items: center;position: relative;">
|
style="font-size: 14px;color:rgba(36, 120, 255, 1);font-weight: 600;width:30%;display: flex;justify-content: center;align-items: center;position: relative;">
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- 我的排名 -->
|
<!-- 我的排名 -->
|
||||||
<div v-if="myIndex > tableRankData.length"
|
<div v-if="myIndex > 5"
|
||||||
style="display: flex;justify-content: center;align-items: center;width: 100%;position: relative;top:-60px;margin-bottom: 38px;">
|
style="display: flex;justify-content: center;align-items: center;width: 100%;position: relative;top:-60px;margin-bottom: 38px;">
|
||||||
<div
|
<div
|
||||||
style="font-size: 14px;color:rgba(36, 120, 255, 1);font-weight: 600;width:30%;display: flex;justify-content: center;align-items: center;">
|
style="font-size: 14px;color:rgba(36, 120, 255, 1);font-weight: 600;width:30%;display: flex;justify-content: center;align-items: center;">
|
||||||
@@ -306,7 +306,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="myIndex > tableRankData.length"
|
<div v-if="myIndex > 5"
|
||||||
style="display: flex;justify-content: center;align-items: center;width: 100%;position: relative;top:-60px;margin-bottom: 38px;">
|
style="display: flex;justify-content: center;align-items: center;width: 100%;position: relative;top:-60px;margin-bottom: 38px;">
|
||||||
<div
|
<div
|
||||||
style="font-size: 14px;color:rgba(36, 120, 255, 1);font-weight: 600;width:30%;display: flex;justify-content: center;align-items: center;">
|
style="font-size: 14px;color:rgba(36, 120, 255, 1);font-weight: 600;width:30%;display: flex;justify-content: center;align-items: center;">
|
||||||
@@ -407,7 +407,6 @@ const tabChange = (tabs) => {
|
|||||||
myIndex.value = res.data.myIndex
|
myIndex.value = res.data.myIndex
|
||||||
myPoint.value = res.data.myPointsCount
|
myPoint.value = res.data.myPointsCount
|
||||||
})
|
})
|
||||||
tableRankData.value = 12
|
|
||||||
}
|
}
|
||||||
const myIndex = ref('')
|
const myIndex = ref('')
|
||||||
const myPoint = ref('')
|
const myPoint = ref('')
|
||||||
|
|||||||
Reference in New Issue
Block a user