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
83f45667
Commit
83f45667
authored
Feb 23, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
0af05ab5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
workspace.xml
.idea/workspace.xml
+9
-5
HelpPanel.ts
src/panels/HelpPanel.ts
+17
-5
No files found.
.idea/workspace.xml
View file @
83f45667
...
...
@@ -3,9 +3,6 @@
<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/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.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"
/>
...
...
@@ -134,7 +131,7 @@
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613958457445"
duration=
"1
4354
000"
/>
<workItem
from=
"1613958457445"
duration=
"1
6219
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
...
...
@@ -458,7 +455,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614064727527
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"47"
/>
<task
id=
"LOCAL-00047"
summary=
"m"
>
<created>
1614070959025
</created>
<option
name=
"number"
value=
"00047"
/>
<option
name=
"presentableId"
value=
"LOCAL-00047"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614070959025
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"48"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
src/panels/HelpPanel.ts
View file @
83f45667
...
...
@@ -11,8 +11,10 @@ export class HelpPanel extends Panel {
return
[
"HelpPanel"
]
}
initUi
()
{
vip
:
false
;
async
initUi
()
{
this
.
vip
=
await
this
.
queryVip
();
}
start
(
data
)
{
...
...
@@ -40,26 +42,36 @@ export class HelpPanel extends Panel {
this
.
hidePanel
();
return
;
}
const
{
success
:
vipSuc
,
data
:
vipInfo
}
=
await
sendTbNet
(
TbNetName
.
queryVipInfo
);
if
(
vipSuc
&&
vipInfo
.
isvip
)
{
if
(
this
.
vip
)
{
this
.
hidePanel
();
return
;
}
if
(
await
this
.
queryVip
())
{
sendTbNet
(
TbNetName
.
doHelp
,
{
inviteId
:
Tools
.
globalData
.
inviteId
},
(
success
,
res
)
=>
{
if
(
!
success
)
{
// 失败唤起入会插件
/// TODO 是自己?
if
(
!
success
)
{
// 失败唤起入会插件
showToast
(
res
.
message
);
this
.
hidePanel
();
return
;
}
showToast
(
'接受邀请成功'
);
this
.
hidePanel
();
});
}
else
{
showToast
(
'请
入会后参与
'
);
showToast
(
'请
先加入会员
'
);
setTimeout
(()
=>
{
sendTbNet
(
TbNetName
.
openMember
);
},
1500
);
}
}
async
queryVip
()
{
const
{
success
,
data
}
=
await
sendTbNet
(
TbNetName
.
queryVipInfo
);
return
success
&&
data
.
isvip
;
}
initEvents
()
{
super
.
initEvents
();
}
...
...
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