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
2ada8061
Commit
2ada8061
authored
Feb 23, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
83f45667
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
15 deletions
+55
-15
workspace.xml
.idea/workspace.xml
+14
-4
output.js
output.js
+38
-8
output.js.map
output.js.map
+1
-1
TaoBaoNet.ts
src/TaoBaoNet.ts
+1
-1
HelpPanel.ts
src/panels/HelpPanel.ts
+1
-1
No files found.
.idea/workspace.xml
View file @
2ada8061
...
...
@@ -3,6 +3,9 @@
<component
name=
"ChangeListManager"
>
<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$/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/TaoBaoNet.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/TaoBaoNet.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/panels/HelpPanel.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/panels/HelpPanel.ts"
afterDir=
"false"
/>
</list>
<option
name=
"SHOW_DIALOG"
value=
"false"
/>
...
...
@@ -62,7 +65,7 @@
<recent
name=
"$PROJECT_DIR$/lotties"
/>
</key>
</component>
<component
name=
"RunManager"
selected=
"npm.build"
>
<component
name=
"RunManager"
selected=
"npm.build
TS
"
>
<configuration
name=
"build"
type=
"js.build_tools.npm"
temporary=
"true"
nameIsGenerated=
"true"
>
<package-json
value=
"$PROJECT_DIR$/package.json"
/>
<command
value=
"run"
/>
...
...
@@ -111,10 +114,10 @@
</list>
<recent_temporary>
<list>
<item
itemvalue=
"npm.buildTS"
/>
<item
itemvalue=
"npm.build"
/>
<item
itemvalue=
"npm.dev"
/>
<item
itemvalue=
"npm.flushRes"
/>
<item
itemvalue=
"npm.buildTS"
/>
</list>
</recent_temporary>
</component>
...
...
@@ -131,7 +134,7 @@
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613958457445"
duration=
"1
6219
000"
/>
<workItem
from=
"1613958457445"
duration=
"1
8038
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
...
...
@@ -462,7 +465,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614070959025
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"48"
/>
<task
id=
"LOCAL-00048"
summary=
"m"
>
<created>
1614074400505
</created>
<option
name=
"number"
value=
"00048"
/>
<option
name=
"presentableId"
value=
"LOCAL-00048"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614074400505
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"49"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
output.js
View file @
2ada8061
...
...
@@ -11289,6 +11289,19 @@ var HelpPanel = (function (_super) {
configurable: true
});
HelpPanel.prototype.initUi = function () {
return __awaiter(this, void 0, void 0, function () {
var _a;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = this;
return [4, this.queryVip()];
case 1:
_a.vip = _b.sent();
return [2];
}
});
});
};
HelpPanel.prototype.start = function (data) {
var _this = this;
...
...
@@ -11307,30 +11320,34 @@ var HelpPanel = (function (_super) {
};
HelpPanel.prototype.doHelp = function () {
return __awaiter(this, void 0, void 0, function () {
var _a, vipSuc, vipInfo;
var _this = this;
return __generator(this, function (_
b
) {
switch (_
b
.label) {
return __generator(this, function (_
a
) {
switch (_
a
.label) {
case 0:
if (Tools_1.Tools.globalData.inviteId == Tools_1.Tools.globalData.openId) {
ctrls_1.showToast('自己不能给自己助力');
this.hidePanel();
return [2];
}
if (this.vip) {
this.hidePanel();
return [2];
}
return [4,
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.queryVipInfo
)];
return [4,
this.queryVip(
)];
case 1:
_a = _b.sent(), vipSuc = _a.success, vipInfo = _a.data;
if (vipSuc && vipInfo.isvip) {
if (_a.sent()) {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.doHelp, { inviteId: Tools_1.Tools.globalData.inviteId }, function (success, res) {
if (!success) {
ctrls_1.showToast(res.message);
_this.hidePanel();
return;
}
ctrls_1.showToast('接受成功');
ctrls_1.showToast('接受
邀请
成功');
_this.hidePanel();
});
}
else {
ctrls_1.showToast('请
入会后参与
');
ctrls_1.showToast('请
先加入会员
');
setTimeout(function () {
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.openMember);
}, 1500);
...
...
@@ -11340,6 +11357,19 @@ var HelpPanel = (function (_super) {
});
});
};
HelpPanel.prototype.queryVip = function () {
return __awaiter(this, void 0, void 0, function () {
var _a, success, data;
return __generator(this, function (_b) {
switch (_b.label) {
case 0: return [4, TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.queryVipInfo)];
case 1:
_a = _b.sent(), success = _a.success, data = _a.data;
return [2, success && data.isvip];
}
});
});
};
HelpPanel.prototype.initEvents = function () {
_super.prototype.initEvents.call(this);
};
output.js.map
View file @
2ada8061
This diff is collapsed.
Click to expand it.
src/TaoBaoNet.ts
View file @
2ada8061
...
...
@@ -18,7 +18,7 @@ export enum TbNetName {
doHelp
=
"feile.doHelp"
,
queryVipInfo
=
"feile.query
VipInfo"
,
getVipInfo
=
"feile.get
VipInfo"
,
/**
* 活动基本信息
...
...
src/panels/HelpPanel.ts
View file @
2ada8061
...
...
@@ -68,7 +68,7 @@ export class HelpPanel extends Panel {
}
async
queryVip
()
{
const
{
success
,
data
}
=
await
sendTbNet
(
TbNetName
.
query
VipInfo
);
const
{
success
,
data
}
=
await
sendTbNet
(
TbNetName
.
get
VipInfo
);
return
success
&&
data
.
isvip
;
}
...
...
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