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
5236153f
Commit
5236153f
authored
Oct 10, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
task
parent
555ab7f6
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
18 deletions
+34
-18
workspace.xml
.idea/workspace.xml
+28
-15
output.js
output.js
+2
-1
output.js.map
output.js.map
+1
-1
Main.ts
src/Main.ts
+1
-0
TaskPanel.ts
src/panels/TaskPanel.ts
+1
-1
MapScene.ts
src/scene/map/MapScene.ts
+1
-0
No files found.
.idea/workspace.xml
View file @
5236153f
This diff is collapsed.
Click to expand it.
output.js
View file @
5236153f
...
...
@@ -21107,7 +21107,7 @@ var taskItemData = (_a = {},
},
_a[TaskType.invites] = {
key: TaskType.invites,
title: '邀请好友',
title: '邀请好友
(${done}/${total})
',
desc: '每邀请一个好友,可获得${rewards}体力'
},
_a[TaskType.orderGoods] = {
...
...
@@ -24533,6 +24533,7 @@ var MapScene = (function (_super) {
_super.prototype.start.call(this, data);
if (Tools_1.Tools.globalData.inviteId) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.doHelp, { inviteId: Tools_1.Tools.globalData.inviteId }, function (success, res) {
Tools_1.Tools.globalData.inviteId = null;
if (success)
ctrls_1.showToast('助力成功');
});
output.js.map
View file @
5236153f
This diff is collapsed.
Click to expand it.
src/Main.ts
View file @
5236153f
...
...
@@ -108,6 +108,7 @@ export class Main {
* @param name
* @param fun
* @param thisObj
* @param once
*/
addGlobalEvent
(
name
:
string
,
fun
:
Function
,
thisObj
?:
any
,
once
:
boolean
=
false
)
{
if
(
once
)
{
...
...
src/panels/TaskPanel.ts
View file @
5236153f
...
...
@@ -65,7 +65,7 @@ const taskItemData = {
},
[
TaskType
.
invites
]:
{
key
:
TaskType
.
invites
,
title
:
'邀请好友'
,
title
:
'邀请好友
(${done}/${total})
'
,
desc
:
'每邀请一个好友,可获得${rewards}体力'
},
[
TaskType
.
orderGoods
]:
{
...
...
src/scene/map/MapScene.ts
View file @
5236153f
...
...
@@ -245,6 +245,7 @@ export class MapScene extends Scene {
if
(
Tools
.
globalData
.
inviteId
)
{
sendTbNet
(
TbNetName
.
doHelp
,
{
inviteId
:
Tools
.
globalData
.
inviteId
},
(
success
,
res
)
=>
{
Tools
.
globalData
.
inviteId
=
null
;
if
(
success
)
showToast
(
'助力成功'
);
// if (success) Tools.globalData.inviteId = null;
}
...
...
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