Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
5b05118a
Commit
5b05118a
authored
Nov 05, 2025
by
spc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.dui88.com/fh/20250528_FHQ1
into dev
parents
d9192734
e93b0665
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
5 deletions
+17
-5
TaskCompleteTips.less
components/renwu/TaskCompleteTips.less
+4
-3
TaskCompleteTips.vue
components/renwu/TaskCompleteTips.vue
+13
-2
No files found.
components/renwu/TaskCompleteTips.less
View file @
5b05118a
...
...
@@ -48,10 +48,11 @@
margin-bottom: 20rpx;
text-align: center;
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
//
overflow: hidden;
//
text-overflow: ellipsis;
//
white-space: nowrap;
max-width: 560rpx;
max-height: 200rpx;
}
.points_text {
...
...
components/renwu/TaskCompleteTips.vue
View file @
5b05118a
...
...
@@ -6,7 +6,8 @@
<!-- 弹窗内容 -->
<view
class=
"task_complete_tips_container"
>
<!-- 第一行:标题文字 -->
<text
class=
"tips_title"
>
完成
{{
taskTitle
}}
任务
</text>
<text
class=
"tips_title"
>
{{
displayTitle
}}
</text>
<!--
<text
class=
"tips_title"
>
完成任务完成任务完成任务任务任务
</text>
-->
<!-- 第二行:积分文字 -->
<text
class=
"points_text"
>
获得
{{
points
}}
积分
</text>
...
...
@@ -30,7 +31,7 @@
</
template
>
<
script
setup
>
import
{
defineProps
,
defineEmits
,
ref
,
watch
}
from
'vue'
;
import
{
defineProps
,
defineEmits
,
ref
,
watch
,
computed
}
from
'vue'
;
import
md
from
'../../md'
;
// Props 定义
...
...
@@ -49,6 +50,16 @@ const props = defineProps({
}
});
// 处理标题文本,超过14个字显示省略号
const
displayTitle
=
computed
(()
=>
{
const
title
=
`完成
${
props
.
taskTitle
}
任务`
;
if
(
title
.
length
>
14
)
{
return
title
.
substring
(
0
,
14
)
+
'...'
;
}
console
.
log
(
'title:'
,
title
);
return
title
;
});
// Emits 定义
const
emit
=
defineEmits
([
'close'
,
'accept'
]);
...
...
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