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
1e2333eb
Commit
1e2333eb
authored
Oct 20, 2025
by
cc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
登录修改
parent
d2f7fa0f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
3 deletions
+24
-3
index.ts
mock/index.ts
+12
-0
index.ts
src/api/index.ts
+1
-1
HomePage.tsx
src/pages/HomePage/HomePage.tsx
+1
-0
PlantGameBubble.ts
src/pages/HomePage/Top/Components/PlantGameBubble.ts
+2
-0
store.ts
src/store/store.ts
+8
-2
No files found.
mock/index.ts
View file @
1e2333eb
...
...
@@ -11,6 +11,18 @@ export default [
}
},
},
{
url
:
'/customActivity/kww/custom/kwwBaseInfo'
,
method
:
'get'
,
response
:
({
query
})
=>
{
return
{
"success"
:
true
,
"data"
:
{
"boolLogin"
:
false
,
}
}
},
},
{
url
:
'/coop_frontVariable.query'
,
method
:
'get'
,
...
...
src/api/index.ts
View file @
1e2333eb
...
...
@@ -84,7 +84,7 @@ const API = generateAPI({
receiveBubble
:
"main/receiveBubble.do"
,
startVideo
:
"main/startVideo.do"
,
getLoginInfo
:
`/customActivity/kww/custom/kwwBaseInfo`
,
})
// console.log('======', API)
...
...
src/pages/HomePage/HomePage.tsx
View file @
1e2333eb
...
...
@@ -23,6 +23,7 @@ class HomePage extends React.Component<any, any> {
if
(
store
.
frontVariable
?.
homeTip
?.
length
>
0
)
{
store
.
changeHomeTip
()
}
store
.
getLoginInfo
();
// store.queryTask()
// if (getUrlParam('inviteCode')) {
// store.doAssist()
...
...
src/pages/HomePage/Top/Components/PlantGameBubble.ts
View file @
1e2333eb
...
...
@@ -4,6 +4,7 @@ import { Ease, Tween } from "@/core/tween";
import
{
_asyncThrottle
,
prefixInteger
}
from
"@/utils/utils.ts"
;
import
{
reactor
,
observer
}
from
"@/pages/HomePage/Top/mobx/decorators.ts"
;
import
{
handleLogClick
,
handleLogExposure
}
from
"@/MD.ts"
;
import
store
from
"@/store/store"
;
@
observer
...
...
@@ -29,6 +30,7 @@ export class PlantGameBubble extends Container implements IBase {
}
onPointerUp
=
_asyncThrottle
(
async
()
=>
{
if
(
!
store
.
checkLoginStatus
())
return
;
location
.
href
=
location
.
origin
+
"/projectx/p124e3402/index.html?appID=89420"
});
...
...
src/store/store.ts
View file @
1e2333eb
...
...
@@ -140,13 +140,19 @@ class Store {
}
}
loginInfo
:
any
=
{};
async
getLoginInfo
()
{
const
{
success
,
data
}
=
await
API
.
getLoginInfo
();
if
(
!
success
)
return
;
this
.
loginInfo
=
data
;
}
/**
* 校验登录状态
*/
checkLoginStatus
()
{
const
{
login
}
=
this
.
indexData
||
{};
const
{
boolLogin
}
=
this
.
loginInfo
||
{};
if
(
l
ogin
===
false
)
{
if
(
boolL
ogin
===
false
)
{
// 可能会有助力参数啥的 或者打开的是落地页 所以直接把当前href传过去吧
let
midUrl
=
location
.
origin
+
CFG
.
loginMidUrl
+
encodeURIComponent
(
location
.
href
);
if
(
getUrlParam
(
'version'
))
midUrl
+=
`&version=
${
getUrlParam
(
'version'
)}
`
;
...
...
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