Commit 15116662 authored by 邱旭's avatar 邱旭

m

parent d2e0f458
...@@ -2,20 +2,11 @@ ...@@ -2,20 +2,11 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="0d3cb18d-e144-41a0-bc8b-4877c2e1fef1" name="默认的" comment=""> <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$/mock/miniTb/feile.queryVipInfo.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/resource/helpPanel/helpBtn.png" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/panels/HelpPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" 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$/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/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/panels/HelpPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/HelpPanel.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" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -143,7 +134,7 @@ ...@@ -143,7 +134,7 @@
<workItem from="1612662929222" duration="40609000" /> <workItem from="1612662929222" duration="40609000" />
<workItem from="1613698993022" duration="22309000" /> <workItem from="1613698993022" duration="22309000" />
<workItem from="1613785579125" duration="17751000" /> <workItem from="1613785579125" duration="17751000" />
<workItem from="1613958457445" duration="11432000" /> <workItem from="1613958457445" duration="11823000" />
</task> </task>
<task id="LOCAL-00001" summary="斐乐消消乐"> <task id="LOCAL-00001" summary="斐乐消消乐">
<created>1612581213298</created> <created>1612581213298</created>
...@@ -453,7 +444,14 @@ ...@@ -453,7 +444,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1614051416478</updated> <updated>1614051416478</updated>
</task> </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 /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
......
{
"success": true,
"data": {
"isvip": false,
"url": "https://www.baidu.com"
}
}
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
"data": { "data": {
"avatar": "https://source.unsplash.com/user/erondu/76x76", "avatar": "https://source.unsplash.com/user/erondu/76x76",
"nickName": "我啊是大请问", "nickName": "我啊是大请问",
"activityId": "string", "activityId": "activityId",
"openId": "string", "openId": "openId",
"isFirstLogin": true, "isFirstLogin": true,
"loginAddPower": 3, "loginAddPower": 3,
"isNewUser": true, "isNewUser": true,
"inviteId": "string", "inviteId": "inviteId",
"isFollow": true "isFollow": true
} }
} }
...@@ -18,6 +18,8 @@ export enum TbNetName { ...@@ -18,6 +18,8 @@ export enum TbNetName {
doHelp = "feile.doHelp", doHelp = "feile.doHelp",
queryVipInfo = "feile.queryVipInfo",
/** /**
* 活动基本信息 * 活动基本信息
* @param activityId * @param activityId
......
...@@ -34,24 +34,29 @@ export class HelpPanel extends Panel { ...@@ -34,24 +34,29 @@ export class HelpPanel extends Panel {
Tools.globalData.inviteId = ''; Tools.globalData.inviteId = '';
} }
doHelp() { async doHelp() {
if(Tools.globalData.inviteId == Tools.globalData.openId){ if (Tools.globalData.inviteId == Tools.globalData.openId) {
this.hidePanel(); this.hidePanel();
return; return;
} }
const { success: vipSuc, data: vipInfo } = await sendTbNet(TbNetName.queryVipInfo);
if (vipSuc && vipInfo.isvip) {
sendTbNet(TbNetName.doHelp, { inviteId: Tools.globalData.inviteId }, sendTbNet(TbNetName.doHelp, { inviteId: Tools.globalData.inviteId },
(success, res) => { (success, res) => {
if (!success) { // 失败唤起入会插件 /// TODO 是自己? if (!success) { // 失败唤起入会插件 /// TODO 是自己?
if (res.data && !res.data.isvip) { showToast(res.message);
return;
}
showToast('接受成功');
this.hidePanel();
});
} else {
showToast('请入会后参与'); showToast('请入会后参与');
setTimeout(() => { setTimeout(() => {
sendTbNet(TbNetName.openMember); sendTbNet(TbNetName.openMember);
}, 1500); }, 1500);
} }
return;
}
this.hidePanel();
});
} }
initEvents() { initEvents() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment