Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
db-game-template
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
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
崔立强
db-game-template
Commits
b596bd38
Commit
b596bd38
authored
May 25, 2021
by
Edwise
🍷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
迭代ok了
parent
ffbd7daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
StartItem.ts
egret/src/start1/StartItem.ts
+3
-2
No files found.
egret/src/start1/StartItem.ts
View file @
b596bd38
...
@@ -31,8 +31,8 @@ export default class StartItem extends eui.ItemRenderer {
...
@@ -31,8 +31,8 @@ export default class StartItem extends eui.ItemRenderer {
location
.
href
=
this
.
data
.
activityUrl
;
location
.
href
=
this
.
data
.
activityUrl
;
}
else
{
}
else
{
let
activityId
=
parseInt
(
this
.
data
.
activityId
);
let
activityId
=
parseInt
(
this
.
data
.
activityId
);
const
{
data
}
=
DataManager
.
ins
.
getData
(
'yyh_index'
);
//
const { data } = DataManager.ins.getData('yyh_index');
if
(
activityId
>=
3
&&
!
isNaN
(
activityId
)
&&
data
.
lighten
!=
1
)
{
if
(
activityId
>=
3
&&
!
isNaN
(
activityId
))
{
getToken
().
then
((
token
)
=>
{
getToken
().
then
((
token
)
=>
{
if
(
!
token
)
{
if
(
!
token
)
{
showToast
(
'网络异常,请稍后重试'
);
showToast
(
'网络异常,请稍后重试'
);
...
@@ -40,6 +40,7 @@ export default class StartItem extends eui.ItemRenderer {
...
@@ -40,6 +40,7 @@ export default class StartItem extends eui.ItemRenderer {
}
}
NetManager
.
ins
.
yyh_light
({
activityId
:
this
.
data
.
activityId
,
token
:
token
},
(
success
,
res
)
=>
{
NetManager
.
ins
.
yyh_light
({
activityId
:
this
.
data
.
activityId
,
token
:
token
},
(
success
,
res
)
=>
{
console
.
log
(
"调接口跳转了,,,-->>"
,
res
)
console
.
log
(
"调接口跳转了,,,-->>"
,
res
)
// alert(`调接口跳转了,,,-->>${JSON.stringify(res)}`)
if
(
!
success
)
{
if
(
!
success
)
{
showToast
(
'网络异常,请稍后重试'
)
showToast
(
'网络异常,请稍后重试'
)
return
;
return
;
...
...
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