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
b061625e
Commit
b061625e
authored
May 07, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
倒计时
parent
b42d184f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
14 deletions
+30
-14
home.ts
mock/home.ts
+25
-11
index.ts
src/api/index.ts
+5
-3
No files found.
mock/home.ts
View file @
b061625e
import
{
AESDecrypt
,
AESEncrypt
}
from
"./Crypto"
;
export
default
[
export
default
[
{
{
url
:
'/home/index.do'
,
url
:
'/home/index.do'
,
...
@@ -17,34 +19,46 @@ export default [
...
@@ -17,34 +19,46 @@ export default [
},
},
},
},
{
{
url
:
'/
home
/start.do'
,
url
:
'/
tcs
/start.do'
,
response
:
({
query
})
=>
{
response
:
({
query
})
=>
{
return
{
return
{
"success"
:
true
,
"success"
:
true
,
"code"
:
""
,
"code"
:
""
,
"message"
:
""
,
"message"
:
""
,
"data"
:
{
"data"
:
AESEncrypt
(
JSON
.
stringify
({
userRecordId
:
"userRecordId"
,
recordId
:
"recordId"
,
}
countdownSeconds
:
120
,
guide
:
true
,
}),
"3C8C48E792E9241B"
,
"cDOiBC1n2QrkAY2P"
),
}
}
},
},
},
},
{
{
url
:
'/
home
/submit.do'
,
url
:
'/
tcs
/submit.do'
,
response
:
({
query
})
=>
{
response
:
({
query
})
=>
{
return
{
return
{
success
:
true
,
success
:
true
,
code
:
""
,
code
:
""
,
message
:
""
,
message
:
""
,
data
:
{
data
:
{
prizeVO
:
{
score
:
888
,
prizeId
:
"prizeId"
,
rank
:
1
,
prizeName
:
"prizeName"
,
prizeName
:
"一等奖"
,
prizeImg
:
"prizeImg"
,
reachTargetScore
:
666
,
},
drawChance
:
10
,
remainGameTimes
:
0
,
}
}
}
}
},
},
},
},
{
url
:
'/tcs/guide.do'
,
response
:
({
query
})
=>
{
return
{
success
:
true
,
code
:
""
,
message
:
""
,
data
:
null
,
}
},
},
]
]
src/api/index.ts
View file @
b061625e
...
@@ -27,15 +27,17 @@ const API = generateAPI({
...
@@ -27,15 +27,17 @@ const API = generateAPI({
records
:
"records.query"
,
records
:
"records.query"
,
index
:
"
home
/index.do"
,
index
:
"
tcs
/index.do"
,
submit
:
{
submit
:
{
uri
:
"
home
/submit.do"
,
uri
:
"
tcs
/submit.do"
,
withToken
:
true
,
withToken
:
true
,
method
:
"post"
,
},
},
start
:
{
start
:
{
uri
:
"
home
/start.do"
,
uri
:
"
tcs
/start.do"
,
withToken
:
true
,
withToken
:
true
,
},
},
guide
:
"tcs/guide.do"
,
})
})
...
...
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