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
38080c96
Commit
38080c96
authored
Feb 24, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
f27aabfb
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
63 additions
and
34 deletions
+63
-34
workspace.xml
.idea/workspace.xml
+12
-12
aa.json
mock/miniTb/aa.json
+22
-16
output.js
output.js
+4
-3
output.js.map
output.js.map
+1
-1
Tools.ts
src/Tools.ts
+19
-1
MapUI.ts
src/scene/map/MapUI.ts
+5
-1
No files found.
.idea/workspace.xml
View file @
38080c96
...
@@ -3,11 +3,11 @@
...
@@ -3,11 +3,11 @@
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<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$/mock/miniTb/aa.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/aa.json"
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/HelpPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/HelpPanel.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/LotteryPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/LotteryPanel.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/panels/SuccessPrizePanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/SuccessPrizePanel.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"
/>
...
@@ -136,14 +136,7 @@
...
@@ -136,14 +136,7 @@
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613958457445"
duration=
"19850000"
/>
<workItem
from=
"1613958457445"
duration=
"19850000"
/>
<workItem
from=
"1614131869846"
duration=
"2614000"
/>
<workItem
from=
"1614131869846"
duration=
"4308000"
/>
</task>
<task
id=
"LOCAL-00006"
summary=
"NoEnergyPanel"
>
<created>
1612601677844
</created>
<option
name=
"number"
value=
"00006"
/>
<option
name=
"presentableId"
value=
"LOCAL-00006"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1612601677845
</updated>
</task>
</task>
<task
id=
"LOCAL-00007"
summary=
"NoStep"
>
<task
id=
"LOCAL-00007"
summary=
"NoStep"
>
<created>
1612602696160
</created>
<created>
1612602696160
</created>
...
@@ -481,7 +474,14 @@
...
@@ -481,7 +474,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614133895122
</updated>
<updated>
1614133895122
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"55"
/>
<task
id=
"LOCAL-00055"
summary=
"m"
>
<created>
1614135665220
</created>
<option
name=
"number"
value=
"00055"
/>
<option
name=
"presentableId"
value=
"LOCAL-00055"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614135665220
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"56"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
mock/miniTb/aa.json
View file @
38080c96
...
@@ -3,35 +3,41 @@
...
@@ -3,35 +3,41 @@
"data"
:
{
"data"
:
{
"records"
:
[
"records"
:
[
{
{
"score"
:
3528
0
,
"score"
:
4015
0
,
"level"
:
1
,
"level"
:
1
,
"isVisitSuccess"
:
true
,
"isVisitSuccess"
:
true
,
"stars"
:
3
"stars"
:
3
},
{
"score"
:
96840
,
"level"
:
99
,
"isVisitSuccess"
:
true
,
"stars"
:
3
}
}
],
],
"openId"
:
"AAHr9QYsANUEO_cbBdzJUj7O"
,
"openId"
:
"AAHr9QYsANUEO_cbBdzJUj7O"
,
"rule"
:
"扩扩扩扩扩扩
扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多
扩扩"
,
"rule"
:
"扩扩扩扩扩扩
后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩
扩扩"
,
"topLevelVisitSuccess"
:
fals
e
,
"topLevelVisitSuccess"
:
tru
e
,
"updateTime"
:
1614
047423516
,
"updateTime"
:
1614
136276849
,
"title"
:
"斐乐测试
测试活动
"
,
"title"
:
"斐乐测试"
,
"tools"
:
{
"tools"
:
{
"booms"
:
1
,
"booms"
:
99
,
"hammers"
:
1
,
"hammers"
:
1
11
,
"steps"
:
1
"steps"
:
1
11
},
},
"levelPrize"
:
{
"levelPrize"
:
{
"level50"
:
"https://img.alicdn.com/imgextra/i2/676606897/O1CN017elfUH20osKEsgRdY_!!676606897-0-miniprogram.jpg"
,
"level50"
:
"https://img.alicdn.com/imgextra/i2/676606897/O1CN017elfUH20osKEsgRdY_!!676606897-0-miniprogram.jpg"
,
"level99"
:
"https://img.alicdn.com/imgextra/i1/676606897/O1CN01kJeK0w20osKKCIz8a_!!676606897-0-miniprogram.jpg"
"level99"
:
"https://img.alicdn.com/imgextra/i1/676606897/O1CN01kJeK0w20osKKCIz8a_!!676606897-0-miniprogram.jpg"
},
},
"currentLevel"
:
2
,
"currentLevel"
:
99
,
"createTime"
:
161404737
552
7
,
"createTime"
:
161404737
271
7
,
"isDrawTopLevelPrize"
:
fals
e
,
"isDrawTopLevelPrize"
:
tru
e
,
"deleteStatus"
:
1
,
"deleteStatus"
:
1
,
"awardReceiveExpiredTime"
:
161
5257022
000
,
"awardReceiveExpiredTime"
:
161
7155583
000
,
"startTime"
:
1614
047422000
,
"startTime"
:
1614
131952569
,
"power"
:
1
,
"power"
:
6
,
"_id"
:
"6034688
fe5c0d7b04c985429
"
,
"_id"
:
"6034688
c3075d92efd920adc
"
,
"endTime"
:
161
4652222
000
,
"endTime"
:
161
6550783
000
,
"openPrizeStatus"
:
1
,
"openPrizeStatus"
:
1
,
"tasks"
:
{
"tasks"
:
{
"invites"
:
{
"invites"
:
{
...
...
output.js
View file @
38080c96
...
@@ -11318,12 +11318,13 @@ var HelpPanel = (function (_super) {
...
@@ -11318,12 +11318,13 @@ var HelpPanel = (function (_super) {
_super.prototype.hidePanel.call(this);
_super.prototype.hidePanel.call(this);
Tools_1.Tools.globalData.inviteId = '';
Tools_1.Tools.globalData.inviteId = '';
};
};
HelpPanel.prototype.doHelp = function () {
HelpPanel.prototype.doHelp = function (
e
) {
return __awaiter(this, void 0, void 0, function () {
return __awaiter(this, void 0, void 0, function () {
var _this = this;
var _this = this;
return __generator(this, function (_a) {
return __generator(this, function (_a) {
switch (_a.label) {
switch (_a.label) {
case 0:
case 0:
this.btnDelay(e.target);
if (Tools_1.Tools.globalData.inviteId == Tools_1.Tools.globalData.openId) {
if (Tools_1.Tools.globalData.inviteId == Tools_1.Tools.globalData.openId) {
ctrls_1.showToast('自己不能给自己助力');
ctrls_1.showToast('自己不能给自己助力');
this.hidePanel();
this.hidePanel();
...
@@ -11486,7 +11487,7 @@ var LotteryPanel = (function (_super) {
...
@@ -11486,7 +11487,7 @@ var LotteryPanel = (function (_super) {
var _a = this.prizeData, type = _a.type, _id = _a._id;
var _a = this.prizeData, type = _a.type, _id = _a._id;
switch (type) {
switch (type) {
case 1:
case 1:
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id }, function (success, res) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id
, id: _id
}, function (success, res) {
if (!success || !res) {
if (!success || !res) {
ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理');
ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理');
_this.hidePanel();
_this.hidePanel();
...
@@ -12498,7 +12499,7 @@ var SuccessPrizePanel = (function (_super) {
...
@@ -12498,7 +12499,7 @@ var SuccessPrizePanel = (function (_super) {
var _a = this.data.prize, name = _a.name, _id = _a._id, image = _a.image, type = _a.type, toolType = _a.toolType;
var _a = this.data.prize, name = _a.name, _id = _a._id, image = _a.image, type = _a.type, toolType = _a.toolType;
switch (this.data.prize.type) {
switch (this.data.prize.type) {
case 1:
case 1:
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id }, function (success, res) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id
, id: _id
}, function (success, res) {
if (!success || !res) {
if (!success || !res) {
ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理');
ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理');
_this.hidePanel();
_this.hidePanel();
output.js.map
View file @
38080c96
This diff is collapsed.
Click to expand it.
src/Tools.ts
View file @
38080c96
...
@@ -71,6 +71,8 @@ export class Tools {
...
@@ -71,6 +71,8 @@ export class Tools {
tasks
:
any
,
tasks
:
any
,
};
// 活动基本信息
};
// 活动基本信息
static
actEnd
=
false
;
/**
/**
* 进入地图页面刷新
* 进入地图页面刷新
*/
*/
...
@@ -79,12 +81,28 @@ export class Tools {
...
@@ -79,12 +81,28 @@ 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
))
});
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
]);
}
}
Tools
.
gameData
.
prizeLevels
.
sort
((
a
,
b
)
=>
a
-
b
);
Tools
.
gameData
.
prizeLevels
.
sort
((
a
,
b
)
=>
a
-
b
);
// @ts-ignore
if
(
my
&&
my
.
getServerTime
)
{
// @ts-ignore
my
.
getServerTime
({
success
:
(
t
)
=>
{
Tools
.
actEnd
=
(
+
res
.
data
.
endTime
<=
+
t
.
time
);
},
failed
:
()
=>
{
Tools
.
actEnd
=
(
+
res
.
data
.
endTime
<=
Date
.
now
());
}
});
}
else
{
Tools
.
actEnd
=
(
+
res
.
data
.
endTime
<=
Date
.
now
());
}
}
}
r
(
s
);
r
(
s
);
})
})
...
...
src/scene/map/MapUI.ts
View file @
38080c96
...
@@ -5,7 +5,7 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
...
@@ -5,7 +5,7 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
MouseEvent
=
FYGE
.
MouseEvent
;
import
{
RES
}
from
"../../../module/RES"
;
import
{
RES
}
from
"../../../module/RES"
;
import
{
Tools
}
from
"../../Tools"
;
import
{
Tools
}
from
"../../Tools"
;
import
{
showPanel
}
from
"../../../module/ctrls"
;
import
{
showPanel
,
showToast
}
from
"../../../module/ctrls"
;
import
{
RulePanel
}
from
"../../panels/RulePanel"
;
import
{
RulePanel
}
from
"../../panels/RulePanel"
;
import
{
sendTbNet
,
TbNetName
}
from
"../../TaoBaoNet"
;
import
{
sendTbNet
,
TbNetName
}
from
"../../TaoBaoNet"
;
import
{
layers
}
from
"../../../module/views/layers"
;
import
{
layers
}
from
"../../../module/views/layers"
;
...
@@ -57,6 +57,10 @@ export default class MapUI extends Container {
...
@@ -57,6 +57,10 @@ export default class MapUI extends Container {
break
;
break
;
case
this
.
taskBtn
:
case
this
.
taskBtn
:
if
(
Tools
.
actEnd
)
{
showToast
(
"活动已结束"
);
return
;
}
Tools
.
openTask
();
Tools
.
openTask
();
break
;
break
;
...
...
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