Commit ec1680f1 authored by haiyoucuv's avatar haiyoucuv

111

parent aebab240
...@@ -2,21 +2,19 @@ ...@@ -2,21 +2,19 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="31be0130-d27d-4740-b668-956a8050e1bf" name="Default Changelist" comment=""> <list default="true" id="31be0130-d27d-4740-b668-956a8050e1bf" name="Default Changelist" comment="">
<change afterPath="$PROJECT_DIR$/mock/miniTb/qiaqia2.getExchangeGoodsList.json" afterDir="false" /> <change afterPath="$PROJECT_DIR$/mock/miniTb/qiaqia2.completeTask.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/src/const/GEVENT.ts" afterDir="false" /> <change afterPath="$PROJECT_DIR$/mock/miniTb/qiaqia2.exchangeGoods.json" afterDir="false" />
<change afterPath="$PROJECT_DIR$/mock/miniTb/qiaqia2.getMyPrizeList.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/qiaqiaHome.getGameInfo.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/qiaqiaHome.getGameInfo.json" afterDir="false" /> <change beforePath="$PROJECT_DIR$/mock/miniTb/qiaqia2.getExchangeGoodsList.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/qiaqia2.getExchangeGoodsList.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/output.js" beforeDir="false" afterPath="$PROJECT_DIR$/output.js" afterDir="false" /> <change beforePath="$PROJECT_DIR$/mock/miniTb/qiaqia2.getTaskList.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/qiaqia2.getTaskList.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/gameScene/种植框_山核桃.png" beforeDir="false" afterPath="$PROJECT_DIR$/resource/gameScene/种植框_核桃.png" afterDir="false" /> <change beforePath="$PROJECT_DIR$/module/ctrls/panelCtrl.ts" beforeDir="false" afterPath="$PROJECT_DIR$/module/ctrls/panelCtrl.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/resource/res.json" beforeDir="false" afterPath="$PROJECT_DIR$/resource/res.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ResJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/ResJson.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TaoBaoNet.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/TaoBaoNet.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/TaoBaoNet.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/TaoBaoNet.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/const/staticData.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/const/staticData.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/panels/ExRecordPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ExRecordPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/ExSuccessPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ExSuccessPanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/ExchangePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ExchangePanel.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/panels/ExchangePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ExchangePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/ShopPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/ShopPanel.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/WareHousePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/WareHousePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/UI/UILayer.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scenes/GameScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scenes/GameScene.ts" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
...@@ -71,7 +69,7 @@ ...@@ -71,7 +69,7 @@
<recent name="$PROJECT_DIR$/resource/taskPanel" /> <recent name="$PROJECT_DIR$/resource/taskPanel" />
</key> </key>
</component> </component>
<component name="RunManager" selected="npm.handleRes"> <component name="RunManager" selected="npm.dev">
<configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true"> <configuration name="build" 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" />
...@@ -92,6 +90,16 @@ ...@@ -92,6 +90,16 @@
<envs /> <envs />
<method v="2" /> <method v="2" />
</configuration> </configuration>
<configuration name="dev" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
<scripts>
<script value="dev" />
</scripts>
<node-interpreter value="project" />
<envs />
<method v="2" />
</configuration>
<configuration name="flushRes" type="js.build_tools.npm" temporary="true" nameIsGenerated="true"> <configuration name="flushRes" 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" />
...@@ -117,9 +125,11 @@ ...@@ -117,9 +125,11 @@
<item itemvalue="npm.buildTS" /> <item itemvalue="npm.buildTS" />
<item itemvalue="npm.flushRes" /> <item itemvalue="npm.flushRes" />
<item itemvalue="npm.handleRes" /> <item itemvalue="npm.handleRes" />
<item itemvalue="npm.dev" />
</list> </list>
<recent_temporary> <recent_temporary>
<list> <list>
<item itemvalue="npm.dev" />
<item itemvalue="npm.flushRes" /> <item itemvalue="npm.flushRes" />
<item itemvalue="npm.build" /> <item itemvalue="npm.build" />
<item itemvalue="npm.handleRes" /> <item itemvalue="npm.handleRes" />
...@@ -151,7 +161,8 @@ ...@@ -151,7 +161,8 @@
<workItem from="1591594488054" duration="16883000" /> <workItem from="1591594488054" duration="16883000" />
<workItem from="1591667441623" duration="25180000" /> <workItem from="1591667441623" duration="25180000" />
<workItem from="1591753635902" duration="11045000" /> <workItem from="1591753635902" duration="11045000" />
<workItem from="1591771023496" duration="19811000" /> <workItem from="1591771023496" duration="19835000" />
<workItem from="1591840410673" duration="6340000" />
</task> </task>
<task id="LOCAL-00001" summary="1"> <task id="LOCAL-00001" summary="1">
<created>1591003912929</created> <created>1591003912929</created>
...@@ -391,7 +402,14 @@ ...@@ -391,7 +402,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1591785686213</updated> <updated>1591785686213</updated>
</task> </task>
<option name="localTasksCounter" value="35" /> <task id="LOCAL-00035" summary="exchangePanel">
<created>1591794963629</created>
<option name="number" value="00035" />
<option name="presentableId" value="LOCAL-00035" />
<option name="project" value="LOCAL" />
<updated>1591794963629</updated>
</task>
<option name="localTasksCounter" value="36" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
...@@ -429,7 +447,8 @@ ...@@ -429,7 +447,8 @@
<MESSAGE value="浇水" /> <MESSAGE value="浇水" />
<MESSAGE value="任务弹窗" /> <MESSAGE value="任务弹窗" />
<MESSAGE value="res" /> <MESSAGE value="res" />
<option name="LAST_COMMIT_MESSAGE" value="res" /> <MESSAGE value="exchangePanel" />
<option name="LAST_COMMIT_MESSAGE" value="exchangePanel" />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="323" y="198" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1591790199346"> <state x="323" y="198" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1591790199346">
...@@ -440,40 +459,40 @@ ...@@ -440,40 +459,40 @@
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="671" y="259" key="#com.intellij.ide.util.MemberChooser/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591344864454" /> <state x="671" y="259" key="#com.intellij.ide.util.MemberChooser/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591344864454" />
<state x="467" y="108" key="CommitChangelistDialog2" timestamp="1591785684954"> <state x="467" y="108" key="CommitChangelistDialog2" timestamp="1591794962737">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="466" y="108" key="CommitChangelistDialog2/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591003912498" /> <state x="466" y="108" key="CommitChangelistDialog2/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591003912498" />
<state x="2182" y="-102" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189619717" /> <state x="2182" y="-102" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189619717" />
<state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591770918975" /> <state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794962737" />
<state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027@37.23.1643.1027" timestamp="1591785684954" /> <state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027@37.23.1643.1027" timestamp="1591785684954" />
<state width="304" height="907" key="GridCell.Tab.0.bottom" timestamp="1591790184080"> <state width="252" height="907" key="GridCell.Tab.0.bottom" timestamp="1591794971568">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.bottom/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" /> <state width="499" height="907" key="GridCell.Tab.0.bottom/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" />
<state width="469" height="697" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250578" /> <state width="469" height="697" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250578" />
<state width="304" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591790184080" /> <state width="252" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794971568" />
<state width="311" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871414" /> <state width="311" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871414" />
<state width="304" height="907" key="GridCell.Tab.0.center" timestamp="1591790184079"> <state width="252" height="907" key="GridCell.Tab.0.center" timestamp="1591794971567">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.center/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953116" /> <state width="499" height="907" key="GridCell.Tab.0.center/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953116" />
<state width="469" height="697" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" /> <state width="469" height="697" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" />
<state width="304" height="907" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591790184079" /> <state width="252" height="907" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794971567" />
<state width="311" height="907" key="GridCell.Tab.0.center/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871413" /> <state width="311" height="907" key="GridCell.Tab.0.center/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871413" />
<state width="304" height="907" key="GridCell.Tab.0.left" timestamp="1591790184078"> <state width="252" height="907" key="GridCell.Tab.0.left" timestamp="1591794971566">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.left/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953114" /> <state width="499" height="907" key="GridCell.Tab.0.left/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953114" />
<state width="469" height="697" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" /> <state width="469" height="697" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" />
<state width="304" height="907" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591790184078" /> <state width="252" height="907" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794971566" />
<state width="311" height="907" key="GridCell.Tab.0.left/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871412" /> <state width="311" height="907" key="GridCell.Tab.0.left/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871412" />
<state width="304" height="907" key="GridCell.Tab.0.right" timestamp="1591790184079"> <state width="252" height="907" key="GridCell.Tab.0.right" timestamp="1591794971567">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state width="499" height="907" key="GridCell.Tab.0.right/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" /> <state width="499" height="907" key="GridCell.Tab.0.right/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591065953118" />
<state width="469" height="697" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" /> <state width="469" height="697" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" />
<state width="304" height="907" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591790184079" /> <state width="252" height="907" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794971567" />
<state width="311" height="907" key="GridCell.Tab.0.right/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871413" /> <state width="311" height="907" key="GridCell.Tab.0.right/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871413" />
<state x="446" y="278" key="IDE.errors.dialog" timestamp="1591150813027"> <state x="446" y="278" key="IDE.errors.dialog" timestamp="1591150813027">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
...@@ -484,11 +503,11 @@ ...@@ -484,11 +503,11 @@
</state> </state>
<state x="614" y="245" key="RollbackChangesDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590993046653" /> <state x="614" y="245" key="RollbackChangesDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590993046653" />
<state x="615" y="245" key="RollbackChangesDialog/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591077661188" /> <state x="615" y="245" key="RollbackChangesDialog/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591077661188" />
<state x="457" y="276" key="Vcs.Push.Dialog.v2" timestamp="1591770922991"> <state x="457" y="276" key="Vcs.Push.Dialog.v2" timestamp="1591794965631">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="2171" y="91" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189622538" /> <state x="2171" y="91" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591189622538" />
<state x="457" y="276" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591770922991" /> <state x="457" y="276" key="Vcs.Push.Dialog.v2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794965631" />
<state x="417" y="141" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1591269112575"> <state x="417" y="141" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1591269112575">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
...@@ -505,12 +524,12 @@ ...@@ -505,12 +524,12 @@
<screen x="35" y="23" width="1645" height="1027" /> <screen x="35" y="23" width="1645" height="1027" />
</state> </state>
<state x="586" y="314" key="refactoring.ChangeSignatureDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590980819551" /> <state x="586" y="314" key="refactoring.ChangeSignatureDialog/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1590980819551" />
<state x="523" y="250" width="670" height="676" key="search.everywhere.popup" timestamp="1591794090580"> <state x="523" y="250" width="670" height="676" key="search.everywhere.popup" timestamp="1591846627265">
<screen x="37" y="23" width="1643" height="1027" /> <screen x="37" y="23" width="1643" height="1027" />
</state> </state>
<state x="522" y="250" width="670" height="676" key="search.everywhere.popup/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591066027960" /> <state x="522" y="250" width="670" height="676" key="search.everywhere.popup/35.23.1645.1027/1680.-199.1920.1177@35.23.1645.1027" timestamp="1591066027960" />
<state x="2248" y="61" width="783" height="775" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778463158" /> <state x="2248" y="61" width="783" height="775" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778463158" />
<state x="523" y="250" width="670" height="676" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591794090580" /> <state x="523" y="250" width="670" height="676" key="search.everywhere.popup/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591846627265" />
<state x="523" y="250" width="670" height="676" key="search.everywhere.popup/37.23.1643.1027@37.23.1643.1027" timestamp="1591780279349" /> <state x="523" y="250" width="670" height="676" key="search.everywhere.popup/37.23.1643.1027@37.23.1643.1027" timestamp="1591780279349" />
</component> </component>
</project> </project>
\ No newline at end of file
{
"success": true,
"message": "",
"data": true
}
{
"code":"000000",
"data":{
"image":"https://source.unsplash.com/user/erondu/250x250",
"amount":20,
"drawStatus":4,
"openId":"AAEAuNyCAKrpWdzBzedO22-F",
"remark":"订购应用已过期,请联系商家处理",
"type":1,
"prizeId":"5edf3a16f344891ad1f6adab",
"activityId":"5edf3a162fccfb74b1d9c5e3",
"ename":"111111",
"userNick":"wmm",
"name":"权益奖品",
"_id":"AAEAuNyCAKrpWdzBzedO22-F1591776396365",
"exchangeDay":"2020/06/10"
},
"success":true,
"message":"成功"
}
...@@ -19,7 +19,9 @@ ...@@ -19,7 +19,9 @@
"startTime": 1591682068000, "startTime": 1591682068000,
"_id": "5edf3a16f344891ad1f6adab", "_id": "5edf3a16f344891ad1f6adab",
"endTime": 1591682068000, "endTime": 1591682068000,
"type": 1 "type": 1,
"desc": "描述描述描述描述",
"stock": 2000
}, },
{ {
"image": "https://source.unsplash.com/user/erondu/100x100", "image": "https://source.unsplash.com/user/erondu/100x100",
...@@ -69,7 +71,9 @@ ...@@ -69,7 +71,9 @@
"startTime": 1591682068000, "startTime": 1591682068000,
"_id": "5edf3a16f344891ad1f6adab", "_id": "5edf3a16f344891ad1f6adab",
"endTime": 1591682068000, "endTime": 1591682068000,
"type": 1 "type": 1,
"desc": "描述描述描述描述",
"stock": 2000
}, },
{ {
"image": "https://source.unsplash.com/user/erondu/100x100", "image": "https://source.unsplash.com/user/erondu/100x100",
...@@ -89,7 +93,9 @@ ...@@ -89,7 +93,9 @@
"startTime": 1591682068000, "startTime": 1591682068000,
"_id": "5edf3a16f344891ad1f6adab", "_id": "5edf3a16f344891ad1f6adab",
"endTime": 1591682068000, "endTime": 1591682068000,
"type": 1 "type": 1,
"desc": "描述描述描述描述",
"stock": 2000
} }
], ],
"success": true "success": true
......
{
"code": "000000",
"data": [
{
"image": "https://source.unsplash.com/user/erondu/250x250",
"amount": 20,
"drawStatus": 4,
"openId": "AAEAuNyCAKrpWdzBzedO22-F",
"remark": "订购应用已过期,请联系商家处理",
"updateTime": 1591775841679,
"type": 1,
"prizeId": "5edf3a16f344891ad1f6adab",
"activityId": "5edf3a162fccfb74b1d9c5e3",
"ename": "111111",
"userNick": "wmm",
"createTime": 1591775841651,
"name": "权益奖品",
"_id": "AAEAuNyCAKrpWdzBzedO22-F1591775841650",
"exchangeDay": "2020/06/10"
},
{
"image": "https://source.unsplash.com/user/erondu/250x250",
"amount": 20,
"drawStatus": 4,
"openId": "AAEAuNyCAKrpWdzBzedO22-F",
"remark": "订购应用已过期,请联系商家处理",
"updateTime": 1591775703547,
"type": 1,
"prizeId": "5edf3a16f344891ad1f6adab",
"activityId": "5edf3a162fccfb74b1d9c5e3",
"ename": "111111",
"userNick": "wmm",
"createTime": 1591775703513,
"name": "权益奖品",
"_id": "AAEAuNyCAKrpWdzBzedO22-F1591775703513",
"exchangeDay": "2020/06/10"
}
],
"success": true,
"message": "成功"
}
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
{ {
"taskType": "follow", "taskType": "follow",
"times": 1, "times": 1,
"todayCompleteTimes": 0, "todayCompleteTimes": 1,
"rewards": 2, "rewards": 2,
"value": "", "value": "",
"waitReceive": 0 "waitReceive": 0
......
import { Panel } from "../views/Panel"; import { Panel } from "../views/Panel";
import { layers } from "../views/layers"; import { layers } from "../views/layers";
import { showWaiting, hideWaiting } from "./waitingCtrl"; import { showWaiting, hideWaiting } from "./waitingCtrl";
import { showToast } from "./toastCtrl"; import { showToast } from "./toastCtrl";
import Tween = FYGE.Tween;
export default class PanelCtrl { export default class PanelCtrl {
/** /**
...@@ -45,7 +44,12 @@ export default class PanelCtrl { ...@@ -45,7 +44,12 @@ export default class PanelCtrl {
* 关闭所有弹框 * 关闭所有弹框
*/ */
closeAll() { closeAll() {
this.stacks.forEach(e => e.hidePanel()); this.stacks.forEach(e => {
Tween.removeTweens(e);
// e.hidePanel();
e.destroy();
}
);
} }
show<T extends Panel>(cls: any, data?: any): T { show<T extends Panel>(cls: any, data?: any): T {
...@@ -82,7 +86,7 @@ export default class PanelCtrl { ...@@ -82,7 +86,7 @@ export default class PanelCtrl {
this._bg.visible = true; this._bg.visible = true;
this._bg.alpha = 0; this._bg.alpha = 0;
FYGE.Tween.removeTweens(this._bg); FYGE.Tween.removeTweens(this._bg);
FYGE.Tween.get(this._bg).to({ alpha: 0.7 }, 200, FYGE.Ease.cubicOut) FYGE.Tween.get(this._bg).to({alpha: 0.7}, 200, FYGE.Ease.cubicOut)
} }
} }
......
...@@ -33,10 +33,16 @@ export enum TbNetName { ...@@ -33,10 +33,16 @@ export enum TbNetName {
shopList = 'qiaqia2.getExchangeGoodsList', shopList = 'qiaqia2.getExchangeGoodsList',
completeTask = 'qiaqia2.completeTask',
taskList = 'qiaqia2.getTaskList', taskList = 'qiaqia2.getTaskList',
wareHouse = 'qiaqiaHome.getStorages', wareHouse = 'qiaqiaHome.getStorages',
exchangeGoods = 'qiaqia2.exchangeGoods',
getMyPrizeList = 'qiaqia2.getMyPrizeList',
// 游戏信息 // 游戏信息
gameInfo = 'qiaqiaHome.getGameInfo', gameInfo = 'qiaqiaHome.getGameInfo',
......
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { Tool } from "../Tools"; import { Tool } from "../Tools";
import Sprite = FYGE.Sprite;
import { layers } from "../../module/views/layers"; import { layers } from "../../module/views/layers";
import { activityId, sendTbNet, TbNetName } from "../TaoBaoNet";
import Sprite = FYGE.Sprite;
import Tween = FYGE.Tween; import Tween = FYGE.Tween;
import ScrollList = FYGE.ScrollList; import ScrollList = FYGE.ScrollList;
import Container = FYGE.Container; import Container = FYGE.Container;
...@@ -32,36 +33,12 @@ export default class ExRecordPanel extends Panel { ...@@ -32,36 +33,12 @@ export default class ExRecordPanel extends Panel {
this.scroll = this.addChild(new ScrollList(RecordItem, 653, 200, 653, 830)); this.scroll = this.addChild(new ScrollList(RecordItem, 653, 200, 653, 830));
this.scroll.position.set((this.width - this.scroll.width) / 2, 210); this.scroll.position.set((this.width - this.scroll.width) / 2, 210);
this.scroll.updateData([ sendTbNet(TbNetName.getMyPrizeList, {
{ activityId: activityId
prizeImg: 'https://source.unsplash.com/user/erondu/116x116', }, (success, res) => {
prizeName: '恰恰10元抵扣卷', if (!success) return;
prizeDate: '1010.01.01', this.scroll.updateData(res.data);
}, });
{
prizeImg: 'https://source.unsplash.com/user/erondu/116x116',
prizeName: '恰恰20元抵扣卷',
prizeDate: '2020.02.02',
},
{
prizeImg: 'https://source.unsplash.com/user/erondu/116x116',
prizeName: '恰恰30元抵扣卷',
prizeDate: '3030.03.03',
},
{
prizeImg: 'https://source.unsplash.com/user/erondu/116x116',
prizeName: '恰恰40元抵扣卷',
prizeDate: '4040.04.04',
},
{
prizeImg: 'https://source.unsplash.com/user/erondu/116x116',
prizeName: '恰恰50元抵扣卷',
prizeDate: '5050.05.05',
},
]);
} }
public showAni() { public showAni() {
...@@ -111,9 +88,9 @@ class RecordItem extends Container implements IScrollListItem { ...@@ -111,9 +88,9 @@ class RecordItem extends Container implements IScrollListItem {
public initData(id: number, data: any): void { public initData(id: number, data: any): void {
if (!data) return; if (!data) return;
this.prizeImg.texture = Texture.fromUrl(data.prizeImg); this.prizeImg.texture = Texture.fromUrl(data.image);
this.prizeName.text = data.prizeName; this.prizeName.text = data.name;
this.prizeDate.text = `${data.prizeDate}兑换`; this.prizeDate.text = `${data.exchangeDay}兑换`;
} }
constructor() { constructor() {
...@@ -123,6 +100,7 @@ class RecordItem extends Container implements IScrollListItem { ...@@ -123,6 +100,7 @@ class RecordItem extends Container implements IScrollListItem {
this.prizeImg = this.addChild(new Sprite()); this.prizeImg = this.addChild(new Sprite());
this.prizeImg.position.set(34, 25); this.prizeImg.position.set(34, 25);
this.prizeImg.width = this.prizeImg.height = 116;
const mask = this.addChild(new Graphics()); const mask = this.addChild(new Graphics());
mask.drawCircle(92, 83, 58); mask.drawCircle(92, 83, 58);
......
...@@ -3,6 +3,9 @@ import { Tool } from "../Tools"; ...@@ -3,6 +3,9 @@ import { Tool } from "../Tools";
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import TextField = FYGE.TextField; import TextField = FYGE.TextField;
import Texture = FYGE.Texture;
import { showToast } from "../../module/ctrls";
import PanelCtrl from "../../module/ctrls/panelCtrl";
export default class ExSuccessPanel extends Panel { export default class ExSuccessPanel extends Panel {
get groupNames() { get groupNames() {
...@@ -22,14 +25,15 @@ export default class ExSuccessPanel extends Panel { ...@@ -22,14 +25,15 @@ export default class ExSuccessPanel extends Panel {
this.closeBtn.position.set(600, 350); this.closeBtn.position.set(600, 350);
// 图片 // 图片
this.prizeImg = this.addChild(Tool.getSprite('进度_fill.png')); this.prizeImg = this.addChild(new Sprite());
this.prizeImg.texture = Texture.fromUrl(this.data.image);
this.prizeImg.width = 427; this.prizeImg.width = 427;
this.prizeImg.height = 200; this.prizeImg.height = 200;
this.prizeImg.position.set((this.width - this.prizeImg.width) / 2, 677); this.prizeImg.position.set((this.width - this.prizeImg.width) / 2, 677);
// 文案 // 文案
this.prizeLabel = this.addChild(new TextField()); this.prizeLabel = this.addChild(new TextField());
this.prizeLabel.text = '6字文案'; this.prizeLabel.text = this.data.name;
this.prizeLabel.fillColor = '#c28b4c'; this.prizeLabel.fillColor = '#c28b4c';
this.prizeLabel.size = 24; this.prizeLabel.size = 24;
this.prizeLabel.position.set((this.width - this.prizeLabel.textWidth) / 2, 910); this.prizeLabel.position.set((this.width - this.prizeLabel.textWidth) / 2, 910);
...@@ -39,18 +43,31 @@ export default class ExSuccessPanel extends Panel { ...@@ -39,18 +43,31 @@ export default class ExSuccessPanel extends Panel {
this.btn.position.set((this.width - this.btn.width) / 2, 960); this.btn.position.set((this.width - this.btn.width) / 2, 960);
} }
private clickBtn() {
if (+this.data.type == 1 && (this.data.drawStatus == 4 || this.data.drawStatus == 6)) {
showToast('奖品发放失败\n请前往我的奖品处进行处理');
} else if (+this.data.type == 3) {
/// TODO 淘宝地址选择页?
}
this.hideAll();
}
private hideAll() {
PanelCtrl.instance.closeAll();
}
start(data) { start(data) {
super.start(); super.start();
} }
initEvents() { initEvents() {
this.closeBtn.addEventListener(MouseEvent.CLICK, this.hidePanel, this); this.closeBtn.addEventListener(MouseEvent.CLICK, this.hideAll, this);
this.btn.addEventListener(MouseEvent.CLICK, this.hidePanel, this); this.btn.addEventListener(MouseEvent.CLICK, this.clickBtn, this);
} }
removeEvents() { removeEvents() {
this.closeBtn.removeEventListener(MouseEvent.CLICK, this.hidePanel, this); this.closeBtn.removeEventListener(MouseEvent.CLICK, this.hideAll, this);
this.btn.removeEventListener(MouseEvent.CLICK, this.hidePanel, this); this.btn.removeEventListener(MouseEvent.CLICK, this.clickBtn, this);
} }
} }
...@@ -8,6 +8,10 @@ import MouseEvent = FYGE.MouseEvent; ...@@ -8,6 +8,10 @@ import MouseEvent = FYGE.MouseEvent;
import Container = FYGE.Container; import Container = FYGE.Container;
import TEXT_ALIGN = FYGE.TEXT_ALIGN; import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import TEXT_lINETYPE = FYGE.TEXT_lINETYPE; import TEXT_lINETYPE = FYGE.TEXT_lINETYPE;
import { activityId, sendTbNet, TbNetName } from "../TaoBaoNet";
import PanelCtrl from "../../module/ctrls/panelCtrl";
import ExSuccessPanel from "./ExSuccessPanel";
import { showToast } from "../../module/ctrls";
export class ExchangePanel extends Panel { export class ExchangePanel extends Panel {
get groupNames() { get groupNames() {
...@@ -50,32 +54,48 @@ export class ExchangePanel extends Panel { ...@@ -50,32 +54,48 @@ export class ExchangePanel extends Panel {
this.btn = this.addChild(Tool.getSprite(enough ? 'exchange_btn_en.png' : 'exchange_btn_dis.png')); this.btn = this.addChild(Tool.getSprite(enough ? 'exchange_btn_en.png' : 'exchange_btn_dis.png'));
enough && this.btn.addEventListener(MouseEvent.CLICK, () => {
console.log('兑换');
/// TODO
});
this.btn.position.set((this.width - this.btn.width) / 2, 876); this.btn.position.set((this.width - this.btn.width) / 2, 876);
this.setExchangeInfo(); this.setExchangeInfo();
let introduction = this.addChild(Tool.getText(`商品介绍:${this.data.name}`, 20, '#dbd2ca')); let introduction = this.addChild(Tool.getText(`商品介绍:${this.data.desc}`, 20, '#dbd2ca'));
introduction.textWidth = 470; introduction.textWidth = 470;
introduction.lineType = TEXT_lINETYPE.MULTI; introduction.lineType = TEXT_lINETYPE.MULTI;
introduction.textAlign = TEXT_ALIGN.LEFT; introduction.textAlign = TEXT_ALIGN.LEFT;
introduction.position.set(139, 980); introduction.position.set(139, 980);
if (this.data.type == 1) { // if (this.data.type == 1) {
// let sDate = new Date(this.data.startTime); // // let sDate = new Date(this.data.startTime);
let eDate = new Date(this.data.endTime); // let eDate = new Date(this.data.endTime);
// let sLabel = `${sDate.getFullYear()}/${sDate.getMonth() + 1}/${sDate.getDate()}`; // // let sLabel = `${sDate.getFullYear()}/${sDate.getMonth() + 1}/${sDate.getDate()}`;
let eLabel = `${eDate.getFullYear()}/${eDate.getMonth() + 1}/${eDate.getDate()} ${eDate.getHours()}:${eDate.getMinutes()}`; // let eLabel = `${eDate.getFullYear()}/${eDate.getMonth() + 1}/${eDate.getDate()} ${eDate.getHours()}:${eDate.getMinutes()}`;
let date = this.addChild(Tool.getText(`${eLabel}合成截止`, 20, '#dbd2ca')); // let date = this.addChild(Tool.getText(`${eLabel}合成截止`, 20, '#dbd2ca'));
date.position.set(137, introduction.y + introduction.textHeight + 5); // date.position.set(137, introduction.y + introduction.textHeight + 5);
} // }
if (this.data.isLimitStock) { if (this.data.isLimitStock) {
// 库存剩余label // 库存剩余label
let stock = this.addChild(Tool.getText(`剩余数量:${this.data.restStock}/${this.data.stock}份`, 20, '#dbd2ca'));
introduction.textWidth = 470;
introduction.lineType = TEXT_lINETYPE.MULTI;
introduction.textAlign = TEXT_ALIGN.LEFT;
stock.position.set(137, introduction.y + introduction.textHeight + 5);
} }
enough && this.btn.addEventListener(MouseEvent.CLICK, () => {
console.log('兑换');
sendTbNet(TbNetName.exchangeGoods, {
activityId: activityId,
_id: this.data._id
}, (success, res) => {
if (!success || !res || !res.data) {
showToast('兑换失败,请稍后再试')
return;
}
let data = res.data;
PanelCtrl.instance.show(ExSuccessPanel, data);
});
});
} }
private setExchangeInfo() { private setExchangeInfo() {
......
...@@ -11,6 +11,7 @@ import Tween = FYGE.Tween; ...@@ -11,6 +11,7 @@ import Tween = FYGE.Tween;
import TextField = FYGE.TextField; import TextField = FYGE.TextField;
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import Ease = FYGE.Ease; import Ease = FYGE.Ease;
import { showToast } from "../../module/ctrls";
const TASK_TYPE = { const TASK_TYPE = {
sign: 'sign', sign: 'sign',
...@@ -52,7 +53,19 @@ export default class TaskPanel extends Panel { ...@@ -52,7 +53,19 @@ export default class TaskPanel extends Panel {
if (!success) { if (!success) {
return; return;
} }
this.scroll.updateData(res.data); const a = [
'member',
'follow',
'joinGroup',
];
let data = [];
for (let i = 0; i < res.data.length; i++) {
if (a.indexOf(res.data[i].taskType) > -1 && res.data[i].todayCompleteTimes >= res.data[i].times) {
continue;
}
data.push(res.data[i]);
}
this.scroll.updateData(data);
}); });
} }
...@@ -159,11 +172,23 @@ class TaskItem extends Container implements IScrollListItem { ...@@ -159,11 +172,23 @@ class TaskItem extends Container implements IScrollListItem {
} else { } else {
this.btn.texture = RES.getRes('task_go.png'); this.btn.texture = RES.getRes('task_go.png');
this.btn.addEventListener(MouseEvent.CLICK, () => { this.btn.addEventListener(MouseEvent.CLICK, () => {
/// TODO 跳转链接?
if (data.taskType == 'joinGroup' || data.taskType == 'member') { if (data.taskType == 'joinGroup' || data.taskType == 'member') {
console.log('跳转', data.value); console.log('跳转', data.value);
} else { } else {
console.log('不跳转'); console.log('不跳转');
} }
sendTbNet(TbNetName.completeTask, {
taskType:data.taskType,
activityId: activityId
}, (success, res) => {
if(!success || !res || !res.data){
showToast('网络异常,请稍后重试');
return;
}
});
}); });
} }
} }
......
...@@ -11,6 +11,7 @@ import WareHousePanel from "../../panels/WareHousePanel"; ...@@ -11,6 +11,7 @@ import WareHousePanel from "../../panels/WareHousePanel";
import ShopPanel from "../../panels/ShopPanel"; import ShopPanel from "../../panels/ShopPanel";
import RulePanel from "../../panels/RulePanel"; import RulePanel from "../../panels/RulePanel";
import { getTbData, TbNetName } from "../../TaoBaoNet"; import { getTbData, TbNetName } from "../../TaoBaoNet";
import ExRecordPanel from "../../panels/ExRecordPanel";
export let G_wareHouseEffect = () => { export let G_wareHouseEffect = () => {
}; };
...@@ -74,8 +75,8 @@ export class UILayer extends Container { ...@@ -74,8 +75,8 @@ export class UILayer extends Container {
break; break;
case this.ruleBtn: case this.ruleBtn:
console.log('点击了规则'); console.log('点击了规则');
PanelCtrl.instance.show(RulePanel); // PanelCtrl.instance.show(RulePanel);
// PanelCtrl.instance.show(ExRecordPanel); PanelCtrl.instance.show(ExRecordPanel);
break; break;
} }
} }
......
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