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
15116662
Commit
15116662
authored
Feb 23, 2021
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
m
parent
d2e0f458
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
30 deletions
+42
-30
workspace.xml
.idea/workspace.xml
+11
-13
feile.queryVipInfo.json
mock/miniTb/feile.queryVipInfo.json
+7
-0
mine.getAppData.json
mock/miniTb/mine.getAppData.json
+3
-3
TaoBaoNet.ts
src/TaoBaoNet.ts
+2
-0
HelpPanel.ts
src/panels/HelpPanel.ts
+19
-14
No files found.
.idea/workspace.xml
View file @
15116662
...
...
@@ -2,20 +2,11 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"0d3cb18d-e144-41a0-bc8b-4877c2e1fef1"
name=
"默认的"
comment=
""
>
<change
afterPath=
"$PROJECT_DIR$/resource/helpPanel/helpBg.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/resource/helpPanel/helpBtn.png"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/src/panels/HelpPanel.ts"
afterDir=
"false"
/>
<change
afterPath=
"$PROJECT_DIR$/mock/miniTb/feile.queryVipInfo.json"
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$/mock/miniTb/mine.getAppData.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/mock/miniTb/mine.getAppData.json"
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$/resource/res.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/resource/res.json"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/ResJson.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/ResJson.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/TaoBaoNet.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/TaoBaoNet.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/scene/LoadingScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/LoadingScene.ts"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/src/scene/map/MapScene.ts"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/src/scene/map/MapScene.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"
/>
<option
name=
"HIGHLIGHT_CONFLICTS"
value=
"true"
/>
...
...
@@ -143,7 +134,7 @@
<workItem
from=
"1612662929222"
duration=
"40609000"
/>
<workItem
from=
"1613698993022"
duration=
"22309000"
/>
<workItem
from=
"1613785579125"
duration=
"17751000"
/>
<workItem
from=
"1613958457445"
duration=
"11
432
000"
/>
<workItem
from=
"1613958457445"
duration=
"11
823
000"
/>
</task>
<task
id=
"LOCAL-00001"
summary=
"斐乐消消乐"
>
<created>
1612581213298
</created>
...
...
@@ -453,7 +444,14 @@
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614051416478
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"45"
/>
<task
id=
"LOCAL-00045"
summary=
"m"
>
<created>
1614064323435
</created>
<option
name=
"number"
value=
"00045"
/>
<option
name=
"presentableId"
value=
"LOCAL-00045"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1614064323435
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"46"
/>
<servers
/>
</component>
<component
name=
"TypeScriptGeneratedFilesManager"
>
...
...
mock/miniTb/feile.queryVipInfo.json
0 → 100644
View file @
15116662
{
"success"
:
true
,
"data"
:
{
"isvip"
:
false
,
"url"
:
"https://www.baidu.com"
}
}
mock/miniTb/mine.getAppData.json
View file @
15116662
...
...
@@ -3,12 +3,12 @@
"data"
:
{
"avatar"
:
"https://source.unsplash.com/user/erondu/76x76"
,
"nickName"
:
"我啊是大请问"
,
"activityId"
:
"
string
"
,
"openId"
:
"
string
"
,
"activityId"
:
"
activityId
"
,
"openId"
:
"
openId
"
,
"isFirstLogin"
:
true
,
"loginAddPower"
:
3
,
"isNewUser"
:
true
,
"inviteId"
:
"
string
"
,
"inviteId"
:
"
inviteId
"
,
"isFollow"
:
true
}
}
src/TaoBaoNet.ts
View file @
15116662
...
...
@@ -18,6 +18,8 @@ export enum TbNetName {
doHelp
=
"feile.doHelp"
,
queryVipInfo
=
"feile.queryVipInfo"
,
/**
* 活动基本信息
* @param activityId
...
...
src/panels/HelpPanel.ts
View file @
15116662
...
...
@@ -34,24 +34,29 @@ export class HelpPanel extends Panel {
Tools
.
globalData
.
inviteId
=
''
;
}
doHelp
()
{
if
(
Tools
.
globalData
.
inviteId
==
Tools
.
globalData
.
openId
)
{
async
doHelp
()
{
if
(
Tools
.
globalData
.
inviteId
==
Tools
.
globalData
.
openId
)
{
this
.
hidePanel
();
return
;
}
sendTbNet
(
TbNetName
.
doHelp
,
{
inviteId
:
Tools
.
globalData
.
inviteId
},
(
success
,
res
)
=>
{
if
(
!
success
)
{
// 失败唤起入会插件 /// TODO 是自己?
if
(
res
.
data
&&
!
res
.
data
.
isvip
)
{
showToast
(
'请入会后参与'
);
setTimeout
(()
=>
{
sendTbNet
(
TbNetName
.
openMember
);
},
1500
)
;
const
{
success
:
vipSuc
,
data
:
vipInfo
}
=
await
sendTbNet
(
TbNetName
.
queryVipInfo
);
if
(
vipSuc
&&
vipInfo
.
isvip
)
{
sendTbNet
(
TbNetName
.
doHelp
,
{
inviteId
:
Tools
.
globalData
.
inviteId
},
(
success
,
res
)
=>
{
if
(
!
success
)
{
// 失败唤起入会插件 /// TODO 是自己?
showToast
(
res
.
message
);
return
;
}
return
;
}
this
.
hidePanel
();
});
showToast
(
'接受成功'
);
this
.
hidePanel
();
});
}
else
{
showToast
(
'请入会后参与'
);
setTimeout
(()
=>
{
sendTbNet
(
TbNetName
.
openMember
);
},
1500
);
}
}
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