Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
corporateCulture-qd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王立鹏
corporateCulture-qd
Commits
99043537
Commit
99043537
authored
Mar 05, 2026
by
lijiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【需求 20331】 styles: 加入过度效果
parent
dd652a61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
45 deletions
+45
-45
index.vue
src/views/homePage/index.vue
+45
-45
No files found.
src/views/homePage/index.vue
View file @
99043537
...
...
@@ -215,60 +215,60 @@
</div>
<div
class=
"flex flex-col gap-2 sm:gap-3"
>
<div
v-show=
"currentTaskList.length"
>
<div
v-for=
"item in currentTaskList"
:key=
"item.id"
>
<div
class=
"flex items-center justify-between hover:bg-white/10 rounded-lg transition-colors duration-200 group"
>
<div
class=
"flex items-center min-w-0 flex-1"
>
<div
class=
"h-16 xl:h-19 flex items-center justify-center"
>
<svg-icon
:name=
"item.svgName"
size=
"46"
/>
</div>
<div
class=
"flex flex-col items-start justify-center mx-2 sm:ml-3 min-w-0 flex-1"
>
<el-tooltip
:content=
"item.description"
placement=
"top"
>
<div
class=
"text-14px truncate w-full font-medium mb-1 cursor-pointer"
>
{{
item
.
title
}}
(
{{
item
.
currentCount
}}
/
{{
item
.
limitCount
}}
)
</div>
</el-tooltip>
<div
class=
"color-#333 text-xs w-full flex items-center flex-nowrap"
>
<svg-icon
name=
"small_coin"
size=
"16"
class=
"mr-1"
/>
<el-tooltip
:content=
"getTaskRewardDescription(item)"
placement=
"bottom"
>
<div
class=
"truncate w-130px"
>
{{
getTaskRewardDescription
(
item
)
}}
<transition
name=
"fade-home"
mode=
"out-in"
>
<div
v-if=
"currentTaskList.length"
>
<div
v-for=
"item in currentTaskList"
:key=
"item.id"
>
<div
class=
"flex items-center justify-between hover:bg-white/10 rounded-lg transition-colors duration-200 group"
>
<div
class=
"flex items-center min-w-0 flex-1"
>
<div
class=
"h-16 xl:h-19 flex items-center justify-center"
>
<svg-icon
:name=
"item.svgName"
size=
"46"
/>
</div>
<div
class=
"flex flex-col items-start justify-center mx-2 sm:ml-3 min-w-0 flex-1"
>
<el-tooltip
:content=
"item.description"
placement=
"top"
>
<div
class=
"text-14px truncate w-full font-medium mb-1 cursor-pointer"
>
{{
item
.
title
}}
(
{{
item
.
currentCount
}}
/
{{
item
.
limitCount
}}
)
</div>
</el-tooltip>
<div
class=
"color-#333 text-xs w-full flex items-center flex-nowrap"
>
<svg-icon
name=
"small_coin"
size=
"16"
class=
"mr-1"
/>
<el-tooltip
:content=
"getTaskRewardDescription(item)"
placement=
"bottom"
>
<div
class=
"truncate w-130px"
>
{{
getTaskRewardDescription
(
item
)
}}
</div>
</el-tooltip>
</div>
</div>
</div>
</div>
<button
class=
"w-16 h-8 xl:w-18 xl:h-9 shadow-[0_1px_8px_0_rgba(255,141,54,0.25)] border-none text-xs sm:text-sm rounded-full"
:class=
"[
item.currentCount === item.limitCount
? 'bg-#FFC5A1 cursor-not-allowed'
: 'bg-[linear-gradient(to_right,#FFC5A1_0%,#FFB77F_100%)] hover:-translate-y-1 transition-all duration-200 cursor-pointer',
]"
@
click=
"handleTask(item)"
>
<span
class=
"text-black text-sm"
:style=
"
{
color: item.currentCount === item.limitCount ? '#999' : '#000',
}"
>
{{
item
.
currentCount
===
item
.
limitCount
?
'已完成'
:
'去完成'
}}
</span
<button
class=
"w-16 h-8 xl:w-18 xl:h-9 shadow-[0_1px_8px_0_rgba(255,141,54,0.25)] border-none text-xs sm:text-sm rounded-full"
:class=
"[
item.currentCount === item.limitCount
? 'bg-#FFC5A1 cursor-not-allowed'
: 'bg-[linear-gradient(to_right,#FFC5A1_0%,#FFB77F_100%)] hover:-translate-y-1 transition-all duration-200 cursor-pointer',
]"
@
click=
"handleTask(item)"
>
</button>
<span
class=
"text-black text-sm"
:style=
"
{
color: item.currentCount === item.limitCount ? '#999' : '#000',
}"
>
{{
item
.
currentCount
===
item
.
limitCount
?
'已完成'
:
'去完成'
}}
</span
>
</button>
</div>
<el-divider
style=
"margin: 0"
/>
</div>
<el-divider
style=
"margin: 0"
/>
</div>
</div>
<div
v-show=
"currentTaskList.length === 0"
>
<div
class=
"flex items-center justify-center"
>
<div
v-else
class=
"flex items-center justify-center"
>
<el-empty
:image-size=
"100"
description=
"暂无任务"
/>
</div>
</
div
>
</
transition
>
</div>
</div>
<!-- 每日抽奖 -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment