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
6aed4f98
Commit
6aed4f98
authored
May 15, 2025
by
徐士卿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
c7518dea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
index.ts
src/api/index.ts
+6
-1
store.ts
src/store/store.ts
+14
-3
No files found.
src/api/index.ts
View file @
6aed4f98
...
@@ -24,7 +24,12 @@ const API = generateAPI({
...
@@ -24,7 +24,12 @@ const API = generateAPI({
uri
:
"userLogin.check"
,
uri
:
"userLogin.check"
,
showMsg
:
false
,
showMsg
:
false
,
},
},
records
:
"records.query"
,
// 奖品记录
records
:
"common/records.do"
,
// 红包补领
redpacket
:
"common/moneyReissue.do"
,
getInviteCode
:
{
getInviteCode
:
{
uri
:
'inviteAssist_1/getInviteCode.do'
,
uri
:
'inviteAssist_1/getInviteCode.do'
,
withToken
:
true
,
withToken
:
true
,
...
...
src/store/store.ts
View file @
6aed4f98
...
@@ -7,6 +7,8 @@ import { PageCtrl } from '@/core/ctrls/PageCtrl';
...
@@ -7,6 +7,8 @@ import { PageCtrl } from '@/core/ctrls/PageCtrl';
import
{
ModalCtrl
}
from
'@/core/ctrls/ModalCtrl'
;
import
{
ModalCtrl
}
from
'@/core/ctrls/ModalCtrl'
;
import
Choice_challenge
from
'../../src/components/choice_challenge/choice_challenge'
;
import
Choice_challenge
from
'../../src/components/choice_challenge/choice_challenge'
;
import
SkyFullGoldPanel
from
"@/panels/SkyFullGoldPanel/SkyFullGoldPanel.tsx"
;
import
SkyFullGoldPanel
from
"@/panels/SkyFullGoldPanel/SkyFullGoldPanel.tsx"
;
import
Renewmodule
from
'../../src/components/renewmodule/renewmodule'
;
import
Finish_task
from
'../../src/components/finish_task/finish_task'
;
class
Store
{
class
Store
{
...
@@ -29,6 +31,9 @@ class Store {
...
@@ -29,6 +31,9 @@ class Store {
ruleInfo
=
''
;
ruleInfo
=
''
;
/** 积分门票 */
ticketNum
=
null
;
/** 获取活动规则 */
/** 获取活动规则 */
async
initRule
()
{
async
initRule
()
{
// 模拟获取远程的数据
// 模拟获取远程的数据
...
@@ -111,14 +116,14 @@ class Store {
...
@@ -111,14 +116,14 @@ class Store {
// 首页挑战信息
// 首页挑战信息
taskInfo
:
{
taskInfo
:
{
boolOpenChallenge
?:
boolean
;
boolOpenChallenge
?:
boolean
;
challengeStartTime
?:
number
;
challengeEndTime
?:
number
;
choosedChallengeId
?:
string
;
choosedChallengeId
?:
string
;
hasChallengeDay
?:
number
;
hasChallengeDay
?:
number
;
boolNeedResign
?:
boolean
;
boolNeedResign
?:
boolean
;
challengeConfigList
?:
Array
<
{
challengeConfigList
?:
Array
<
{
challengeId
:
string
;
challengeId
:
string
;
challengeTotalDay
:
number
;
challengeTotalDay
:
number
;
challengeStartTime
:
number
;
challengeEndTime
:
number
;
prizeName
:
string
;
prizeName
:
string
;
prizeImg
:
string
;
prizeImg
:
string
;
resignJf
:
number
;
resignJf
:
number
;
...
@@ -142,9 +147,15 @@ class Store {
...
@@ -142,9 +147,15 @@ class Store {
const
{
success
,
data
}
=
await
API
.
getChallengeIndex
();
const
{
success
,
data
}
=
await
API
.
getChallengeIndex
();
if
(
success
&&
data
)
{
if
(
success
&&
data
)
{
this
.
taskInfo
=
data
this
.
taskInfo
=
data
if
(
!
data
.
choosedChallengeId
)
{
if
(
!
data
.
choosedChallengeId
)
{
ModalCtrl
.
showModal
(
Choice_challenge
)
ModalCtrl
.
showModal
(
Choice_challenge
)
}
}
if
(
data
.
boolNeedResignPop
)
{
ModalCtrl
.
showModal
(
Renewmodule
)
}
if
(
data
.
boolNeedChallengeCompletePop
){
ModalCtrl
.
showModal
(
Finish_task
)
}
}
}
};
};
...
...
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