Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
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
王剑峰
xiaoxiaoleTuia
Commits
08718e42
Commit
08718e42
authored
Mar 05, 2020
by
张华挺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
brige
parent
42848340
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
29 deletions
+33
-29
build.js
build.js
+2
-2
output.js
egret/bin-release/output.js
+1
-1
output_develop.js
egret/bin-release/output_develop.js
+1
-1
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+2
-1
MainScene.ts
egret/src/mainScene/MainScene.ts
+1
-1
SignPanel.ts
egret/src/panels/SignPanel.ts
+1
-1
getConfig.json
mock/tuia/getConfig.json
+25
-22
No files found.
build.js
View file @
08718e42
...
@@ -23,6 +23,6 @@ else if (cmd === 'build' && process.argv[3] === 'prod2') {
...
@@ -23,6 +23,6 @@ else if (cmd === 'build' && process.argv[3] === 'prod2') {
if
(
process
.
argv
[
4
]
===
'exml'
)
if
(
process
.
argv
[
4
]
===
'exml'
)
cmd
=
'buildProdEXML'
;
cmd
=
'buildProdEXML'
;
}
}
build
[
cmd
](
'egret'
);
//
build[cmd]('egret');
//
build['notinypng']('egret');
build
[
'notinypng'
](
'egret'
);
console
.
log
();
console
.
log
();
\ No newline at end of file
egret/bin-release/output.js
View file @
08718e42
This diff is collapsed.
Click to expand it.
egret/bin-release/output_develop.js
View file @
08718e42
This diff is collapsed.
Click to expand it.
egret/libs/new_wx/components/PrizePanel.ts
View file @
08718e42
...
@@ -48,6 +48,7 @@ export default class PrizePanel extends Panel {
...
@@ -48,6 +48,7 @@ export default class PrizePanel extends Panel {
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
console
.
log
(
'initscreen'
)
this
.
initTTScreen
()
this
.
initTTScreen
()
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
[
'lvTxt'
].
text
=
`关卡
${
this
.
_level
}
`
this
[
'lvTxt'
].
text
=
`关卡
${
this
.
_level
}
`
...
@@ -124,7 +125,7 @@ export default class PrizePanel extends Panel {
...
@@ -124,7 +125,7 @@ export default class PrizePanel extends Panel {
if
(
signConfigData
[
0
].
index
===
0
)
{
if
(
signConfigData
[
0
].
index
===
0
)
{
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TTPauseScreen"
],
3
)
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TTPauseScreen"
],
3
)
}
else
if
(
signConfigData
[
0
].
index
===
1
)
{
}
else
if
(
signConfigData
[
0
].
index
===
1
)
{
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TAPauseScreen"
],
3
)
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TAPauseScreen"
],
4
)
}
}
}
}
}
}
...
...
egret/src/mainScene/MainScene.ts
View file @
08718e42
...
@@ -942,7 +942,7 @@ export default class MainScene extends Scene {
...
@@ -942,7 +942,7 @@ export default class MainScene extends Scene {
if
(
signConfigData
[
0
].
index
===
0
)
{
if
(
signConfigData
[
0
].
index
===
0
)
{
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TTPauseScreen"
],
3
)
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TTPauseScreen"
],
3
)
}
else
if
(
signConfigData
[
0
].
index
===
1
)
{
}
else
if
(
signConfigData
[
0
].
index
===
1
)
{
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TAPauseScreen"
],
3
)
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TAPauseScreen"
],
4
)
}
}
wait
(
300
).
then
(()
=>
{
wait
(
300
).
then
(()
=>
{
PanelCtrl
.
instance
.
show
(
"quit"
,
{
level
:
this
.
chapter
});
PanelCtrl
.
instance
.
show
(
"quit"
,
{
level
:
this
.
chapter
});
...
...
egret/src/panels/SignPanel.ts
View file @
08718e42
...
@@ -65,7 +65,7 @@ export default class SignPanel extends Panel {
...
@@ -65,7 +65,7 @@ export default class SignPanel extends Panel {
const
configDetData
=
configData
.
data
.
list
?
configData
.
data
.
list
:
configData
.
data
const
configDetData
=
configData
.
data
.
list
?
configData
.
data
.
list
:
configData
.
data
let
signConfigData
=
configDetData
.
filter
(
item
=>
item
.
id
===
6
)
let
signConfigData
=
configDetData
.
filter
(
item
=>
item
.
id
===
6
)
if
(
signConfigData
.
length
&&
signConfigData
[
0
].
index
===
1
)
{
if
(
signConfigData
.
length
&&
signConfigData
[
0
].
index
===
1
)
{
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TASignScreen"
],
3
)
window
[
'bridge'
]
&&
window
[
'bridge'
][
"showGamerAd"
]
&&
window
[
'bridge'
][
"showGamerAd"
](
window
[
"TASignScreen"
],
8
)
window
[
"finishScreenShowSignPrize"
]
=
window
[
'bridge'
][
"finishScreenShowSignPrize"
]
=
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
window
[
"finishScreenShowSignPrize"
]
=
window
[
'bridge'
][
"finishScreenShowSignPrize"
]
=
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
}
else
{
}
else
{
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
PanelCtrl
.
instance
.
addToShowPanels
(
'signPrize'
);
...
...
mock/tuia/getConfig.json
View file @
08718e42
...
@@ -3,26 +3,29 @@
...
@@ -3,26 +3,29 @@
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1582701970753
,
"timestamp"
:
1582701970753
,
"data"
:[
"data"
:{
{
"list"
:
[
"id"
:
1
,
{
"index"
:
2
"id"
:
1
,
},
"index"
:
2
{
},
"id"
:
2
,
{
"index"
:
1
"id"
:
2
,
},
"index"
:
1
{
},
"id"
:
3
,
{
"index"
:
1
"id"
:
3
,
},
"index"
:
1
{
},
"id"
:
5
,
{
"index"
:
1
"id"
:
5
,
},
"index"
:
1
{
},
"id"
:
6
,
{
"index"
:
1
"id"
:
6
,
}
"index"
:
1
]
}
],
"num"
:
0
}
}
}
\ No newline at end of file
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