Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
LuzhouLaojiaoSnake_250428
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
LuzhouLaojiaoSnake_250428
Commits
4306ec45
Commit
4306ec45
authored
May 07, 2025
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
音乐
parent
c7ffec11
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
MusicBtn.tsx
src/core/components/MusicBtn/MusicBtn.tsx
+2
-2
HomePage.less
src/pages/HomePage/HomePage.less
+2
-2
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+4
-2
No files found.
src/core/components/MusicBtn/MusicBtn.tsx
View file @
4306ec45
...
...
@@ -9,8 +9,8 @@ export interface IMusicBtnProps extends HTMLAttributes<HTMLDivElement> {
disable
?:
string
;
}
import
musicClose
from
"@/assets/
common/music_close
.png"
;
import
musicOpen
from
"@/assets/
common/music_ope
n.png"
;
import
musicClose
from
"@/assets/
homePage/musicoff
.png"
;
import
musicOpen
from
"@/assets/
homePage/musico
n.png"
;
@
observer
class
MusicBtn
extends
React
.
Component
<
IMusicBtnProps
>
{
...
...
src/pages/HomePage/HomePage.less
View file @
4306ec45
...
...
@@ -130,7 +130,7 @@
left: 684px;
top: 155px;
position: absolute;
.sparkBg("homePage/musicon.png");
//
.sparkBg("homePage/musicon.png");
}
.musicf {
width: 41px;
...
...
@@ -138,7 +138,7 @@
left: 691px;
top: 162px;
position: absolute;
.sparkBg("homePage/musicoff.png");
//
.sparkBg("homePage/musicoff.png");
}
.mainbtn {
width: 474px;
...
...
src/pages/HomePage/HomePage.tsx
View file @
4306ec45
...
...
@@ -13,6 +13,7 @@ import PrizePanel from "@/panels/PrizePanel/PrizePanel.tsx";
import
RulePanel
from
"@/panels/RulePanel/RulePanel.tsx"
;
import
{
PageCtrl
}
from
"@/core/ctrls/PageCtrl.tsx"
;
import
GamePage
from
"@/pages/GamePage/GamePage.tsx"
;
import
musicStore
from
'@/store/musicStore'
;
@
observer
class
HomePage
extends
React
.
Component
<
any
,
any
>
{
...
...
@@ -67,8 +68,9 @@ class HomePage extends React.Component<any, any> {
<
span
className=
"title"
></
span
>
<
span
className=
"prizebtn"
></
span
>
<
span
className=
"rulebtn"
></
span
>
<
span
className=
"musicon"
></
span
>
<
span
className=
"musicf"
></
span
>
{
/* <span className="musicon"></span>
<span className="musicf"></span> */
}
<
MusicBtn
className=
{
`${musicStore.mute ? 'musicf' : 'musicon'}`
}
></
MusicBtn
>
<
div
className=
"mainbtn"
>
<
span
className=
"mainimg"
></
span
>
<
span
className=
"mainnum"
>
剩余次数:3
</
span
>
...
...
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