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
48bd1aee
Commit
48bd1aee
authored
Mar 27, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default Changelist
parent
7cb03c60
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
30 deletions
+44
-30
workspace.xml
.idea/workspace.xml
+24
-14
Main.ts
egret/src/Main.ts
+1
-1
ExchangePanel.ts
egret/src/Panels/ExchangePanel.ts
+4
-0
ExchangeScene.ts
egret/src/Scenes/ExchangeScene/ExchangeScene.ts
+15
-15
No files found.
.idea/workspace.xml
View file @
48bd1aee
...
@@ -46,8 +46,10 @@
...
@@ -46,8 +46,10 @@
<select
/>
<select
/>
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"91d65b22-e37e-4b17-b43e-cdc81b9fe6ff"
name=
"Default Changelist"
comment=
""
>
<list
default=
"true"
id=
"91d65b22-e37e-4b17-b43e-cdc81b9fe6ff"
name=
"Default Changelist"
comment=
"
Default Changelist
"
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/egret/src/Main.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/egret/src/Main.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/egret/src/Panels/ExchangePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/egret/src/Panels/ExchangePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/egret/src/Scenes/ExchangeScene/ExchangeScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/egret/src/Scenes/ExchangeScene/ExchangeScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/egret/src/Scenes/ExchangeScene/ExchangeScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/egret/src/Scenes/ExchangeScene/ExchangeScene.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
@@ -108,7 +110,7 @@
...
@@ -108,7 +110,7 @@
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_npm_path_reset_for_default_project"
value=
"true"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"nodejs_package_manager_path"
value=
"npm"
/>
<property
name=
"prettierjs.PrettierConfiguration.Package"
value=
"$PROJECT_DIR$/node_modules/prettier"
/>
<property
name=
"prettierjs.PrettierConfiguration.Package"
value=
"$PROJECT_DIR$/node_modules/prettier"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
preferences.pluginManager
"
/>
<property
name=
"settings.editor.selected.configurable"
value=
"
web-ide.project.structure
"
/>
<property
name=
"ts.external.directory.path"
value=
"$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external"
/>
<property
name=
"ts.external.directory.path"
value=
"$APPLICATION_HOME_DIR$/plugins/JavaScriptLanguage/jsLanguageServicesImpl/external"
/>
<property
name=
"vue.rearranger.settings.migration"
value=
"true"
/>
<property
name=
"vue.rearranger.settings.migration"
value=
"true"
/>
</component>
</component>
...
@@ -125,7 +127,7 @@
...
@@ -125,7 +127,7 @@
<recent
name=
"$PROJECT_DIR$/egret"
/>
<recent
name=
"$PROJECT_DIR$/egret"
/>
</key>
</key>
</component>
</component>
<component
name=
"RunManager"
selected=
"npm.build
TS
"
>
<component
name=
"RunManager"
selected=
"npm.build"
>
<configuration
name=
"banner.html"
type=
"JavascriptDebugType"
temporary=
"true"
nameIsGenerated=
"true"
uri=
"http://localhost:63342/JoyousManor/banner.html"
useBuiltInWebServerPort=
"true"
>
<configuration
name=
"banner.html"
type=
"JavascriptDebugType"
temporary=
"true"
nameIsGenerated=
"true"
uri=
"http://localhost:63342/JoyousManor/banner.html"
useBuiltInWebServerPort=
"true"
>
<method
v=
"2"
/>
<method
v=
"2"
/>
</configuration>
</configuration>
...
@@ -171,8 +173,8 @@
...
@@ -171,8 +173,8 @@
</configuration>
</configuration>
<recent_temporary>
<recent_temporary>
<list>
<list>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.buildExml"
/>
<item
itemvalue=
"npm.buildExml"
/>
</list>
</list>
...
@@ -295,14 +297,14 @@
...
@@ -295,14 +297,14 @@
<workItem
from=
"1611135191598"
duration=
"1335000"
/>
<workItem
from=
"1611135191598"
duration=
"1335000"
/>
<workItem
from=
"1611192072114"
duration=
"157000"
/>
<workItem
from=
"1611192072114"
duration=
"157000"
/>
<workItem
from=
"1611308200540"
duration=
"394000"
/>
<workItem
from=
"1611308200540"
duration=
"394000"
/>
<workItem
from=
"1615362536527"
duration=
"
3476
000"
/>
<workItem
from=
"1615362536527"
duration=
"
5799
000"
/>
</task
>
<workItem
from=
"1615536189509"
duration=
"799000"
/
>
<task
id=
"LOCAL-00007"
summary=
"更新"
>
<workItem
from=
"1615537268972"
duration=
"111000"
/
>
<
created>
1603791497689
</created
>
<
workItem
from=
"1615537759451"
duration=
"3839000"
/
>
<
option
name=
"number"
value=
"00007
"
/>
<
workItem
from=
"1616119826215"
duration=
"3221000
"
/>
<
option
name=
"presentableId"
value=
"LOCAL-00007
"
/>
<
workItem
from=
"1616141373483"
duration=
"666000
"
/>
<
option
name=
"project"
value=
"LOCAL
"
/>
<
workItem
from=
"1616650815558"
duration=
"236000
"
/>
<
updated>
1603791497689
</updated
>
<
workItem
from=
"1616726563592"
duration=
"2883000"
/
>
</task>
</task>
<task
id=
"LOCAL-00008"
summary=
"更新"
>
<task
id=
"LOCAL-00008"
summary=
"更新"
>
<created>
1603799550747
</created>
<created>
1603799550747
</created>
...
@@ -640,7 +642,14 @@
...
@@ -640,7 +642,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1611193421739
</updated>
<updated>
1611193421739
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"56"
/>
<task
id=
"LOCAL-00056"
summary=
"Default Changelist"
>
<created>
1615367020390
</created>
<option
name=
"number"
value=
"00056"
/>
<option
name=
"presentableId"
value=
"LOCAL-00056"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1615367020391
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"57"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
@@ -684,6 +693,7 @@
...
@@ -684,6 +693,7 @@
<MESSAGE
value=
"修改扣积分desc"
/>
<MESSAGE
value=
"修改扣积分desc"
/>
<MESSAGE
value=
"1"
/>
<MESSAGE
value=
"1"
/>
<MESSAGE
value=
"小e"
/>
<MESSAGE
value=
"小e"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"小e"
/>
<MESSAGE
value=
"Default Changelist"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"Default Changelist"
/>
</component>
</component>
</project>
</project>
\ No newline at end of file
egret/src/Main.ts
View file @
48bd1aee
...
@@ -71,7 +71,7 @@ class Main extends eui.UILayer {
...
@@ -71,7 +71,7 @@ class Main extends eui.UILayer {
}
}
private
loadTheme
()
{
private
loadTheme
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
// load skin theme configuration file, you can manually modify the file. And replace the default skin.
// load skin theme configuration file, you can manually modify the file. And replace the default skin.
//加载皮肤主题配置文件,可以手动修改这个文件。替换默认皮肤。
//加载皮肤主题配置文件,可以手动修改这个文件。替换默认皮肤。
let
theme
=
new
eui
.
Theme
(
"resource/default.thm.json"
,
this
.
stage
);
let
theme
=
new
eui
.
Theme
(
"resource/default.thm.json"
,
this
.
stage
);
...
...
egret/src/Panels/ExchangePanel.ts
View file @
48bd1aee
...
@@ -52,6 +52,10 @@ export default class ExchangePanel extends Panel {
...
@@ -52,6 +52,10 @@ export default class ExchangePanel extends Panel {
return
;
return
;
}
}
NetManager
.
ins
.
prizeExchange
((
success
,
res
)
=>
{
NetManager
.
ins
.
prizeExchange
((
success
,
res
)
=>
{
if
(
!
success
&&
res
.
code
==
"300061"
){
showToast
(
res
.
message
);
return
;
}
if
(
!
success
)
{
if
(
!
success
)
{
showToast
(
'啊哦...目前无法兑换哦'
);
showToast
(
'啊哦...目前无法兑换哦'
);
return
;
return
;
...
...
egret/src/Scenes/ExchangeScene/ExchangeScene.ts
View file @
48bd1aee
...
@@ -159,21 +159,21 @@ export default class ExchangeScene extends Scene {
...
@@ -159,21 +159,21 @@ export default class ExchangeScene extends Scene {
}
}
///////////////////////// 查询是否合成过 /////////////////////////
///////////////////////// 查询是否合成过 /////////////////////////
/// TODO 2020.11.18, 运营要求所有奖品可以无限制兑换,去掉兑换一次的限制
/// TODO 2020.11.18, 运营要求所有奖品可以无限制兑换,去掉兑换一次的限制
NetManager
.
ins
.
queryRecords
((
success
,
res
)
=>
{
//
NetManager.ins.queryRecords((success, res) => {
if
(
!
success
)
{
//
if (!success) {
reject
();
//
reject();
return
;
//
return;
}
//
}
const
__data
=
res
.
data
;
//
const __data = res.data;
for
(
let
v
of
__data
)
{
//
for (let v of __data) {
let
prizeId
=
v
.
prizeId
;
//
let prizeId = v.prizeId;
if
(
this
.
prizeData
.
hasOwnProperty
(
prizeId
))
{
//
if (this.prizeData.hasOwnProperty(prizeId)) {
this
.
prizeData
[
prizeId
].
canGet
=
false
;
//
this.prizeData[prizeId].canGet = false;
}
//
}
}
//
}
resolve
();
/// TODO 移到下面去
//
resolve(); /// TODO 移到下面去
});
//
});
//
resolve(); /// TODO 上面移下来的
resolve
();
/// TODO 上面移下来的
///////////////////////// 查询是否合成过 /////////////////////////
///////////////////////// 查询是否合成过 /////////////////////////
},
prizeIds
);
},
prizeIds
);
...
...
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