Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kww_dayDayGetCredits_250512
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
SparkProjects
kww_dayDayGetCredits_250512
Commits
0e8cd9a1
Commit
0e8cd9a1
authored
May 14, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
f8a04dac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
2 deletions
+12
-2
已签到.png
src/assets/HomePage/sign/已签到.png
+0
-0
签到.png
src/assets/HomePage/sign/签到.png
+0
-0
Sign.module.less
src/pages/HomePage/Sign/Sign.module.less
+5
-0
Sign.tsx
src/pages/HomePage/Sign/Sign.tsx
+7
-2
No files found.
src/assets/HomePage/sign/已签到.png
0 → 100644
View file @
0e8cd9a1
8.18 KB
src/assets/HomePage/sign/签到.png
View replaced file @
f8a04dac
View file @
0e8cd9a1
19.6 KB
|
W:
|
H:
19.1 KB
|
W:
|
H:
2-up
Swipe
Onion skin
src/pages/HomePage/Sign/Sign.module.less
View file @
0e8cd9a1
...
@@ -126,5 +126,10 @@
...
@@ -126,5 +126,10 @@
width: 335px;
width: 335px;
height: 69px;
height: 69px;
.webpBg("HomePage/sign/签到.png");
.webpBg("HomePage/sign/签到.png");
&.btnSigned {
.webpBg("HomePage/sign/已签到.png");
}
}
}
}
}
src/pages/HomePage/Sign/Sign.tsx
View file @
0e8cd9a1
...
@@ -63,7 +63,12 @@ class Sign extends React.Component<any, any> {
...
@@ -63,7 +63,12 @@ class Sign extends React.Component<any, any> {
<
div
className=
{
creditCls
}
>
<
div
className=
{
creditCls
}
>
{
!
boolSign
&&
<
div
className=
{
styles
.
creditTxt
}
>
最高
<
span
>
{
creditsNum
}
</
span
></
div
>
}
{
!
boolSign
&&
<
div
className=
{
styles
.
creditTxt
}
>
最高
<
span
>
{
creditsNum
}
</
span
></
div
>
}
</
div
>
</
div
>
<
div
className=
{
dayCls
}
>
第
{
day
}
天
</
div
>
{
boolSign
?
<
div
className=
{
dayCls
}
>
已签
</
div
>
:
<
div
className=
{
dayCls
}
>
第
{
day
}
天
</
div
>
}
</
div
>
</
div
>
})
})
}
}
...
@@ -83,7 +88,7 @@ class Sign extends React.Component<any, any> {
...
@@ -83,7 +88,7 @@ class Sign extends React.Component<any, any> {
transform
:
`translateX(${signProgress * 0.99}rem)`
,
transform
:
`translateX(${signProgress * 0.99}rem)`
,
}
}
/>
}
}
/>
<
Button
className=
{
styles
.
btn
}
onClick=
{
this
.
clickSign
}
/>
<
Button
className=
{
classNames
(
styles
.
btn
,
{
[
styles
.
btnSigned
]:
todaySignFlag
})
}
onClick=
{
this
.
clickSign
}
/>
</
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