Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-12-17 14:45:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ccdb3d98114d4cfb64694965067ffb1a566c047b
ccdb3d98
1 parent
001019db
fix(IndexCheckInPage): 修复团队头像显示限制逻辑
修改团队头像显示逻辑,当头像数量超过8个时仅显示前8个,否则显示全部
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/views/checkin/IndexCheckInPage.vue
src/views/checkin/IndexCheckInPage.vue
View file @
ccdb3d9
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-17 1
0:07:42
* @LastEditTime: 2025-12-17 1
4:45:25
* @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
* @Description: 文件描述
-->
...
...
@@ -78,7 +78,7 @@
</div> -->
<div style="padding: 0.75rem 1rem;">
<van-image round width="2.8rem" height="2.8rem" :src="item ? item : 'https://cdn.ipadbiz.cn/mlaj/images/icon_1.jpeg'" fit="cover"
v-for="(item, index) in teamAvatars
.splice(0, 8)
" :key="index"
v-for="(item, index) in teamAvatars" :key="index"
:style="{ marginLeft: index > 0 ? '-0.5rem' : '', border: '2px solid #eff6ff', background: '#fff' }" />
</div>
</div>
...
...
@@ -558,7 +558,7 @@ const getTaskDetail = async (month) => {
taskDetail.value = data;
progress1.value = ((data.checkin_number/data.target_number)*100).toFixed(1); // 计算进度条百分比
showProgress.value = !isNaN(progress1.value); // 如果是NaN,就不显示进度条
teamAvatars.value =
data
.checkin_avatars;
teamAvatars.value =
taskDetail.value.checkin_avatars.length > 8 ? taskDetail.value.checkin_avatars.splice(0, 8) : taskDetail.value
.checkin_avatars;
// 获取当前用户的打卡日期
myCheckinDates.value = data.my_checkin_dates;
// 获取当前用户的补卡日期
...
...
Please
register
or
login
to post a comment