Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_MoreGames_CourseList
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
NJ_MoreGames_CourseList
Commits
c2689cb9
Commit
c2689cb9
authored
Feb 13, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 游客只能玩前两个
parent
deba2a96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
NJ_MoreGames_CourseList.ts
.../NJ_MoreGames_CourseList/scene/NJ_MoreGames_CourseList.ts
+7
-0
No files found.
assets/NJ_MoreGames_CourseList/scene/NJ_MoreGames_CourseList.ts
View file @
c2689cb9
...
@@ -118,6 +118,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -118,6 +118,13 @@ export default class SceneComponent extends MyCocosSceneComponent {
middleLayerComponent
.
showTips
(
"
未解锁 [101]
"
);
middleLayerComponent
.
showTips
(
"
未解锁 [101]
"
);
return
;
return
;
}
}
if
(
i
>
2
&&
middleLayerComponent
.
isLogin
==
false
)
{
// 游客可以玩前两个游戏
middleLayerComponent
.
showConfirm
(
"
需要登录后才能使用,去登录吗?
"
,
()
=>
{
middleLayerComponent
.
loadOnlineBundle
(
'
NJ_login
'
);
});
return
;
}
middleLayerComponent
.
setData
(
'
NJ_MoreGames_CourseList
'
,
{
middleLayerComponent
.
setData
(
'
NJ_MoreGames_CourseList
'
,
{
syllabusId
,
syllabusId
,
});
});
...
...
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