Commit a995fc3a authored by haiyoucuv's avatar haiyoucuv

换了点皮,换了下接口

parent fd1c29ea
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
</state>
</component>
\ No newline at end of file
...@@ -3,4 +3,7 @@ ...@@ -3,4 +3,7 @@
<component name="JavaScriptSettings"> <component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" /> <option name="languageLevel" value="ES6" />
</component> </component>
<component name="ProjectPlainTextFileTypeManager">
<file url="file://$PROJECT_DIR$/src/scene/LotteryScene.ts" />
</component>
</project> </project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="9cef0552-af3c-4a1c-be1f-dc41ebe5b6db" name="Default Changelist" comment="" /> <list default="true" id="9cef0552-af3c-4a1c-be1f-dc41ebe5b6db" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/.idea/codeStyles/codeStyleConfig.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.completeTask.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.consumerTools.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.doJoin.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.drawLotteryPrize.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.gameOver.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getActivityBaseInfoById.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getMyPrizeList.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getRemainTimes.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getTaskList.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.getToolsInfo.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.receiveEnamePrize.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.receiveObjectPrize.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/popmartXXL2c.receiveTaskRewards.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/aaaa.html" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/misc.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/misc.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/babycare.completeTask.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.consumerTools.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.dojoin.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.exchange.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.gameOver.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.getActivityBaseInfoById.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.getGameInfo.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.getIndex.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.getPrizesByLevel.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.getTaskList.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.luckyDraw.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.queryCredits.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/babycare.receiveTaskRewards.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/bb.json" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/output.js" beforeDir="false" afterPath="$PROJECT_DIR$/output.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/BuyPowerPanel/增加体力背景.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/BuyPowerPanel/无字按钮底.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/CreditsOutPanel/积分不足背景.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/CreditsOutPanel/赚取积分.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/ExchangeSucPanel/兑换成功背景.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/ExchangeSucPanel/知道啦.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/FailedPanel/失败Bg.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/FailedPanel/失败Bg.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/FailedPanel/失败重新闯关.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/FailedPanel/失败重新闯关.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/FreePowerPanel/圆圈.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/FreePowerPanel/圆圈.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/FreePowerPanel/开心收下.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/FreePowerPanel/开心收下.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/NoPrizePanel/noPrizeBg.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/NoPrizePanel/知道了.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/NoStepPanel/步数耗尽Bg.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/NoStepPanel/步数耗尽Bg.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/NoStepPanel/步数耗尽复活.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/NoStepPanel/步数耗尽复活.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/NoStepPanel/步数耗尽结束按钮.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/NoStepPanel/步数耗尽结束按钮.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/RulePanel/活动规则背景.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/RulePanel/活动规则背景.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/StartPanel/开始闯关Bg.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/StartPanelPrize/关卡弹窗Bg.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/StartPanelPrize/关卡弹窗Bg.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功Bg.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功Bg.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功不满星按钮.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/SuccessPanel/闯关成功不满星按钮.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/TaskPanel/任务背景.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/TaskPanel/任务背景.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/ToolsOutPanel/道具不足背景.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/resource/UseToolPanel/使用道具背景.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/UseToolPanel/使用道具背景.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/ele5.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/ele5.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/ele7.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/ele7.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/ele9.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/ele9.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/stepBtn.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/stepBtn.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/关闭按钮.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/关闭按钮.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/再想想.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/再想想.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/开始闯关要能量.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/开始闯关要能量.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/确定.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/确定.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/继续闯关大.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/继续闯关大.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/common/继续闯关小.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/common/继续闯关小.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/bubleEle0.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/bubleEle0.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/bubleEle1.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/bubleEle1.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/bubleEle2.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/bubleEle2.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/bubleEle3.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/bubleEle3.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/bubleEle4.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/bubleEle4.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballDisBg.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballDisBg.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece1.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece1.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece2.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece2.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece3.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece3.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece4.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece4.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece5.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece5.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece6.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece6.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece7.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece7.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/hairballPiece8.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/hairballPiece8.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/ice2.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/ice2.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/ice3.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/ice3.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/ice4.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/ice4.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/ice6.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/ice6.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/lockVine.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/lockVine.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/magicLion.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/magicLion.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/rock2.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/rock2.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/rock3.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/rock3.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/rock4.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/rock4.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/rock5.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/rock5.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/playScene/rock6.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/playScene/rock6.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/res.json" beforeDir="false" afterPath="$PROJECT_DIR$/resource/res.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Main.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/Main.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ResJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/ResJson.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/SkinJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/SkinJson.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/BuyPowerPanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/CreditsOutPanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/ExchangeSucPanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/FailedPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/FailedPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/NoEnergyPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/NoEnergyPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/NoPrizePanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/NoStepPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/NoStepPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/PrizePanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/RulePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/RulePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/StartPanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/StartPanelPrize.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/StartPanelPrize.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/SuccessNoPrizePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/SuccessPrizePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/TaskPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/TaskPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/ToolsOutPanel.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/WxPrizePanel.ts" beforeDir="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/LotteryScene.ts" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/PlayScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/PlayScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/CheckBtn.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/CheckBtn.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/scene/map/MapTop.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapTop.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scene/map/MapUI.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scene/map/MapUI.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/something/enum/PropType.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/something/enum/PropType.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/something/periodAni/MagicLionBgAni.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/something/periodAni/MagicLionBgAni.ts" afterDir="false" />
</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" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" /> <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
...@@ -10,9 +133,10 @@ ...@@ -10,9 +133,10 @@
<component name="FileTemplateManagerImpl"> <component name="FileTemplateManagerImpl">
<option name="RECENT_TEMPLATES"> <option name="RECENT_TEMPLATES">
<list> <list>
<option value="JsonFile" />
<option value="TypeScript File" /> <option value="TypeScript File" />
<option value="JavaScript File" /> <option value="JavaScript File" />
<option value="JsonFile" />
<option value="HTML File" />
</list> </list>
</option> </option>
</component> </component>
...@@ -34,8 +158,10 @@ ...@@ -34,8 +158,10 @@
</component> </component>
<component name="PropertiesComponent"> <component name="PropertiesComponent">
<property name="ASKED_ADD_EXTERNAL_FILES" value="true" /> <property name="ASKED_ADD_EXTERNAL_FILES" value="true" />
<property name="DefaultHtmlFileTemplate" value="HTML File" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" /> <property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" /> <property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="SHARE_PROJECT_CONFIGURATION_FILES" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" /> <property name="WebServerToolWindowFactoryState" value="false" />
<property name="last_opened_file_path" value="$PROJECT_DIR$" /> <property name="last_opened_file_path" value="$PROJECT_DIR$" />
<property name="node.js.detected.package.tslint" value="true" /> <property name="node.js.detected.package.tslint" value="true" />
...@@ -47,6 +173,7 @@ ...@@ -47,6 +173,7 @@
<property name="run.code.analysis.last.selected.profile" value="pProject Default" /> <property name="run.code.analysis.last.selected.profile" value="pProject Default" />
<property name="settings.editor.selected.configurable" value="preferences.pluginManager" /> <property name="settings.editor.selected.configurable" value="preferences.pluginManager" />
<property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" /> <property name="ts.external.directory.path" value="$PROJECT_DIR$/node_modules/typescript/lib" />
<property name="vue.rearranger.settings.migration" value="true" />
</component> </component>
<component name="RecentsManager"> <component name="RecentsManager">
<key name="CopyFile.RECENT_KEYS"> <key name="CopyFile.RECENT_KEYS">
...@@ -65,6 +192,9 @@ ...@@ -65,6 +192,9 @@
</key> </key>
</component> </component>
<component name="RunManager" selected="npm.dev"> <component name="RunManager" selected="npm.dev">
<configuration name="aaaa.html" type="JavascriptDebugType" temporary="true" nameIsGenerated="true" uri="http://localhost:63342/ppmt_xxl/src/aaaa.html" useBuiltInWebServerPort="true">
<method v="2" />
</configuration>
<configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true"> <configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" /> <package-json value="$PROJECT_DIR$/package.json" />
<command value="run" /> <command value="run" />
...@@ -88,11 +218,13 @@ ...@@ -88,11 +218,13 @@
</configuration> </configuration>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="npm.flushRes" />
<item itemvalue="npm.dev" /> <item itemvalue="npm.dev" />
<item itemvalue="JavaScript Debug.aaaa.html" />
<item itemvalue="npm.flushRes" />
</list> </list>
</recent_temporary> </recent_temporary>
</component> </component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="SvnConfiguration"> <component name="SvnConfiguration">
<configuration /> <configuration />
</component> </component>
...@@ -133,6 +265,8 @@ ...@@ -133,6 +265,8 @@
<workItem from="1596418925126" duration="14112000" /> <workItem from="1596418925126" duration="14112000" />
<workItem from="1596505747021" duration="2300000" /> <workItem from="1596505747021" duration="2300000" />
<workItem from="1596609620649" duration="537000" /> <workItem from="1596609620649" duration="537000" />
<workItem from="1600912046696" duration="16271000" />
<workItem from="1600998191749" duration="17952000" />
</task> </task>
<task id="LOCAL-00001" summary="111"> <task id="LOCAL-00001" summary="111">
<created>1594122339119</created> <created>1594122339119</created>
...@@ -449,11 +583,35 @@ ...@@ -449,11 +583,35 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1600860005659</updated> <updated>1600860005659</updated>
</task> </task>
<option name="localTasksCounter" value="46" /> <task id="LOCAL-00046" summary="换了点皮">
<created>1600860296336</created>
<option name="number" value="00046" />
<option name="presentableId" value="LOCAL-00046" />
<option name="project" value="LOCAL" />
<updated>1600860296336</updated>
</task>
<task id="LOCAL-00047" summary="换了点皮">
<created>1600860459931</created>
<option name="number" value="00047" />
<option name="presentableId" value="LOCAL-00047" />
<option name="project" value="LOCAL" />
<updated>1600860459931</updated>
</task>
<option name="localTasksCounter" value="48" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
<option name="version" value="2" /> <option name="version" value="3" />
</component>
<component name="Vcs.Log.History.Properties">
<option name="COLUMN_ORDER">
<list>
<option value="0" />
<option value="2" />
<option value="3" />
<option value="1" />
</list>
</option>
</component> </component>
<component name="VcsManagerConfiguration"> <component name="VcsManagerConfiguration">
<MESSAGE value="111" /> <MESSAGE value="111" />
...@@ -480,74 +638,83 @@ ...@@ -480,74 +638,83 @@
<screen x="31" y="23" width="1889" height="1177" /> <screen x="31" y="23" width="1889" height="1177" />
</state> </state>
<state x="251" y="471" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177" timestamp="1594113080922" /> <state x="251" y="471" key="ANALYSIS_DLG_com.intellij.analysis.BaseAnalysisAction$1/31.23.1889.1177@31.23.1889.1177" timestamp="1594113080922" />
<state x="557" y="183" width="884" height="891" key="CommitChangelistDialog2" timestamp="1600860005131"> <state x="557" y="183" width="884" height="891" key="CommitChangelistDialog2" timestamp="1600860459735">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="557" y="183" key="CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177" timestamp="1600860005131" /> <state x="557" y="183" key="CommitChangelistDialog2/30.23.1890.1177@30.23.1890.1177" timestamp="1600860459735" />
<state x="558" y="183" width="884" height="891" key="CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177" timestamp="1595584297912" /> <state x="558" y="183" width="884" height="891" key="CommitChangelistDialog2/31.23.1889.1177@31.23.1889.1177" timestamp="1595584297912" />
<state x="131" y="123" width="730" height="977" key="DiffContextDialog" timestamp="1596165868169"> <state x="131" y="123" width="730" height="977" key="DiffContextDialog" timestamp="1596165868169">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="131" y="123" width="730" height="977" key="DiffContextDialog/30.23.1890.1177@30.23.1890.1177" timestamp="1596165868169" /> <state x="131" y="123" width="730" height="977" key="DiffContextDialog/30.23.1890.1177@30.23.1890.1177" timestamp="1596165868169" />
<state width="869" height="321" key="GridCell.Tab.0.bottom" timestamp="1600858997783"> <state width="877" height="321" key="GridCell.Tab.0.bottom" timestamp="1601020736126">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state width="869" height="321" key="GridCell.Tab.0.bottom/30.23.1410.877/1440.23.1920.1177@30.23.1410.877" timestamp="1600867804217" />
<state width="885" height="321" key="GridCell.Tab.0.bottom/30.23.1410.877@30.23.1410.877" timestamp="1600962876448" />
<state width="888" height="321" key="GridCell.Tab.0.bottom/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312309" /> <state width="888" height="321" key="GridCell.Tab.0.bottom/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312309" />
<state width="869" height="321" key="GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177" timestamp="1600858997783" /> <state width="877" height="321" key="GridCell.Tab.0.bottom/30.23.1890.1177@30.23.1890.1177" timestamp="1601020736126" />
<state width="1041" height="321" key="GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577198" /> <state width="1041" height="321" key="GridCell.Tab.0.bottom/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577198" />
<state width="1041" height="321" key="GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918465" /> <state width="1041" height="321" key="GridCell.Tab.0.bottom/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918465" />
<state width="869" height="321" key="GridCell.Tab.0.center" timestamp="1600858997782"> <state width="877" height="321" key="GridCell.Tab.0.center" timestamp="1601020736125">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state width="869" height="321" key="GridCell.Tab.0.center/30.23.1410.877/1440.23.1920.1177@30.23.1410.877" timestamp="1600867804216" />
<state width="885" height="321" key="GridCell.Tab.0.center/30.23.1410.877@30.23.1410.877" timestamp="1600962876447" />
<state width="888" height="321" key="GridCell.Tab.0.center/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312308" /> <state width="888" height="321" key="GridCell.Tab.0.center/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312308" />
<state width="869" height="321" key="GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177" timestamp="1600858997782" /> <state width="877" height="321" key="GridCell.Tab.0.center/30.23.1890.1177@30.23.1890.1177" timestamp="1601020736125" />
<state width="1041" height="321" key="GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577198" /> <state width="1041" height="321" key="GridCell.Tab.0.center/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577198" />
<state width="1041" height="321" key="GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918464" /> <state width="1041" height="321" key="GridCell.Tab.0.center/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918464" />
<state width="869" height="321" key="GridCell.Tab.0.left" timestamp="1600858997781"> <state width="877" height="321" key="GridCell.Tab.0.left" timestamp="1601020736124">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state width="869" height="321" key="GridCell.Tab.0.left/30.23.1410.877/1440.23.1920.1177@30.23.1410.877" timestamp="1600867804216" />
<state width="885" height="321" key="GridCell.Tab.0.left/30.23.1410.877@30.23.1410.877" timestamp="1600962876447" />
<state width="888" height="321" key="GridCell.Tab.0.left/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312308" /> <state width="888" height="321" key="GridCell.Tab.0.left/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312308" />
<state width="869" height="321" key="GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177" timestamp="1600858997781" /> <state width="877" height="321" key="GridCell.Tab.0.left/30.23.1890.1177@30.23.1890.1177" timestamp="1601020736124" />
<state width="1041" height="321" key="GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577197" /> <state width="1041" height="321" key="GridCell.Tab.0.left/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577197" />
<state width="1041" height="321" key="GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918463" /> <state width="1041" height="321" key="GridCell.Tab.0.left/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918463" />
<state width="869" height="321" key="GridCell.Tab.0.right" timestamp="1600858997782"> <state width="877" height="321" key="GridCell.Tab.0.right" timestamp="1601020736126">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state width="869" height="321" key="GridCell.Tab.0.right/30.23.1410.877/1440.23.1920.1177@30.23.1410.877" timestamp="1600867804217" />
<state width="885" height="321" key="GridCell.Tab.0.right/30.23.1410.877@30.23.1410.877" timestamp="1600962876447" />
<state width="888" height="321" key="GridCell.Tab.0.right/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312309" /> <state width="888" height="321" key="GridCell.Tab.0.right/30.23.1650.1027@30.23.1650.1027" timestamp="1596463312309" />
<state width="869" height="321" key="GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177" timestamp="1600858997782" /> <state width="877" height="321" key="GridCell.Tab.0.right/30.23.1890.1177@30.23.1890.1177" timestamp="1601020736126" />
<state width="1041" height="321" key="GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577198" /> <state width="1041" height="321" key="GridCell.Tab.0.right/31.23.1649.1027@31.23.1649.1027" timestamp="1595590577198" />
<state width="1041" height="321" key="GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918465" /> <state width="1041" height="321" key="GridCell.Tab.0.right/31.23.1889.1177@31.23.1889.1177" timestamp="1595579918465" />
<state x="82" y="353" key="IDE.errors.dialog" timestamp="1594777965326"> <state x="82" y="353" key="IDE.errors.dialog" timestamp="1594777965326">
<screen x="31" y="23" width="1889" height="1177" /> <screen x="31" y="23" width="1889" height="1177" />
</state> </state>
<state x="82" y="353" key="IDE.errors.dialog/31.23.1889.1177@31.23.1889.1177" timestamp="1594777965326" /> <state x="82" y="353" key="IDE.errors.dialog/31.23.1889.1177@31.23.1889.1177" timestamp="1594777965326" />
<state x="209" y="320" key="RollbackChangesDialog" timestamp="1596437158375"> <state x="209" y="320" key="RollbackChangesDialog" timestamp="1601020743471">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="209" y="320" key="RollbackChangesDialog/30.23.1890.1177@30.23.1890.1177" timestamp="1596437158375" /> <state x="209" y="320" key="RollbackChangesDialog/30.23.1890.1177@30.23.1890.1177" timestamp="1601020743471" />
<state x="210" y="320" key="RollbackChangesDialog/31.23.1889.1177@31.23.1889.1177" timestamp="1594173186663" /> <state x="210" y="320" key="RollbackChangesDialog/31.23.1889.1177@31.23.1889.1177" timestamp="1594173186663" />
<state x="289" y="314" key="SettingsEditor" timestamp="1596079390860"> <state x="289" y="314" key="SettingsEditor" timestamp="1596079390860">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="289" y="314" key="SettingsEditor/30.23.1890.1177@30.23.1890.1177" timestamp="1596079390860" /> <state x="289" y="314" key="SettingsEditor/30.23.1890.1177@30.23.1890.1177" timestamp="1596079390860" />
<state x="300" y="248" key="SettingsEditor/31.23.1889.1177@31.23.1889.1177" timestamp="1594798992724" /> <state x="300" y="248" key="SettingsEditor/31.23.1889.1177@31.23.1889.1177" timestamp="1594798992724" />
<state x="91" y="351" key="Vcs.Push.Dialog.v2" timestamp="1600860006889"> <state x="91" y="351" key="Vcs.Push.Dialog.v2" timestamp="1600860461022">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="91" y="351" key="Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177" timestamp="1600860006889" /> <state x="91" y="351" key="Vcs.Push.Dialog.v2/30.23.1890.1177@30.23.1890.1177" timestamp="1600860461022" />
<state x="92" y="351" key="Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177" timestamp="1595584299423" /> <state x="92" y="351" key="Vcs.Push.Dialog.v2/31.23.1889.1177@31.23.1889.1177" timestamp="1595584299423" />
<state x="87" y="216" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1594705166397"> <state x="87" y="216" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1594705166397">
<screen x="31" y="23" width="1889" height="1177" /> <screen x="31" y="23" width="1889" height="1177" />
</state> </state>
<state x="87" y="216" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser/31.23.1889.1177@31.23.1889.1177" timestamp="1594705166397" /> <state x="87" y="216" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser/31.23.1889.1177@31.23.1889.1177" timestamp="1594705166397" />
<state x="279" y="23" width="880" height="1158" key="dock-window-1" timestamp="1595906632353"> <state x="283" y="23" width="1042" height="1177" key="dock-window-1" timestamp="1601003582799">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="279" y="23" width="880" height="1158" key="dock-window-1/30.23.1890.1177@30.23.1890.1177" timestamp="1595906632353" /> <state x="283" y="23" width="1042" height="1177" key="dock-window-1/30.23.1890.1177@30.23.1890.1177" timestamp="1601003582799" />
<state x="280" y="23" width="879" height="1158" key="dock-window-1/31.23.1889.1177@31.23.1889.1177" timestamp="1595227066273" /> <state x="280" y="23" width="879" height="1158" key="dock-window-1/31.23.1889.1177@31.23.1889.1177" timestamp="1595227066273" />
<state x="907" y="23" width="879" height="1158" key="dock-window-2" timestamp="1595227066273"> <state x="588" y="23" width="949" height="1177" key="dock-window-2" timestamp="1601015282397">
<screen x="31" y="23" width="1889" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="588" y="23" width="949" height="1177" key="dock-window-2/30.23.1890.1177@30.23.1890.1177" timestamp="1601015282397" />
<state x="907" y="23" width="879" height="1158" key="dock-window-2/31.23.1889.1177@31.23.1889.1177" timestamp="1595227066273" /> <state x="907" y="23" width="879" height="1158" key="dock-window-2/31.23.1889.1177@31.23.1889.1177" timestamp="1595227066273" />
<state x="805" y="23" width="879" height="1158" key="dock-window-3" timestamp="1594604843980"> <state x="805" y="23" width="879" height="1158" key="dock-window-3" timestamp="1594604843980">
<screen x="31" y="23" width="1889" height="1177" /> <screen x="31" y="23" width="1889" height="1177" />
...@@ -562,11 +729,11 @@ ...@@ -562,11 +729,11 @@
</state> </state>
<state x="156" y="286" key="run.anything.popup/30.23.1890.1177@30.23.1890.1177" timestamp="1596432664001" /> <state x="156" y="286" key="run.anything.popup/30.23.1890.1177@30.23.1890.1177" timestamp="1596432664001" />
<state x="157" y="286" key="run.anything.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1595475548860" /> <state x="157" y="286" key="run.anything.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1595475548860" />
<state x="639" y="288" width="671" height="676" key="search.everywhere.popup" timestamp="1600857295908"> <state x="639" y="288" width="671" height="676" key="search.everywhere.popup" timestamp="1601021586072">
<screen x="30" y="23" width="1890" height="1177" /> <screen x="30" y="23" width="1890" height="1177" />
</state> </state>
<state x="484" y="220" width="670" height="504" key="search.everywhere.popup/30.23.1410.877@30.23.1410.877" timestamp="1600829323295" /> <state x="484" y="220" width="670" height="504" key="search.everywhere.popup/30.23.1410.877@30.23.1410.877" timestamp="1600829323295" />
<state x="639" y="288" width="671" height="676" key="search.everywhere.popup/30.23.1890.1177@30.23.1890.1177" timestamp="1600857295908" /> <state x="639" y="288" width="671" height="676" key="search.everywhere.popup/30.23.1890.1177@30.23.1890.1177" timestamp="1601021586072" />
<state x="640" y="288" width="670" height="676" key="search.everywhere.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1595584259535" /> <state x="640" y="288" width="670" height="676" key="search.everywhere.popup/31.23.1889.1177@31.23.1889.1177" timestamp="1595584259535" />
</component> </component>
</project> </project>
\ No newline at end of file
{
"code": "530001",
"data": {
"power": 231,
"tools": {
"STEPS": 3,
"BOOMS": 4,
"HAMMERS": 5
},
"isvip": false,
"url": "//market.m.taobao.com/apps/market/shopmember/index.html?wh_weex=true&sellerId=2207623078795&extraInfo=%7B%22source%22%3A%22isvapp%22%2C%22entrance%22%3A%22duiba%22%7D"
},
"success": true,
"message": "需要成为会员"
}
{
"code": "000000",
"data": {
"inviteFriends": {
"type": 2,
"value": 8,
"taskNum": 3
},
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"rule": "测试活动规则",
"updateTime": 1594987802814,
"title": "澎锋测试1",
"toolsProbability": {
"HAMMERS": {
"properiodfrom": 1,
"properiodto": 3300,
"probability": 33
},
"STEPS": {
"properiodfrom": 3301,
"properiodto": 6700,
"probability": 34
},
"BOOMS": {
"properiodfrom": 6701,
"properiodto": 10000,
"probability": 33
}
},
"levelPrize": {
"level_90": "https://img.alicdn.com/imgextra/i4/2275046294/O1CN01rG9iDU1wMhRtEnjA8_!!2275046294-2-miniprogram.png",
"level_60": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01Sytynw1wMhRuqjy5V_!!2275046294-2-miniprogram.png",
"level_120": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Jh6dtM1wMhRxULetP_!!2275046294-2-miniprogram.png",
"level_30": "https://img.alicdn.com/imgextra/i3/2275046294/O1CN019uAoYk1wMhRsoAgag_!!2275046294-2-miniprogram.png",
"level_10": "https://img.alicdn.com/imgextra/i3/2275046294/O1CN01FwiFBB1wMhRybF1V4_!!2275046294-2-miniprogram.png"
},
"buyCredits": {
"HAMMERS": "3",
"POWERS": "4",
"STEPS": "2",
"BOOMS": "1"
},
"beMembership": 7,
"createTime": 1594987659195,
"deleteStatus": 1,
"browseGoods": {
"itemIds": "616444374083,617466150499,616903228711",
"type": 2,
"value": 5,
"taskNum": 3
},
"startTime": 1594988024000,
"_id": "5f11948b3075d9927ec1f4ce",
"endTime": 1595592824000,
"attentionStore": 6,
"openPrizeStatus": 2
},
"success": true,
"message": "成功"
}
{ "code": "000000", "data": { "currentLevel": 120, "visitors": [ { "activityId": "5f213ff79897b44ce1d2925d", "score": 57340, "level": 107, "createTime": 1596426790338, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596426790338, "_id": "5f278a26964f9706aa6a0f6a", "stars": 3, "isPrizeLevel": false, "sendAwardType": true }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 61920, "level": 90, "createTime": 1596426870046, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596426967833, "_id": "5f278a7675cfb6d7c12b4a34", "stars": 3, "isPrizeLevel": true, "sendAwardType": "prize" }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 71960, "level": 30, "createTime": 1596167666174, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596167666174, "_id": "5f2395f275cfb6d7c120368e", "stars": 3, "isPrizeLevel": true, "sendAwardType": "prize" }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 33790, "level": 29, "createTime": 1596167581587, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596167581587, "_id": "5f23959d964f9706aa5eee7c", "stars": 3, "isPrizeLevel": false, "sendAwardType": true }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 22440, "level": 28, "createTime": 1596097857555, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596097857555, "_id": "5f228541738989c8b3f71b0e", "stars": 3, "isPrizeLevel": false, "sendAwardType": true }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 61340, "level": 27, "createTime": 1596097814868, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596097814868, "_id": "5f228516ef5071ef853e122c", "stars": 3, "isPrizeLevel": false, "sendAwardType": true }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 43200, "level": 26, "createTime": 1596097739299, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisitSuccess": true, "updateTime": 1596097739299, "_id": "5f2284cb9897b44ce1d55d80", "stars": 3, "isPrizeLevel": false, "sendAwardType": true }, { "activityId": "5f213ff79897b44ce1d2925d", "score": 35330, "level": 25, "createTime": 1596097712583, "openId": "AAFgCvE-ALiIWXYsJuSLKdVt", "isVisi tSuccess": true,
"updateTime": 1596097712583,
"_id": "5f2284b0c3ad349c09931d20",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 19030,
"level": 24,
"createTime": 1596097640984,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097640984,
"_id": "5f2284689da6714ab7da8001",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 10490,
"level": 23,
"createTime": 1596097504126,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097504126,
"_id": "5f2283e0738989c8b3f71299",
"stars": 2,
"isPrizeLevel": false,
"sendAwardType": ""
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 36280,
"level": 22,
"createTime": 1596097409349,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097409349,
"_id": "5f228381114fbb8f6d236f6c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 164350,
"level": 21,
"createTime": 1596097323573,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097323573,
"_id": "5f22832b114fbb8f6d236d98",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 29280,
"level": 20,
"createTime": 1596097265605,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097265605,
"_id": "5f2282f1738989c8b3f70d99",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 51060,
"level": 19,
"createTime": 1596097204199,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097204199,
"_id": "5f2282b375cfb6d7c11de506",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 57090,
"level": 18,
"createTime": 1596097156455,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097156455,
"_id": "5f228284ef5071ef853e032d",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 40860,
"level": 17,
"createTime": 1596090162290,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097074636,
"_id": "5f22673267f13766547b9efb",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 50350,
"level": 16,
"createTime": 1596090092557,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596090092557,
"_id": "5f2266ece5c0d7361f1f00d9",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 46920,
"level": 15,
"createTime": 1596019074167,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596019074167,
"_id": "5f2151829da6714ab7d807a9",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 35630,
"level": 14,
"createTime": 1596018897035,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596018897035,
"_id": "5f2150d1086e654a41691f2d",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 48950,
"level": 13,
"createTime": 1596018744786,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596018744786,
"_id": "5f2150399897b44ce1d2c65c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 17990,
"level": 12,
"createTime": 1596017503514,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596017503514,
"_id": "5f214b5f75cfb6d7c11b5317",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 42230,
"level": 11,
"createTime": 1596017212682,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596017212682,
"_id": "5f214a3c75cfb6d7c11b5008",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 45420,
"level": 10,
"createTime": 1596016713590,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016713590,
"_id": "5f214849964f9706aa59ea6c",
"stars": 3,
"isPrizeLevel": true,
"sendAwardType": "prize"
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 27230,
"level": 9,
"createTime": 1596016663401,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016663401,
"_id": "5f214817964f9706aa59e9a6",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 29620,
"level": 8,
"createTime": 1596016581567,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016581567,
"_id": "5f2147c585a7496423c10bdf",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 31870,
"level": 7,
"createTime": 1596016549909,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016549909,
"_id": "5f2147a50cb7330c94bb21b2",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 22810,
"level": 6,
"createTime": 1596016411087,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016411087,
"_id": "5f21471a67f1376654797a22",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 28460,
"level": 5,
"createTime": 1596016335251,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016335251,
"_id": "5f2146cf114fbb8f6d20d120",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 24440,
"level": 4,
"createTime": 1596016289945,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016289945,
"_id": "5f2146a1114fbb8f6d20d02e",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 9380,
"level": 3,
"createTime": 1596016236933,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016236933,
"_id": "5f21466cc3ad349c09908568",
"stars": 2,
"isPrizeLevel": false,
"sendAwardType": ""
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 960,
"level": 2,
"createTime": 1596016196546,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016196546,
"_id": "5f2146443075d9e9767f79ef",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 72080,
"level": 1,
"createTime": 1596016183343,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016183343,
"_id": "5f214637964f9706aa59e156",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
}
],
"prizes": [
{
"receiveTime": "",
"level": 120,
"isReceive": false
}
],
"power": 523,
"tools": {
"HAMMERS": 89,
"STEPS": 103,
"BOOMS": 95
}
},
"success": true,
"message": "成功"
}
{
"code": "000000",
"data": {
"currentLevel": 120,
"isFristLogin": false,
"visitors": [
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 57340,
"level": 107,
"createTime": 1596426790338,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596426790338,
"_id": "5f278a26964f9706aa6a0f6a",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 61920,
"level": 90,
"createTime": 1596426870046,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596426967833,
"_id": "5f278a7675cfb6d7c12b4a34",
"stars": 3,
"isPrizeLevel": true,
"sendAwardType": "prize"
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 71960,
"level": 30,
"createTime": 1596167666174,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596167666174,
"_id": "5f2395f275cfb6d7c120368e",
"stars": 3,
"isPrizeLevel": true,
"sendAwardType": "prize"
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 33790,
"level": 29,
"createTime": 1596167581587,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596167581587,
"_id": "5f23959d964f9706aa5eee7c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 22440,
"level": 28,
"createTime": 1596097857555,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097857555,
"_id": "5f228541738989c8b3f71b0e",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 61340,
"level": 27,
"createTime": 1596097814868,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097814868,
"_id": "5f228516ef5071ef853e122c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 43200,
"level": 26,
"createTime": 1596097739299,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097739299,
"_id": "5f2284cb9897b44ce1d55d80",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 35330,
"level": 25,
"createTime": 1596097712583,
"openId": "AAFgCvE-ALiIWXY sJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097712583,
"_id": "5f2284b0c3ad349c09931d20",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 19030,
"level": 24,
"createTime": 1596097640984,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097640984,
"_id": "5f2284689da6714ab7da8001",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 10490,
"level": 23,
"createTime": 1596097504126,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097504126,
"_id": "5f2283e0738989c8b3f71299",
"stars": 2,
"isPrizeLevel": false,
"sendAwardType": ""
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 36280,
"level": 22,
"createTime": 1596097409349,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097409349,
"_id": "5f228381114fbb8f6d236f6c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 164350,
"level": 21,
"createTime": 1596097323573,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097323573,
"_id": "5f22832b114fbb8f6d236d98",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 29280,
"level": 20,
"createTime": 1596097265605,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097265605,
"_id": "5f2282f1738989c8b3f70d99",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 51060,
"level": 19,
"createTime": 1596097204199,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097204199,
"_id": "5f2282b375cfb6d7c11de506",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 57090,
"level": 18,
"createTime": 1596097156455,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097156455,
"_id": "5f228284ef5071ef853e032d",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 40860,
"level": 17,
"createTime": 1596090162290,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596097074636,
"_id": "5f22673267f13766547b9efb",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 50350,
"level": 16,
"createTime": 1596090092557,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596090092557,
"_id": "5f2266ece5c0d7361f1f00d9",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 46920,
"level": 15,
"createTime": 1596019074167,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596019074167,
"_id": "5f2151829da6714ab7d807a9",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 35630,
"level": 14,
"createTime": 1596018897035,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596018897035,
"_id": "5f2150d1086e654a41691f2d",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 48950,
"level": 13,
"createTime": 1596018744786,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596018744786,
"_id": "5f2150399897b44ce1d2c65c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 17990,
"level": 12,
"createTime": 1596017503514,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596017503514,
"_id": "5f214b5f75cfb6d7c11b5317",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 42230,
"level": 11,
"createTime": 1596017212682,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596017212682,
"_id": "5f214a3c75cfb6d7c11b5008",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 45420,
"level": 10,
"createTime": 1596016713590,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016713590,
"_id": "5f214849964f9706aa59ea6c",
"stars": 3,
"isPrizeLevel": true,
"sendAwardType": "prize"
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 27230,
"level": 9,
"createTime": 1596016663401,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016663401,
"_id": "5f214817964f9706aa59e9a6",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 29620,
"level": 8,
"createTime": 1596016581567,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016581567,
"_id": "5f2147c585a7496423c10bdf",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 31870,
"level": 7,
"createTime": 1596016549909,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016549909,
"_id": "5f2147a50cb7330c94bb21b2",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 22810,
"level": 6,
"createTime": 1596016411087,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016411087,
"_id": "5f21471a67f1376654797a22",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 28460,
"level": 5,
"createTime": 1596016335251,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016335251,
"_id": "5f2146cf114fbb8f6d20d120",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 24440,
"level": 4,
"createTime": 1596016289945,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016289945,
"_id": "5f2146a1114fbb8f6d20d02e",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 9380,
"level": 3,
"createTime": 1596016236933,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016236933,
"_id": "5f21466cc3ad349c09908568",
"stars": 2,
"isPrizeLevel": false,
"sendAwardType": ""
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 960,
"level": 2,
"createTime": 1596016196546,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016196546,
"_id": "5f2146443075d9e9767f79ef",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f213ff79897b44ce1d2925d",
"score": 72080,
"level": 1,
"createTime": 1596016183343,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"isVisitSuccess": true,
"updateTime": 1596016183343,
"_id": "5f214637964f9706aa59e156",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
}
],
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"prizes": [
{
"receiveTime": "",
"level": 10,
"isReceive": false
},
{
"receiveTime": "",
"level": 120,
"isReceive": false
}
],
"loginAddPower": 0,
"power": 523,
"tools": {
"HAMMERS": 89,
"STEPS": 103,
"BOOMS": 95
},
"topAward": {
"openPrizeStatus": true,
"prize": {}
},
"wxOriginPrize": {
"type": 9,
"name": "阿三的",
"rewardNum": 5
}
},
"success": true,
"message": "成功"
}
\ No newline at end of file
{
"code": "000000",
"data": [
{
"switchStock": 2,
"isBackUp": false,
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"type": 3,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": "",
"id": "",
"stock": "",
"image": "https://img.alicdn.com/imgextra/i4/2275046294/O1CN01avEmL01wMhS5Wxd63_!!2275046294-2-miniprogram.png",
"properiodto": 0,
"amount": "",
"level": 3,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227570,
"ename": "",
"createTime": 1596014583758,
"name": "实物11",
"useStock": 0,
"_id": "5f213ff7738989c8b3f46f4d",
"endTime": ""
},
{
"switchStock": 1,
"isBackUp": false,
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"type": 3,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": "",
"id": "",
"stock": 10,
"image": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Zzj1FL1wMhS845iJp_!!2275046294-2-miniprogram.png",
"properiodto": 0,
"amount": "",
"level": 1,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227546,
"ename": "",
"createTime": 1596014583758,
"name": "实物1实物1实物1实",
"useStock": 1,
"_id": "5f213ff7738989c8b3f46f4b",
"endTime": ""
},
{
"switchStock": 2,
"isBackUp": false,
"openId": "AAEaCvE-ALiIWXQsJuac30pr",
"type": 1,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": 1593475200000,
"id": "",
"stock": "",
"image": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01fcO2aS1wMhS2wKUZO_!!2275046294-0-miniprogram.jpg",
"amount": "1",
"properiodto": 0,
"level": 2,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227558,
"ename": "18c738e4b1de4de3b481885b0d5e0936",
"createTime": 1596014583758,
"name": "优惠券1",
"useStock": 0,
"_id": "5f213ff7738989c8b3f46f4c",
"endTime": 1596239999000
},
{
"switchStock": 2,
"isBackUp": false,
"type": 3,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"lockStatus": 1,
"credits": "",
"deleteStatus": 1,
"rank": "",
"startTime": "",
"id": "",
"stock": "",
"image": "https://img.alicdn.com/imgextra/i3/2275046294/O1CN01KWxBt41wMhS7Oiham_!!2275046294-2-miniprogram.png",
"properiodto": 0,
"amount": "",
"level": 4,
"probability": "0",
"prizeType": 10,
"updateTime": 1596093227581,
"ename": "",
"createTime": 1596078351428,
"name": "实物测试名称过长的啦",
"useStock": 0,
"_id": "5f22390fe5c0d7361f1e6b59",
"endTime": ""
},
{
"isBackUp": true,
"properiodto": 10000,
"amount": "",
"level": 5,
"probability": "100",
"prizeType": 10,
"updateTime": 1596093227586,
"type": 5,
"properiodfrom": 1,
"activityId": "5f213ff79897b44ce1d2925d",
"ename": "",
"lockStatus": 1,
"createTime": 1596093227586,
"deleteStatus": 1,
"name": "谢谢参与",
"useStock": 0,
"startTime": "",
"_id": "5f22732b738989c8b3f6d7c2",
"endTime": ""
}
],
"success": true,
"message": "成功"
}
\ No newline at end of file
{
"code": "000000",
"data": [
{
"taskType": "browseGoods",
"times": 3,
"todayCompleteTimes": 0,
"waitReceive": 0,
"value": "",
"rewards": 10
},
{
"taskType": "invites",
"times": 3,
"todayCompleteTimes": 0,
"waitReceive": 0,
"value": "",
"rewards": 10
},
{
"taskType": "follow",
"times": 1,
"todayCompleteTimes": 0,
"waitReceive": 0,
"value": "",
"rewards": 7
},
{
"taskType": "member",
"times": 1,
"todayCompleteTimes": 1,
"waitReceive": 0,
"rewards": 65
}
],
"success": true,
"message": "成功"
}
{
"code": "000000",
"data": {
"image": "https://img.alicdn.com/imgextra/i2/2275046294/O1CN01Zzj1FL1wMhS845iJp_!!2275046294-2-miniprogram.png",
"amount": "",
"level": 10,
"drawStatus": 1,
"openId": "AAFgCvE-ALiIWXYsJuSLKdVt",
"createDay": "2020/07/30",
"avatar": "http://wwc.alicdn.com/avatar/getAvatar.do?userIdStr=XFvSvGH0XmQGOFNWMCQyP08yX8cYPFgLXH*IXFMHvHcT&width=80&height=80&type=sns",
"type": 5,
"prizeId": "5f22732b738989c8b3f6d7c2",
"activityId": "5f213ff79897b44ce1d2925d",
"ename": "",
"userNick": "lpf468169313",
"name": "实物1实物1实物1实",
"_id": "AAFgCvE-ALiIWXYsJuSLKdVt1596078979091"
},
"success": true,
"message": "成功"
}
\ No newline at end of file
{
"success": true,
"message": "您还不是会员",
"data": {
"isvip": false,
"url": "xxx",
"credits": 471
}
}
{
"code":"000000",
"data":1,
"success":true,
"message":"成功"
}
\ No newline at end of file
{
"code": "000000",
"data": {
"currentLevel": 32,
"isFristLogin": false,
"visitors": [
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 66040,
"level": 31,
"createTime": 1595902997340,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595902997340,
"_id": "5f1f8c1552bbde057e10d031",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 46010,
"level": 30,
"createTime": 1595839399586,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839399586,
"_id": "5f1e93a785a7496423bc0cbc",
"stars": 3,
"isPrizeLevel": true,
"sendAwardType": "prize"
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 21310,
"level": 29,
"createTime": 1595839337125,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839337125,
"_id": "5f1e93699897b44ce1cdad9d",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 43600,
"level": 28,
"createTime": 1595839215454,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839215454,
"_id": "5f1e92ef738989c8b3ef89c6",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 77140,
"level": 27,
"createTime": 1595839181023,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839181023,
"_id": "5f1e92cd85a7496423bc0b57",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 32440,
"level": 26,
"createTime": 1595839104043,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839104043,
"_id": "5f1e92809897b44ce1cdabf6",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 24690,
"level": 25,
"createTime": 1595839079510,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839079510,
"_id": "5f1e926785a7496423bc0a90",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 15020,
"level": 24,
"createTime": 1595839028260,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595839028260,
"_id": "5f1e923452bbde057e0f84b5",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 28160,
"level": 23,
"createTime": 1595837413622,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595901282492,
"_id": "5f1e8be5ef5071ef85366b52",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 54840,
"level": 22,
"createTime": 1595837300015,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595837300015,
"_id": "5f1e8b74964f9706aa54d8ee",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 47640,
"level": 21,
"createTime": 1595837227485,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595837227485,
"_id": "5f1e8b2bc3ad349c098b7fb8",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 46660,
"level": 20,
"createTime": 1595837142905,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595837142905,
"_id": "5f1e8ad6ef5071ef85366918",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 121800,
"level": 19,
"createTime": 1595837092895,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595837092895,
"_id": "5f1e8aa475cfb6d7c116344a",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 33750,
"level": 18,
"createTime": 1595837019670,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595837019670,
"_id": "5f1e8a5b9da6714ab7d2db83",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 59440,
"level": 17,
"createTime": 1595836914654,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836914654,
"_id": "5f1e89f2964f9706aa54d60f",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 75340,
"level": 16,
"createTime": 1595836818516,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836818516,
"_id": "5f1e899252bbde057e0f7530",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 25730,
"level": 15,
"createTime": 1595836754969,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836754969,
"_id": "5f1e8952964f9706aa54d50d",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 60100,
"level": 14,
"createTime": 1595836552955,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836552955,
"_id": "5f1e88888e6a08321e528ec5",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 37740,
"level": 13,
"createTime": 1595836496312,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836496312,
"_id": "5f1e885067f1376654746747",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 28860,
"level": 12,
"createTime": 1595836284101,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836284101,
"_id": "5f1e877c75cfb6d7c1162ea8",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 50410,
"level": 11,
"createTime": 1595836225676,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595836225676,
"_id": "5f1e87419da6714ab7d2d621",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 43870,
"level": 10,
"createTime": 1595835683936,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595835683936,
"_id": "5f1e8523964f9706aa54cd69",
"stars": 3,
"isPrizeLevel": true,
"sendAwardType": "prize"
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 48400,
"level": 9,
"createTime": 1595835649948,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595835649948,
"_id": "5f1e85018e6a08321e528833",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 25340,
"level": 8,
"createTime": 1595835605091,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595835605091,
"_id": "5f1e84d53075d9e9767a639c",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 95760,
"level": 7,
"createTime": 1595835490292,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595835490292,
"_id": "5f1e84629da6714ab7d2d0fc",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 24390,
"level": 6,
"createTime": 1595835441703,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595835441703,
"_id": "5f1e84313075d9e9767a627a",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 17590,
"level": 5,
"createTime": 1595834920435,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595834920435,
"_id": "5f1e822875cfb6d7c1162496",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 14850,
"level": 4,
"createTime": 1595834836568,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595834836568,
"_id": "5f1e81d475cfb6d7c11623f7",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 15600,
"level": 3,
"createTime": 1595833995664,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595834624096,
"_id": "5f1e7e8b964f9706aa54c0f3",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 960,
"level": 2,
"createTime": 1595833812817,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595833812817,
"_id": "5f1e7dd48e6a08321e527a4a",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
},
{
"activityId": "5f1a528e964f9796f92d3ccf",
"score": 73470,
"level": 1,
"createTime": 1595816829327,
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"isVisitSuccess": true,
"updateTime": 1595816829327,
"_id": "5f1e3b7de5c0d78b54f1f531",
"stars": 3,
"isPrizeLevel": false,
"sendAwardType": true
}
],
"openId": "AAEdCvE-ALiIWXYsJuRjIAGv",
"prizes": [],
"loginAddPower": 0,
"power": 0,
"tools": {
"HAMMERS": 2,
"STEPS": 7,
"BOOMS": 3
},
"topAward": {}
},
"success": true,
"message": "成功"
}
\ No newline at end of file
{ {
"code": "000000",
"data": 1,
"success": true, "success": true,
"message": "成功" "code": "000000",
} "message": "成功",
\ No newline at end of file "data": {}
}
{ {
"success": true,
"code": "000000", "code": "000000",
"message": "success",
"data": { "data": {
"tools": { "tools": {
"HAMMERS": 1, "steps": 1,
"STEPS": 1, "booms": 1,
"BOOMS": 1 "hammers": 1
} }
}, }
"success": true,
"message": "成功"
} }
{
"success": true,
"code": "000000",
"message": "成功",
"data": {
"power": 100
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {
"_id": "",
"name": "",
"type": 1,
"image": "",
"drawStatus": "",
"level": ""
}
}
{ {
"success": true,
"code": "000000", "code": "000000",
"message": "success",
"data": { "data": {
"currentLevel": 11, "isPrizeLevel": true,
"isPrizeLevel": false, "prize": {
},
"tool": { "tool": {
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png" "image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"type": "hammers"
}, },
"prize": { "currentLevel": 2
"type": "HAMMERS", }
"image": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
}
},
"success": true,
"message": "成功"
} }
{
"success": true,
"code": "sit dolor quis",
"message": "nisi amet sunt Lorem",
"data": {
"rule": "测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试活动规则测试",
"currentLevel": 120,
"power": 100,
"tools": {
"steps": 100,
"booms": 100,
"hammers": 100
},
"records": [
{
"score": 57340,
"level": 107,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 61920,
"level": 90,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 71960,
"level": 30,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 33790,
"level": 29,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 22440,
"level": 28,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 61340,
"level": 27,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 43200,
"level": 26,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 35330,
"level": 25,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 19030,
"level": 24,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 10490,
"level": 23,
"isVisitSuccess": true,
"stars": 2
},
{
"score": 36280,
"level": 22,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 164350,
"level": 21,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 29280,
"level": 20,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 51060,
"level": 19,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 57090,
"level": 18,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 40860,
"level": 17,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 50350,
"level": 16,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 46920,
"level": 15,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 35630,
"level": 14,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 48950,
"level": 13,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 17990,
"level": 12,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 42230,
"level": 11,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 45420,
"level": 10,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 27230,
"level": 9,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 29620,
"level": 8,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 31870,
"level": 7,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 22810,
"level": 6,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 28460,
"level": 5,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 24440,
"level": 4,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 9380,
"level": 3,
"isVisitSuccess": true,
"stars": 2
},
{
"score": 960,
"level": 2,
"isVisitSuccess": true,
"stars": 3
},
{
"score": 72080,
"level": 1,
"isVisitSuccess": true,
"stars": 3
}
],
"levelPrize": {
"level50": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"level100": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png",
"level120": "https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png"
},
"prizes": [
{
"receiveTime": "2020/09/16",
"level": 1,
"isReceive": true
}
],
"isFristLogin": false,
"loginAddPower": false
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": [
{
"_id": "",
"ename": "",
"type": 1,
"image": "",
"name": "",
"drawStatus": 1,
"receiveName": "",
"phone": "",
"address": "",
"receiveTime": "",
"remark": ""
}
]
}
{ {
"code": "000000", "success": false,
"data": { "data": {
"power": 3 "reaminTimes": 1000
}, },
"success": true, "code": "000000",
"message": "成功" "message": "成功"
} }
\ No newline at end of file
{
"success": true,
"code": "consectetur ex dolore id commodo",
"message": "aliqua sint commodo",
"data": {
"taskList": [
{
"taskType": "browseGoods",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "invites",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "orderGoods",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "follow",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
},
{
"taskType": "member",
"beMemberUrl": "https://www.baidu.com",
"rewards": 10,
"todayCompleteTimes": 2,
"totalTimes": 5,
"waitReceiveTimes": 10
}
]
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {
"tools": {
"steps": 100,
"booms": 100,
"hammers": 100
}
}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {}
}
{
"success": true,
"code": "000000",
"message": "成功",
"data": {}
}
{
"success": false,
"code": "ipsum in",
"message": "nulla dolor est eiusmod sunt",
"data": {
"power": 7
}
}
...@@ -17157,7 +17157,7 @@ var NoStepPanel = (function (_super) { ...@@ -17157,7 +17157,7 @@ var NoStepPanel = (function (_super) {
}, _this); }, _this);
}); });
this.liveBtn.addEventListener(FYGE.MouseEvent.CLICK, function () { this.liveBtn.addEventListener(FYGE.MouseEvent.CLICK, function () {
if (!Tools_1.Tools.gameData.tools.STEPS) { if (!Tools_1.Tools.gameData.tools.steps) {
ctrls_1.showPanel(ToolsOutPanel_1.ToolsOutPanel, { type: PropType_1.PropType.STEPS, showSucPanel: false }); ctrls_1.showPanel(ToolsOutPanel_1.ToolsOutPanel, { type: PropType_1.PropType.STEPS, showSucPanel: false });
} }
else { else {
...@@ -19717,9 +19717,9 @@ var PlayScene = (function (_super) { ...@@ -19717,9 +19717,9 @@ var PlayScene = (function (_super) {
return false; return false;
}; };
PlayScene.prototype.updateScene = function () { PlayScene.prototype.updateScene = function () {
this.propBtnCon.boomCount = Tools_1.Tools.gameData.tools.BOOMS; this.propBtnCon.boomCount = Tools_1.Tools.gameData.tools.booms;
this.propBtnCon.hammerCount = Tools_1.Tools.gameData.tools.HAMMERS; this.propBtnCon.hammerCount = Tools_1.Tools.gameData.tools.hammers;
this.propBtnCon.stepCount = Tools_1.Tools.gameData.tools.STEPS; this.propBtnCon.stepCount = Tools_1.Tools.gameData.tools.steps;
}; };
PlayScene.prototype.initEvents = function () { PlayScene.prototype.initEvents = function () {
this.addEventListener(FYGE.Event.ENTER_FRAME, this.onEnterFrame, this); this.addEventListener(FYGE.Event.ENTER_FRAME, this.onEnterFrame, this);
...@@ -35144,4 +35144,4 @@ exports.ScoreProgress = ScoreProgress; ...@@ -35144,4 +35144,4 @@ exports.ScoreProgress = ScoreProgress;
/******/ }); /******/ });
}); });
//# sourceMappingURL=output.js.map //# sourceMappingURL=output.js.map
\ No newline at end of file
resource/FailedPanel/失败Bg.png

170 KB | W: | H:

resource/FailedPanel/失败Bg.png

82.6 KB | W: | H:

resource/FailedPanel/失败Bg.png
resource/FailedPanel/失败Bg.png
resource/FailedPanel/失败Bg.png
resource/FailedPanel/失败Bg.png
  • 2-up
  • Swipe
  • Onion skin
resource/FreePowerPanel/圆圈.png

146 KB | W: | H:

resource/FreePowerPanel/圆圈.png

127 KB | W: | H:

resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
resource/FreePowerPanel/圆圈.png
  • 2-up
  • Swipe
  • Onion skin
resource/TaskPanel/任务背景.png

198 KB | W: | H:

resource/TaskPanel/任务背景.png

175 KB | W: | H:

resource/TaskPanel/任务背景.png
resource/TaskPanel/任务背景.png
resource/TaskPanel/任务背景.png
resource/TaskPanel/任务背景.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/ele5.png

10.8 KB | W: | H:

resource/common/ele5.png

13.4 KB | W: | H:

resource/common/ele5.png
resource/common/ele5.png
resource/common/ele5.png
resource/common/ele5.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/ele7.png

6.66 KB | W: | H:

resource/common/ele7.png

9.21 KB | W: | H:

resource/common/ele7.png
resource/common/ele7.png
resource/common/ele7.png
resource/common/ele7.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/ele9.png

11.5 KB | W: | H:

resource/common/ele9.png

7.18 KB | W: | H:

resource/common/ele9.png
resource/common/ele9.png
resource/common/ele9.png
resource/common/ele9.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/stepBtn.png

14.5 KB | W: | H:

resource/common/stepBtn.png

15.4 KB | W: | H:

resource/common/stepBtn.png
resource/common/stepBtn.png
resource/common/stepBtn.png
resource/common/stepBtn.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/关闭按钮.png

10.2 KB | W: | H:

resource/common/关闭按钮.png

14.2 KB | W: | H:

resource/common/关闭按钮.png
resource/common/关闭按钮.png
resource/common/关闭按钮.png
resource/common/关闭按钮.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/再想想.png

15.3 KB | W: | H:

resource/common/再想想.png

17.4 KB | W: | H:

resource/common/再想想.png
resource/common/再想想.png
resource/common/再想想.png
resource/common/再想想.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/确定.png

15.2 KB | W: | H:

resource/common/确定.png

21.1 KB | W: | H:

resource/common/确定.png
resource/common/确定.png
resource/common/确定.png
resource/common/确定.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/继续闯关大.png

22.1 KB | W: | H:

resource/common/继续闯关大.png

29 KB | W: | H:

resource/common/继续闯关大.png
resource/common/继续闯关大.png
resource/common/继续闯关大.png
resource/common/继续闯关大.png
  • 2-up
  • Swipe
  • Onion skin
resource/common/继续闯关小.png

20.7 KB | W: | H:

resource/common/继续闯关小.png

22.8 KB | W: | H:

resource/common/继续闯关小.png
resource/common/继续闯关小.png
resource/common/继续闯关小.png
resource/common/继续闯关小.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle0.png

10.1 KB | W: | H:

resource/playScene/bubleEle0.png

13.2 KB | W: | H:

resource/playScene/bubleEle0.png
resource/playScene/bubleEle0.png
resource/playScene/bubleEle0.png
resource/playScene/bubleEle0.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle1.png

13.9 KB | W: | H:

resource/playScene/bubleEle1.png

12.6 KB | W: | H:

resource/playScene/bubleEle1.png
resource/playScene/bubleEle1.png
resource/playScene/bubleEle1.png
resource/playScene/bubleEle1.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle2.png

13.3 KB | W: | H:

resource/playScene/bubleEle2.png

12.8 KB | W: | H:

resource/playScene/bubleEle2.png
resource/playScene/bubleEle2.png
resource/playScene/bubleEle2.png
resource/playScene/bubleEle2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle3.png

12.8 KB | W: | H:

resource/playScene/bubleEle3.png

12.6 KB | W: | H:

resource/playScene/bubleEle3.png
resource/playScene/bubleEle3.png
resource/playScene/bubleEle3.png
resource/playScene/bubleEle3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/bubleEle4.png

13 KB | W: | H:

resource/playScene/bubleEle4.png

13.5 KB | W: | H:

resource/playScene/bubleEle4.png
resource/playScene/bubleEle4.png
resource/playScene/bubleEle4.png
resource/playScene/bubleEle4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballDisBg.png

2.34 KB | W: | H:

resource/playScene/hairballDisBg.png

9.03 KB | W: | H:

resource/playScene/hairballDisBg.png
resource/playScene/hairballDisBg.png
resource/playScene/hairballDisBg.png
resource/playScene/hairballDisBg.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece1.png

1.8 KB | W: | H:

resource/playScene/hairballPiece1.png

2.02 KB | W: | H:

resource/playScene/hairballPiece1.png
resource/playScene/hairballPiece1.png
resource/playScene/hairballPiece1.png
resource/playScene/hairballPiece1.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece2.png

1.94 KB | W: | H:

resource/playScene/hairballPiece2.png

2.04 KB | W: | H:

resource/playScene/hairballPiece2.png
resource/playScene/hairballPiece2.png
resource/playScene/hairballPiece2.png
resource/playScene/hairballPiece2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece3.png

1.69 KB | W: | H:

resource/playScene/hairballPiece3.png

2.75 KB | W: | H:

resource/playScene/hairballPiece3.png
resource/playScene/hairballPiece3.png
resource/playScene/hairballPiece3.png
resource/playScene/hairballPiece3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece4.png

1.69 KB | W: | H:

resource/playScene/hairballPiece4.png

2.96 KB | W: | H:

resource/playScene/hairballPiece4.png
resource/playScene/hairballPiece4.png
resource/playScene/hairballPiece4.png
resource/playScene/hairballPiece4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece5.png

1.08 KB | W: | H:

resource/playScene/hairballPiece5.png

2.35 KB | W: | H:

resource/playScene/hairballPiece5.png
resource/playScene/hairballPiece5.png
resource/playScene/hairballPiece5.png
resource/playScene/hairballPiece5.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece6.png

1.76 KB | W: | H:

resource/playScene/hairballPiece6.png

2.85 KB | W: | H:

resource/playScene/hairballPiece6.png
resource/playScene/hairballPiece6.png
resource/playScene/hairballPiece6.png
resource/playScene/hairballPiece6.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece7.png

1.61 KB | W: | H:

resource/playScene/hairballPiece7.png

2.73 KB | W: | H:

resource/playScene/hairballPiece7.png
resource/playScene/hairballPiece7.png
resource/playScene/hairballPiece7.png
resource/playScene/hairballPiece7.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/hairballPiece8.png

2.14 KB | W: | H:

resource/playScene/hairballPiece8.png

1.6 KB | W: | H:

resource/playScene/hairballPiece8.png
resource/playScene/hairballPiece8.png
resource/playScene/hairballPiece8.png
resource/playScene/hairballPiece8.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice2.png

13.5 KB | W: | H:

resource/playScene/ice2.png

8.1 KB | W: | H:

resource/playScene/ice2.png
resource/playScene/ice2.png
resource/playScene/ice2.png
resource/playScene/ice2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice3.png

13.9 KB | W: | H:

resource/playScene/ice3.png

9.57 KB | W: | H:

resource/playScene/ice3.png
resource/playScene/ice3.png
resource/playScene/ice3.png
resource/playScene/ice3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice4.png

14.4 KB | W: | H:

resource/playScene/ice4.png

9.51 KB | W: | H:

resource/playScene/ice4.png
resource/playScene/ice4.png
resource/playScene/ice4.png
resource/playScene/ice4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/ice6.png

12.5 KB | W: | H:

resource/playScene/ice6.png

10.3 KB | W: | H:

resource/playScene/ice6.png
resource/playScene/ice6.png
resource/playScene/ice6.png
resource/playScene/ice6.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/lockVine.png

28.2 KB | W: | H:

resource/playScene/lockVine.png

6.02 KB | W: | H:

resource/playScene/lockVine.png
resource/playScene/lockVine.png
resource/playScene/lockVine.png
resource/playScene/lockVine.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/magicLion.png

13.5 KB | W: | H:

resource/playScene/magicLion.png

10.2 KB | W: | H:

resource/playScene/magicLion.png
resource/playScene/magicLion.png
resource/playScene/magicLion.png
resource/playScene/magicLion.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock2.png

11.5 KB | W: | H:

resource/playScene/rock2.png

14 KB | W: | H:

resource/playScene/rock2.png
resource/playScene/rock2.png
resource/playScene/rock2.png
resource/playScene/rock2.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock3.png

13.2 KB | W: | H:

resource/playScene/rock3.png

14.3 KB | W: | H:

resource/playScene/rock3.png
resource/playScene/rock3.png
resource/playScene/rock3.png
resource/playScene/rock3.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock4.png

13.1 KB | W: | H:

resource/playScene/rock4.png

14 KB | W: | H:

resource/playScene/rock4.png
resource/playScene/rock4.png
resource/playScene/rock4.png
resource/playScene/rock4.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock5.png

13.7 KB | W: | H:

resource/playScene/rock5.png

14.7 KB | W: | H:

resource/playScene/rock5.png
resource/playScene/rock5.png
resource/playScene/rock5.png
resource/playScene/rock5.png
  • 2-up
  • Swipe
  • Onion skin
resource/playScene/rock6.png

14.4 KB | W: | H:

resource/playScene/rock6.png

13.9 KB | W: | H:

resource/playScene/rock6.png
resource/playScene/rock6.png
resource/playScene/rock6.png
resource/playScene/rock6.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"name": "bonusTime" "name": "bonusTime"
}, },
{ {
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png", "keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common" "name": "common"
}, },
{ {
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
"name": "mapWhaleEffect" "name": "mapWhaleEffect"
}, },
{ {
"keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png", "keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"name": "playScene" "name": "playScene"
}, },
{ {
......
...@@ -2,19 +2,14 @@ ...@@ -2,19 +2,14 @@
import { layers, destroyLayers } from "../module/views/layers"; import { layers, destroyLayers } from "../module/views/layers";
import { RES } from "../module/RES"; import { RES } from "../module/RES";
import { changeScene, showWaiting, destroyAllCtrls, showPanel } from "../module/ctrls"; import { changeScene, destroyAllCtrls } from "../module/ctrls";
import { ResJson } from "./ResJson"; import { ResJson } from "./ResJson";
import { destroyNetData, sendTbNet, TbNetName } from "./TaoBaoNet"; import { destroyNetData } from "./TaoBaoNet";
import { SkinJson } from "./SkinJson"; import { SkinJson } from "./SkinJson";
import { G_EVENT } from "./common/G_EVENT"; import { G_EVENT } from "./common/G_EVENT";
import { MapScene } from "./scene/map/MapScene";
import { PlayScene } from "./scene/PlayScene";
import { LoadingScene } from "./scene/LoadingScene"; import { LoadingScene } from "./scene/LoadingScene";
import { JoinPanel } from "./panels/JoinPanel";
import { NoStepPanel } from "./panels/NoStepPanel";
import { NoPrizePanel } from "./panels/NoPrizePanel";
import { LotteryScene } from "./scene/LotteryScene";
/** /**
* 全局事件,为了和小程序交互 * 全局事件,为了和小程序交互
...@@ -89,26 +84,6 @@ export class Main { ...@@ -89,26 +84,6 @@ export class Main {
// if (document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none"; // if (document.getElementById("__loading__")) document.getElementById("__loading__").style.display = "none";
//打开开始场景 //打开开始场景
changeScene(LoadingScene); changeScene(LoadingScene);
// changeScene(SStartScene);
// changeScene(StoryScene);
// changeScene(AdoptScene);
// console.log("恶趣味去")
// showPanel(NoPrizePanel)
//测试
// sendTbNet(TbNetName.aaa, {}, (s, res) => {
// console.log(res)
// })
//获取数据,,必成功
// showWaiting();
// sendTbNet(TbNetName.getAppData, {}, (s, res) => {
// hideWaiting();
// Tool.globalData = res.data;
// changeScene(PlayScene);
// //先去获取下任务列表的商品信息吧
// sendTbNet(TbNetName.getTaskList, { activityId: Tool.globalData.activityId }, (s, res) => {
// if (s) Tool.browseItems = res.data.browseItemIds.content;
// })
// })
} }
//在小程序显示时调用onShow //在小程序显示时调用onShow
...@@ -213,4 +188,4 @@ function createNineTextures(imageUrl): Promise<FYGE.Texture[]> { ...@@ -213,4 +188,4 @@ function createNineTextures(imageUrl): Promise<FYGE.Texture[]> {
} }
image.src = imageUrl image.src = imageUrl
}) })
} }
\ No newline at end of file
...@@ -73,7 +73,7 @@ export const ResJson = { ...@@ -73,7 +73,7 @@ export const ResJson = {
"name": "bonusTime" "name": "bonusTime"
}, },
{ {
"keys": "boomBtn.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png", "keys": "boomBtn.png,closeBtn2.png,comCloseBtn.png,comm_light.png,ele0.png,ele1.png,ele10.png,ele11.png,ele12.png,ele13.png,ele14.png,ele2.png,ele3.png,ele4.png,ele5.png,ele6.png,ele7.png,ele8.png,ele9.png,hammerBtn.png,liaojiele.png,powerImg.png,stepBtn.png,toastBg.png,waitingBg.png,waitingRot.png,关闭按钮.png,再想想.png,开始闯关不要能量.png,开始闯关要能量.png,确定.png,继续闯关大.png,继续闯关小.png",
"name": "common" "name": "common"
}, },
{ {
...@@ -113,7 +113,7 @@ export const ResJson = { ...@@ -113,7 +113,7 @@ export const ResJson = {
"name": "mapWhaleEffect" "name": "mapWhaleEffect"
}, },
{ {
"keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png", "keys": "blueDoorBg.png,bonusFra0.png,bonusFra1.png,bonusFra10.png,bonusFra11.png,bonusFra2.png,bonusFra3.png,bonusFra4.png,bonusFra5.png,bonusFra6.png,bonusFra7.png,bonusFra8.png,bonusFra9.png,bonusShoot.png,boom0.png,boom1.png,boom10.png,boom11.png,boom12.png,boom13.png,boom14.png,boom15.png,boom16.png,boom17.png,boom18.png,boom19.png,boom2.png,boom20.png,boom3.png,boom4.png,boom5.png,boom6.png,boom7.png,boom8.png,boom9.png,brownBallFace.png,bubbleStar1.png,bubbleStar10.png,bubbleStar11.png,bubbleStar12.png,bubbleStar13.png,bubbleStar14.png,bubbleStar15.png,bubbleStar16.png,bubbleStar17.png,bubbleStar18.png,bubbleStar19.png,bubbleStar2.png,bubbleStar3.png,bubbleStar4.png,bubbleStar5.png,bubbleStar6.png,bubbleStar7.png,bubbleStar8.png,bubbleStar9.png,bubleEle0.png,bubleEle1.png,bubleEle2.png,bubleEle3.png,bubleEle4.png,chapterNum0.png,chapterNum1.png,chapterNum2.png,chapterNum3.png,chapterNum4.png,chapterNum5.png,chapterNum6.png,chapterNum7.png,chapterNum8.png,chapterNum9.png,chapterNum关.png,chapterNum第.png,chooseRect.png,doorClosed.png,doorOpen.png,eggPiece1.png,eggPiece2.png,eggPiece3.png,eggPiece4.png,eggPiece5.png,eggStatus0.png,eggStatus1.png,eggStatus2.png,ele0Exp.png,ele1Exp.png,ele2Exp.png,ele3Exp.png,ele4Exp.png,exLighting0.png,exLighting10.png,exLighting13.png,exLighting15.png,exLighting17.png,exLighting18.png,exLighting2.png,exLighting20.png,exLighting22.png,exLighting24.png,exLighting26.png,exLighting28.png,exLighting31.png,exLighting33.png,exLighting4.png,exLighting6.png,exLighting8.png,eyeDownLeft.png,eyeDownRight.png,eyeSingle.png,gameGuideBoard.png,greenCircleDown.png,greenCircleUp.png,greyBallFace.png,guidePropBoom.png,guidePropCow.png,guidePropHammer.png,guidePropHand.png,guidePropMsgPanel.png,guidePropShoe.png,hairballDisBg.png,hairballPiece1.png,hairballPiece2.png,hairballPiece3.png,hairballPiece4.png,hairballPiece5.png,hairballPiece6.png,hairballPiece7.png,hairballPiece8-1.png,hairballPiece8.png,hairballPiece9.png,ice2.png,ice3.png,ice4.png,ice5.jpg,ice5.png,ice6.png,jellyArrow.png,leftArrow.png,lightedStar.png,lineLight.png,lockVine.png,magicLion.png,magicLionBg.png,main_mapbottom.png,musicOff.png,musicOn.png,playBg.jpg,propNum0.png,propNum1.png,propNum2.png,propNum3.png,propNum4.png,propNum5.png,propNum6.png,propNum7.png,propNum8.png,propNum9.png,prop_count_bg.png,rectLat.png,rectLatWhite.png,redDoorBg.png,rightArrow.png,rightMark.png,rock2.png,rock3.png,rock4.png,rock5.png,rock6.png,scoreNum0.png,scoreNum1.png,scoreNum2.png,scoreNum3.png,scoreNum4.png,scoreNum5.png,scoreNum6.png,scoreNum7.png,scoreNum8.png,scoreNum9.png,scoreNum关.png,scoreNum冒号.png,scoreNum分.png,scoreNum数.png,scoreNum通.png,settingBg.png,settingBtn.png,starProgress.png,stepAni1.png,stepAni10.png,stepAni11.png,stepAni2.png,stepAni3.png,stepAni4.png,stepAni5.png,stepAni6.png,stepAni7.png,stepAni8.png,stepAni9.png,stepNum0.png,stepNum1.png,stepNum2.png,stepNum3.png,stepNum4.png,stepNum5.png,stepNum6.png,stepNum7.png,stepNum8.png,stepNum9.png,table.png,tarNum0.png,tarNum1.png,tarNum2.png,tarNum3.png,tarNum4.png,tarNum5.png,tarNum6.png,tarNum7.png,tarNum8.png,tarNum9.png,topBg.png,unlightedStar.png,yellowCircleDown.png,yellowCircleUp.png,yellowDoorBg.png",
"name": "playScene" "name": "playScene"
}, },
{ {
......
export const SkinJson = { export const SkinJson = {
"x": 0,
"y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{ {
...@@ -9,32 +7,10 @@ export const SkinJson = { ...@@ -9,32 +7,10 @@ export const SkinJson = {
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{
"name": "light1",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light1"
},
{
"name": "light2",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light2"
},
{ {
"name": "闯关成功Bg", "name": "闯关成功Bg",
"x": 55, "x": 53,
"y": 266, "y": 209,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -43,8 +19,8 @@ export const SkinJson = { ...@@ -43,8 +19,8 @@ export const SkinJson = {
}, },
{ {
"name": "继续闯关大", "name": "继续闯关大",
"x": 163, "x": 157,
"y": 935, "y": 940,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -54,8 +30,8 @@ export const SkinJson = { ...@@ -54,8 +30,8 @@ export const SkinJson = {
}, },
{ {
"name": "继续闯关小", "name": "继续闯关小",
"x": 381, "x": 388,
"y": 935, "y": 940,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -65,8 +41,8 @@ export const SkinJson = { ...@@ -65,8 +41,8 @@ export const SkinJson = {
}, },
{ {
"name": "闯关成功不满星按钮", "name": "闯关成功不满星按钮",
"x": 91, "x": 98,
"y": 935, "y": 940,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -74,29 +50,15 @@ export const SkinJson = { ...@@ -74,29 +50,15 @@ export const SkinJson = {
}, },
"id": "againBtn" "id": "againBtn"
}, },
{
"name": "关卡文字",
"x": 300,
"y": 501,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{ {
"name": "提示文案", "name": "提示文案",
"x": 210, "x": 299,
"y": 815, "y": 820,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "太厉害了!\n再闯6关就即可抽奖!", "text": "闯关成功!",
"bold": true,
"size": 36, "size": 36,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1
...@@ -105,8 +67,8 @@ export const SkinJson = { ...@@ -105,8 +67,8 @@ export const SkinJson = {
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 625,
"y": 470, "y": 431,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -122,32 +84,10 @@ export const SkinJson = { ...@@ -122,32 +84,10 @@ export const SkinJson = {
"y": 0, "y": 0,
"type": "container", "type": "container",
"children": [ "children": [
{
"name": "light1",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light1"
},
{
"name": "light2",
"x": 155,
"y": 280,
"alpha": 0.8,
"type": "sprite",
"props": {
"source": "comm_light.png"
},
"id": "light2"
},
{ {
"name": "闯关成功", "name": "闯关成功",
"x": 55, "x": 53,
"y": 266, "y": 190,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -157,7 +97,7 @@ export const SkinJson = { ...@@ -157,7 +97,7 @@ export const SkinJson = {
{ {
"name": "继续闯关大", "name": "继续闯关大",
"x": 163, "x": 163,
"y": 1086, "y": 1109,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -168,7 +108,7 @@ export const SkinJson = { ...@@ -168,7 +108,7 @@ export const SkinJson = {
{ {
"name": "继续闯关小", "name": "继续闯关小",
"x": 93, "x": 93,
"y": 1086, "y": 1109,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -179,7 +119,7 @@ export const SkinJson = { ...@@ -179,7 +119,7 @@ export const SkinJson = {
{ {
"name": "去抽奖", "name": "去抽奖",
"x": 383, "x": 383,
"y": 1086, "y": 1109,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -187,39 +127,25 @@ export const SkinJson = { ...@@ -187,39 +127,25 @@ export const SkinJson = {
}, },
"id": "goPrizeBtn" "id": "goPrizeBtn"
}, },
{
"name": "关卡文字",
"x": 300,
"y": 501,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{ {
"name": "提示文案", "name": "提示文案",
"x": 182, "x": 182,
"y": 810, "y": 790,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "太厉害了!获得抽奖资格!", "text": "太厉害了!获得抽奖资格!",
"size": 34, "size": 34,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1,
"bold": true
}, },
"id": "tipsTex" "id": "tipsTex"
}, },
{ {
"name": "红包奖励", "name": "红包奖励",
"x": 130, "x": 130,
"y": 870, "y": 850,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -227,62 +153,10 @@ export const SkinJson = { ...@@ -227,62 +153,10 @@ export const SkinJson = {
}, },
"id": "prizeImg" "id": "prizeImg"
}, },
{
"name": "道具",
"x": 124,
"y": 858,
"type": "container",
"children": [
{
"name": "bg",
"x": 0,
"y": 0,
"alpha": 1,
"type": "sprite",
"props": {
"source": "圆角矩形 648.png"
}
},
{
"name": "label",
"x": 265,
"y": 85,
"alpha": 1,
"type": "text",
"props": {
"text": "步数道具 x1",
"size": 30,
"fillColor": "#df5942",
"textAlpha": 1
}
},
{
"name": "img",
"x": 86,
"y": 45,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具.png"
}
},
{
"name": "quanquan",
"x": 76,
"y": 24,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具圆圈.png"
}
}
],
"id": "prop"
},
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 631,
"y": 470, "y": 421,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -300,8 +174,8 @@ export const SkinJson = { ...@@ -300,8 +174,8 @@ export const SkinJson = {
"children": [ "children": [
{ {
"name": "步数耗尽Bg", "name": "步数耗尽Bg",
"x": 55, "x": 43,
"y": 498, "y": 543,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -310,22 +184,23 @@ export const SkinJson = { ...@@ -310,22 +184,23 @@ export const SkinJson = {
}, },
{ {
"name": "提示文案", "name": "提示文案",
"x": 163, "x": 123,
"y": 661, "y": 743,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "消耗20积分可复活 ,步数+5\n确认复活吗?", "text": "消耗20积分可复活 ,步数+5\n确认复活吗?",
"size": 34, "size": 36,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1,
"bold": true
}, },
"id": "tipsTex" "id": "tipsTex"
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 615,
"y": 470, "y": 504,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -335,8 +210,8 @@ export const SkinJson = { ...@@ -335,8 +210,8 @@ export const SkinJson = {
}, },
{ {
"name": "步数耗尽复活", "name": "步数耗尽复活",
"x": 383, "x": 376,
"y": 845, "y": 914,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -346,8 +221,8 @@ export const SkinJson = { ...@@ -346,8 +221,8 @@ export const SkinJson = {
}, },
{ {
"name": "步数耗尽结束按钮", "name": "步数耗尽结束按钮",
"x": 93, "x": 88,
"y": 845, "y": 914,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -365,47 +240,18 @@ export const SkinJson = { ...@@ -365,47 +240,18 @@ export const SkinJson = {
"children": [ "children": [
{ {
"name": "失败Bg", "name": "失败Bg",
"x": 55, "x": 53,
"y": 276, "y": 470,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "失败Bg.png" "source": "失败Bg.png"
} }
}, },
{
"name": "关卡文字",
"x": 300,
"y": 521,
"alpha": 1,
"type": "text",
"props": {
"text": "第 24 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{
"name": "提示文案",
"x": 224,
"y": 611,
"alpha": 1,
"type": "text",
"props": {
"text": "再接再厉!\n再闯3关可参与抽奖!",
"size": 36,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 625,
"y": 470, "y": 431,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -415,8 +261,8 @@ export const SkinJson = { ...@@ -415,8 +261,8 @@ export const SkinJson = {
}, },
{ {
"name": "失败重新闯关", "name": "失败重新闯关",
"x": 163, "x": 165,
"y": 957, "y": 774,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -426,86 +272,6 @@ export const SkinJson = { ...@@ -426,86 +272,6 @@ export const SkinJson = {
} }
] ]
}, },
{
"name": "StartPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "开始闯关Bg",
"x": 55,
"y": 266,
"alpha": 1,
"type": "sprite",
"props": {
"source": "开始闯关Bg.png"
}
},
{
"name": "开始闯关要能量",
"x": 163,
"y": 899,
"alpha": 1,
"type": "button",
"props": {
"tUp": "开始闯关要能量.png"
},
"id": "startBtn"
},
{
"name": "开始闯关不要能量",
"x": 163,
"y": 899,
"alpha": 1,
"type": "button",
"props": {
"tUp": "开始闯关不要能量.png"
},
"id": "startBtn2"
},
{
"name": "提示文案",
"x": 221,
"y": 847,
"alpha": 1,
"type": "text",
"props": {
"text": "本关满星可获得随机道具",
"size": 28,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "tipsTex"
},
{
"name": "关卡文字",
"x": 317,
"y": 521,
"alpha": 1,
"type": "text",
"props": {
"text": "第 6 关",
"size": 40,
"fillColor": "#df5942",
"textAlpha": 1,
"bold": true
},
"id": "checkTex"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}
]
},
{ {
"name": "StartPanelPrize", "name": "StartPanelPrize",
"x": 0, "x": 0,
...@@ -514,8 +280,8 @@ export const SkinJson = { ...@@ -514,8 +280,8 @@ export const SkinJson = {
"children": [ "children": [
{ {
"name": "关卡弹窗Bg", "name": "关卡弹窗Bg",
"x": 55, "x": 53,
"y": 266, "y": 209,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -524,14 +290,14 @@ export const SkinJson = { ...@@ -524,14 +290,14 @@ export const SkinJson = {
}, },
{ {
"name": "关卡数", "name": "关卡数",
"x": 312, "x": 310,
"y": 521, "y": 492,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "第 6 关", "text": "第 6 关",
"size": 40, "size": 40,
"fillColor": "#df5942", "fillColor": "#ffffff",
"textAlpha": 1, "textAlpha": 1,
"bold": true "bold": true
}, },
...@@ -539,13 +305,14 @@ export const SkinJson = { ...@@ -539,13 +305,14 @@ export const SkinJson = {
}, },
{ {
"name": "提示文案", "name": "提示文案",
"x": 206, "x": 128,
"y": 849, "y": 830,
"alpha": 1, "alpha": 1,
"type": "text", "type": "text",
"props": { "props": {
"text": "通关参与抽奖,最高可赢得", "text": "通关即可抽取大奖,分数越高几率越大哦~",
"size": 28, "size": 28,
"bold": true,
"fillColor": "#df5942", "fillColor": "#df5942",
"textAlpha": 1 "textAlpha": 1
}, },
...@@ -553,8 +320,8 @@ export const SkinJson = { ...@@ -553,8 +320,8 @@ export const SkinJson = {
}, },
{ {
"name": "开始闯关要能量", "name": "开始闯关要能量",
"x": 163, "x": 165,
"y": 1120, "y": 1097,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -564,8 +331,8 @@ export const SkinJson = { ...@@ -564,8 +331,8 @@ export const SkinJson = {
}, },
{ {
"name": "开始闯关不要能量", "name": "开始闯关不要能量",
"x": 163, "x": 165,
"y": 1120, "y": 1097,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -576,7 +343,7 @@ export const SkinJson = { ...@@ -576,7 +343,7 @@ export const SkinJson = {
{ {
"name": "prize", "name": "prize",
"x": 130, "x": 130,
"y": 903, "y": 880,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -586,8 +353,8 @@ export const SkinJson = { ...@@ -586,8 +353,8 @@ export const SkinJson = {
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 625,
"y": 470, "y": 431,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -637,60 +404,6 @@ export const SkinJson = { ...@@ -637,60 +404,6 @@ export const SkinJson = {
} }
] ]
}, },
{
"name": "BuyPowerPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "增加体力背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "增加体力背景.png"
}
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "无字按钮底",
"x": 163,
"y": 805,
"alpha": 1,
"type": "button",
"props": {
"tUp": "无字按钮底.png"
},
"id": "exchangeBtn"
},
{
"name": "文案",
"x": 426,
"y": 682,
"alpha": 1,
"type": "text",
"props": {
"text": "+\t1",
"size": 36,
"fillColor": "#ffffff",
"textAlpha": 1
},
"id": "msgTxt"
}
]
},
{ {
"name": "RulePanel", "name": "RulePanel",
"x": 0, "x": 0,
...@@ -720,71 +433,6 @@ export const SkinJson = { ...@@ -720,71 +433,6 @@ export const SkinJson = {
} }
] ]
}, },
{
"name": "PrizePanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "背景",
"x": 55,
"y": 376,
"alpha": 1,
"type": "sprite",
"props": {
"source": "prizePanel.png"
}
},
{
"name": "关闭按钮",
"x": 631,
"y": 500,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "文案",
"x": 203,
"y": 650,
"alpha": 1,
"type": "text",
"props": {
"text": "恭喜获得XX奖品",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "prizeTxt"
},
{
"name": "prizeImg",
"x": 250,
"y": 732,
"alpha": 1,
"type": "sprite",
"props": {
"source": ""
},
"id": "prizeImg"
},
{
"name": "立即领取",
"x": 163,
"y": 1002,
"alpha": 1,
"type": "button",
"props": {
"tUp": "prizePanelBtn.png"
},
"id": "prizeBtn"
}
]
},
{ {
"name": "TaskPanel", "name": "TaskPanel",
"x": 0, "x": 0,
...@@ -793,213 +441,24 @@ export const SkinJson = { ...@@ -793,213 +441,24 @@ export const SkinJson = {
"children": [ "children": [
{ {
"name": "任务背景", "name": "任务背景",
"x": 0, "x": 0.5,
"y": 579, "y": 338,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
"source": "任务背景.png" "source": "任务背景.png"
} }
}, },
{
"name": "按钮4",
"x": 525,
"y": 1462,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn4"
},
{
"name": "按钮3",
"x": 526,
"y": 1282,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn3"
},
{
"name": "按钮2",
"x": 526,
"y": 1102,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn2"
},
{
"name": "按钮1",
"x": 526,
"y": 923,
"type": "button",
"props": {
"tUp": "去完成.png",
"tDisable": "去完成灰.png"
},
"id": "taskBtn1"
},
{
"name": "关闭按钮",
"x": 671,
"y": 708,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
}
]
},
{
"name": "ToolsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "道具不足背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "道具不足背景.png"
}
},
{
"name": "文案",
"x": 203,
"y": 650,
"alpha": 1,
"type": "text",
"props": {
"text": "要消耗200积分兑换码?",
"size": 34,
"fillColor": "#df5942",
"textAlpha": 1
},
"id": "msgTxt"
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "确定",
"x": 383,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "确定.png"
},
"id": "sureBtn"
},
{
"name": "再想想",
"x": 93,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "再想想.png"
},
"id": "consideBtn"
}
]
},
{
"name": "ExchangeSucPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "兑换成功背景",
"x": 55,
"y": 337,
"alpha": 1,
"type": "sprite",
"props": {
"source": "兑换成功背景.png"
}
},
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 643,
"y": 470, "y": 504,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
"tUp": "关闭按钮.png" "tUp": "closeBtn2.png"
}, },
"id": "closeBtn" "id": "closeBtn"
},
{
"name": "知道啦",
"x": 163,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "知道啦.png"
},
"id": "knowBtn"
}
]
},
{
"name": "CreditsOutPanel",
"x": 0,
"y": 0,
"type": "container",
"children": [
{
"name": "积分不足背景",
"x": 55,
"y": 498,
"alpha": 1,
"type": "sprite",
"props": {
"source": "积分不足背景.png"
}
},
{
"name": "关闭按钮",
"x": 631,
"y": 470,
"alpha": 1,
"type": "button",
"props": {
"tUp": "关闭按钮.png"
},
"id": "closeBtn"
},
{
"name": "赚取积分",
"x": 163,
"y": 745,
"alpha": 1,
"type": "button",
"props": {
"tUp": "赚取积分.png"
},
"id": "earnBtn"
} }
] ]
}, },
...@@ -1011,8 +470,8 @@ export const SkinJson = { ...@@ -1011,8 +470,8 @@ export const SkinJson = {
"children": [ "children": [
{ {
"name": "圆圈", "name": "圆圈",
"x": 55, "x": 53,
"y": 267, "y": 470,
"alpha": 1, "alpha": 1,
"type": "sprite", "type": "sprite",
"props": { "props": {
...@@ -1021,8 +480,8 @@ export const SkinJson = { ...@@ -1021,8 +480,8 @@ export const SkinJson = {
}, },
{ {
"name": "关闭按钮", "name": "关闭按钮",
"x": 631, "x": 625,
"y": 470, "y": 431,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
...@@ -1032,8 +491,8 @@ export const SkinJson = { ...@@ -1032,8 +491,8 @@ export const SkinJson = {
}, },
{ {
"name": "开心收下", "name": "开心收下",
"x": 163, "x": 165,
"y": 900, "y": 1012,
"alpha": 1, "alpha": 1,
"type": "button", "type": "button",
"props": { "props": {
......
...@@ -9,14 +9,9 @@ export enum TbNetName { ...@@ -9,14 +9,9 @@ export enum TbNetName {
* activityId params elemType * activityId params elemType
*/ */
trackingReport = "squirrelsAdoptRest2c.trackingReport", trackingReport = "squirrelsAdoptRest2c.trackingReport",
/**
* 进入活动调用, 刷新数据不调用该接口
* activityId userNick avatar follow inviteId
*/
getIndex = "babycare.getIndex",
// 领取权益奖励 // 领取权益奖励
receiveEnamePrize = "babycare.receiveEnamePrize", receiveEnamePrize = "popmartXXL2c.receiveEnamePrize",
/** /**
...@@ -24,71 +19,42 @@ export enum TbNetName { ...@@ -24,71 +19,42 @@ export enum TbNetName {
* @param activityId * @param activityId
* @type {string} * @type {string}
*/ */
getActivityBaseInfoById = "babycare.getActivityBaseInfoById", getActivityBaseInfoById = "popmartXXL2c.getActivityBaseInfoById",
/**
* 获取游戏信息
* activityId
*/
getGameInfo = "babycare.getGameInfo",
/** /**
* 消耗道具 ,会返回剩余所有道具数量 * 消耗道具 ,会返回剩余所有道具数量
* activityId type * activityId type
*/ */
consumerTools = "babycare.consumerTools", consumerTools = "popmartXXL2c.consumerTools",
/** /**
* 提交分数 * 提交分数
* activityId level score stars isVisitSuccess(是否通关) * activityId level score stars isVisitSuccess(是否通关)
*/ */
gameOver = "babycare.gameOver", gameOver = "popmartXXL2c.gameOver",
/** /**
* 领取任务奖励 * 领取任务奖励
* activityId taskType * activityId taskType
*/ */
receiveTaskRewards = "babycare.receiveTaskRewards", receiveTaskRewards = "popmartXXL2c.receiveTaskRewards",
/**
* 积分兑换道具和体力
* activityId type credits
*/
exchange = "babycare.exchange",
/**
* 根据等级获取奖品列表
* activityId level
*/
getPrizesByLevel = "babycare.getPrizesByLevel",
/**
* 查询用户积分
* activityId
*/
queryCredits = "babycare.queryCredits",
/** /**
* 开始闯关,会返回体力值 * 开始闯关,会返回体力值
* activityId level * activityId level
*/ */
dojoin = "babycare.dojoin", dojoin = "popmartXXL2c.doJoin",
/** /**
* 完成任务(浏览商品详情页, 关注店铺) * 完成任务(浏览商品详情页, 关注店铺)
* activityId taskType * activityId taskType
*/ */
completeTask = "babycare.completeTask", completeTask = "popmartXXL2c.completeTask",
/** /**
* 任务列表 * 任务列表
* activityId * activityId
*/ */
getTaskList = "babycare.getTaskList", getTaskList = "popmartXXL2c.getTaskList",
/**
* 抽奖
* activityId
*/
luckyDraw = "babycare.luckyDraw",
///////////////////前端调用接口都加个mine ///////////////////前端调用接口都加个mine
/**
* 获取120名通关的人数
*/
getAppointCount = "mine.getAppointCount",
////带用户操作,和index.js特殊操作的 ////带用户操作,和index.js特殊操作的
/** /**
* 用户授权 * 用户授权
......
...@@ -33,83 +33,62 @@ export class Tools { ...@@ -33,83 +33,62 @@ export class Tools {
"openId": string, "openId": string,
"inviteId": string, "inviteId": string,
"isFollow": boolean, "isFollow": boolean,
"isFromWx": boolean,
} }
/**
* 游戏数据,需要根据接口维护 public static async getAppData() {
*/ const {data} = await sendTbNet(TbNetName.getAppData);
public static gameData: { Tools.globalData = data;
"currentLevel": number, }
"loginAddPower": boolean,
"visitors": { public static propInfo: {
"score": number, hammers: number,
"level": number, steps: number,
"isVisitSuccess": boolean, booms: number,
"stars": number, power: number,
sendAwardType: any } = {
}[], hammers: 0,
"prizes": { steps: 0,
"receiveTime": string,//number booms: 0,
"level": number, power: 0,
"isReceive": boolean
}[],
"power": number,
"tools": {
"HAMMERS": number,
"STEPS": number,
"BOOMS": number
},
"isFristLogin": boolean,//是否是首次
"topAward": {
openPrizeStatus: boolean,
prize: any
},//120关自动开奖
"wxOriginPrize"?: {//微信中奖信息
"type": number,
"name": string,
"rewardNum": number,
"code"?:string,
"defaultMsg"?:string
}
} }
public static baseInfo: { public static baseInfo: {
prizeLevels: number[],
inviteFriends: any, inviteFriends: any,
openId: string,
rule: string, rule: string,
updateTime: number, updateTime: number,
title: string, title: string,
toolsProbability: any, toolsProbability: any,
levelPrize: any, currentLevel: 1,
buyCredits: any, /// TODO …… records: {
};// 活动基本信息 score: number,
level: number,
isVisitSuccess: boolean,
stars: number,
}[],
/** levelPrize: {
* 首页数据,loading页面执行一次 level50: string,
*/ level100: string,
public static getIndex(): Promise<boolean> { level120: string
return new Promise((r) => { },
sendTbNet(TbNetName.getIndex, {
userNick: this.globalData.nickName,
avatar: this.globalData.avatar,
follow: this.globalData.isFollow,
inviteId: this.globalData.inviteId,
isFromWx: this.globalData.isFromWx
}, (s, res) => {
if (s) this.gameData = res.data;
r(s);
})
})
}
/** loginAddPower: boolean,
* 进入地图页面刷新 isFristLogin: boolean, //是否是首次
*/ };// 活动基本信息
public static getGameInfo() {
public static getBaseInfo() {
// 游戏基本信息
return new Promise((r) => { return new Promise((r) => {
sendTbNet(TbNetName.getGameInfo, {}, (s, res) => { sendTbNet(TbNetName.getActivityBaseInfoById, {}, (s, res) => {
if (s) this.gameData = res.data; if (s && res && res.data) {
const data = Tools.baseInfo = res.data;
if (res.data.tools) {
Tools.propInfo.booms = data.tools.booms || 0;
Tools.propInfo.steps = data.tools.steps || 0;
Tools.propInfo.hammers = data.tools.hammers || 0;
}
Tools.propInfo.power = data.power || 0;
}
r(s); r(s);
}) })
}) })
...@@ -120,11 +99,12 @@ export class Tools { ...@@ -120,11 +99,12 @@ export class Tools {
*/ */
public static consumerTools(type: PropType): Promise<boolean> { public static consumerTools(type: PropType): Promise<boolean> {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
sendTbNet(TbNetName.consumerTools, { type }, (s, res) => { sendTbNet(TbNetName.consumerTools, {type}, (s, res) => {
if (s) { if (s) {
//修改道具数量 //修改道具数量
this.gameData.tools = res.data.tools; this.propInfo.booms = res.data.tools.booms;
// resolve(res);//数据按照gameData的更新,不返回 this.propInfo.steps = res.data.tools.steps;
this.propInfo.hammers = res.data.tools.hammers;
resolve(true) resolve(true)
} else { } else {
// reject() // reject()
...@@ -149,45 +129,6 @@ export class Tools { ...@@ -149,45 +129,6 @@ export class Tools {
} }
} }
/**
* 兑换道具,根据返回参数判断
*/
public static async exchange(type: PropType): Promise<boolean | string> {
//先获取积分,判断是否有积分
var creditsData = await sendTbNet(TbNetName.queryCredits, null, null, true)
//接口失败,没数据时,返回false
if (!creditsData || !creditsData.data) {
showToast("网络异常,请重试")//上面禁掉了提示,这里提示下
return false
}
//非会员,返回会员路径
if (creditsData && !creditsData.success && !creditsData.data.isvip) {
return creditsData.data.url
}
//判断积分,不足兑换
if (!creditsData.data.credits ||
creditsData.data.credits < getTbData(TbNetName.getActivityBaseInfoById).data.buyCredits[type]
) {
showPanel(CreditsOutPanel)
return false
}
const res = await sendTbNet(TbNetName.exchange, { type, credits: creditsData.data.credits }, null, true)
if (res.success) {
//修改道具数量和体力
this.gameData.power = res.data.power;
this.gameData.tools = res.data.tools;
return true;//可根据gameData修改视图
} else {
//如果code积分不足,弹出赚积分弹窗
if (res.code == "730005") {
showPanel(CreditsOutPanel)
} else {
showToast(res.message || "网络开小差了,请重试")
}
return false;
}
}
/** /**
* 询问权限用 * 询问权限用
*/ */
...@@ -196,11 +137,11 @@ export class Tools { ...@@ -196,11 +137,11 @@ export class Tools {
var tbMy = my var tbMy = my
if (!tbMy) return; if (!tbMy) return;
//@ts-ignore //@ts-ignore
const { cloud } = getApp(); const {cloud} = getApp();
//测试地址//到时云存储传一个小json,,改路径 //测试地址//到时云存储传一个小json,,改路径
var url = "cloud://B4F0300E5148F478B506DEDC26EA4C6C//butterfly0.svga"; var url = "cloud://B4F0300E5148F478B506DEDC26EA4C6C//butterfly0.svga";
//获取临时地址 //获取临时地址
var urls = await cloud.file.getTempFileURL({ fileId: [url] }) var urls = await cloud.file.getTempFileURL({fileId: [url]})
url = urls[0].url.replace('-internal', ''); url = urls[0].url.replace('-internal', '');
tbMy.downloadFile({ tbMy.downloadFile({
url: url, url: url,
...@@ -209,10 +150,10 @@ export class Tools { ...@@ -209,10 +150,10 @@ export class Tools {
tbMy.getFileSystemManager().readFile({ tbMy.getFileSystemManager().readFile({
filePath: i, filePath: i,
// encoding: "utf8", // encoding: "utf8",
success: function (r) { success: function(r) {
}, },
fail: function (res) { fail: function(res) {
} }
}) })
...@@ -356,11 +297,11 @@ export class Tools { ...@@ -356,11 +297,11 @@ export class Tools {
showTime: number = 300 showTime: number = 300
) { ) {
Tween.get(target) Tween.get(target)
.set({ alpha: 0, visible: true }) .set({alpha: 0, visible: true})
.to({ alpha: 1 }, showTime, Ease.quadIn) .to({alpha: 1}, showTime, Ease.quadIn)
.wait(time) .wait(time)
.to({ alpha: 0 }, showTime, Ease.quadOut) .to({alpha: 0}, showTime, Ease.quadOut)
.set({ alpha: 0, visible: false }) .set({alpha: 0, visible: false})
.call(() => { .call(() => {
call(); call();
}); });
......
<audio src="aaaa.mp3" id="au" autoplay='autoplay' loop="loop"></audio>
<script>
var au = document.getElementById('au');
au.src = "aaaaa.mp3";//需要js引入路径
au.play();
// 音乐兼容微信自动播放
document.addEventListener('DOMContentLoaded', function () {
function audioAutoPlay() {
var au = document.getElementById('au');
au.play();
document.addEventListener("WeixinJSBridgeReady", function () {
au.play();
}, false);
}
audioAutoPlay();
});
document.addEventListener("WeixinJSBridgeReady", function () {
au.play();
}, false);
window.onclick = ()=>{
au.play();
window.onclick = null;
}
</script>
import { Panel } from "../../module/views/Panel";
import { Tools } from "../Tools";
import { getCurrentScene, hideWaiting, showPanel, showToast, showWaiting } from "../../module/ctrls";
import { JoinPanel } from "./JoinPanel";
import { PropType } from "../something/enum/PropType";
import VERTICAL_ALIGN = FYGE.VERTICAL_ALIGN;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import TextField = FYGE.TextField;
export class BuyPowerPanel extends Panel {
get groupNames() {
return ["BuyPowerPanel"]
}
get skinName() {
return "BuyPowerPanel"
}
msgTxt: FYGE.TextField;
exchangeBtn: FYGE.Button;
closeBtn: FYGE.Button;
initUi() {
const btnTxt: TextField = this.exchangeBtn.addChild(Tools.getText(
'1店铺积分', 36, '#ffffff',
TEXT_ALIGN.CENTER, this.exchangeBtn.width, 0, -6
));
btnTxt.textHeight = this.exchangeBtn.height;
btnTxt.verticalAlign = VERTICAL_ALIGN.MIDDLE;
btnTxt.bold = true;
btnTxt.stroke = 3;
btnTxt.strokeColor = '#21926e';
this.msgTxt.bold = true;
this.msgTxt.stroke = 3;
this.msgTxt.strokeColor = '#21926e';
this.exchangeBtn.addEventListener(FYGE.MouseEvent.CLICK, async () => {
//购买道具
showWaiting();
var res = await Tools.exchange(PropType.POWER);
hideWaiting();
//如果是链接,弹出加入会员弹框
if (typeof res == "string") {
showPanel(JoinPanel, { url: res });
}
//成功了,关闭弹框,修改道具信息
else if (res) {
showToast("兑换成功");
this.hidePanel();
getCurrentScene().updateScene();
}
}, this);
}
start(data) {
super.start();
}
initEvents() {
super.initEvents();
}
removeEvents() {
super.removeEvents();
}
}
import { Panel } from "../../module/views/Panel";
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { Tools } from "../Tools";
export class CreditsOutPanel extends Panel {
get groupNames() { return ["CreditsOutPanel"] }
get skinName() { return "CreditsOutPanel" }
earnBtn: FYGE.Button;
closeBtn: FYGE.Button;
initUi() {
}
start(data) {
super.start();
}
initEvents() {
super.initEvents();
this.earnBtn.addEventListener(FYGE.MouseEvent.CLICK, () => {
Tools.btnDelay(this);
sendTbNet(TbNetName.navigateToOutside, {
url: "https://market.m.taobao.com/app/tb-source-app/shopact/pages/index?wh_weex=true&pathInfo=shop/activity&userId=2275046294&shopId=114637892&pageId=187145736&alisite=true"
})//赚积分路径
}, this)
}
removeEvents() {
super.removeEvents();
}
}
import { Panel } from "../../module/views/Panel";
export class ExchangeSucPanel extends Panel {
get groupNames() { return ["ExchangeSucPanel"] }
get skinName() { return "ExchangeSucPanel" }
knowBtn:FYGE.Button;
closeBtn:FYGE.Button;
get closeBtns(){
return [this.knowBtn,this.closeBtn]
}
}
...@@ -16,35 +16,8 @@ export class FailedPanel extends Panel { ...@@ -16,35 +16,8 @@ export class FailedPanel extends Panel {
againBtn: FYGE.Button; againBtn: FYGE.Button;
closeBtn: FYGE.Button; closeBtn: FYGE.Button;
tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
initUi() { initUi() {
this.checkTex.text = `第\t${this.data.level}\t关`;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.checkTex.x = 2;
this.checkTex.textWidth = 750;
const curLevel: number = Tools.gameData.currentLevel;
let upLevel: number = 120;
let dLevel: number = 120;
Tools.baseInfo.prizeLevels.forEach((value, index) => {
const d: number = value - curLevel;
if (curLevel <= value && d >= 0 && d <= dLevel) {
upLevel = value;
dLevel = d + 1;
}
});
this.tipsTex.text = `\t\t\t再接再厉!\n再解锁${dLevel}关可参与抽奖`;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750;
this.tipsTex.x = 0;
if (Tools.gameData.currentLevel == 120
&& MapScene.checkArr && MapScene.checkArr[120]
&& MapScene.checkArr[120].checkData.isVisitSuccess) {
this.tipsTex.text = '';
}
} }
start(data) { start(data) {
......
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import { showPanel } from "../../module/ctrls"; import { showPanel } from "../../module/ctrls";
import { BuyPowerPanel } from "./BuyPowerPanel";
export class NoEnergyPanel extends Panel { export class NoEnergyPanel extends Panel {
get groupNames() { get groupNames() {
...@@ -26,7 +25,6 @@ export class NoEnergyPanel extends Panel { ...@@ -26,7 +25,6 @@ export class NoEnergyPanel extends Panel {
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
this.okBtn.addEventListener(MouseEvent.CLICK, () => { this.okBtn.addEventListener(MouseEvent.CLICK, () => {
showPanel(BuyPowerPanel);
this.hidePanel(); this.hidePanel();
}, this); }, this);
} }
......
import { Panel } from "../../module/views/Panel";
import { RES } from "../../module/RES";
export class NoPrizePanel extends Panel {
get groupNames(){return ["NoPrizePanel"]}
initUi() {
this.addChild(new FYGE.Sprite(RES.getRes("noPrizeBg.png")))
this.addChild(new FYGE.Button(RES.getRes("关闭按钮.png")))
.addEventListener(FYGE.MouseEvent.CLICK, this.hidePanel, this)
.position.set(633,468);
this.addChild(new FYGE.Button(RES.getRes("知道了.png")))
.addEventListener(FYGE.MouseEvent.CLICK, this.hidePanel, this)
.position.set(165,759);
}
}
\ No newline at end of file
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { Tools } from "../Tools"; import { getCurrentScene } from "../../module/ctrls";
import { getCurrentScene, showPanel } from "../../module/ctrls";
import { ToolsOutPanel } from "./ToolsOutPanel";
import { PropType } from "../something/enum/PropType";
export class NoStepPanel extends Panel { export class NoStepPanel extends Panel {
get groupNames() { return ["NoStepPanel"] } get groupNames() {
get skinName() { return "NoStepPanel" } return ["NoStepPanel"]
overBtn: FYGE.Button; }
liveBtn: FYGE.Button;
closeBtn: FYGE.Button; get skinName() {
tipsTex: FYGE.TextField; return "NoStepPanel"
}
data: {
reviveFun: () => void overBtn: FYGE.Button;
} liveBtn: FYGE.Button;
closeBtn: FYGE.Button;
initUi() { tipsTex: FYGE.TextField;
// Tools.changeTextAlign(this.tipsTex, FYGE.TEXT_ALIGN.CENTER, 500)
this.tipsTex.textAlign = FYGE.TEXT_ALIGN.CENTER; data: {
this.tipsTex.textWidth = 500; reviveFun: () => void
this.tipsTex.x = (750 - 500) / 2; }
this.tipsTex.text = "是否使用步数道具\n增加5次步数"
} initUi() {
initEvents() { this.tipsTex.textAlign = FYGE.TEXT_ALIGN.CENTER;
//结束 this.tipsTex.textWidth = 500;
[this.closeBtn, this.overBtn].forEach((e) => { this.tipsTex.x = (750 - 500) / 2;
e.addEventListener(FYGE.MouseEvent.CLICK, () => { this.tipsTex.text = "是否使用步数道具\n增加5次步数"
getCurrentScene().submit(false); }
this.hidePanel();
}, this) initEvents() {
}) //结束
//复活 [this.closeBtn, this.overBtn].forEach((e) => {
this.liveBtn.addEventListener(FYGE.MouseEvent.CLICK, () => { e.addEventListener(FYGE.MouseEvent.CLICK, () => {
//无步数道具,弹出积分兑换 getCurrentScene().submit(false);
if (!Tools.gameData.tools.STEPS) { this.hidePanel();
showPanel(ToolsOutPanel, { type: PropType.STEPS, showSucPanel: false }) }, this)
} else { })
this.data.reviveFun(); //复活
this.hidePanel(); this.liveBtn.addEventListener(FYGE.MouseEvent.CLICK, () => {
} this.data.reviveFun();
}, this) this.hidePanel();
} }, this)
removeEvents() { }
} removeEvents() {
}
} }
import { Panel } from "../../module/views/Panel";
import TextField = FYGE.TextField;
import Button = FYGE.Button;
import Sprite = FYGE.Sprite;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import Texture = FYGE.Texture;
import MouseEvent = FYGE.MouseEvent;
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { showToast } from "../../module/ctrls";
import { Tool } from "../something/Tool";
import { Tools } from "../Tools";
export class PrizePanel extends Panel {
get groupNames() {
return ["PrizePanel"]
}
get skinName() {
return "PrizePanel"
}
closeBtn: Button;
prizeTxt: TextField;
prizeImg: Sprite;
prizeBtn: Button;
initUi() {
this.prizeTxt.textAlign = TEXT_ALIGN.CENTER;
this.prizeTxt.textWidth = 750;
this.prizeTxt.x = 0;
this.prizeTxt.text = `恭喜获得${this.data.name}`;
this.prizeImg.anchorTexture.x = 0.5;
this.prizeImg.x = 375;
this.prizeImg.texture = Texture.fromUrl(this.data.image);
}
start(data) {
super.start();
}
private clickPrizeBtn(){
this.btnDelay(this.prizeBtn);
switch (this.data.type) {
case 1: // 权益
sendTbNet(TbNetName.receiveEnamePrize, {_id: this.data._id},
(success, res) => {
if (!success || !res) {
showToast('奖品发放失败\n请前往我的奖品处进行处理');
this.hidePanel();
return;
}
if (res.data && res.data.drawStatus == 3) {
showToast('奖品发放成功\n请前往我的奖品处查看');
} else {
showToast('奖品发放失败\n请前往我的奖品处进行处理');
}
this.hidePanel();
}, true
);
break;
case 3: // 实物
sendTbNet(TbNetName.getUserAddress, {prizeId: this.data._id},
(success, res) => {
if (!success) {
// showToast('奖品发放失败\n请前往我的奖品处进行处理');
return;
}
showToast('奖品发放成功\n请前往我的奖品处查看');
this.hidePanel();
}, true
);
break;
case 2: // 积分
case 5: // 谢谢参与
this.hidePanel();
break;
}
}
initEvents() {
super.initEvents();
this.prizeBtn.addEventListener(MouseEvent.CLICK, this.clickPrizeBtn, this);
}
removeEvents() {
super.removeEvents();
this.prizeBtn.removeEventListener(MouseEvent.CLICK, this.clickPrizeBtn, this);
}
}
...@@ -3,6 +3,9 @@ import TextField = FYGE.TextField; ...@@ -3,6 +3,9 @@ import TextField = FYGE.TextField;
import TEXT_lINETYPE = FYGE.TEXT_lINETYPE; import TEXT_lINETYPE = FYGE.TEXT_lINETYPE;
import ScrollPage = FYGE.ScrollPage; import ScrollPage = FYGE.ScrollPage;
import { Tools } from "../Tools"; import { Tools } from "../Tools";
import Button = FYGE.Button;
import { RES } from "../../module/RES";
import MouseEvent = FYGE.MouseEvent;
export class RulePanel extends Panel { export class RulePanel extends Panel {
get groupNames() { get groupNames() {
...@@ -14,6 +17,7 @@ export class RulePanel extends Panel { ...@@ -14,6 +17,7 @@ export class RulePanel extends Panel {
} }
closeBtn: FYGE.Button; closeBtn: FYGE.Button;
closeBtn1: FYGE.Button;
ruleTex: TextField; ruleTex: TextField;
scroll: ScrollPage; scroll: ScrollPage;
...@@ -32,11 +36,14 @@ export class RulePanel extends Panel { ...@@ -32,11 +36,14 @@ export class RulePanel extends Panel {
this.ruleTex.lineType = TEXT_lINETYPE.MULTI; this.ruleTex.lineType = TEXT_lINETYPE.MULTI;
this.scroll = this.addChild(new ScrollPage( this.scroll = this.addChild(new ScrollPage(
570, 600, this.ruleTex.textHeight + 30 570, 425, this.ruleTex.textHeight + 30
)); ));
this.scroll.position.set(96, 549); this.scroll.position.set(100, 549);
this.scroll.view.addChild(this.ruleTex); this.scroll.view.addChild(this.ruleTex);
this.addChild(new Button(RES.getRes('liaojiele.png')))
.addEventListener(MouseEvent.CLICK, this.hidePanel, this)
.position.set(165, 995);
} }
initEvents() { initEvents() {
......
import { Panel } from "../../module/views/Panel";
import { getChapterData } from "../something/chapters/getChapter";
import { Tools } from "../Tools";
import { ElementTargetData } from "../something/interface/ElementTargetData";
import Container = FYGE.Container;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import MouseEvent = FYGE.MouseEvent;
import { changeScene, showPanel } from "../../module/ctrls";
import { PlayScene } from "../scene/PlayScene";
import Tween = FYGE.Tween;
import Ease = FYGE.Ease;
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { NoEnergyPanel } from "./NoEnergyPanel";
export class StartPanel extends Panel {
get groupNames() {
return ["StartPanel"]
}
get skinName() {
return "StartPanel"
}
closeBtn: FYGE.Button;
checkTex: FYGE.TextField;
tipsTex: FYGE.TextField;
startBtn2: FYGE.Button;
startBtn: FYGE.Button;
public showAni() {
if (this.isShowing) return;
this.isShowing = true;
this.anchor.set(375, 812);
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 400, Ease.backOut)
.call(() => {
this.isShowing = false;
});
}
initUi() {
this.checkTex.textWidth = 750;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.checkTex.x = 0;
this.checkTex.text = `第\t${this.data.level}\t关`;
this.startBtn.visible = !this.data.isPlayed;
this.startBtn2.visible = this.data.isPlayed;
this.tipsTex.visible = !this.data.isPlayed;
this.addChild(new StartTarget(this.data.level))
.position.set(0, 682);
// console.log(this.data);
}
start(data) {
super.start();
}
private startGame() {
this.enableMouseEvt(false);
if (!this.data.isPlayed && Tools.gameData.power <= 0) {// 体力不足
showPanel(NoEnergyPanel);
this.enableMouseEvt(true);
return;
}
sendTbNet(TbNetName.dojoin, {level: this.data.level},
(success, res) => {
this.enableMouseEvt(true);
if (!success) return;
Tools.gameData.power = res.data.power;
// 访问页面埋点
sendTbNet(TbNetName.reportAnalytics, {logkey: 'join'});
changeScene(PlayScene, {chapter: this.data.level});
this.hidePanel();
}
);
}
initEvents() {
super.initEvents();
this.startBtn.addEventListener(MouseEvent.CLICK, this.startGame, this);
this.startBtn2.addEventListener(MouseEvent.CLICK, this.startGame, this);
}
removeEvents() {
super.removeEvents();
this.startBtn.removeEventListener(MouseEvent.CLICK, this.startGame, this);
this.startBtn2.removeEventListener(MouseEvent.CLICK, this.startGame, this);
}
}
const pos = [
[325],
[240, 410],
[180, 325, 470],
]
export class StartTarget extends Container {
constructor(checkNum: number) {
super();
const passTarget = getChapterData(checkNum).passTarget;
if (passTarget.type == 0) { // 分数
} else if (passTarget.type == 1) { // 消除元素个数
passTarget.elements.forEach((v, i) => {
const targetItem = this.addChild(new StartTargetItem(v));
targetItem.x = pos[passTarget.elements.length - 1][i];
setTimeout(() => {
targetItem.playEffect();
}, i * 200);
});
}
}
}
export class StartTargetItem extends Container {
constructor(data: ElementTargetData) {
super();
const targetImg = this.addChild(Tools.getSprite(`ele${data.type}.png`));
targetImg.width = targetImg.height = 100;
const targetTex = this.addChild(Tools.getText(
`${data.count}`, 30, '#ffffff',
TEXT_ALIGN.CENTER, 100, 0, 108
));
targetTex.strokeColor = '#eb5b57';
targetTex.stroke = 3;
this.anchor.set(50, 79);
this.scale.set(0, 0);
}
// 变大的动效
public playEffect() {
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 500, Ease.backOut)
}
}
...@@ -2,7 +2,6 @@ import { Panel } from "../../module/views/Panel"; ...@@ -2,7 +2,6 @@ import { Panel } from "../../module/views/Panel";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import { changeScene, showPanel } from "../../module/ctrls"; import { changeScene, showPanel } from "../../module/ctrls";
import { PlayScene } from "../scene/PlayScene"; import { PlayScene } from "../scene/PlayScene";
import { StartTarget } from "./StartPanel";
import TEXT_ALIGN = FYGE.TEXT_ALIGN; import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import Tween = FYGE.Tween; import Tween = FYGE.Tween;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
...@@ -11,6 +10,9 @@ import Texture = FYGE.Texture; ...@@ -11,6 +10,9 @@ import Texture = FYGE.Texture;
import { Tools } from "../Tools"; import { Tools } from "../Tools";
import { sendTbNet, TbNetName } from "../TaoBaoNet"; import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { NoEnergyPanel } from "./NoEnergyPanel"; import { NoEnergyPanel } from "./NoEnergyPanel";
import { ElementTargetData } from "../something/interface/ElementTargetData";
import Container = FYGE.Container;
import { getChapterData } from "../something/chapters/getChapter";
export class StartPanelPrize extends Panel { export class StartPanelPrize extends Panel {
get groupNames() { get groupNames() {
...@@ -41,18 +43,29 @@ export class StartPanelPrize extends Panel { ...@@ -41,18 +43,29 @@ export class StartPanelPrize extends Panel {
prizeImg: Sprite; prizeImg: Sprite;
initUi() { initUi() {
const {level} = this.data;
this.checkTex.textWidth = 750; this.checkTex.textWidth = 750;
this.checkTex.textAlign = TEXT_ALIGN.CENTER; this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.checkTex.x = 0; this.checkTex.x = 0;
this.checkTex.text = `第\t${this.data.level}\t关`; this.checkTex.text = `第\t${level}\t关`;
this.checkTex.strokeColor = '#c95122';
this.checkTex.stroke = 3;
this.startBtn.visible = !this.data.isPlayed; this.startBtn.visible = !this.data.isPlayed;
this.startBtn2.visible = this.data.isPlayed; this.startBtn2.visible = this.data.isPlayed;
this.addChild(new StartTarget(this.data.level)) this.addChild(new StartTarget(level))
.position.set(0, 682); .position.set(0, 652);
this.prizeImg.texture = Texture.fromUrl(Tools.baseInfo.levelPrize[`level_${this.data.level}`]); let prizeLevel = 50;
if (level > 50 && level <= 100) {
prizeLevel = 100;
} else if (level > 100) {
prizeLevel = 120;
}
this.prizeImg.texture = Texture.fromUrl(Tools.baseInfo.levelPrize[`level${prizeLevel}`]);
this.prizeImg.anchorTexture.x = 0.5; this.prizeImg.anchorTexture.x = 0.5;
this.prizeImg.x = 750 / 2; this.prizeImg.x = 750 / 2;
} }
...@@ -62,13 +75,14 @@ export class StartPanelPrize extends Panel { ...@@ -62,13 +75,14 @@ export class StartPanelPrize extends Panel {
} }
private startGame() { private startGame() {
const {level, isPlayed} = this.data;
this.enableMouseEvt(false); this.enableMouseEvt(false);
if (!this.data.isPlayed && Tools.gameData.power <= 0) {// 体力不足 if (!isPlayed && Tools.propInfo.power <= 0) {// 体力不足
showPanel(NoEnergyPanel); showPanel(NoEnergyPanel);
this.enableMouseEvt(true); this.enableMouseEvt(true);
return; return;
} }
sendTbNet(TbNetName.dojoin, {level: this.data.level}, sendTbNet(TbNetName.dojoin, {level: level},
(success, res) => { (success, res) => {
this.enableMouseEvt(true); this.enableMouseEvt(true);
if (!success) return; if (!success) return;
...@@ -76,8 +90,8 @@ export class StartPanelPrize extends Panel { ...@@ -76,8 +90,8 @@ export class StartPanelPrize extends Panel {
// 访问页面埋点 // 访问页面埋点
sendTbNet(TbNetName.reportAnalytics, {logkey: 'join'}); sendTbNet(TbNetName.reportAnalytics, {logkey: 'join'});
Tools.gameData.power = res.data.power; Tools.propInfo.power = res.data.power;
changeScene(PlayScene, {chapter: this.data.level}); changeScene(PlayScene, {chapter: level});
this.hidePanel(); this.hidePanel();
} }
); );
...@@ -95,3 +109,58 @@ export class StartPanelPrize extends Panel { ...@@ -95,3 +109,58 @@ export class StartPanelPrize extends Panel {
this.startBtn2.removeEventListener(MouseEvent.CLICK, this.startGame, this); this.startBtn2.removeEventListener(MouseEvent.CLICK, this.startGame, this);
} }
} }
const pos = [
[325],
[240, 410],
[180, 325, 470],
]
export class StartTarget extends Container {
constructor(checkNum: number) {
super();
const passTarget = getChapterData(checkNum).passTarget;
if (passTarget.type == 0) { // 分数
} else if (passTarget.type == 1) { // 消除元素个数
passTarget.elements.forEach((v, i) => {
const targetItem = this.addChild(new StartTargetItem(v));
targetItem.x = pos[passTarget.elements.length - 1][i];
setTimeout(() => {
targetItem.playEffect();
}, i * 200);
});
}
}
}
export class StartTargetItem extends Container {
constructor(data: ElementTargetData) {
super();
const targetImg = this.addChild(Tools.getSprite(`ele${data.type}.png`));
targetImg.width = targetImg.height = 100;
const targetTex = this.addChild(Tools.getText(
`${data.count}`, 30, '#ffffff',
TEXT_ALIGN.CENTER, 100, 0, 108
));
targetTex.strokeColor = '#eb5b57';
targetTex.stroke = 3;
this.anchor.set(50, 79);
this.scale.set(0, 0);
}
// 变大的动效
public playEffect() {
Tween.get(this)
.set({scaleX: 0, scaleY: 0})
.to({scaleX: 1, scaleY: 1}, 500, Ease.backOut)
}
}
...@@ -35,29 +35,20 @@ export class SuccessNoPrizePanel extends Panel { ...@@ -35,29 +35,20 @@ export class SuccessNoPrizePanel extends Panel {
closeBtn: FYGE.Button; closeBtn: FYGE.Button;
tipsTex: FYGE.TextField; tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
againBtn: FYGE.Button; againBtn: FYGE.Button;
continueBtn: FYGE.Button; continueBtn: FYGE.Button;
totalContinueBtn: FYGE.Button; totalContinueBtn: FYGE.Button;
light1: Sprite;
light2: Sprite;
private starGroup: SuccessStarGroup = null; private starGroup: SuccessStarGroup = null;
initUi() { initUi() {
this.checkTex.text = `第\t${this.data.level}\t关`;
this.checkTex.textWidth = 750;
this.checkTex.x = 0;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER; this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750; this.tipsTex.textWidth = 750;
this.tipsTex.x = 0; this.tipsTex.x = 0;
this.starGroup = this.addChild(new SuccessStarGroup()); this.starGroup = this.addChild(new SuccessStarGroup());
this.starGroup.position.set(373, 680); this.starGroup.position.set(375, 660);
this.lightEffect();
this.starGroup.play(this.data.stars); this.starGroup.play(this.data.stars);
...@@ -68,51 +59,6 @@ export class SuccessNoPrizePanel extends Panel { ...@@ -68,51 +59,6 @@ export class SuccessNoPrizePanel extends Panel {
this.totalContinueBtn.visible = false; this.totalContinueBtn.visible = false;
} }
// if(MapScene.checkArr && MapScene.checkArr[120] && MapScene.checkArr[120])
if (Tools.gameData.currentLevel == 120
&& MapScene.checkArr && MapScene.checkArr[120]
&& MapScene.checkArr[120].checkData.isVisitSuccess) {
this.tipsTex.text = '';
} else if (MapScene.checkArr && MapScene.checkArr[this.data.level] && MapScene.checkArr[this.data.level].sendAwardType) {
// 到过三星,领过奖
const curLevel: number = Tools.gameData.currentLevel;
let upLevel: number = 120;
let dLevel: number = 120;
Tools.baseInfo.prizeLevels.forEach((value, index) => {
const d: number = value - curLevel;
if (curLevel <= value && d >= 0 && d <= dLevel) {
upLevel = value;
if (curLevel == this.data.level) {
dLevel = d;
} else {
dLevel = d + 1;
}
}
});
this.tipsTex.text = `\t\t\t太厉害了!\n再解锁${dLevel}关可以抽奖了`;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750;
this.tipsTex.x = 0;
} else {
// 没到三星,没领过奖
if (this.data.isPrizeLevel) {
this.tipsTex.text = '闯关成功!挑战满星通关\n获得抽大奖机会!';
} else {
this.tipsTex.text = '闯关成功!挑战满星通关\n有概率获得随机道具一个';
}
}
}
private lightEffect() {
Tween.get(this.light1, {loop: true})
.set({anchorX: 219.5, anchorY: 219.5})
.to({rotation: 360}, 12000);
Tween.get(this.light2, {loop: true})
.set({anchorX: 219.5, anchorY: 219.5})
.to({rotation: -360}, 12000);
} }
start(data) { start(data) {
...@@ -274,26 +220,3 @@ export class SuccessStarGroup extends Container { ...@@ -274,26 +220,3 @@ export class SuccessStarGroup extends Container {
} }
} }
// export class SuccessStar extends Container {
// private starEn: Sprite = null;
// private starDis: Sprite = null;
//
// constructor() {
// super();
// this.starDis = this.addChild(Tools.getSprite('star_dis.png'));
// this.starDis.anchorTexture.set(0.5, 0.5);
// this.starEn = this.addChild(Tools.getSprite('star_en.png'));
// this.starEn.anchorTexture.set(0.5, 0.5);
// this.starEn.scale.set(0, 0);
// this.starEn.y = 3;
// }
//
// public play(wait: number = 0, time: number = 400) {
// Tween.get(this.starEn)
// .wait(wait)
// .set({scaleX: 3, scaleY: 3})
// .to({scaleX: 1, scaleY: 1}, time, Ease.quadInOut);
//
// }
//
// }
...@@ -5,14 +5,11 @@ import Tween = FYGE.Tween; ...@@ -5,14 +5,11 @@ import Tween = FYGE.Tween;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import Texture = FYGE.Texture; import Texture = FYGE.Texture;
import Container = FYGE.Container;
import { PropType } from "../something/enum/PropType"; import { PropType } from "../something/enum/PropType";
import { RES } from "../../module/RES"; import { RES } from "../../module/RES";
import TextField = FYGE.TextField;
import { changeScene } from "../../module/ctrls"; import { changeScene } from "../../module/ctrls";
import { MapScene } from "../scene/map/MapScene"; import { MapScene } from "../scene/map/MapScene";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import { LotteryScene } from "../scene/LotteryScene";
export class SuccessPrizePanel extends Panel { export class SuccessPrizePanel extends Panel {
get groupNames() { get groupNames() {
...@@ -28,8 +25,8 @@ export class SuccessPrizePanel extends Panel { ...@@ -28,8 +25,8 @@ export class SuccessPrizePanel extends Panel {
this.isShowing = true; this.isShowing = true;
this.anchor.set(375, 812); this.anchor.set(375, 812);
Tween.get(this) Tween.get(this)
.set({ scaleX: 0, scaleY: 0 }) .set({scaleX: 0, scaleY: 0})
.to({ scaleX: 1, scaleY: 1 }, 400, Ease.backOut) .to({scaleX: 1, scaleY: 1}, 400, Ease.backOut)
.call(() => { .call(() => {
this.isShowing = false; this.isShowing = false;
}); });
...@@ -37,62 +34,43 @@ export class SuccessPrizePanel extends Panel { ...@@ -37,62 +34,43 @@ export class SuccessPrizePanel extends Panel {
closeBtn: FYGE.Button; closeBtn: FYGE.Button;
tipsTex: FYGE.TextField; tipsTex: FYGE.TextField;
checkTex: FYGE.TextField;
againBtn: FYGE.Button; againBtn: FYGE.Button;
noPrizeAgainBtn: FYGE.Button; noPrizeAgainBtn: FYGE.Button;
goPrizeBtn: FYGE.Button; goPrizeBtn: FYGE.Button;
prizeImg: Sprite; prizeImg: Sprite;
prop: Container;
light1: Sprite;
light2: Sprite;
private starGroup: SuccessStarGroup = null; private starGroup: SuccessStarGroup = null;
initUi() { initUi() {
this.checkTex.text = `第\t${this.data.level}\t关`;
this.checkTex.textWidth = 750;
this.checkTex.x = 0;
this.checkTex.textAlign = TEXT_ALIGN.CENTER;
this.tipsTex.textWidth = 750; this.tipsTex.textWidth = 750;
this.tipsTex.x = 0; this.tipsTex.x = 0;
this.tipsTex.textAlign = TEXT_ALIGN.CENTER; this.tipsTex.textAlign = TEXT_ALIGN.CENTER;
this.starGroup = this.addChild(new SuccessStarGroup()); this.starGroup = this.addChild(new SuccessStarGroup());
this.starGroup.position.set(373, 678); this.starGroup.position.set(375, 648);
this.prizeImg.anchorTexture.x = 0.5; this.prizeImg.anchorTexture.x = 0.5;
this.prizeImg.x = 375; this.prizeImg.x = 375;
this.lightEffect();
this.starGroup.play(this.data.stars); this.starGroup.play(this.data.stars);
const propImg: Sprite = this.prop.getChildByName('img');
const propLabel: TextField = this.prop.getChildByName('label');
if (this.data.tool && this.data.tool.type) { if (this.data.tool && this.data.tool.type) {
this.againBtn.visible = false; this.againBtn.visible = false;
this.goPrizeBtn.visible = false; this.goPrizeBtn.visible = false;
this.prizeImg.visible = false; this.tipsTex.text = '闯关成功!获得奖励:';
this.tipsTex.text = '\t\t满星过关!'; this.prizeImg.scale.set(1.4, 1.4);
switch (this.data.tool.type) { switch (this.data.tool.type) {
case PropType.BOOMS: case PropType.BOOMS:
propImg.texture = RES.getRes('boomBtn.png'); this.prizeImg.texture = RES.getRes('boomBtn.png');
propImg.y += 5;
propImg.x += 15;
propLabel.text = '炸弹道具\tx1';
break; break;
case PropType.HAMMERS: case PropType.HAMMERS:
propImg.texture = RES.getRes('hammerBtn.png'); this.prizeImg.texture = RES.getRes('hammerBtn.png');
propImg.x += 10;
propLabel.text = '锤子道具\tx1';
break; break;
case PropType.STEPS: case PropType.STEPS:
propImg.texture = RES.getRes('stepBtn.png'); this.prizeImg.texture = RES.getRes('stepBtn.png');
propLabel.text = '步数道具\tx1';
break; break;
} }
} else if (this.data.prize && this.data.prize.image) { } else if (this.data.prize && this.data.prize.image) {
...@@ -104,23 +82,12 @@ export class SuccessPrizePanel extends Panel { ...@@ -104,23 +82,12 @@ export class SuccessPrizePanel extends Panel {
this.noPrizeAgainBtn.visible = false; this.noPrizeAgainBtn.visible = false;
} }
this.prop.visible = false;
this.prizeImg.texture = Texture.fromUrl(this.data.prize.image); this.prizeImg.texture = Texture.fromUrl(this.data.prize.image);
// this.tipsTex.text = '\t\t闯关成功!获得抽大奖机会!'; // this.tipsTex.text = '\t\t闯关成功!获得抽大奖机会!';
this.tipsTex.text = '\t闯关成功!有机会抽取如下奖品'; this.tipsTex.text = '\t闯关成功!有机会抽取如下奖品';
} }
} }
private lightEffect() {
Tween.get(this.light1, { loop: true })
.set({ anchorX: 219.5, anchorY: 219.5 })
.to({ rotation: 360 }, 12000);
Tween.get(this.light2, { loop: true })
.set({ anchorX: 219.5, anchorY: 219.5 })
.to({ rotation: -360 }, 12000);
}
start(data) { start(data) {
super.start(); super.start();
} }
...@@ -129,7 +96,7 @@ export class SuccessPrizePanel extends Panel { ...@@ -129,7 +96,7 @@ export class SuccessPrizePanel extends Panel {
* 挑战满星 * 挑战满星
*/ */
private again() { private again() {
changeScene(MapScene, { level: this.data.level }); changeScene(MapScene, {level: this.data.level});
super.hidePanel(); super.hidePanel();
} }
...@@ -140,7 +107,7 @@ export class SuccessPrizePanel extends Panel { ...@@ -140,7 +107,7 @@ export class SuccessPrizePanel extends Panel {
if (this.data.level == 120) { if (this.data.level == 120) {
changeScene(MapScene); changeScene(MapScene);
} else { } else {
changeScene(MapScene, { level: this.data.level + 1 }); changeScene(MapScene, {level: this.data.level + 1});
} }
super.hidePanel(); super.hidePanel();
} }
...@@ -148,7 +115,6 @@ export class SuccessPrizePanel extends Panel { ...@@ -148,7 +115,6 @@ export class SuccessPrizePanel extends Panel {
public goPrize() { public goPrize() {
// 去抽奖 // 去抽奖
changeScene(LotteryScene, { level: this.data.level })
super.hidePanel(); super.hidePanel();
} }
......
...@@ -10,6 +10,7 @@ import { GDispatcher } from "../Main"; ...@@ -10,6 +10,7 @@ import { GDispatcher } from "../Main";
import { G_EVENT } from "../common/G_EVENT"; import { G_EVENT } from "../common/G_EVENT";
import { RES } from "../../module/RES"; import { RES } from "../../module/RES";
import { showWaiting, hideWaiting, showToast, getCurrentScene } from "../../module/ctrls"; import { showWaiting, hideWaiting, showToast, getCurrentScene } from "../../module/ctrls";
//任务类型(member/invites/browseGoods/follow) //任务类型(member/invites/browseGoods/follow)
export enum TaskType { export enum TaskType {
member = "member", member = "member",
...@@ -36,7 +37,7 @@ interface TaskData { ...@@ -36,7 +37,7 @@ interface TaskData {
*/ */
todayCompleteTimes: number todayCompleteTimes: number
/** /**
* 需要完成次数 * 需要完成次数
*/ */
times: number times: number
/** /**
...@@ -58,39 +59,19 @@ export class TaskPanel extends Panel { ...@@ -58,39 +59,19 @@ export class TaskPanel extends Panel {
public showAni() { public showAni() {
if (this.isShowing) return; if (this.isShowing) return;
this.isShowing = true; this.isShowing = true;
let oriY = 1624 - this.height - layers.stageOffsetY - 580;
this.y = layers.stageHeight + this.height; this.y = layers.stageHeight + this.height;
Tween.get(this) Tween.get(this)
.to({ y: oriY }, 500, Ease.quartOut) .to({ y: 0 }, 500, Ease.quartOut)
.call(() => { .call(() => {
this.isShowing = false; this.isShowing = false;
}); });
} }
closeBtn: Button; closeBtn: Button;
taskBtn1: Button; // 浏览商品
taskBtn2: Button; // 邀请
taskBtn3: Button; // 关注
taskBtn4: Button; // 加入会员
[TaskType.browseGoods]: CusButton;
[TaskType.invites]: CusButton;
[TaskType.follow]: CusButton;
[TaskType.member]: CusButton;
initUi() { initUi() {
//移除了吧,只需要位置
this.removeChild(this.taskBtn1)
this.removeChild(this.taskBtn2)
this.removeChild(this.taskBtn3)
this.removeChild(this.taskBtn4);
//四个按钮,先默认状态,然后start里刷任务接口
var ps = [this.taskBtn1, this.taskBtn2, this.taskBtn3, this.taskBtn4];
[TaskType.browseGoods, TaskType.invites, TaskType.follow, TaskType.member].forEach((e, i) => {
this[e] = this.addChild(new CusButton(e))
this[e].position.copy(ps[i].position);
this[e].visible = false;
})
} }
start(data) { start(data) {
...@@ -99,34 +80,8 @@ export class TaskPanel extends Panel { ...@@ -99,34 +80,8 @@ export class TaskPanel extends Panel {
} }
public updateTask() { public updateTask() {
showWaiting(); // showWaiting();
sendTbNet(TbNetName.getTaskList, null,
(success, res) => {
hideWaiting();
if (!success) return;
var data: TaskData[] = res.data;
data.forEach((d) => {
this[d.taskType].visible = true;
//如果有入会链接
if (d.value) this[d.taskType].memberUrl = d.value;
//如果有待领取的
if (d.waitReceive) {
this[d.taskType].canGetStatus = true;
this[d.taskType].enabled = true;
}
//如果已全部完成
else if (d.todayCompleteTimes == d.times) {
this[d.taskType].canGetStatus = false;
this[d.taskType].enabled = false;
}
//去完成状态
else {
this[d.taskType].canGetStatus = false;
this[d.taskType].enabled = true;
}
})
}
);
} }
initEvents() { initEvents() {
...@@ -139,118 +94,3 @@ export class TaskPanel extends Panel { ...@@ -139,118 +94,3 @@ export class TaskPanel extends Panel {
GDispatcher.removeEventListener(G_EVENT.UPDATE_TASK, this.updateTask, this); GDispatcher.removeEventListener(G_EVENT.UPDATE_TASK, this.updateTask, this);
} }
} }
class CusButton extends Button {
private type: TaskType
private _canGetStatus: boolean;
get canGetStatus() {
return this._canGetStatus
}
set canGetStatus(value) {
this._canGetStatus = value;
var t: [FYGE.Texture, FYGE.Texture]
if (value) {//能领取时换图
t = [
RES.getRes("待领取.png"),
RES.getRes("待领取.png"),
]
} else {
t = [
RES.getRes("去完成.png"),
RES.getRes("去完成灰.png"),
]
}
this.changeTexture(t[0], t[0], t[1])
}
//外部自行赋值
memberUrl: string
constructor(type: TaskType) {
var t = [
RES.getRes("去完成.png"),
RES.getRes("去完成灰.png"),
]
super(t[0], t[0], t[1])
this.type = type;
//事件统一写吧
this.addEventListener(MouseEvent.CLICK, this.onClick, this)
}
onClick() {
if (this.canGetStatus) {//能领取,发接口
showWaiting();
sendTbNet(
TbNetName.receiveTaskRewards,
{ taskType: this.type },
(s, res) => {
hideWaiting();
if (s) {
//领取成功,TODO显示啥toast
showToast("领取成功");
//刷新任务列表
GDispatcher.dispatchEvent(G_EVENT.UPDATE_TASK);
//刷新体力
Tools.gameData.power = res.data.power;
getCurrentScene().updateScene()
}
}
)
} else {//发对应任务方法
//都弄个延时
Tools.btnDelay(this)
switch (this.type) {
case TaskType.follow:
GDispatcher.removeAllEventListenerByType(TbNetName.favorShop);
sendTbNet(TbNetName.favorShop, {},
(success, res) => {
if (!success) return;
//关注成功了,发完成接口,注意小程序那边就不用发接口了
sendTbNet(
TbNetName.completeTask,
{ taskType: TaskType.follow },
(success, res) => {
if (!success) return;
GDispatcher.dispatchEvent(G_EVENT.UPDATE_TASK);
}
);
}, true
);
break;
case TaskType.browseGoods:
sendTbNet(
TbNetName.navigateTo,
{ url: '/pages/browseProductList/browseProductList' },
() => { },
true
);
break;
case TaskType.invites:
sendTbNet(
TbNetName.showSharePanel,
{ openId: Tools.globalData.openId },//注意小程序那边处理参数
() => { },
true
);
break;
case TaskType.member:
sendTbNet(
TbNetName.navigateToOutside,
{ url: this.memberUrl },//下单页面路径待写
() => { },
true
);
break;
}
if (this.type == TaskType.browseGoods || this.type == TaskType.member) {
//都需要添加事件,回来时,派发事件刷任务接口
GDispatcher.once(G_EVENT.ON_SHOW, () => {
GDispatcher.dispatchEvent(G_EVENT.UPDATE_TASK)
}, this)
}
}
}
}
\ No newline at end of file
import { Panel } from "../../module/views/Panel";
import { PropType } from "../something/enum/PropType";
import { getTbData, TbNetName } from "../TaoBaoNet";
import { Tools } from "../Tools";
import { showWaiting, hideWaiting, getCurrentScene, showPanel, showToast } from "../../module/ctrls";
import { JoinPanel } from "./JoinPanel";
import { ExchangeSucPanel } from "./ExchangeSucPanel";
export class ToolsOutPanel extends Panel {
get groupNames() {
return ["ToolsOutPanel"]
}
get skinName() {
return "ToolsOutPanel"
}
get closeBtns() {
return [this.consideBtn, this.closeBtn]
}
consideBtn: FYGE.Button;
sureBtn: FYGE.Button;
closeBtn: FYGE.Button;
msgTxt: FYGE.TextField;
data: { type: PropType, showSucPanel: boolean }
initUi() {
// 文案居中
Tools.changeTextAlign(this.msgTxt, FYGE.TEXT_ALIGN.CENTER, 500)
}
start(data) {
super.start();
//文案按接口返回的来
this.msgTxt.text = "要消耗" +
getTbData(TbNetName.getActivityBaseInfoById).data.buyCredits[data.type] +
"积分兑换吗?"
}
initEvents() {
super.initEvents();
this.sureBtn.addEventListener(FYGE.MouseEvent.CLICK, async () => {
//购买道具
showWaiting();
var res = await Tools.exchange(this.data.type);
hideWaiting();
//如果是链接,弹出加入会员弹框
if (typeof res == "string") {
showPanel(JoinPanel, { url: res })
}
//成功了,关闭弹框,修改道具信息
else if (res) {
// showToast("兑换成功")
if (this.data.showSucPanel) showPanel(ExchangeSucPanel)
this.hidePanel();
getCurrentScene().updateScene()
}
}, this)
}
removeEvents() {
super.removeEvents();
}
}
import { Panel } from "../../module/views/Panel";
import TextField = FYGE.TextField;
import Button = FYGE.Button;
import Sprite = FYGE.Sprite;
import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import Texture = FYGE.Texture;
import MouseEvent = FYGE.MouseEvent;
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { showToast } from "../../module/ctrls";
import { Tool } from "../something/Tool";
import { Tools } from "../Tools";
import { RES } from "../../module/RES";
/**
* 处理微信渠道中奖信息,皮肤和资源用的PrizePanel
*/
export class WxPrizePanel extends Panel {
get groupNames() {
return ["PrizePanel"]
}
get skinName() {
return "PrizePanel"
}
protected get closeBtns(): any[] {
return [this.closeBtn, this.prizeBtn]
}
closeBtn: Button;
prizeTxt: TextField;
prizeImg: Sprite;
prizeBtn: Button;
data: {
"type": number,//6(锤子)7(炸弹)8(步数)9(体力)
"name": string,
"rewardNum": number
}
initUi() {
this.prizeTxt.textAlign = TEXT_ALIGN.CENTER;
this.prizeTxt.textWidth = 750;
this.prizeTxt.x = 0;
this.prizeTxt.text = `恭喜获得${this.data.name}`;
this.prizeImg.anchorTexture.x = 0.5;
this.prizeImg.width = this.prizeImg.height = 220;
this.prizeImg.x = 375;
this.prizeImg.texture = RES.getRes(
(() => {
var str = "aaaaaa.png"
switch (this.data.type) {
case 6://锤子
str = "hammerBtn.png"
break;
case 7://炸弹
str = "boomBtn.png"
break;
case 8://步数
str = "stepBtn.png"
break;
case 9://体力
str = "powerImg.png"
break;
}
return str
})()
);
}
hidePanel() {
super.hidePanel();
showToast("领取成功")
}
}
...@@ -9,7 +9,6 @@ import { layers } from "../../module/views/layers"; ...@@ -9,7 +9,6 @@ import { layers } from "../../module/views/layers";
import { GTool } from "../../module/tools/GTool"; import { GTool } from "../../module/tools/GTool";
import { Lottie } from "../Lottie"; import { Lottie } from "../Lottie";
import { loading_animal } from "../lotties/loading_animal"; import { loading_animal } from "../lotties/loading_animal";
import { LotteryScene } from "./LotteryScene";
export class LoadingScene extends Scene { export class LoadingScene extends Scene {
get groupNames() { get groupNames() {
...@@ -106,33 +105,19 @@ export class LoadingScene extends Scene { ...@@ -106,33 +105,19 @@ export class LoadingScene extends Scene {
this.dispatchEvent(FYGE.Event.PROGRESS, 0.2) this.dispatchEvent(FYGE.Event.PROGRESS, 0.2)
//获取app数据 //获取app数据
const {data} = await sendTbNet(TbNetName.getAppData); Tools.getAppData();
Tools.globalData = data;
this.dispatchEvent(FYGE.Event.PROGRESS, 0.3) this.dispatchEvent(FYGE.Event.PROGRESS, 0.3)
//询问读取权限,不阻止进程 //询问读取权限,不阻止进程
// Tools.checkPermission();//这个需要吗? // Tools.checkPermission();//这个需要吗?
//获取首页数据 //获取首页数据
var getIndexSuccesss = await Tools.getIndex()
//失败不进入 //失败不进入
if (!getIndexSuccesss) return;
this.dispatchEvent(FYGE.Event.PROGRESS, 0.3);
//赋值openId,取getIndex里的数据
Tools.globalData.openId = getTbData(TbNetName.getIndex).data.openId;
// 游戏基本信息 // 游戏基本信息
const baseInfo = await sendTbNet(TbNetName.getActivityBaseInfoById); await Tools.getBaseInfo();
Tools.baseInfo = baseInfo.data;
Tools.baseInfo.prizeLevels = [];
for (let k in Tools.baseInfo.levelPrize) {
Tools.baseInfo.prizeLevels.push(+k.split('_')[1]);
}
this.dispatchEvent(FYGE.Event.PROGRESS, 0.5); this.dispatchEvent(FYGE.Event.PROGRESS, 0.5);
//首次进入,地图页面需要引导
// if (Tools.gameData.isFristLogin) {
// }
//加载地图资源 //加载地图资源
// await Promise.all([ // await Promise.all([
// 'map', // 'map',
......
import { Scene } from "../../module/views/Scene";
import { RES } from "../../module/RES";
import { layers } from "../../module/views/layers";
import { Tools } from "../Tools";
import { showWaiting, wait, changeScene, hideWaiting, showPanel } from "../../module/ctrls";
import { sendTbNet, TbNetName } from "../TaoBaoNet";
import { GTool } from "../../module/tools/GTool";
import { MapScene } from "./map/MapScene";
import { PrizePanel } from "../panels/PrizePanel";
import { NoPrizePanel } from "../panels/NoPrizePanel";
/**
* 摇奖机弹框
*/
export class LotteryScene extends Scene {
get groupNames() { return ["lotteryScene"] }
lotScroll: LotteryScroll;
data: {
level: number,
}
initUi() {
//适配
this.y = -layers.stageOffsetY;
//背景
this.addChild(new FYGE.Sprite(RES.getRes("lotteryMachineBg.jpg")))
//计算下一关的关数
// let upLevel: number = 120;
// let dLevel: number = 120;
// Tools.baseInfo.prizeLevels.forEach((value, index) => {
// const d: number = value - this.data.level;
// if (this.data.level <= value && d >= 0 && d <= dLevel) {
// upLevel = value;
// dLevel = d + 1;
// }
// });
Tools.baseInfo.prizeLevels.sort((a, b) => {
return a - b
})
var index = Tools.baseInfo.prizeLevels.indexOf(this.data.level);
let upLevel = Tools.baseInfo.prizeLevels[index + 1]
//标题文案
this.addChild(Tools.getText(
this.data.level + "关抽奖奖励",
53.19,
"#ffffff",
FYGE.TEXT_ALIGN.CENTER,
488,
(750 - 488) / 2,
360
)).bold = true;
//下一次抽奖文案
this.addChild(Tools.getText(
upLevel ? "下一奖励关卡:" + upLevel + "关" : "",
32.54,
"#ffffff",
FYGE.TEXT_ALIGN.CENTER,
488,
(750 - 488) / 2,
420
))
//抽奖按钮
this.addChild(new FYGE.Button(RES.getRes("lotteryBtn.png")))
.addEventListener(FYGE.MouseEvent.CLICK, this.lottery, this)
.position.set((750 - RES.getRes("lotteryBtn.png").width) / 2, 797);
//返回按钮,回到地图页
this.addChild(new FYGE.Button(RES.getRes("lotteryReturnBtn.png")))
.addEventListener(FYGE.MouseEvent.CLICK, () => { changeScene(MapScene) }, this)
.position.set(0, 300)
//刷新奖品列表和摇奖列表
this.updatePrizes();
}
async updatePrizes() {
showWaiting();
const { data: prizeList } = await sendTbNet(TbNetName.getPrizesByLevel, { level: this.data.level });
//去掉type为5的谢谢参与
var list = prizeList.slice().filter((e) => { return e.type != 5 });
//滚动列表
var scroll = this.addChild(new FYGE.ScrollList(PrizeItem, 122, 140, 345, 152, false))
scroll.position.set(195, 1013);
scroll.updateData(list || [])
//摇奖部分
var p = [201, 620]
this.lotScroll = this.addChild(new LotteryScroll(list))
this.lotScroll.position.set(p[0], p[1]);
}
lottery() {
showWaiting()
sendTbNet(TbNetName.luckyDraw, { level: this.data.level })
.then((res) => {
hideWaiting();
//如果是失败
if (!res.success) return;
let id;//待考虑,谢谢参与要进哪?是否进列表,下面id不存在时当作无奖励,(如果谢谢参与不进列表)
if (res.data && res.data.prizeId) id = res.data.prizeId;
this.enableMouseEvt(false);
console.log(id)
this.lotScroll.lot(id, () => {
this.enableMouseEvt(true)
//无奖
if (!id || res.data.type == 5) {
showPanel(NoPrizePanel);
} else {
showPanel(PrizePanel, res.data)
}
// showPanel(id ? PrizePanel : NoPrizePanel, id ? res.data : null)
})
})
}
}
interface PrizeInt {
image: string,
name: string,
_id: string
}
class PrizeItem extends FYGE.Container implements FYGE.IScrollListItem {
private prizeImage: FYGE.Sprite;
private nameTxt: FYGE.TextField;
constructor() {
super();
this.addChild(new FYGE.Sprite(RES.getRes("prizeItemBg.png")))
this.prizeImage = this.addChild(new FYGE.Sprite());
this.prizeImage.width = this.prizeImage.height = 101;
this.prizeImage.position.set(4, 4);
//考虑需不需要加,如果到时性能不行再去掉
var mask = this.addChild(new FYGE.Shape())
mask.beginFill(0);
mask.drawRoundedRect(4, 4, 101, 101, 10);
mask.endFill();
this.prizeImage.mask = mask
//名字
this.nameTxt = this.addChild(Tools.getText(
"",
19.23,
"#317f7f",
FYGE.TEXT_ALIGN.CENTER,
109,
0, 112
))
}
initData(id: number, data: PrizeInt) {
if (id < 0 || !data) return;
if (data.image) this.prizeImage.texture = FYGE.Texture.from(data.image);
this.nameTxt.text = data.name;
}
id;
data: number;
}
class LotteryItem extends FYGE.Container {
private showImage: FYGE.Sprite;
id: string
constructor(data: PrizeInt) {
super();
this.id = data._id;
this.addChild(new FYGE.Sprite(RES.getRes("lotteryItemBg.png")));
this.showImage = this.addChild(new FYGE.Sprite(FYGE.Texture.from(data.image)));
this.showImage.width = this.showImage.height = 88;
this.showImage.position.set((103 - 88) / 2, 6);
var mask = this.addChild(new FYGE.Shape())
mask.beginFill(0);
mask.drawRoundedRect((103 - 88) / 2, 6, 88, 88, 10);
mask.endFill();
this.showImage.mask = mask
}
reset(data: PrizeInt) {
this.showImage.texture = FYGE.Texture.from(data.image);
this.id = data._id;
}
}
const HEIGHT = 123;
/**
* 滚动条
* 功能可以滚动到指定的图
*/
class LotteryScrollItem extends FYGE.Container {
/**
* 当前childre的中位索引
*/
get currentIndex(): number {
var a = 1 - this.cusP;
var l = this.children.length
return a < 0 ? a % l + l : a % l
};
private cusP: number
constructor(datas: PrizeInt[]) {
super();
datas.forEach((d) => {
this.addChild(new LotteryItem(d))
})
this.cusP = 0;
this.updatePosition();
//修改位置
this.addEventListener(FYGE.Event.ENTER_FRAME, this.updatePosition, this)
}
scrollTo(id: string, callback: () => void) {
//找出目标图
let child, curIndex;
for (var i = 0; i < this.children.length; i++) {
if (this.children[i].id == id) {
child = this.children[i];
curIndex = i;
break
}
}
var delta = this.currentIndex - curIndex;
if (delta < 0) delta += this.children.length;
//目标图的位置必须是,多加几圈
var cusP = this.cusP + delta + 10 * this.children.length;
FYGE.Tween.get(this)
.to({ cusP }, 5000, FYGE.Ease.quadInOut)
.call(() => {
callback && callback();
})
}
reset() {
}
updatePosition() {
this.children.forEach((c: LotteryItem, j) => {
c.y = ((this.cusP + j) % this.children.length) * HEIGHT - HEIGHT;
//超过一定距离,移到上面
if (c.y > HEIGHT * 1.5) {
c.y = c.y - this.children.length * HEIGHT
}
})
}
// 0 0- 10 21 1
// 1 00 11 2- 0
// 2 01 1- 20 2
// 3 0- 10 21 1
destroy() {
FYGE.Tween.removeTweens(this);
super.destroy()
}
}
/**
* 暂时固定3列,宽高
*/
class LotteryScroll extends FYGE.Container {
ids: string[]
scrollItems: LotteryScrollItem[];
constructor(datas: PrizeInt[]) {
super();
this.scrollItems = []
for (var i = 0; i < 3; i++) {
var s = this.addChild(new LotteryScrollItem(GTool.disturbArr(datas.slice())))
s.position.set(116 * i, 0);
this.scrollItems.push(s)
}
this.ids = [];
datas.forEach((d) => { this.ids.push(d._id) });
var h = -50
//遮罩
var mask = this.addChild(new FYGE.Shape())
mask.beginFill(0)
mask.drawRect(0, h + 3, 350, 195 - 5)
mask.endFill();
this.mask = mask;
//蒙层
this.addChild(new FYGE.Sprite(RES.getRes("shadowMask.png")))
.position.set(0, h)
}
lot(id?: string, callback?: () => void) {
//有id且在中奖列表里
if (id && this.ids.indexOf(id) != -1) {
//确保得是ids里的id。否则无效
// if (this.ids.indexOf(id) == -1) {
// console.error("中奖id不存在")
// return;
// }
let count = 0;
let countAll = this.scrollItems.length;
this.scrollItems.forEach((c: LotteryScrollItem, i) => {
wait(() => {
c.scrollTo(id, () => {
if (++count == countAll && callback) callback();
})
}, 400 * i)
})
} else {
//保证几个id不能一致
var ids = [
GTool.randomT(this.ids),
GTool.randomT(this.ids),
];
//如果都相同
// if(!ids.some(function (value, index) { return value !== ids[0];})){
// ids.push()
// }
//才两个,直接判断
ids[0] === ids[1] ? ids.push(
GTool.randomT((() => {
var arr = this.ids.slice();
arr.splice(this.ids.indexOf(ids[0]), 1)
return arr
})())
) : ids.push(GTool.randomT(this.ids));
// console.log(ids)
let count = 0;
let countAll = this.scrollItems.length;
this.scrollItems.forEach((c: LotteryScrollItem, i) => {
wait(() => {
c.scrollTo(ids[i], () => {
if (++count == countAll && callback) callback();
})
}, 400 * i)
})
}
}
}
\ No newline at end of file
...@@ -54,7 +54,6 @@ import { PropType } from '../something/enum/PropType'; ...@@ -54,7 +54,6 @@ import { PropType } from '../something/enum/PropType';
import { RES } from '../../module/RES'; import { RES } from '../../module/RES';
import { showToast, showWaiting, showPanel, hideWaiting, wait, changeScene } from '../../module/ctrls'; import { showToast, showWaiting, showPanel, hideWaiting, wait, changeScene } from '../../module/ctrls';
import { layers } from '../../module/views/layers'; import { layers } from '../../module/views/layers';
import { ToolsOutPanel } from '../panels/ToolsOutPanel';
import { Lottie } from '../Lottie'; import { Lottie } from '../Lottie';
import { GameToast } from '../something/uis/GameToast'; import { GameToast } from '../something/uis/GameToast';
...@@ -319,10 +318,10 @@ export class PlayScene extends Scene { ...@@ -319,10 +318,10 @@ export class PlayScene extends Scene {
} else { } else {
this.enableMouseEvt(true); this.enableMouseEvt(true);
//首次送道具,的动画先出,然后再出引导 //首次送道具,的动画先出,然后再出引导
if (this.chapter == 1 && Tools.gameData.isFristLogin) { if (this.chapter == 1 && Tools.baseInfo.isFristLogin) {
this.addChild(new FirstPropGift()) this.addChild(new FirstPropGift())
.once(FYGE.MouseEvent.CLICK, (e: FYGE.MouseEvent) => { .once(FYGE.MouseEvent.CLICK, (e: FYGE.MouseEvent) => {
Tools.gameData.isFristLogin = false; Tools.baseInfo.isFristLogin = false;
//移除自己 //移除自己
this.removeChild(e.target) this.removeChild(e.target)
//游戏引导 //游戏引导
...@@ -801,9 +800,9 @@ export class PlayScene extends Scene { ...@@ -801,9 +800,9 @@ export class PlayScene extends Scene {
* 绝对别修改,其他地方有调用的 * 绝对别修改,其他地方有调用的
*/ */
updateScene() { updateScene() {
this.propBtnCon.boomCount = Tools.gameData.tools.BOOMS; this.propBtnCon.boomCount = Tools.propInfo.booms;
this.propBtnCon.hammerCount = Tools.gameData.tools.HAMMERS; this.propBtnCon.hammerCount = Tools.propInfo.hammers;
this.propBtnCon.stepCount = Tools.gameData.tools.STEPS; this.propBtnCon.stepCount = Tools.propInfo.steps;
} }
//侦听事件 //侦听事件
...@@ -893,19 +892,19 @@ export class PlayScene extends Scene { ...@@ -893,19 +892,19 @@ export class PlayScene extends Scene {
onTap_boomBtn() { onTap_boomBtn() {
this.propBtnCon.boomCount ? this.propBtnCon.boomCount ?
this.useProp(PropType.BOOMS) : this.useProp(PropType.BOOMS) :
showPanel(ToolsOutPanel, {type: PropType.BOOMS, showSucPanel: true});//注意弹框逻辑,购买完后要调用updateScene showToast('道具不足');
} }
onTap_hammerBtn() { onTap_hammerBtn() {
this.propBtnCon.hammerCount ? this.propBtnCon.hammerCount ?
this.useProp(PropType.HAMMERS) : this.useProp(PropType.HAMMERS) :
showPanel(ToolsOutPanel, {type: PropType.HAMMERS, showSucPanel: true});//注意弹框逻辑,购买完后要调用updateScene showToast('道具不足');
} }
onTap_stepBtn() { onTap_stepBtn() {
this.propBtnCon.stepCount ? this.propBtnCon.stepCount ?
this.useProp(PropType.STEPS) : this.useProp(PropType.STEPS) :
showPanel(ToolsOutPanel, {type: PropType.STEPS, showSucPanel: true});//注意弹框逻辑,购买完后要调用updateScene showToast('道具不足');
} }
//使用道具逻辑 //使用道具逻辑
...@@ -1879,8 +1878,8 @@ export class PlayScene extends Scene { ...@@ -1879,8 +1878,8 @@ export class PlayScene extends Scene {
this.effectContinuityTimes = 0; this.effectContinuityTimes = 0;
//判断步数是否为0; //判断步数是否为0;
if (this.steps == 0) { if (this.steps == 0) {
//还未提示过加步数 //还未提示过加步数,并且有道具
if (!this.addedStepWarning) { if (!this.addedStepWarning && !!Tools.propInfo.steps) {
this.addedStepWarning = true; this.addedStepWarning = true;
//没步数弹框 //没步数弹框
showPanel(NoStepPanel, { showPanel(NoStepPanel, {
......
...@@ -8,11 +8,8 @@ import { Tools } from "../../Tools"; ...@@ -8,11 +8,8 @@ import { Tools } from "../../Tools";
import TEXT_ALIGN = FYGE.TEXT_ALIGN; import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import Point = FYGE.Point; import Point = FYGE.Point;
import FrameAni = FYGE.FrameAni;
import Tween = FYGE.Tween; import Tween = FYGE.Tween;
import { Panel } from "../../../module/views/Panel";
import { showPanel } from "../../../module/ctrls"; import { showPanel } from "../../../module/ctrls";
import { StartPanel } from "../../panels/StartPanel";
import { StartPanelPrize } from "../../panels/StartPanelPrize"; import { StartPanelPrize } from "../../panels/StartPanelPrize";
export enum CHECK_TYPE { export enum CHECK_TYPE {
...@@ -26,14 +23,12 @@ export default class CheckBtn extends Container { ...@@ -26,14 +23,12 @@ export default class CheckBtn extends Container {
level: number, level: number,
scores: number, scores: number,
stars: number, stars: number,
isPrizeLevel: boolean,
isVisitSuccess: boolean isVisitSuccess: boolean
isPlayed: boolean, isPlayed: boolean,
} = { } = {
level: 1, level: 1,
scores: 0, scores: 0,
stars: 0, stars: 0,
isPrizeLevel: false,
isVisitSuccess: false, isVisitSuccess: false,
isPlayed: false, isPlayed: false,
}; };
...@@ -45,9 +40,6 @@ export default class CheckBtn extends Container { ...@@ -45,9 +40,6 @@ export default class CheckBtn extends Container {
private star: CheckStar[] = null; private star: CheckStar[] = null;
private prizeAnim: FrameAni = null;
private curAnim: FrameAni = null;
private checkNum: number = null; private checkNum: number = null;
private checkCurEffect: CheckCurEffect = null; private checkCurEffect: CheckCurEffect = null;
...@@ -96,21 +88,6 @@ export default class CheckBtn extends Container { ...@@ -96,21 +88,6 @@ export default class CheckBtn extends Container {
this.btn.enabled = enabled; this.btn.enabled = enabled;
this.star.forEach(v => v.visible = enabled); this.star.forEach(v => v.visible = enabled);
this.checkLabel.visible = enabled; this.checkLabel.visible = enabled;
if (!enabled && this._isPrize) {
!this.prizeAnim.parent && this.addChild(this.prizeAnim);
}
}
// 是不是奖励关卡
private _isPrize: boolean = false;
public set isPrize(isPrize: boolean) {
if (isPrize == this._isPrize) return;
this._isPrize = isPrize;
if (this._isPrize && !this._enabled) {
!this.prizeAnim.parent && this.addChild(this.prizeAnim);
} else {
this.prizeAnim.parent && this.prizeAnim.parent.removeChild(this.prizeAnim);
}
} }
// 按钮类型 // 按钮类型
...@@ -154,20 +131,6 @@ export default class CheckBtn extends Container { ...@@ -154,20 +131,6 @@ export default class CheckBtn extends Container {
constructor(data) { constructor(data) {
super(); super();
this.initUi(data); this.initUi(data);
this.initEffect();
}
private initEffect() {
const textures: Texture[] = [];
for (let i = 0; i < 17; i++) {
textures.push(RES.getRes(`prize_check_${i}.png`));
}
for (let i = 17; i < 60; i++) {
textures.push(RES.getRes('prize_check_0.png'));
}
this.prizeAnim = new FrameAni(textures);
this.prizeAnim.play(-1);
this.prizeAnim.position.set(54, 54);
} }
protected initUi(data) { protected initUi(data) {
...@@ -209,10 +172,7 @@ export default class CheckBtn extends Container { ...@@ -209,10 +172,7 @@ export default class CheckBtn extends Container {
public clickStart() { public clickStart() {
console.log(`关卡:${this.checkNum}`); console.log(`关卡:${this.checkNum}`);
console.log(this.checkData); showPanel(StartPanelPrize, this.checkData)
this._isPrize
? showPanel(StartPanelPrize, this.checkData)
: showPanel(StartPanel, this.checkData);
} }
} }
...@@ -270,7 +230,6 @@ class CheckCurEffect extends Container { ...@@ -270,7 +230,6 @@ class CheckCurEffect extends Container {
Tween.get(this.light1, {loop: true}) Tween.get(this.light1, {loop: true})
.set({alpha: 1}) .set({alpha: 1})
.wait(700) .wait(700)
// .to({alpha: 1}, 700)
.to({alpha: 0}, 600) .to({alpha: 0}, 600)
.wait(700) .wait(700)
......
...@@ -13,12 +13,8 @@ import Sprite = FYGE.Sprite; ...@@ -13,12 +13,8 @@ import Sprite = FYGE.Sprite;
import Texture = FYGE.Texture; import Texture = FYGE.Texture;
import Tween = FYGE.Tween; import Tween = FYGE.Tween;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
import { showPanel, showToast } from "../../../module/ctrls"; import { showPanel } from "../../../module/ctrls";
import { FreePowerPanel } from "../../panels/FreePowerPanel"; import { FreePowerPanel } from "../../panels/FreePowerPanel";
import { PrizePanel } from "../../panels/PrizePanel";
import { GTool } from "../../../module/tools/GTool";
import { NoPrizePanel } from "../../panels/NoPrizePanel";
import { WxPrizePanel } from "../../panels/WxPrizePanel";
export class MapScene extends Scene { export class MapScene extends Scene {
private mapContainer: Container = null; private mapContainer: Container = null;
...@@ -56,56 +52,26 @@ export class MapScene extends Scene { ...@@ -56,56 +52,26 @@ export class MapScene extends Scene {
this.initMap(); this.initMap();
this.updateMapCheck(); this.updateMapCheck();
if (Tools.gameData.loginAddPower && !Tools.gameData.isFristLogin) { if (Tools.baseInfo.loginAddPower && !Tools.baseInfo.isFristLogin) {
showPanel(FreePowerPanel); showPanel(FreePowerPanel);
Tools.gameData.loginAddPower = false; Tools.baseInfo.loginAddPower = false;
} }
let openPrize = GTool.readCache('openPrize'); // showPanel(FailedPanel);
if (Tools.gameData.topAward && Tools.gameData.topAward.openPrizeStatus && openPrize !== 'true') { // 开奖了,并且没弹过
GTool.writeCache('openPrize', 'true');
if (Tools.gameData.topAward.prize && Tools.gameData.topAward.prize._id) { // 有奖
showPanel(PrizePanel, JSON.parse(JSON.stringify(Tools.gameData.topAward.prize)));
} else { // 没奖
// showPanel(NoPrizePanel);
}
Tools.gameData.topAward = null;
}
// if (Tools.gameData.topAward && Tools.gameData.topAward.prize._id && openPrize !== 'true') {
// GTool.writeCache('openPrize', 'true');
// showPanel(PrizePanel, JSON.parse(JSON.stringify(Tools.gameData.topAward)));
// Tools.gameData.topAward = null;
// }
//微信渠道抽奖
if (Tools.gameData.wxOriginPrize) {
//有奖品
if (
Tools.gameData.wxOriginPrize.type &&//类型存在
Tools.gameData.wxOriginPrize.type != 5 //不为谢谢参与
) {
showPanel(WxPrizePanel, Tools.gameData.wxOriginPrize)
}
//超出限制了
else if (Tools.gameData.wxOriginPrize.defaultMsg) {
showToast(Tools.gameData.wxOriginPrize.defaultMsg)
}
//置空数据
Tools.gameData.wxOriginPrize = null;
}
} }
private updateMapCheck() { private updateMapCheck() {
if (this.data && this.data.from == 'loading') { if (this.data && this.data.from == 'loading') {
this.uiLayer = this.addChild(new MapUI()); this.uiLayer = this.addChild(new MapUI());
this.initMapByData(Tools.gameData); this.initMapByData();
if (Tools.gameData.isFristLogin) { if (Tools.baseInfo.isFristLogin) {
this.initGuide(); this.initGuide();
} }
} else { } else {
Tools.getGameInfo().then((success) => { Tools.getBaseInfo().then((success) => {
if (success) {//不考虑失败的情况 if (success) {//不考虑失败的情况
this.uiLayer = this.addChild(new MapUI()); this.uiLayer = this.addChild(new MapUI());
this.initMapByData(Tools.gameData); this.initMapByData();
} }
}); });
} }
...@@ -160,8 +126,8 @@ export class MapScene extends Scene { ...@@ -160,8 +126,8 @@ export class MapScene extends Scene {
} }
private initMapByData(data) { private initMapByData(data = Tools.baseInfo) {
this.uiLayer.energyBox.count = data.power; this.uiLayer.energyBox.count = Tools.propInfo.power;
const currentLevel = data.currentLevel; const currentLevel = data.currentLevel;
...@@ -187,15 +153,10 @@ export class MapScene extends Scene { ...@@ -187,15 +153,10 @@ export class MapScene extends Scene {
} }
// 闯关记录里有的 // 闯关记录里有的
data.visitors.forEach((v) => { data.records.forEach((v) => {
MapScene.checkArr[v.level].data = v; MapScene.checkArr[v.level].data = v;
}); });
// 奖励关卡
Tools.baseInfo.prizeLevels.forEach((v) => {
MapScene.checkArr[v].isPrize = true;
});
if (this.data && this.data.level) { if (this.data && this.data.level) {
this.scrollToCheck(this.data.level); this.scrollToCheck(this.data.level);
MapScene.checkArr[this.data.level].clickStart(); MapScene.checkArr[this.data.level].clickStart();
...@@ -213,11 +174,13 @@ export class MapScene extends Scene { ...@@ -213,11 +174,13 @@ export class MapScene extends Scene {
}; };
} }
const topData = arr.splice(118, 2); // 得到顶部的数据 const topData = arr.splice(118, 2); // 得到顶部的数据
const bottomData = arr.splice(0, 8); // 得到尾部的数据 const bottomData = arr.splice(0, 8); // 得到尾部的数据
const midData = arr; // 剩下的是中间的数据 const midData = arr; // 剩下的是中间的数据
let maxHeight = MapTop.HEIGHT; let maxHeight = MapTop.HEIGHT;
this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
for (let i = midData.length / 10 - 1; i >= 0; i--) { for (let i = midData.length / 10 - 1; i >= 0; i--) {
const data = midData.splice(i * 10, 10); const data = midData.splice(i * 10, 10);
...@@ -232,8 +195,6 @@ export class MapScene extends Scene { ...@@ -232,8 +195,6 @@ export class MapScene extends Scene {
bottom.y = maxHeight; bottom.y = maxHeight;
maxHeight += MapBottom.HEIGHT; maxHeight += MapBottom.HEIGHT;
this.mapContainer.addChild(new MapTop(topData)); // 最后加,因为有个层级问题
this.scrollPage.maxDistance = maxHeight; this.scrollPage.maxDistance = maxHeight;
this.scrollPage.scrollTo(maxHeight, 0); this.scrollPage.scrollTo(maxHeight, 0);
...@@ -266,11 +227,11 @@ export class MapScene extends Scene { ...@@ -266,11 +227,11 @@ export class MapScene extends Scene {
// isVisitSuccess: true, // isVisitSuccess: true,
// isPrizeLevel: false, // isPrizeLevel: false,
// // tool: { // // tool: {
// // type: 'HAMMERS', // // type: 'hammers',
// // }, // // },
// prize: { // prize: {
// image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png', // image: 'https://img.alicdn.com/imgextra/i1/2275046294/O1CN01xTeKMI1wMhRux48Y6_!!2275046294-2-miniprogram.png',
// }] // }
// }); // });
} }
......
...@@ -9,7 +9,7 @@ export default class MapTop extends MapPart { ...@@ -9,7 +9,7 @@ export default class MapTop extends MapPart {
protected totalCount = 2; protected totalCount = 2;
public btnPos = [ public btnPos = [
[207, 418], [207, 407],
[149, 282], [149, 282],
]; ];
......
import Container = FYGE.Container; import Container = FYGE.Container;
import Button = FYGE.Button; import Button = FYGE.Button;
import TextField = FYGE.TextField; import TextField = FYGE.TextField;
import Sprite = FYGE.Sprite;
import TEXT_ALIGN = FYGE.TEXT_ALIGN; import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import { RES } from "../../../module/RES"; import { RES } from "../../../module/RES";
import { Tools } from "../../Tools"; import { Tools } from "../../Tools";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import { showPanel, changeScene, showToast } from "../../../module/ctrls"; import { showPanel } from "../../../module/ctrls";
import { RulePanel } from "../../panels/RulePanel"; import { RulePanel } from "../../panels/RulePanel";
import { BuyPowerPanel } from "../../panels/BuyPowerPanel";
import { TaskPanel } from "../../panels/TaskPanel"; import { TaskPanel } from "../../panels/TaskPanel";
import { getTbData, sendTbNet, TbNetName } from "../../TaoBaoNet"; import { sendTbNet, TbNetName } from "../../TaoBaoNet";
import Texture = FYGE.Texture;
import { LotteryScene } from "../LotteryScene";
import { GDispatcher } from "../../Main";
import { G_EVENT } from "../../common/G_EVENT";
import Tween = FYGE.Tween;
import { layers } from "../../../module/views/layers";
import { LoopMsg } from "./LoopMsg";
export default class MapUI extends Container { export default class MapUI extends Container {
public energyBox: EnergyBox = null; public energyBox: EnergyBox = null;
public creditsBox: CreditsBox = null;
private prizeBox: PrizeBox = null;
private myPrizeBtn: Button = null; private myPrizeBtn: Button = null;
private ruleBtn: Button = null; private ruleBtn: Button = null;
...@@ -39,14 +28,12 @@ export default class MapUI extends Container { ...@@ -39,14 +28,12 @@ export default class MapUI extends Container {
private initEvent() { private initEvent() {
this.ruleBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this); this.ruleBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.myPrizeBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this); this.myPrizeBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.prizeBox.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.taskBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this); this.taskBtn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
} }
private removeEvent() { private removeEvent() {
this.ruleBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this); this.ruleBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.myPrizeBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this); this.myPrizeBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.prizeBox.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
this.taskBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this); this.taskBtn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
} }
...@@ -60,18 +47,13 @@ export default class MapUI extends Container { ...@@ -60,18 +47,13 @@ export default class MapUI extends Container {
console.log('我的奖品'); console.log('我的奖品');
sendTbNet( sendTbNet(
TbNetName.navigateTo, TbNetName.navigateTo,
{ url: '/pages/myPrize/myPrize' }, {url: '/pages/myPrize/myPrize'},
() => { () => {
}, },
true true
); );
break; break;
case this.prizeBox:
/// TODO 奖励盒子,有条件的吧,放在类里了prizeBox
console.log('奖励盒子');
break;
case this.taskBtn: case this.taskBtn:
console.log('任务'); console.log('任务');
showPanel(TaskPanel); showPanel(TaskPanel);
...@@ -100,90 +82,13 @@ export default class MapUI extends Container { ...@@ -100,90 +82,13 @@ export default class MapUI extends Container {
this.taskBtn.position.set(19, 280); this.taskBtn.position.set(19, 280);
this.energyBox = this.addChild(new EnergyBox({})); this.energyBox = this.addChild(new EnergyBox({}));
this.creditsBox = this.addChild(new CreditsBox({}));
this.prizeBox = this.addChild(new PrizeBox({}));
//显示120关通关人数
sendTbNet(TbNetName.getAppointCount).then((res) => {
if (!res.success) return;
this.addChild(new class extends Sprite {
constructor() {
super(RES.getRes("appointCountBg.png"));
this.addChild(Tools.getText(
`${res.data}人已解锁120关`,
26,
"#ffffff",
TEXT_ALIGN.CENTER, 259,
0, 9
))
}
})
.position.set(this.prizeBox.x - 51, this.prizeBox.y + 202 + 40)
})
//轮播的中奖
this.addChild(new LoopMsg()).position.set(0, layers.stageHeight - 100 - 86)
//是否显示下一次领取免费体力的icon;
var remindIcon = this.addChild(new RemindIcon());
remindIcon.position.set(560, layers.stageHeight - 166 - 82);
if (!Tools.gameData.loginAddPower) {
remindIcon.visible = true;
} else {
remindIcon.visible = false;
//不需要考虑移除,因为这种情况,免费体力弹框必出,关闭后必触发
GDispatcher.once("showRemindIcon", () => { remindIcon.visible = true; }, this)
}
} }
public updateUI() { public updateUI() {
this.creditsBox.updateCredits(); this.energyBox.count = Tools.propInfo.power;
this.energyBox.count = Tools.gameData.power;
} }
} }
/**
* 提示下次领奖的时间倒计时
*/
class RemindIcon extends Sprite {
constructor() {
super(RES.getRes("remindIcon.png"));
//文案
var txt = this.addChild(Tools.getText(
"",
24,
"#ffffff",
TEXT_ALIGN.CENTER,
130,
(179 - 130) / 2, 122
))
var zeroTime = new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1;
this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
var now = Date.now();
if (now > zeroTime) {
this.visible = false;
return
}
//转时分秒
txt.text = this.getShiFenMiaoByTimeStamp(zeroTime - now);
}, this)
}
/**
* 转换成 1:2:33
* @param timeStamp
*/
getShiFenMiaoByTimeStamp(timeStamp: number): string {
var hours: any = Math.floor((timeStamp % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes: any = Math.floor((timeStamp % (1000 * 60 * 60)) / (1000 * 60));
var seconds: any = Math.floor((timeStamp % (1000 * 60)) / 1000);
hours = hours < 10 ? ('0' + hours) : hours;
minutes = minutes < 10 ? ('0' + minutes) : minutes;
seconds = seconds < 10 /*&& seconds >= 1*/ ? ('0' + seconds) : seconds;
return hours + ":" + minutes + ":" + seconds;
}
}
/** /**
* 能量 * 能量
*/ */
...@@ -208,7 +113,6 @@ class EnergyBox extends Container { ...@@ -208,7 +113,6 @@ class EnergyBox extends Container {
private clickAdd() { private clickAdd() {
console.log('增加按钮'); console.log('增加按钮');
showPanel(BuyPowerPanel);
} }
private initUi(data) { private initUi(data) {
...@@ -230,201 +134,3 @@ class EnergyBox extends Container { ...@@ -230,201 +134,3 @@ class EnergyBox extends Container {
this.addBtn.removeEventListener(MouseEvent.CLICK, this.clickAdd, this); this.addBtn.removeEventListener(MouseEvent.CLICK, this.clickAdd, this);
} }
} }
/**
* 积分
*/
class CreditsBox extends Container {
private countLabel: TextField = null;
private _count = 0;
public set count(count: number) {
this._count = count;
this.countLabel.text = `积分:${count}`;
}
constructor(data) {
super();
this.initUi(data);
}
private async initUi(data) {
this.position.set(544, 184);
this.addChild(Tools.getSprite('map_creditsBg.png'));
this.countLabel = this.addChild(Tools.getText(
'积分:0', 20, '#ffffff',
TEXT_ALIGN.CENTER, 105, 58, 21
));
await this.updateCredits();
GDispatcher.addEventListener(G_EVENT.ON_SHOW, this.updateCredits, this);
}
public async updateCredits() {
const creditsData = await sendTbNet(TbNetName.queryCredits, {}, () => {
}, true);
let jfLabel = '积分:0';
if (creditsData.success && creditsData.data && creditsData.data.credits) {
jfLabel = `积分:${creditsData.data.credits}`;
}
this.countLabel.text = jfLabel;
}
public destroy() {
super.destroy();
GDispatcher.removeEventListener(G_EVENT.ON_SHOW, this.updateCredits, this);
}
}
/**
* 连续闯关礼盒
*/
// @ts-ignore
class PrizeBox extends Button {
private checkTip: TextField = null;
private tip: TextField = null;
private prizeImg: Sprite = null;
public initButton() {
let s: any = this;
s.mouseChildren = false;
s.addEventListener("onMouseDown", s._mouseEvent, s);
s.addEventListener("onMouseUp", s._mouseEvent, s);
s.addEventListener("onMouseOut", s._mouseEvent, s);
s.texture = s.textureUp;
}
/**
* @method _mouseEvent
* @param e
* @private
*/
protected _mouseEvent(e: any): void {
let s = this;
// @ts-ignore
if (!s._clicked) {
if (e.type == MouseEvent.MOUSE_DOWN) {
//如果是点下
// @ts-ignore
if (s.textureDown) {
// @ts-ignore
s.texture = s.textureDown
} else {
this["frames"] = null
// s.scale.x = s.scale.y = 0.9
Tween.removeTweens(this);
Tween.get(this).to({ scaleX: 1, scaleY: 1 }, 50);
}
} else {
// @ts-ignore
if (s.textureDown) {
// @ts-ignore
s.texture = s.textureUp
} else {
this["frames"] = this["framesOri"]
// s.scale.x = s.scale.y = 1
Tween.removeTweens(this);
Tween.get(this).to({ scaleX: 1.2, scaleY: 1.2 }, 50);
}
}
}
};
constructor(data) {
super(RES.getRes('map_prizeBox.png'));
this.initUi(data);
this.initEvent();
}
private initUi(data) {
this.position.set(553, 289);
// this.position.set(503, 289);
this.scale.set(1.2, 1.2);
this.checkTip = this.addChild(Tools.getText(
'再闯XXX关', 18,
'#ffffff', TEXT_ALIGN.CENTER,
158, 0, 68
));
this.tip = this.addChild(Tools.getText(
'参与红包抽奖\n赢XXX优惠券', 17,
'#ec5a5a', TEXT_ALIGN.CENTER,
158, 0, 116
));
this.tip.lineSpacing = 0;
this.prizeImg = this.addChild(Tools.getSprite('map_star_enable.png', 39, 150));
// 490*180
this.prizeImg.y -= 40;
this.prizeImg.width = 204;
this.prizeImg.height = 80;
this.prizeImg.x = (this.width - 98) / 2 - 70;
const prizes = Tools.gameData.prizes;
if (prizes.length <= 0) {
const curLevel: number = Tools.gameData.currentLevel;
let upLevel: number = 120;
let dLevel: number = 120;
Tools.baseInfo.prizeLevels.forEach((value, index) => {
const d: number = value - curLevel;
if (curLevel <= value && d >= 0 && d <= dLevel) {
upLevel = value;
dLevel = d + 1;
}
});
console.log(upLevel, dLevel);
this.checkTip.text = `再闯${dLevel}关可抽`;
// this.tip.text = '有机会获得';
this.tip.text = '';
this.prizeImg.texture = Texture.fromUrl(Tools.baseInfo.levelPrize[`level_${upLevel}`]);
this.addEventListener(FYGE.MouseEvent.CLICK, () => {
//有需要,到时再改
Tools.btnDelay(this);
showToast(`再闯${dLevel}关才可以抽奖哦`);
}, this)
} else if (prizes.length == 1 && +prizes[0].level == 120) {
// this.checkTip.text = `等待开奖`;
const index = getTbData(TbNetName.getIndex).data
this.checkTip.text = index.topAward.openPrizeStatus
? '已开奖' : '8月31日9点开奖';
this.checkTip.size = 18;
// ? '已开奖' : '等待开奖';
// this.tip.text = `8月31日10点`;
this.tip.text = ``;
this.prizeImg.texture = Texture.fromUrl(Tools.baseInfo.levelPrize['level_120']);
this.addEventListener(FYGE.MouseEvent.CLICK, () => {
//有需要,到时再改
Tools.btnDelay(this);
showToast(index.topAward.openPrizeStatus
? '已开奖' : '8月31日9点开奖')
}, this)
} else {
let lowerLevel = 120;
prizes.forEach((value) => {
if (value.level < lowerLevel) {
lowerLevel = value.level;
}
});
this.checkTip.text = `点击抽奖`;
// this.tip.text = `抽取${lowerLevel}关奖励`;
this.tip.text = ``;
this.prizeImg.texture = Texture.fromUrl(Tools.baseInfo.levelPrize[`level_${lowerLevel}`]);
this.addEventListener(FYGE.MouseEvent.CLICK, () => {
Tools.btnDelay(this);
changeScene(LotteryScene, { level: lowerLevel })
}, this)
}
}
initEvent() {
}
}
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* 道具类型 * 道具类型
*/ */
export enum PropType { export enum PropType {
STEPS = "STEPS", STEPS = "steps",
BOOMS = "BOOMS", BOOMS = "booms",
HAMMERS = "HAMMERS", HAMMERS = "hammers",
POWER = "POWER", POWER = "power",
} }
\ No newline at end of file
...@@ -38,7 +38,7 @@ export class MagicLionBgAni extends FYGE.Container { ...@@ -38,7 +38,7 @@ export class MagicLionBgAni extends FYGE.Container {
// up.anchorOffsetY = upTexture.textureHeight / 2; // up.anchorOffsetY = upTexture.textureHeight / 2;
this.addChild(up); this.addChild(up);
this.addEventListener(FYGE.Event.ENTER_FRAME, () => { this.addEventListener(FYGE.Event.ENTER_FRAME, () => {
up.rotation += 2; // up.rotation += 2;
}, this); }, this);
} }
...@@ -52,4 +52,4 @@ export class MagicLionBgAni extends FYGE.Container { ...@@ -52,4 +52,4 @@ export class MagicLionBgAni extends FYGE.Container {
// this.showImage.scaleX = this.showImage.scaleY = 0.7; // this.showImage.scaleX = this.showImage.scaleY = 0.7;
// this.showImage.alpha = 1; // this.showImage.alpha = 1;
} }
} }
\ No newline at end of file
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