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
f666f0ad
Commit
f666f0ad
authored
May 12, 2025
by
wangzhujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maidian
parent
3ad9b55d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
13 deletions
+33
-13
MD.ts
src/MD.ts
+1
-1
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+8
-8
FailPanel.tsx
src/panels/FailPanel/FailPanel.tsx
+2
-2
SucPanel.tsx
src/panels/SucPanel/SucPanel.tsx
+2
-2
store.ts
src/store/store.ts
+20
-0
No files found.
src/MD.ts
View file @
f666f0ad
...
@@ -9,7 +9,7 @@ const domain = "";
...
@@ -9,7 +9,7 @@ const domain = "";
const
channel
=
getUrlParam
(
"channel"
);
const
channel
=
getUrlParam
(
"channel"
);
const
dom
=
`
${
channel
}
.0.0.0`
;
const
dom
=
`
${
channel
}
.0.0.0`
;
const
MDList
:
IAutoMdData
[]
=
new
Array
(
20
).
fill
(
""
).
map
((
_
,
i
)
=>
{
const
MDList
:
IAutoMdData
[]
=
new
Array
(
38
).
fill
(
""
).
map
((
_
,
i
)
=>
{
return
{
return
{
ele
:
`.md
${
i
+
1
}
`
,
ele
:
`.md
${
i
+
1
}
`
,
data
:
{
data
:
{
...
...
src/pages/HomePage/HomePage.tsx
View file @
f666f0ad
...
@@ -106,7 +106,7 @@ class HomePage extends React.Component<any, any> {
...
@@ -106,7 +106,7 @@ class HomePage extends React.Component<any, any> {
render
()
{
render
()
{
const
{
remainTimes
,
remainDrawTimes
,
rank
}
=
store
.
indexData
const
{
remainTimes
,
remainDrawTimes
,
rank
}
=
store
.
indexData
return
<
div
className=
"homepage"
ref=
{
(
el
)
=>
this
.
root
=
el
}
>
return
<
div
className=
"homepage
md1
"
ref=
{
(
el
)
=>
this
.
root
=
el
}
>
<
span
className=
"bg"
></
span
>
<
span
className=
"bg"
></
span
>
<
div
className=
"infobox"
>
<
div
className=
"infobox"
>
<
span
className=
"infobg"
></
span
>
<
span
className=
"infobg"
></
span
>
...
@@ -117,24 +117,24 @@ class HomePage extends React.Component<any, any> {
...
@@ -117,24 +117,24 @@ class HomePage extends React.Component<any, any> {
<
img
src=
{
rank
?.
prizeImg
}
></
img
>
<
img
src=
{
rank
?.
prizeImg
}
></
img
>
</
span
>
</
span
>
</
div
>
</
div
>
<
div
className=
"rankinfo"
onClick=
{
this
.
clickRank
}
>
<
div
className=
"rankinfo
md5
"
onClick=
{
this
.
clickRank
}
>
<
span
className=
"rankarr"
></
span
>
<
span
className=
"rankarr"
></
span
>
<
span
className=
"ranklab"
>
我的排名
</
span
>
<
span
className=
"ranklab"
>
我的排名
</
span
>
<
span
className=
"ranknum"
>
{
(
rank
?.
rank
==
-
1
?
"999+"
:
rank
?.
rank
>
999
?
'999+'
:
((
rank
?.
rank
||
'--'
)
+
"名"
))
}
</
span
>
<
span
className=
"ranknum"
>
{
(
rank
?.
rank
==
-
1
?
"999+"
:
rank
?.
rank
>
999
?
'999+'
:
((
rank
?.
rank
||
'--'
)
+
"名"
))
}
</
span
>
</
div
>
</
div
>
</
div
>
</
div
>
<
span
className=
"title"
></
span
>
<
span
className=
"title"
></
span
>
<
Button
className=
"prizebtn"
onClick=
{
this
.
clickPrize
}
></
Button
>
<
Button
className=
"prizebtn
md2
"
onClick=
{
this
.
clickPrize
}
></
Button
>
<
Button
className=
"rulebtn"
onClick=
{
this
.
clickRule
}
></
Button
>
<
Button
className=
"rulebtn
md3
"
onClick=
{
this
.
clickRule
}
></
Button
>
{
/* <span className="musicon"></span>
{
/* <span className="musicon"></span>
<span className="musicf"></span> */
}
<span className="musicf"></span> */
}
<
MusicBtn
className=
{
`${musicStore.mute ? 'musicf
' : 'musicon
'}`
}
></
MusicBtn
>
<
MusicBtn
className=
{
`${musicStore.mute ? 'musicf
md4' : 'musicon md4
'}`
}
></
MusicBtn
>
<
Button
className=
"mainbtn"
onClick=
{
this
.
startGame
}
>
<
Button
className=
"mainbtn
md7
"
onClick=
{
this
.
startGame
}
>
<
SvgaPlayer
className=
'btnsvga'
src=
{
btnSvga
}
></
SvgaPlayer
>
<
SvgaPlayer
className=
'btnsvga'
src=
{
btnSvga
}
></
SvgaPlayer
>
<
span
className=
"mianimg"
></
span
>
<
span
className=
"mianimg"
></
span
>
<
span
className=
"mainnum"
>
剩余次数:
{
remainTimes
||
0
}
</
span
>
<
span
className=
"mainnum"
>
剩余次数:
{
remainTimes
||
0
}
</
span
>
</
Button
>
</
Button
>
<
Button
className=
"shopbtn"
onClick=
{
this
.
clickShop
}
>
<
Button
className=
"shopbtn
md6
"
onClick=
{
this
.
clickShop
}
>
<
WxOpenModule
<
WxOpenModule
id=
{
"sharewxbtn"
}
id=
{
"sharewxbtn"
}
appid=
{
'wxb3b1041867218f81'
}
appid=
{
'wxb3b1041867218f81'
}
...
@@ -142,7 +142,7 @@ class HomePage extends React.Component<any, any> {
...
@@ -142,7 +142,7 @@ class HomePage extends React.Component<any, any> {
envVersion=
{
'release'
}
envVersion=
{
'release'
}
path=
{
'/pages/unify/unify?orgId=200282401019674482&targetUrl=%2Fpages%2Fcoupon%2Fcoupons-list'
}
></
WxOpenModule
>
path=
{
'/pages/unify/unify?orgId=200282401019674482&targetUrl=%2Fpages%2Fcoupon%2Fcoupons-list'
}
></
WxOpenModule
>
</
Button
>
</
Button
>
<
Button
className=
"drawbtn"
onClick=
{
this
.
clickDraw
}
>
<
Button
className=
"drawbtn
md8
"
onClick=
{
this
.
clickDraw
}
>
<
span
className=
"drawimg"
></
span
>
<
span
className=
"drawimg"
></
span
>
<
div
className=
"drawnum"
>
<
div
className=
"drawnum"
>
<
span
className=
"drawnumbg"
></
span
>
<
span
className=
"drawnumbg"
></
span
>
...
...
src/panels/FailPanel/FailPanel.tsx
View file @
f666f0ad
...
@@ -43,8 +43,8 @@ class FailPanel extends React.Component<IFailPanelProps> {
...
@@ -43,8 +43,8 @@ class FailPanel extends React.Component<IFailPanelProps> {
单局游戏分数达200
<
br
/>
单局游戏分数达200
<
br
/>
即可获得
<
span
>
1次抽奖机会
</
span
>
即可获得
<
span
>
1次抽奖机会
</
span
>
</
div
>
</
div
>
<
Button
className=
"btn"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"btn
md21
"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
<
Button
className=
"close
md22
"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
</
div
>;
}
}
}
}
...
...
src/panels/SucPanel/SucPanel.tsx
View file @
f666f0ad
...
@@ -42,8 +42,8 @@ class SucPanel extends React.Component<ISucPanelProps> {
...
@@ -42,8 +42,8 @@ class SucPanel extends React.Component<ISucPanelProps> {
<
div
className=
"rank"
>
当前排名:NO.
{
rank
<=
0
?
"999+"
:
rank
}
</
div
>
<
div
className=
"rank"
>
当前排名:NO.
{
rank
<=
0
?
"999+"
:
rank
}
</
div
>
<
div
className=
"score"
>
{
score
}
<
span
>
分
</
span
></
div
>
<
div
className=
"score"
>
{
score
}
<
span
>
分
</
span
></
div
>
<
div
className=
"tip"
>
恭喜获得抽奖机会
<
span
>
+1
</
span
></
div
>
<
div
className=
"tip"
>
恭喜获得抽奖机会
<
span
>
+1
</
span
></
div
>
<
Button
className=
"btn"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"btn
md23
"
onClick=
{
this
.
clickBtn
}
/>
<
Button
className=
"close"
onClick=
{
this
.
clickClose
}
/>
<
Button
className=
"close
md24
"
onClick=
{
this
.
clickClose
}
/>
</
div
>;
</
div
>;
}
}
}
}
...
...
src/store/store.ts
View file @
f666f0ad
...
@@ -7,6 +7,7 @@ import Ranknoprizepop from '@/components/ranknoprizepop/ranknoprizepop';
...
@@ -7,6 +7,7 @@ import Ranknoprizepop from '@/components/ranknoprizepop/ranknoprizepop';
import
Rankprizepop
from
'@/components/rankprizepop/rankprizepop'
;
import
Rankprizepop
from
'@/components/rankprizepop/rankprizepop'
;
import
{
getUrlParam
}
from
'@/utils/utils'
;
import
{
getUrlParam
}
from
'@/utils/utils'
;
import
{
isWechatMiniProgram
,
isWeiXin
}
from
'@/AppTools'
;
import
{
isWechatMiniProgram
,
isWeiXin
}
from
'@/AppTools'
;
import
{
handleLogExposure
}
from
'@/MD'
;
class
Store
{
class
Store
{
...
@@ -105,6 +106,25 @@ class Store {
...
@@ -105,6 +106,25 @@ class Store {
const
{
success
,
data
}
=
await
API
.
queryTasks
();
const
{
success
,
data
}
=
await
API
.
queryTasks
();
if
(
success
)
{
if
(
success
)
{
this
.
taskList
=
data
.
item
;
this
.
taskList
=
data
.
item
;
for
(
let
i
=
0
;
i
<
data
.
item
.
length
;
i
++
)
{
if
(
data
.
item
[
i
].
code
===
'login'
)
{
if
(
data
.
item
[
i
].
taskStatus
==
1
)
{
handleLogExposure
(
9
)
}
}
else
if
(
data
.
item
[
i
].
code
===
'invite'
)
{
if
(
data
.
item
[
i
].
taskStatus
==
0
)
{
handleLogExposure
(
10
,
1
)
}
else
if
(
data
.
item
[
i
].
taskStatus
==
1
)
{
handleLogExposure
(
10
,
2
)
}
}
else
if
(
data
.
item
[
i
].
code
===
'scan'
)
{
if
(
data
.
item
[
i
].
taskStatus
==
0
)
{
handleLogExposure
(
11
,
1
)
}
else
if
(
data
.
item
[
i
].
taskStatus
==
1
)
{
handleLogExposure
(
11
,
2
)
}
}
}
}
}
}
}
async
doAssist
()
{
async
doAssist
()
{
...
...
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