Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
babycare_xiaoxiao
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
王剑峰
babycare_xiaoxiao
Commits
e9d86996
Commit
e9d86996
authored
Oct 11, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fk
parent
6ab30f55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
58 deletions
+53
-58
workspace.xml
.idea/workspace.xml
+31
-39
Tools.ts
src/Tools.ts
+22
-19
No files found.
.idea/workspace.xml
View file @
e9d86996
...
...
@@ -2,17 +2,8 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"9cef0552-af3c-4a1c-be1f-dc41ebe5b6db"
name=
"Default Changelist"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/playScene/amazing.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/playScene/great.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/playScene/wonderful.png"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/mock/miniTb/mine.getAppData.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/mine.getAppData.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/output.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js.map"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/FesRedPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/FesRedPrizePanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/TaskPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/TaskPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -80,7 +71,7 @@
<recent
name=
"$PROJECT_DIR$/src/panels"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"npm.
build
"
>
<component
name=
"RunManager"
selected=
"npm.
dev
"
>
<configuration
name=
"aaa.html"
type=
"JavascriptDebugType"
temporary=
"true"
nameIsGenerated=
"true"
uri=
"http://localhost:63342/ppmt_xxl/aaa.html"
useBuiltInWebServerPort=
"true"
>
<method
v=
"2"
/>
</configuration>
...
...
@@ -201,14 +192,7 @@
<workItem
from=
"1602310800241"
duration=
"30000"
/>
<workItem
from=
"1602310896602"
duration=
"5137000"
/>
<workItem
from=
"1602322734643"
duration=
"2339000"
/>
<workItem
from=
"1602380089772"
duration=
"911000"
/>
</task>
<task
id=
"LOCAL-00028"
summary=
"Success Panel Effect!"
>
<created>
1595384472225
</created>
<option
name=
"number"
value=
"00028"
/>
<option
name=
"presentableId"
value=
"LOCAL-00028"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1595384472225
</updated>
<workItem
from=
"1602380089772"
duration=
"3648000"
/>
</task>
<task
id=
"LOCAL-00029"
summary=
"Success Panel Effect!"
>
<created>
1595387247496
</created>
...
...
@@ -546,7 +530,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1602320466831
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"77"
/>
<task
id=
"LOCAL-00077"
summary=
"1"
>
<created>
1602386844576
</created>
<option
name=
"number"
value=
"00077"
/>
<option
name=
"presentableId"
value=
"LOCAL-00077"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1602386844577
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"78"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
@@ -584,7 +575,8 @@
<MESSAGE
value=
"首页动画"
/>
<MESSAGE
value=
"guide"
/>
<MESSAGE
value=
"task"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"task"
/>
<MESSAGE
value=
"1"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"1"
/>
</component>
<component
name=
"WindowStateProjectService"
>
<state
x=
"440"
y=
"273"
key=
"#com.intellij.execution.impl.EditConfigurationsDialog"
timestamp=
"1595229546530"
>
...
...
@@ -608,51 +600,51 @@
</state>
<state
x=
"250"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1601454738211"
/>
<state
x=
"251"
y=
"471"
key=
"ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594113080922"
/>
<state
x=
"557"
y=
"183"
width=
"783"
height=
"664"
key=
"CommitChangelistDialog2"
timestamp=
"16023
20464995
"
>
<state
x=
"557"
y=
"183"
width=
"783"
height=
"664"
key=
"CommitChangelistDialog2"
timestamp=
"16023
86843831
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"557"
y=
"23"
key=
"CommitChangelistDialog2/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1601472142620"
/>
<state
x=
"423"
y=
"142"
width=
"783"
height=
"664"
key=
"CommitChangelistDialog2/30.23.1410.877@30.23.1410.877"
timestamp=
"1601389896862"
/>
<state
x=
"557"
y=
"183"
key=
"CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
20464995
"
/>
<state
x=
"557"
y=
"183"
key=
"CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
86843831
"
/>
<state
x=
"558"
y=
"183"
width=
"884"
height=
"891"
key=
"CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584297912"
/>
<state
x=
"131"
y=
"63"
width=
"1683"
height=
"1037"
key=
"DiffContextDialog"
timestamp=
"1602321352721"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"131"
y=
"63"
width=
"1683"
height=
"1037"
key=
"DiffContextDialog/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1602321352721"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"16023
44179438
"
>
<screen
x=
"30"
y=
"23"
width=
"1
410"
height=
"8
77"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.bottom"
timestamp=
"16023
87367295
"
>
<screen
x=
"30"
y=
"23"
width=
"1
890"
height=
"11
77"
/>
</state>
<state
width=
"877"
height=
"406"
key=
"GridCell.Tab.0.bottom/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1601472154151"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1410.877@30.23.1410.877"
timestamp=
"1602344179438"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312309"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
22818014
"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
87367295
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"16023
44179437
"
>
<screen
x=
"30"
y=
"23"
width=
"1
410"
height=
"8
77"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.center"
timestamp=
"16023
87367294
"
>
<screen
x=
"30"
y=
"23"
width=
"1
890"
height=
"11
77"
/>
</state>
<state
width=
"877"
height=
"406"
key=
"GridCell.Tab.0.center/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1601472154151"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1410.877@30.23.1410.877"
timestamp=
"1602344179437"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312308"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
22818013
"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
87367294
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918464"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"16023
44179437
"
>
<screen
x=
"30"
y=
"23"
width=
"1
410"
height=
"8
77"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.left"
timestamp=
"16023
87367293
"
>
<screen
x=
"30"
y=
"23"
width=
"1
890"
height=
"11
77"
/>
</state>
<state
width=
"877"
height=
"406"
key=
"GridCell.Tab.0.left/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1601472154150"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1410.877@30.23.1410.877"
timestamp=
"1602344179437"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312308"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
22818012
"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
87367293
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577197"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918463"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"16023
44179438
"
>
<screen
x=
"30"
y=
"23"
width=
"1
410"
height=
"8
77"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.right"
timestamp=
"16023
87367295
"
>
<screen
x=
"30"
y=
"23"
width=
"1
890"
height=
"11
77"
/>
</state>
<state
width=
"877"
height=
"406"
key=
"GridCell.Tab.0.right/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1601472154151"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1410.877@30.23.1410.877"
timestamp=
"1602344179438"
/>
<state
width=
"888"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1650.1027@30.23.1650.1027"
timestamp=
"1596463312309"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
22818013
"
/>
<state
width=
"935"
height=
"321"
key=
"GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
87367295
"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027"
timestamp=
"1595590577198"
/>
<state
width=
"1041"
height=
"321"
key=
"GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595579918465"
/>
<state
x=
"82"
y=
"353"
key=
"IDE.errors.dialog"
timestamp=
"1594777965326"
>
...
...
@@ -669,12 +661,12 @@
</state>
<state
x=
"762"
y=
"247"
key=
"SettingsEditor/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1602321211804"
/>
<state
x=
"300"
y=
"248"
key=
"SettingsEditor/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1594798992724"
/>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"16023
2046903
8"
>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2"
timestamp=
"16023
8684587
8"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"76"
y=
"267"
key=
"Vcs.Push.Dialog.v2/30.23.1410.877/1440.23.1920.1177@30.23.1410.877"
timestamp=
"1601472144830"
/>
<state
x=
"76"
y=
"267"
key=
"Vcs.Push.Dialog.v2/30.23.1410.877@30.23.1410.877"
timestamp=
"1601389898667"
/>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
2046903
8"
/>
<state
x=
"91"
y=
"351"
key=
"Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
8684587
8"
/>
<state
x=
"92"
y=
"351"
key=
"Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584299423"
/>
<state
x=
"87"
y=
"216"
key=
"com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser"
timestamp=
"1594705166397"
>
<screen
x=
"31"
y=
"23"
width=
"1889"
height=
"1177"
/>
...
...
@@ -707,11 +699,11 @@
</state>
<state
x=
"156"
y=
"286"
key=
"run.anything.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"1596432664001"
/>
<state
x=
"157"
y=
"286"
key=
"run.anything.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595475548860"
/>
<state
x=
"639"
y=
"288"
width=
"670"
height=
"158"
key=
"search.everywhere.popup"
timestamp=
"16023
20369251
"
>
<state
x=
"639"
y=
"288"
width=
"670"
height=
"158"
key=
"search.everywhere.popup"
timestamp=
"16023
96873467
"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
</state>
<state
x=
"484"
y=
"220"
width=
"670"
height=
"504"
key=
"search.everywhere.popup/30.23.1410.877@30.23.1410.877"
timestamp=
"1600829323295"
/>
<state
x=
"639"
y=
"288"
width=
"670"
height=
"158"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
20369251
"
/>
<state
x=
"639"
y=
"288"
width=
"670"
height=
"158"
key=
"search.everywhere.popup/30.23.1890.1177@30.23.1890.1177"
timestamp=
"16023
96873467
"
/>
<state
x=
"640"
y=
"288"
width=
"670"
height=
"676"
key=
"search.everywhere.popup/31.23.1889.1177@31.23.1889.1177"
timestamp=
"1595584259535"
/>
<state
x=
"249"
y=
"530"
key=
"vcs.readOnlyHandler.ReadOnlyStatusDialog"
timestamp=
"1602310103215"
>
<screen
x=
"30"
y=
"23"
width=
"1890"
height=
"1177"
/>
...
...
src/Tools.ts
View file @
e9d86996
...
...
@@ -36,7 +36,7 @@ export class Tools {
}
public
static
async
getAppData
()
{
const
{
data
}
=
await
sendTbNet
(
TbNetName
.
getAppData
);
const
{
data
}
=
await
sendTbNet
(
TbNetName
.
getAppData
);
Tools
.
globalData
=
data
;
}
...
...
@@ -46,11 +46,11 @@ export class Tools {
booms
:
number
,
power
:
number
,
}
=
{
hammers
:
0
,
steps
:
0
,
booms
:
0
,
power
:
0
,
}
hammers
:
0
,
steps
:
0
,
booms
:
0
,
power
:
0
,
}
// public getPower() {
// sendTbNet(TbNetName.getPower, {},
...
...
@@ -110,13 +110,16 @@ export class Tools {
this
.
propInfo
[
type
]
-=
1
;
sendTbNet
(
TbNetName
.
getToolsInfo
,
{},
(
st
,
rt
)
=>
{
if
(
!
st
)
return
;
this
.
propInfo
.
booms
=
+
rt
.
data
.
tools
.
booms
;
this
.
propInfo
.
steps
=
+
rt
.
data
.
tools
.
steps
;
this
.
propInfo
.
hammers
=
+
rt
.
data
.
tools
.
hammers
;
if
(
!
st
)
{
resolve
(
true
);
return
;
}
this
.
propInfo
.
booms
=
Tools
.
propInfo
.
booms
=
+
rt
.
data
.
tools
.
booms
;
this
.
propInfo
.
steps
=
Tools
.
propInfo
.
steps
=
+
rt
.
data
.
tools
.
steps
;
this
.
propInfo
.
hammers
=
Tools
.
propInfo
.
hammers
=
+
rt
.
data
.
tools
.
hammers
;
resolve
(
true
);
}
);
resolve
(
true
)
}
else
{
// reject()
resolve
(
false
)
...
...
@@ -146,11 +149,11 @@ export class Tools {
var
tbMy
=
my
if
(
!
tbMy
)
return
;
//@ts-ignore
const
{
cloud
}
=
getApp
();
const
{
cloud
}
=
getApp
();
//测试地址//到时云存储传一个小json,,改路径
var
url
=
"cloud://B4F0300E5148F478B506DEDC26EA4C6C//butterfly0.svga"
;
//获取临时地址
var
urls
=
await
cloud
.
file
.
getTempFileURL
({
fileId
:
[
url
]
})
var
urls
=
await
cloud
.
file
.
getTempFileURL
({
fileId
:
[
url
]
})
url
=
urls
[
0
].
url
.
replace
(
'-internal'
,
''
);
tbMy
.
downloadFile
({
url
:
url
,
...
...
@@ -159,10 +162,10 @@ export class Tools {
tbMy
.
getFileSystemManager
().
readFile
({
filePath
:
i
,
// encoding: "utf8",
success
:
function
(
r
)
{
success
:
function
(
r
)
{
},
fail
:
function
(
res
)
{
fail
:
function
(
res
)
{
}
})
...
...
@@ -306,11 +309,11 @@ export class Tools {
showTime
:
number
=
300
)
{
Tween
.
get
(
target
)
.
set
({
alpha
:
0
,
visible
:
true
})
.
to
({
alpha
:
1
},
showTime
,
Ease
.
quadIn
)
.
set
({
alpha
:
0
,
visible
:
true
})
.
to
({
alpha
:
1
},
showTime
,
Ease
.
quadIn
)
.
wait
(
time
)
.
to
({
alpha
:
0
},
showTime
,
Ease
.
quadOut
)
.
set
({
alpha
:
0
,
visible
:
false
})
.
to
({
alpha
:
0
},
showTime
,
Ease
.
quadOut
)
.
set
({
alpha
:
0
,
visible
:
false
})
.
call
(()
=>
{
call
();
});
...
...
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