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
a96d65e0
Commit
a96d65e0
authored
May 19, 2025
by
徐士卿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
a01e1413
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
challenge.ts
mock/challenge.ts
+1
-1
index.ts
src/api/index.ts
+1
-1
consume_credits.jsx
src/components/consume_credits/consume_credits.jsx
+1
-1
consume_qg.jsx
src/components/consume_qg/consume_qg.jsx
+1
-1
Check.tsx
src/pages/HomePage/Check/Check.tsx
+2
-2
No files found.
mock/challenge.ts
View file @
a96d65e0
...
...
@@ -176,7 +176,7 @@ export default [
},
{
url
:
"/challenge/taskCompl
a
te.do"
,
url
:
"/challenge/taskCompl
e
te.do"
,
method
:
'get'
,
response
:
({
query
})
=>
{
return
{
...
...
src/api/index.ts
View file @
a96d65e0
...
...
@@ -53,7 +53,7 @@ const API = generateAPI({
getChallengeResign
:
"challenge/resign.do"
,
// 挑战-任务完成接口
getChallenegeCompl
ate
:
"challenge/taskCompla
te.do"
,
getChallenegeCompl
ete
:
"challenge/taskComple
te.do"
,
//挑战-获取邀请码
getChallengeInviteCode
:
"challenge/inviteCode.do"
,
...
...
src/components/consume_credits/consume_credits.jsx
View file @
a96d65e0
...
...
@@ -28,7 +28,7 @@ class Consume_credits extends React.Component {
credits
:
n
,
},
async
()
=>
{
const
{
success
}
=
await
API
.
getChallenegeCompl
a
te
({
const
{
success
}
=
await
API
.
getChallenegeCompl
e
te
({
taskCode
:
code
,
ticket
:
store
.
ticketNum
,
});
...
...
src/components/consume_qg/consume_qg.jsx
View file @
a96d65e0
...
...
@@ -19,7 +19,7 @@ class Consume_qg extends React.Component {
handleclock
=
async
(
code
)
=>
{
handleLogClick
(
17
);
const
{
success
}
=
await
API
.
getChallenegeCompl
a
te
({
taskCode
:
code
});
const
{
success
}
=
await
API
.
getChallenegeCompl
e
te
({
taskCode
:
code
});
if
(
success
)
{
ModalCtrl
.
closeModal
();
}
...
...
src/pages/HomePage/Check/Check.tsx
View file @
a96d65e0
...
...
@@ -57,10 +57,10 @@ class Check extends React.Component<any, any> {
}
else
if
(
type
===
"yqzl"
||
type
===
"yqzl_new"
)
{
store
.
doInvite
(
code
)
}
else
if
(
type
===
"scan"
)
{
await
API
.
getChallenegeCompl
a
te
({
taskCode
:
code
});
await
API
.
getChallenegeCompl
e
te
({
taskCode
:
code
});
wx
.
miniProgram
.
switchTab
({
url
:
jumpUrl
});
}
else
if
(
type
===
"browse"
)
{
await
API
.
getChallenegeCompl
a
te
({
taskCode
:
code
});
await
API
.
getChallenegeCompl
e
te
({
taskCode
:
code
});
window
.
location
.
href
=
jumpUrl
;
}
else
if
(
type
===
"sign"
)
{
Toast
.
show
(
"快去签到吧"
);
...
...
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