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
275c1bc1
Commit
275c1bc1
authored
Feb 19, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
7882d1ae
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
64 deletions
+38
-64
workspace.xml
.idea/workspace.xml
+11
-7
output.js
output.js
+22
-17
output.js.map
output.js.map
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+1
-1
log.ts
src/log.ts
+0
-36
StartPanel.ts
src/panels/StartPanel.ts
+3
-2
No files found.
.idea/workspace.xml
View file @
275c1bc1
...
...
@@ -5,12 +5,9 @@
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
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$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/TaoBaoNet.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/TaoBaoNet.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/Tools.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/Tools.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/NoEnergyPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/PlayScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/log.ts"
beforeDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -141,7 +138,7 @@
<workItem
from=
"1612576979459"
duration=
"13000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"
6983
000"
/>
<workItem
from=
"1613698993022"
duration=
"
7452
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
...
...
@@ -262,7 +259,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613703466149
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"18"
/>
<task
id=
"LOCAL-00018"
summary=
"m"
>
<created>
1613706401083
</created>
<option
name=
"number"
value=
"00018"
/>
<option
name=
"presentableId"
value=
"LOCAL-00018"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613706401083
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"19"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
output.js
View file @
275c1bc1
...
...
@@ -8025,15 +8025,25 @@ var Tools = (function () {
});
};
Tools.consumerTools = function (type) {
var _this = this;
return new Promise(function (resolve, reject) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.consumerTools, { type: type }, function (s, res) {
if (s) {
resolve(true);
}
else {
resolve(false);
}
});
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.consumerTools, { type: type }, function (s, res) { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
if (!s) return [3, 2];
return [4, Tools.updateTools()];
case 1:
_a.sent();
resolve(true);
return [3, 3];
case 2:
resolve(false);
_a.label = 3;
case 3: return [2];
}
});
}); });
});
};
Tools.updateTools = function () {
...
...
@@ -13005,15 +13015,10 @@ var PlayScene = (function (_super) {
PlayScene.prototype.updateScene = function () {
return __awaiter(this, void 0, void 0, function () {
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4, Tools_1.Tools.updateTools()];
case 1:
_a.sent();
this.propBtnCon.boomCount = Tools_1.Tools.gameData.tools.booms;
this.propBtnCon.hammerCount = Tools_1.Tools.gameData.tools.hammers;
this.propBtnCon.stepCount = Tools_1.Tools.gameData.tools.steps;
return [2];
}
this.propBtnCon.boomCount = Tools_1.Tools.gameData.tools.booms;
this.propBtnCon.hammerCount = Tools_1.Tools.gameData.tools.hammers;
this.propBtnCon.stepCount = Tools_1.Tools.gameData.tools.steps;
return [2];
});
});
};
output.js.map
View file @
275c1bc1
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/TaoBaoNet.ts
View file @
275c1bc1
...
...
@@ -9,7 +9,7 @@ export enum TbNetName {
* 埋点统计 到时改名字
* activityId params elemType
*/
trackingReport
=
"squirrelsAdoptRest2c.trackingReport
"
,
addStats
=
"feile.addStats
"
,
// 领取权益奖励
receiveEnamePrize
=
"babycare.receiveEnamePrize"
,
...
...
src/log.ts
deleted
100644 → 0
View file @
7882d1ae
import
{
sendTbNet
,
TbNetName
}
from
"./TaoBaoNet"
;
/**
* 曝光埋点
* @param elemType
*/
// export function showLog(elemType: string) {
// sendTbNet(TbNetName.trackingReport, { params: { elemType }, type: "exposure" }, () => { }, true)
// //淘宝自定义埋点
// sendTbNet(TbNetName.reportAnalytics, { logkey: elemType }, () => { }, true)
// }
export
enum
LogEnum
{
AD
=
"ad"
,
TASK_ICON
=
'taskIcon'
,
FOLLOW_SHOP
=
'followShop'
,
INVITE_FRIEND
=
'inviteFriend'
,
BROWSE_PRODUCT
=
'browseProduct'
,
COLLECTION_PRODUCT
=
'collectionProduct'
,
BUY_PRODUCT
=
'buyProduct'
,
IMPROVE_INFORMATION
=
'improveInformation'
,
SECRET_ORDER
=
'secretOrder'
,
SIGN_ICON
=
'signIcon'
,
BAG_ICON
=
'bagIcon'
,
}
/**
* 点击埋点,自定义字段,
* @param elemType
*/
export
function
clickLog
(
elemType
:
LogEnum
)
{
sendTbNet
(
TbNetName
.
trackingReport
,
{
params
:
{
elemType
},
type
:
"click"
},
()
=>
{
},
true
)
//淘宝自定义埋点
sendTbNet
(
TbNetName
.
reportAnalytics
,
{
logkey
:
elemType
},
()
=>
{
},
true
)
}
src/panels/StartPanel.ts
View file @
275c1bc1
...
...
@@ -87,6 +87,7 @@ export class StartPanel extends Panel {
}
private
startGame
()
{
sendTbNet
(
TbNetName
.
addStats
,
{
type
:
"CLICK_DOJOIN"
},
()
=>
0
,
true
);
this
.
enableMouseEvt
(
false
);
if
(
!
this
.
data
.
isPlayed
&&
Tools
.
gameData
.
power
<=
0
)
{
// 体力不足
showPanel
(
NoEnergyPanel
);
...
...
@@ -94,13 +95,13 @@ export class StartPanel extends Panel {
this
.
hidePanel
();
return
;
}
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
(
success
,
res
)
=>
{
this
.
enableMouseEvt
(
true
);
if
(
!
success
)
return
;
// Tools.gameData.power = res.data.power;
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
this
.
hidePanel
();
}
);
...
...
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