Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Y
yyh
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
wildfirecode13
yyh
Commits
cd630485
Commit
cd630485
authored
Dec 10, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d2de2567
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
24 deletions
+27
-24
Buried.ts
egret/libs/tw/util/Buried.ts
+22
-22
TransScene.ts
egret/src/yazuwei/TransScene.ts
+5
-2
No files found.
egret/libs/tw/util/Buried.ts
View file @
cd630485
...
...
@@ -4,34 +4,34 @@ import { IExposureData } from '../data/common/IExposureData';
export
class
Buried
{
private
static
appId
:
number
;
private
static
consumerId
:
number
;
//
private static consumerId: number;
private
static
oaId
:
number
;
/**
* 初始化
*/
public
static
init
():
void
{
if
(
DataManager
.
ins
.
gameCfgData
)
{
this
.
appId
=
DataManager
.
ins
.
gameCfgData
.
appInfo
.
appId
;
this
.
consumerId
=
DataManager
.
ins
.
getInfoData
.
consumerId
;
this
.
oaId
=
DataManager
.
ins
.
gameCfgData
.
gameInfo
.
oaId
;
}
else
if
(
DataManager
.
ins
.
customCfgData
)
{
this
.
appId
=
DataManager
.
ins
.
customCfgData
.
appId
;
this
.
consumerId
=
DataManager
.
ins
.
customCfgData
.
consumerId
;
this
.
oaId
=
DataManager
.
ins
.
customCfgData
.
oaId
;
}
else
if
(
DataManager
.
ins
.
petIndexData
&&
DataManager
.
ins
.
petIndexData
.
appId
&&
DataManager
.
ins
.
petIndexData
.
activityId
)
{
this
.
appId
=
DataManager
.
ins
.
petIndexData
.
appId
;
this
.
consumerId
=
DataManager
.
ins
.
petIndexData
.
consumerId
;
this
.
oaId
=
DataManager
.
ins
.
petIndexData
.
activityId
;
}
else
if
(
DataManager
.
ins
.
petsIndexData
&&
DataManager
.
ins
.
petsIndexData
.
appId
&&
DataManager
.
ins
.
petsIndexData
.
activityId
)
{
this
.
appId
=
DataManager
.
ins
.
petsIndexData
.
appId
;
this
.
consumerId
=
DataManager
.
ins
.
petsIndexData
.
consumerId
;
this
.
oaId
=
DataManager
.
ins
.
petsIndexData
.
activityId
;
}
else
{
//
if (DataManager.ins.gameCfgData) {
//
this.appId = DataManager.ins.gameCfgData.appInfo.appId;
//
this.consumerId = DataManager.ins.getInfoData.consumerId;
//
this.oaId = DataManager.ins.gameCfgData.gameInfo.oaId;
//
} else if (DataManager.ins.customCfgData) {
//
this.appId = DataManager.ins.customCfgData.appId;
//
this.consumerId = DataManager.ins.customCfgData.consumerId;
//
this.oaId = DataManager.ins.customCfgData.oaId;
//
} else if (DataManager.ins.petIndexData && DataManager.ins.petIndexData.appId && DataManager.ins.petIndexData.activityId) {
//
this.appId = DataManager.ins.petIndexData.appId;
//
this.consumerId = DataManager.ins.petIndexData.consumerId;
//
this.oaId = DataManager.ins.petIndexData.activityId;
//
} else if (DataManager.ins.petsIndexData && DataManager.ins.petsIndexData.appId && DataManager.ins.petsIndexData.activityId) {
//
this.appId = DataManager.ins.petsIndexData.appId;
//
this.consumerId = DataManager.ins.petsIndexData.consumerId;
//
this.oaId = DataManager.ins.petsIndexData.activityId;
//
} else {
this
.
appId
=
window
[
"appId"
];
this
.
consumerId
=
window
[
"consumerId"
];
//
this.consumerId = window["consumerId"];
this
.
oaId
=
window
[
"projectId"
];
}
//
}
}
/**
...
...
@@ -47,7 +47,7 @@ export class Buried {
dpm
:
dpm
,
dcm
:
dcm
,
dom
:
dom
,
consumerId
:
Buried
.
consumerId
,
//
consumerId: Buried.consumerId,
appId
:
Buried
.
appId
,
domain
:
embedDomain
};
...
...
@@ -56,7 +56,7 @@ export class Buried {
const
exposure
:
IExposureData
=
{
dpm
:
dpm
,
dcm
:
dcm
,
consumerId
:
Buried
.
consumerId
,
//
consumerId: Buried.consumerId,
appId
:
Buried
.
appId
,
domain
:
embedDomain
};
...
...
egret/src/yazuwei/TransScene.ts
View file @
cd630485
...
...
@@ -10,6 +10,7 @@ import { ModuleTypes } from "../types/sceneTypes";
import
PanelCtrl
from
"../ctrls/panelCtrl"
;
import
iswx
from
"../iswx"
;
import
{
getlogItem
}
from
"./ConfirmPanel"
;
import
{
GCache
}
from
"../../libs/tc/util/GCache"
;
export
default
class
TransScene
extends
Scene
{
_bg
:
SVGA
.
EgretMovieClip
;
...
...
@@ -21,15 +22,17 @@ export default class TransScene extends Scene {
constructor
(
data
)
{
super
();
this
.
initUI
(
data
);
GCache
.
writeCache
(
"isGuide2"
,
true
);
GCache
.
writeCache
(
"isGuide1"
,
true
);
}
async
initUI
(
data
)
{
if
(
iswx
())
{
NetManager
.
ins
.
showLog
(
getlogItem
(
9
));
}
else
{
}
else
{
NetManager
.
ins
.
showLog
(
getlogItem
(
8
));
}
this
.
once
(
egret
.
Event
.
ADDED_TO_STAGE
,
()
=>
{
this
.
height
=
this
.
stage
.
stageHeight
;
},
this
);
...
...
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