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
28894b9f
Commit
28894b9f
authored
Oct 12, 2020
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
按钮放反了
parent
acba74d7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
32 deletions
+40
-32
workspace.xml
.idea/workspace.xml
+27
-25
output.js
output.js
+2
-1
output.js.map
output.js.map
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+4
-0
TaskPanel.ts
src/panels/TaskPanel.ts
+6
-5
No files found.
.idea/workspace.xml
View file @
28894b9f
This diff is collapsed.
Click to expand it.
output.js
View file @
28894b9f
...
...
@@ -13362,6 +13362,7 @@ var Main_1 = __webpack_require__(/*! ./Main */ "./src/Main.ts");
var TbNetName;
(function (TbNetName) {
TbNetName["trackingReport"] = "squirrelsAdoptRest2c.trackingReport";
TbNetName["addStats"] = "popmartXXL2c.addStats";
TbNetName["receiveEnamePrize"] = "popmartXXL2c.receiveEnamePrize";
TbNetName["drawLotteryPrize"] = "popmartXXL2c.drawLotteryPrize";
TbNetName["getToolsInfo"] = "popmartXXL2c.getToolsInfo";
...
...
@@ -21313,6 +21314,7 @@ var TaskItem = (function (_super) {
});
break;
case TaskType.invites:
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.addStats, { type: 'invite' });
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.showSharePanel, { openId: Tools_1.Tools.globalData.openId });
break;
case TaskType.orderGoods:
...
...
@@ -21438,7 +21440,6 @@ var LoadingScene = (function (_super) {
return [4, Tools_1.Tools.getAppData()];
case 1:
_a.sent();
console.log(Tools_1.Tools.globalData);
this.dispatchEvent(FYGE.Event.PROGRESS, 0.3);
return [4, Tools_1.Tools.getBaseInfo()];
case 2:
output.js.map
View file @
28894b9f
This diff is collapsed.
Click to expand it.
src/TaoBaoNet.ts
View file @
28894b9f
...
...
@@ -10,6 +10,10 @@ export enum TbNetName {
*/
trackingReport
=
"squirrelsAdoptRest2c.trackingReport"
,
addStats
=
"popmartXXL2c.addStats"
,
// 领取权益奖励
receiveEnamePrize
=
"popmartXXL2c.receiveEnamePrize"
,
...
...
src/panels/TaskPanel.ts
View file @
28894b9f
...
...
@@ -96,7 +96,7 @@ export class TaskPanel extends Panel {
this
.
isShowing
=
true
;
this
.
y
=
layers
.
stageHeight
+
this
.
height
;
Tween
.
get
(
this
)
.
to
({
y
:
0
},
500
,
Ease
.
quartOut
)
.
to
({
y
:
0
},
500
,
Ease
.
quartOut
)
.
call
(()
=>
{
this
.
isShowing
=
false
;
});
...
...
@@ -247,7 +247,7 @@ class TaskItem extends Item {
private
clickGet
()
{
this
.
getBtn
.
mouseEnable
=
false
;
sendTbNet
(
TbNetName
.
receiveTaskRewards
,
{
taskType
:
this
.
data
.
taskType
},
sendTbNet
(
TbNetName
.
receiveTaskRewards
,
{
taskType
:
this
.
data
.
taskType
},
(
success
,
res
)
=>
{
this
.
getBtn
.
mouseEnable
=
true
;
if
(
!
success
)
return
;
...
...
@@ -262,7 +262,7 @@ class TaskItem extends Item {
private
clickTask
()
{
switch
(
this
.
data
.
taskType
)
{
case
TaskType
.
member
:
sendTbNet
(
TbNetName
.
navigateToOutside
,
{
url
:
this
.
data
.
url
});
sendTbNet
(
TbNetName
.
navigateToOutside
,
{
url
:
this
.
data
.
url
});
break
;
case
TaskType
.
browseGoods
:
// 浏览商品
sendTbNet
(
TbNetName
.
navigateTo
,
{
...
...
@@ -273,14 +273,15 @@ class TaskItem extends Item {
sendTbNet
(
TbNetName
.
favorShop
,
{},
(
fs
,
fr
)
=>
{
if
(
!
fs
)
return
;
sendTbNet
(
TbNetName
.
doFollowTask
,
{
taskType
:
this
.
data
.
taskType
},
sendTbNet
(
TbNetName
.
doFollowTask
,
{
taskType
:
this
.
data
.
taskType
},
(
cs
,
cr
)
=>
GDispatcher
.
dispatchEvent
(
G_EVENT
.
UPDATE_TASK
)
);
}
);
break
;
case
TaskType
.
invites
:
sendTbNet
(
TbNetName
.
showSharePanel
,
{
openId
:
Tools
.
globalData
.
openId
});
sendTbNet
(
TbNetName
.
addStats
,
{
type
:
'invite'
});
sendTbNet
(
TbNetName
.
showSharePanel
,
{
openId
:
Tools
.
globalData
.
openId
});
break
;
case
TaskType
.
orderGoods
:
sendTbNet
(
TbNetName
.
navigateTo
,
{
...
...
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