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
16bee3b1
Commit
16bee3b1
authored
Feb 20, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
7eecdbc4
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
36 additions
and
25 deletions
+36
-25
workspace.xml
.idea/workspace.xml
+13
-4
output.js
output.js
+7
-9
output.js.map
output.js.map
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+3
-0
Tools.ts
src/Tools.ts
+1
-0
StartPanel.ts
src/panels/StartPanel.ts
+11
-3
CheckBtn.ts
src/scene/map/CheckBtn.ts
+0
-8
No files found.
.idea/workspace.xml
View file @
16bee3b1
...
@@ -5,8 +5,10 @@
...
@@ -5,8 +5,10 @@
<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$/output.js"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js"
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$/output.js.map"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/output.js.map"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/LotteryPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/LotteryPanel.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/scene/map/MapUI.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapUI.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/StartPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/StartPanel.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/CheckBtn.ts"
afterDir=
"false"
/>
</list>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
@@ -133,7 +135,7 @@
...
@@ -133,7 +135,7 @@
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612577003915"
duration=
"21094000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"1
2271
000"
/>
<workItem
from=
"1613785579125"
duration=
"1
4750
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
<created>
1612581213298
</created>
...
@@ -366,7 +368,14 @@
...
@@ -366,7 +368,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613810042956
</updated>
<updated>
1613810042956
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"34"
/>
<task
id=
"LOCAL-00034"
summary=
"m"
>
<created>
1613810371864
</created>
<option
name=
"number"
value=
"00034"
/>
<option
name=
"presentableId"
value=
"LOCAL-00034"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1613810371864
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"35"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
output.js
View file @
16bee3b1
...
@@ -7836,6 +7836,7 @@ var TbNetName;
...
@@ -7836,6 +7836,7 @@ var TbNetName;
TbNetName["receiveEnamePrize"] = "feile.receiveEnamePrize";
TbNetName["receiveEnamePrize"] = "feile.receiveEnamePrize";
TbNetName["getRemainTimes"] = "feile.getRemainTimes";
TbNetName["getRemainTimes"] = "feile.getRemainTimes";
TbNetName["getActivityBaseInfoById"] = "feile.getActivityBaseInfoById";
TbNetName["getActivityBaseInfoById"] = "feile.getActivityBaseInfoById";
TbNetName["updateActivityInfo"] = "mine.updateActivityInfo";
TbNetName["getToolsInfo"] = "feile.getToolsInfo";
TbNetName["getToolsInfo"] = "feile.getToolsInfo";
TbNetName["consumerTools"] = "feile.consumerTools";
TbNetName["consumerTools"] = "feile.consumerTools";
TbNetName["dojoin"] = "feile.doJoin";
TbNetName["dojoin"] = "feile.doJoin";
...
@@ -8026,6 +8027,8 @@ var Tools = (function () {
...
@@ -8026,6 +8027,8 @@ var Tools = (function () {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.getActivityBaseInfoById, {}, function (s, res) {
if (s) {
if (s) {
_this.gameData = res.data;
_this.gameData = res.data;
console.log(1111);
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.updateActivityInfo, { data: JSON.parse(JSON.stringify(res.data)) });
Tools.gameData.prizeLevels = [];
Tools.gameData.prizeLevels = [];
for (var k in Tools.gameData.levelPrize) {
for (var k in Tools.gameData.levelPrize) {
Tools.gameData.prizeLevels.push(+k.split('level')[1]);
Tools.gameData.prizeLevels.push(+k.split('level')[1]);
...
@@ -11241,6 +11244,7 @@ var ctrls_1 = __webpack_require__(/*! ../../module/ctrls */ "./module/ctrls/inde
...
@@ -11241,6 +11244,7 @@ var ctrls_1 = __webpack_require__(/*! ../../module/ctrls */ "./module/ctrls/inde
var TaoBaoNet_1 = __webpack_require__(/*! ../TaoBaoNet */ "./src/TaoBaoNet.ts");
var TaoBaoNet_1 = __webpack_require__(/*! ../TaoBaoNet */ "./src/TaoBaoNet.ts");
var GTool_1 = __webpack_require__(/*! ../../module/tools/GTool */ "./module/tools/GTool.ts");
var GTool_1 = __webpack_require__(/*! ../../module/tools/GTool */ "./module/tools/GTool.ts");
var Panel_1 = __webpack_require__(/*! ../../module/views/Panel */ "./module/views/Panel.ts");
var Panel_1 = __webpack_require__(/*! ../../module/views/Panel */ "./module/views/Panel.ts");
var Tools_1 = __webpack_require__(/*! ../Tools */ "./src/Tools.ts");
var LotteryPanel = (function (_super) {
var LotteryPanel = (function (_super) {
__extends(LotteryPanel, _super);
__extends(LotteryPanel, _super);
function LotteryPanel() {
function LotteryPanel() {
...
@@ -11350,6 +11354,7 @@ var LotteryPanel = (function (_super) {
...
@@ -11350,6 +11354,7 @@ var LotteryPanel = (function (_super) {
ctrls_1.hideWaiting();
ctrls_1.hideWaiting();
if (!res.success)
if (!res.success)
return;
return;
Tools_1.Tools.gameData.isDrawTopLevelPrize = true;
var id;
var id;
if (res.data && res.data.type == 5) {
if (res.data && res.data.type == 5) {
id = 'thanks';
id = 'thanks';
...
@@ -14878,14 +14883,6 @@ var CheckBtn = (function (_super) {
...
@@ -14878,14 +14883,6 @@ var CheckBtn = (function (_super) {
this.starCount = data.stars;
this.starCount = data.stars;
this.checkData = data;
this.checkData = data;
this.checkData.isPlayed = true;
this.checkData.isPlayed = true;
this._sendAwardType = data.sendAwardType;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CheckBtn.prototype, "sendAwardType", {
get: function () {
return this._sendAwardType;
},
},
enumerable: false,
enumerable: false,
configurable: true
configurable: true
...
@@ -15582,6 +15579,7 @@ var MapUI = (function (_super) {
...
@@ -15582,6 +15579,7 @@ var MapUI = (function (_super) {
this.clearanceBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.clearanceBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
};
};
MapUI.prototype.clickBtn = function (e) {
MapUI.prototype.clickBtn = function (e) {
var _this = this;
switch (e.target) {
switch (e.target) {
case this.ruleBtn:
case this.ruleBtn:
ctrls_1.showPanel(RulePanel_1.RulePanel);
ctrls_1.showPanel(RulePanel_1.RulePanel);
...
@@ -15594,7 +15592,7 @@ var MapUI = (function (_super) {
...
@@ -15594,7 +15592,7 @@ var MapUI = (function (_super) {
Tools_1.Tools.openTask();
Tools_1.Tools.openTask();
break;
break;
case this.clearanceBtn:
case this.clearanceBtn:
ctrls_1.showPanel(LotteryPanel_1.LotteryPanel, { callFun: function () { return
0
; } });
ctrls_1.showPanel(LotteryPanel_1.LotteryPanel, { callFun: function () { return
_this.updateUI()
; } });
break;
break;
}
}
};
};
output.js.map
View file @
16bee3b1
This diff is collapsed.
Click to expand it.
src/TaoBaoNet.ts
View file @
16bee3b1
...
@@ -22,6 +22,8 @@ export enum TbNetName {
...
@@ -22,6 +22,8 @@ export enum TbNetName {
* @type {string}
* @type {string}
*/
*/
getActivityBaseInfoById
=
"feile.getActivityBaseInfoById"
,
getActivityBaseInfoById
=
"feile.getActivityBaseInfoById"
,
updateActivityInfo
=
"mine.updateActivityInfo"
,
openMember
=
"mine.openMember"
,
/**
/**
* 获取道具信息
* 获取道具信息
...
@@ -160,6 +162,7 @@ export enum TbNetName {
...
@@ -160,6 +162,7 @@ export enum TbNetName {
* isOn
* isOn
*/
*/
openMusic
=
"mine.openMusic"
,
openMusic
=
"mine.openMusic"
,
}
}
//返回数据类型,到时再调整
//返回数据类型,到时再调整
...
...
src/Tools.ts
View file @
16bee3b1
...
@@ -78,6 +78,7 @@ export class Tools {
...
@@ -78,6 +78,7 @@ export class Tools {
sendTbNet
(
TbNetName
.
getActivityBaseInfoById
,
{},
(
s
,
res
)
=>
{
sendTbNet
(
TbNetName
.
getActivityBaseInfoById
,
{},
(
s
,
res
)
=>
{
if
(
s
)
{
if
(
s
)
{
this
.
gameData
=
res
.
data
;
this
.
gameData
=
res
.
data
;
sendTbNet
(
TbNetName
.
updateActivityInfo
,
{
data
:
JSON
.
parse
(
JSON
.
stringify
(
res
.
data
))});
Tools
.
gameData
.
prizeLevels
=
[];
Tools
.
gameData
.
prizeLevels
=
[];
for
(
let
k
in
Tools
.
gameData
.
levelPrize
)
{
for
(
let
k
in
Tools
.
gameData
.
levelPrize
)
{
Tools
.
gameData
.
prizeLevels
.
push
(
+
k
.
split
(
'level'
)[
1
]);
Tools
.
gameData
.
prizeLevels
.
push
(
+
k
.
split
(
'level'
)[
1
]);
...
...
src/panels/StartPanel.ts
View file @
16bee3b1
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
Panel
}
from
"../../module/views/Panel"
;
import
{
changeScene
,
showPanel
}
from
"../../module/ctrls"
;
import
{
changeScene
,
showPanel
,
showToast
}
from
"../../module/ctrls"
;
import
{
PlayScene
}
from
"../scene/PlayScene"
;
import
{
PlayScene
}
from
"../scene/PlayScene"
;
import
{
Tools
}
from
"../Tools"
;
import
{
Tools
}
from
"../Tools"
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
import
{
sendTbNet
,
TbNetName
}
from
"../TaoBaoNet"
;
...
@@ -96,9 +96,17 @@ export class StartPanel extends Panel {
...
@@ -96,9 +96,17 @@ export class StartPanel extends Panel {
return
;
return
;
}
}
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
sendTbNet
(
TbNetName
.
dojoin
,
{
level
:
this
.
data
.
level
},
(
success
,
res
)
=>
{
async
(
success
,
res
)
=>
{
this
.
enableMouseEvt
(
true
);
this
.
enableMouseEvt
(
true
);
if
(
!
success
)
return
;
if
(
!
success
)
{
if
(
res
.
data
&&
!
res
.
data
.
isvip
)
{
showToast
(
'请入会后参与'
);
setTimeout
(()
=>
{
sendTbNet
(
TbNetName
.
openMember
);
},
1600
);
}
return
;
}
// Tools.gameData.power = res.data.power;
// Tools.gameData.power = res.data.power;
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
changeScene
(
PlayScene
,
{
chapter
:
this
.
data
.
level
});
...
...
src/scene/map/CheckBtn.ts
View file @
16bee3b1
...
@@ -35,8 +35,6 @@ export default class CheckBtn extends Container {
...
@@ -35,8 +35,6 @@ export default class CheckBtn extends Container {
isPlayed
:
false
,
isPlayed
:
false
,
};
};
private
_sendAwardType
:
any
;
private
btn
:
Button
=
null
;
private
btn
:
Button
=
null
;
private
checkTxt
:
BitmapText
=
null
;
private
checkTxt
:
BitmapText
=
null
;
...
@@ -55,12 +53,6 @@ export default class CheckBtn extends Container {
...
@@ -55,12 +53,6 @@ export default class CheckBtn extends Container {
this
.
checkData
=
data
;
this
.
checkData
=
data
;
this
.
checkData
.
isPlayed
=
true
;
this
.
checkData
.
isPlayed
=
true
;
this
.
_sendAwardType
=
data
.
sendAwardType
;
}
public
get
sendAwardType
()
{
return
this
.
_sendAwardType
;
}
}
private
_starCount
=
0
;
private
_starCount
=
0
;
...
...
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