Commit a1b69f27 authored by haiyoucuv's avatar haiyoucuv

guide

parent 33a30a7c
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<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="guide">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/qiaqiaHome.doWater.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/qiaqiaHome.doWater.json" 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/qiaqiaHome.getStorages.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/qiaqiaHome.getStorages.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/output.js" beforeDir="false" afterPath="$PROJECT_DIR$/output.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/CASHEWNUT_1/CASHEWNUT_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/CASHEWNUT_2/CASHEWNUT_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/CASHEWNUT_3/CASHEWNUT_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/CHESTNUT_1/CHESTNUT_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/CHESTNUT_2/CHESTNUT_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/CHESTNUT_3/CHESTNUT_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/MELON_1/MELON_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/MELON_2/MELON_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/MELON_3/MELON_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PEANUT_1/PEANUT_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PEANUT_2/PEANUT_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PEANUT_3/PEANUT_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PECAN_1/PECAN_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PECAN_2/PECAN_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PECAN_3/PECAN_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PISTACHIONUT_1/PISTACHIONUT_1.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PISTACHIONUT_2/PISTACHIONUT_2.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/PISTACHIONUT_3/PISTACHIONUT_3.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/common/common.png" beforeDir="false" afterPath="$PROJECT_DIR$/released/resource/common/common.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/exRecordPanel/exRecordPanel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/exSuccessPanel/exSuccessPanel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/exchangePanel/exchangePanel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/gameScene/gameScene.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/gameScene/game_bg.jpg" beforeDir="false" afterPath="$PROJECT_DIR$/released/resource/gameScene/game_bg.jpg" afterDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/loadingScene/loadingScene.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/loadingScene/loading_bg.jpg" beforeDir="false" afterPath="$PROJECT_DIR$/released/resource/loadingScene/loading_bg.jpg" afterDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/panel/panel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/res.json" beforeDir="false" afterPath="$PROJECT_DIR$/released/resource/res.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/rulePanel/rulePanel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/shopPanel/shopPanel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/taskPanel/taskPanel.png" beforeDir="false" />
<change beforePath="$PROJECT_DIR$/released/resource/wareHouse/wareHouse.png" beforeDir="false" afterPath="$PROJECT_DIR$/released/resource/wareHouse/wareHouse.png" afterDir="false" />
<change beforePath="$PROJECT_DIR$/scripts/copyJs.js" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/copyJs.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/ResJson.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/ResJson.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/TaoBaoNet.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/TaoBaoNet.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/Tools.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/Tools.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/WareHousePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/WareHousePanel.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/Game/GuideLayer.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/Game/GuideLayer.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/Game/Land.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/Game/Land.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/Game/ProgressBar.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/Game/ProgressBar.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/parts/UI/UserInfoGroup.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/parts/UI/UserInfoGroup.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scenes/GameScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scenes/GameScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scenes/GuideScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scenes/GuideScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/scenes/LoadingScene.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/scenes/LoadingScene.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/webpack.prod.js" beforeDir="false" afterPath="$PROJECT_DIR$/webpack.prod.js" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
......@@ -59,7 +106,7 @@
<recent name="$PROJECT_DIR$/libs" />
</key>
</component>
<component name="RunManager" selected="npm.build">
<component name="RunManager" selected="npm.buildTS">
<configuration name="build" type="js.build_tools.npm" temporary="true" nameIsGenerated="true">
<package-json value="$PROJECT_DIR$/package.json" />
<command value="run" />
......@@ -119,11 +166,11 @@
</list>
<recent_temporary>
<list>
<item itemvalue="npm.build" />
<item itemvalue="npm.buildTS" />
<item itemvalue="npm.dev" />
<item itemvalue="npm.build" />
<item itemvalue="npm.flushRes" />
<item itemvalue="npm.handleRes" />
<item itemvalue="npm.buildTS" />
</list>
</recent_temporary>
</component>
......@@ -152,7 +199,7 @@
<workItem from="1591667441623" duration="25180000" />
<workItem from="1591753635902" duration="11045000" />
<workItem from="1591771023496" duration="19835000" />
<workItem from="1591840410673" duration="32794000" />
<workItem from="1591840410673" duration="40563000" />
</task>
<task id="LOCAL-00001" summary="1">
<created>1591003912929</created>
......@@ -420,7 +467,14 @@
<option name="project" value="LOCAL" />
<updated>1591876079027</updated>
</task>
<option name="localTasksCounter" value="39" />
<task id="LOCAL-00039" summary="guide">
<created>1591876637798</created>
<option name="number" value="00039" />
<option name="presentableId" value="LOCAL-00039" />
<option name="project" value="LOCAL" />
<updated>1591876637798</updated>
</task>
<option name="localTasksCounter" value="40" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
......@@ -471,45 +525,45 @@
<screen x="37" y="23" width="1643" height="1027" />
</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="502" y="120" key="CommitChangelistDialog2" timestamp="1591876078819">
<state x="502" y="120" key="CommitChangelistDialog2" timestamp="1591880437502">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state x="502" y="120" key="CommitChangelistDialog2/0.23.1920.1177@0.23.1920.1177" timestamp="1591876078819" />
<state x="502" y="120" key="CommitChangelistDialog2/0.23.1920.1177@0.23.1920.1177" timestamp="1591880437502" />
<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="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591846770902" />
<state x="467" y="108" key="CommitChangelistDialog2/37.23.1643.1027@37.23.1643.1027" timestamp="1591785684954" />
<state width="798" height="117" key="GridCell.Tab.0.bottom" timestamp="1591876085230">
<state width="1242" height="384" key="GridCell.Tab.0.bottom" timestamp="1591884283891">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state width="798" height="117" key="GridCell.Tab.0.bottom/0.23.1920.1177@0.23.1920.1177" timestamp="1591876085230" />
<state width="1242" height="384" key="GridCell.Tab.0.bottom/0.23.1920.1177@0.23.1920.1177" timestamp="1591884283891" />
<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="252" height="1057" key="GridCell.Tab.0.bottom/37.23.1403.877/1440.-199.1920.1177@1440.-199.1920.1177" timestamp="1591854408198" />
<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="252" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591852525606" />
<state width="311" height="907" key="GridCell.Tab.0.bottom/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871414" />
<state width="798" height="117" key="GridCell.Tab.0.center" timestamp="1591876085229">
<state width="1242" height="384" key="GridCell.Tab.0.center" timestamp="1591884283889">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state width="798" height="117" key="GridCell.Tab.0.center/0.23.1920.1177@0.23.1920.1177" timestamp="1591876085229" />
<state width="1242" height="384" key="GridCell.Tab.0.center/0.23.1920.1177@0.23.1920.1177" timestamp="1591884283889" />
<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="252" height="1057" key="GridCell.Tab.0.center/37.23.1403.877/1440.-199.1920.1177@1440.-199.1920.1177" timestamp="1591854408196" />
<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="252" height="907" key="GridCell.Tab.0.center/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591852525596" />
<state width="311" height="907" key="GridCell.Tab.0.center/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871413" />
<state width="798" height="117" key="GridCell.Tab.0.left" timestamp="1591876085229">
<state width="1242" height="384" key="GridCell.Tab.0.left" timestamp="1591884283887">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state width="798" height="117" key="GridCell.Tab.0.left/0.23.1920.1177@0.23.1920.1177" timestamp="1591876085229" />
<state width="1242" height="384" key="GridCell.Tab.0.left/0.23.1920.1177@0.23.1920.1177" timestamp="1591884283887" />
<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="252" height="1057" key="GridCell.Tab.0.left/37.23.1403.877/1440.-199.1920.1177@1440.-199.1920.1177" timestamp="1591854408195" />
<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="252" height="907" key="GridCell.Tab.0.left/37.23.1643.1027/1680.-199.1920.1177@37.23.1643.1027" timestamp="1591852525590" />
<state width="311" height="907" key="GridCell.Tab.0.left/37.23.1643.1027@37.23.1643.1027" timestamp="1591713871412" />
<state width="798" height="117" key="GridCell.Tab.0.right" timestamp="1591876085230">
<state width="1242" height="384" key="GridCell.Tab.0.right" timestamp="1591884283890">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state width="798" height="117" key="GridCell.Tab.0.right/0.23.1920.1177@0.23.1920.1177" timestamp="1591876085230" />
<state width="1242" height="384" key="GridCell.Tab.0.right/0.23.1920.1177@0.23.1920.1177" timestamp="1591884283890" />
<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="252" height="1057" key="GridCell.Tab.0.right/37.23.1403.877/1440.-199.1920.1177@1440.-199.1920.1177" timestamp="1591854408196" />
<state width="469" height="697" key="GridCell.Tab.0.right/37.23.1643.1027/1680.-199.1920.1177@1680.-199.1920.1177" timestamp="1591778250577" />
......@@ -525,10 +579,10 @@
</state>
<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="491" y="313" key="Vcs.Push.Dialog.v2" timestamp="1591876080443">
<state x="491" y="313" key="Vcs.Push.Dialog.v2" timestamp="1591876639087">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state x="491" y="313" key="Vcs.Push.Dialog.v2/0.23.1920.1177@0.23.1920.1177" timestamp="1591876080443" />
<state x="491" y="313" key="Vcs.Push.Dialog.v2/0.23.1920.1177@0.23.1920.1177" timestamp="1591876639087" />
<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="1591846773289" />
<state x="417" y="141" key="com.intellij.openapi.editor.actions.MultiplePasteAction$ClipboardContentChooser" timestamp="1591269112575">
......@@ -547,18 +601,30 @@
<screen x="35" y="23" width="1645" height="1027" />
</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="85" y="286" key="run.anything.popup" timestamp="1591874864015">
<state x="85" y="286" key="run.anything.popup" timestamp="1591883929114">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state x="85" y="286" key="run.anything.popup/0.23.1920.1177@0.23.1920.1177" timestamp="1591874864015" />
<state x="568" y="283" width="917" height="776" key="search.everywhere.popup" timestamp="1591876487449">
<state x="85" y="286" key="run.anything.popup/0.23.1920.1177@0.23.1920.1177" timestamp="1591883929114" />
<state x="568" y="283" width="917" height="776" key="search.everywhere.popup" timestamp="1591884167098">
<screen x="0" y="23" width="1920" height="1177" />
</state>
<state x="568" y="283" width="917" height="776" key="search.everywhere.popup/0.23.1920.1177@0.23.1920.1177" timestamp="1591876487449" />
<state x="568" y="283" width="917" height="776" key="search.everywhere.popup/0.23.1920.1177@0.23.1920.1177" timestamp="1591884167098" />
<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="452" y="217" width="670" height="578" key="search.everywhere.popup/37.23.1403.877/1440.-199.1920.1177@37.23.1403.877" timestamp="1591854180825" />
<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="1591847016842" />
<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 name="XDebuggerManager">
<breakpoint-manager>
<breakpoints>
<line-breakpoint enabled="true" type="javascript">
<url>file://$PROJECT_DIR$/src/TaoBaoNet.ts</url>
<line>157</line>
<properties lambdaOrdinal="-1" />
<option name="timeStamp" value="12" />
</line-breakpoint>
</breakpoints>
</breakpoint-manager>
</component>
</project>
\ No newline at end of file
{
"success": true,
"code": "000000",
"data": {
"index": 2,
"plant": true,
"level": 2,
"plantType": "CASHEWNUT",
"waterTime": 10,
"totalTime": 3000,
"waterRestCount": 0
}
"plants": [
{
"level": "",
"waterRestCount": "",
"plant": false,
"waterTime": "",
"index": 1,
"plantType": ""
},
{
"level": 1,
"waterRestCount": 0,
"totalTime": 60000,
"plant": true,
"waterTime": 1,
"index": 2,
"plantType": "PECAN"
},
{
"level": "",
"waterRestCount": "",
"plant": false,
"waterTime": "",
"index": 3,
"plantType": ""
},
{
"level": "",
"waterRestCount": "",
"plant": false,
"waterTime": "",
"index": 4,
"plantType": ""
}
],
"waterDrops": 2
},
"success": true,
"message": "成功"
}
{
"success": true,
"code": "000000",
"data": {
"guideIsEnd": false,
"guideStep": 1,
"waterDrops": 100,
"guideStep": 8,
"guideIsEnd": true,
"waterDrops": 999,
"plants": [
{
"index": 1,
"level": "",
"waterRestCount": "",
"plant": false,
"level": 3,
"plantType": "PEANUT",
"waterTime": 1591891173326,
"totalTime": 300000000,
"waterRestCount": 0
"waterTime": "",
"index": 1,
"plantType": ""
},
{
"level": 2,
"waterRestCount": 0,
"totalTime": 120000,
"plant": true,
"waterTime": 1591881517849,
"index": 2,
"plant": false,
"level": 1,
"plantType": "CASHEWNUT",
"waterTime": 1591891173326,
"totalTime": 3000,
"waterRestCount": 0
"plantType": "PECAN"
},
{
"index": 3,
"level": "",
"waterRestCount": "",
"plant": false,
"level": 1,
"plantType": "PECAN",
"waterTime": 1591891173326,
"totalTime": 300000000,
"waterRestCount": 0
"waterTime": "",
"index": 3,
"plantType": ""
},
{
"level": 2,
"waterRestCount": 0,
"totalTime": 120000,
"plant": true,
"waterTime": 1591882423283,
"index": 4,
"plant": false,
"level": "",
"plantType": "",
"waterTime": "",
"totalTime": "",
"waterRestCount": ""
"plantType": "CHESTNUT"
}
]
}
},
"success": true,
"message": "成功"
}
{
"success": true,
"code": "000000",
"data": {
"storages": {
"CASHEWNUT": 0,
"PISTACHIONUT": 2,
"CHESTNUT": 1,
"PECAN": 1,
"MELON": 3,
"PISTACHIONUT": 0,
"CHESTNUT": 0,
"PECAN": 0,
"MELON": 0,
"PEANUT": 0
}
}
},
"success": true,
"message": "成功"
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,8 +6,9 @@ var fs = require("fs");
// fs.readFileSync("./output.js")
// )
var endPath = '/Users/haiyoucuv/Documents/Web/淘宝恰恰/taobaominiDemo/client/pages/index/';
var version = Math.round(new Date().getTime() / 1000);
fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
// var version = Math.round(new Date().getTime() / 1000);
// fs.writeFileSync(endPath + "output." + version + ".js", fs.readFileSync("./released/output.js"));
fs.writeFileSync(endPath + "output.js", fs.readFileSync("./released/output.js"));
// console.log("js覆盖完成")
console.log(`版本号:
${version}`)
// console.log(`版本号:
// ${version}`)
......@@ -7104,5 +7104,5 @@ export const ResJson = {
}
}
],
"path": "https://yun.duiba.com.cn/db_games/activity/anything/1591876100/resource/"
"path": "https://yun.duiba.com.cn/db_games/activity/anything/1591879548/resource/"
}
\ No newline at end of file
......@@ -90,6 +90,7 @@ export function sendTbNet(netName: TbNetName, parameter: any, callback: Function
let invoke = (query.length >= 2) ? query[0] : 'qiaqiaHome';
let route = (query.length >= 2) ? query[1] : query[0];
parameter.activityId = activityId;
//网络超时
let waitObj = wait(() => {
if (!hideMsg) showToast("网络超时")
......@@ -142,6 +143,18 @@ export function sendTbNet(netName: TbNetName, parameter: any, callback: Function
if (!hideMsg && !res.success) showToast(codeMsg[res.code] || res.message || "网络异常")
//回调
callback(res.success, res);
console.log(
`\n%c[ mock ]\n`
+ `NAME : ${netName} \n`
+ `STATE : %o \n`
+ `PARAM : %o \n`
+ `%cDATA : %o \n`
, `${res.success ? 'color:green' : 'color:red'}`
, res.success
, parameter
, `${res.success ? 'color:green' : 'color:red'}`
, res
);
})
}
......
......@@ -86,8 +86,9 @@ export class Tool {
return;
}
// const src = "cloud://A8673B47AAA58993A24A6718E203B967//dice.svga";
const src = `../resource/svga/${name}.svga`; /// TODO 线上替换
const src = `cloud://21DC968488CF65B20EC98D34D07B7B9D//${name}.svga`;
// cloud://21DC968488CF65B20EC98D34D07B7B9D//浇水动效.svga
// const src = `../resource/svga/${name}.svga`; /// TODO 线上替换
SvgaParser.loadSvga(src, (v) => {
Tool.svgaCache[name] = v; // 做一个缓存
const mv = new MovieClip(v);
......
......@@ -135,8 +135,8 @@ class WareHouseItem
nameLabel.position.set((this.width - nameLabel.textWidth) / 2, 212);
this.countLabel = this.addChild(Tool.getText('数量:0', 22, '#9a9a9a'));
this.countLabel.position.set(111, 258);
this.countLabel.textWidth = this.width;
this.countLabel.position.set(0, 258);
this.count = 0;
this.type = type;
......
......@@ -14,7 +14,6 @@ import { showToast } from "../../../module/ctrls";
import { OPTION_TYPE } from "../../const/staticData";
import { Tool } from "../../Tools";
import { getAdjustBottomHeight } from "../../const/myLab";
import PanelCtrl from "../../../module/ctrls/panelCtrl";
import { GameScene } from "../../scenes/GameScene";
import SceneCtrl from "../../../module/ctrls/sceneCtrl";
......@@ -46,10 +45,6 @@ export default class GuideLayer extends Container {
private guide8Text: TextField;
private storeBtn: Sprite;
private guide9: Container;
private guide10: Container;
private bg;
private curGuide: Container;
......@@ -163,7 +158,6 @@ export default class GuideLayer extends Container {
// 种
private showGuide2() {
console.warn(1);
this.curGuide = this.guide2;
this.showBg();
......
......@@ -131,7 +131,7 @@ export class Land extends Container {
this.waterRestCount = +data.waterRestCount;
// 收获和浇水?
if (data.waterTime <= 0) {
if (data.waterTime <= 0 || data.waterTime <= Date.now()) {
if (this.waterRestCount <= 0) {
this.addOption(this.plant.state == PLANT_STATE.STATE3
? OPTION_TYPE.GET
......@@ -166,7 +166,7 @@ export class Land extends Container {
this.waterRestCount = +data.waterRestCount;
// 收获和浇水?
if (data.waterTime <= 0) {
if (data.waterTime <= 0 || data.waterTime <= Date.now()) {
if (this.waterRestCount <= 0) {
this.addOption(this.plant.state == PLANT_STATE.STATE3
? OPTION_TYPE.GET
......@@ -232,7 +232,9 @@ export class Land extends Container {
console.log("浇水");
// 浇水了浇水了
sendTbNet(TbNetName.water, {}, (success, res) => {
sendTbNet(TbNetName.water, {
index: this.id
}, (success, res) => {
if (!success) return;
Tool.getSvga('浇水动效').then((mv: MovieClip) => {
this.addChild(mv);
......@@ -241,7 +243,12 @@ export class Land extends Container {
mv.stop();
this.removeChild(mv);
this.updatePlant(res.data);
for (let i = 0; i < res.data.plants.length; i++) {
if (res.data.plants[i].index == this.id) {
this.updatePlant(res.data.plants[i]);
break;
}
}
});
GDispatcher.dispatchEvent('getWater');
......
......@@ -62,7 +62,7 @@ export default class ProgressBar extends Container {
this.visible = false;
return;
}
if(data.timestamp <= 0){
if(data.timestamp <= 0 || data.timestamp <= Date.now()){
this.dispatchEvent('endTime');
return;
}
......
......@@ -44,6 +44,7 @@ export class UserInfoGroup extends Container {
this.numLabel.position.set(200, 68);
this.numLabel.size = 28;
this.numLabel.fillColor = '#a65310';
this.numLabel.textWidth = 200;
// 更新信息
userInfo && this.updateInfo(userInfo);
......
......@@ -32,13 +32,14 @@ export class GameScene extends Scene {
});
// UI层
this.uiLayer = this.addChild(new UILayer());
// 游戏层
GameLayer.kill();
this.gameLayer = this.addChild(GameLayer.ins);
// UI层
this.uiLayer = this.addChild(new UILayer());
console.log(this.uiLayer)
// 广告按钮
this.adBtn = this.addChild(Tool.getSprite('广告.png'));
......
......@@ -19,11 +19,12 @@ export class GuideScene extends Scene {
// 游戏层
private gameLayer: GameLayer; // 游戏层
// 引导层
private guideLayer: GuideLayer;
// UI层
private uiLayer: UILayer;
// 引导层
private guideLayer: GuideLayer;
initUi() {
// 背景图
......
......@@ -8,7 +8,7 @@ import OptionPool from "../const/OptionPool";
import PlantEffectPool from "../const/PlantEffectPool";
import { RES } from "../../module/RES";
import { gameResource } from "../const/staticData";
import { checkShopFavoredStatus, getAuthUserInfo } from "../utils";
import { getAuthUserInfo } from "../utils";
import Container = FYGE.Container;
import Sprite = FYGE.Sprite;
import Tween = FYGE.Tween;
......@@ -32,20 +32,25 @@ export class LoadingScene extends Scene {
private tips: TextField;
async initUi() {
console.log(1);
setActiveId()
console.log(2);
gameResource.forEach((v) => {
RES.loadGroup(v);
});
Tool.getSvga('浇水动效');
console.log(3);
Tool.getSvga('浇水动效');
console.log(4);
// 游戏信息
await sendTbNet(TbNetName.baseInfo, {}, (success, res) => {
await sendTbNet(TbNetName.baseInfo, {
activityId: activityId
}, (success, res) => {
console.log(success, res);
});
console.log(5);
// 用户信息
var userInfo: any = await getAuthUserInfo().catch(() => {
})
......@@ -55,16 +60,16 @@ export class LoadingScene extends Scene {
data: userInfo
});
var isFollow = false;
var isFollow = true;
// @ts-ignore
isFollow = await checkShopFavoredStatus(sellerId).catch((err) => {
console.log(err);
isFollow = false;
});
// isFollow = await checkShopFavoredStatus(sellerId).catch((err) => {
// console.log(err);
// isFollow = false;
// });
console.log('isFollow', isFollow);
if (!isFollow === undefined || !isFollow === null) {
if (isFollow !== undefined || isFollow !== null) {
console.log('isFollow1', isFollow);
setTbData(TbNetName.isFollow, {
data: isFollow
......@@ -136,7 +141,7 @@ export class LoadingScene extends Scene {
this.titleEffect().call(() => {
this.startLoading().call(() => {
const gameInfo: any = getTbData(TbNetName.gameInfo);
const gameInfo: any = getTbData(TbNetName.gameInfo).data;
SceneCtrl.instance.change(gameInfo.guideIsEnd ? GameScene : GuideScene);
});
});
......
......@@ -4,13 +4,14 @@ const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
const webpack = require('webpack');
module.exports = merge(common, {
mode: "production",
mode: "development",
devtool: 'source-map',
plugins: [
new UglifyJSPlugin(
{ sourceMap: false }
), new webpack.DefinePlugin({
// new UglifyJSPlugin(
// { sourceMap: false }
// ),
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
})
]
});
\ 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