Commit 38080c96 authored by 邱旭's avatar 邱旭

m

parent f27aabfb
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="0d3cb18d-e144-41a0-bc8b-4877c2e1fef1" name="默认的" comment=""> <list default="true" id="0d3cb18d-e144-41a0-bc8b-4877c2e1fef1" name="默认的" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/mock/miniTb/aa.json" beforeDir="false" afterPath="$PROJECT_DIR$/mock/miniTb/aa.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/output.js" beforeDir="false" afterPath="$PROJECT_DIR$/output.js" afterDir="false" /> <change beforePath="$PROJECT_DIR$/output.js" beforeDir="false" afterPath="$PROJECT_DIR$/output.js" afterDir="false" />
<change beforePath="$PROJECT_DIR$/output.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/output.js.map" afterDir="false" /> <change beforePath="$PROJECT_DIR$/output.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/output.js.map" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/HelpPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/HelpPanel.ts" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/Tools.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/Tools.ts" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/panels/LotteryPanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/LotteryPanel.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/panels/SuccessPrizePanel.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/panels/SuccessPrizePanel.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" />
...@@ -136,14 +136,7 @@ ...@@ -136,14 +136,7 @@
<workItem from="1613698993022" duration="22309000" /> <workItem from="1613698993022" duration="22309000" />
<workItem from="1613785579125" duration="17751000" /> <workItem from="1613785579125" duration="17751000" />
<workItem from="1613958457445" duration="19850000" /> <workItem from="1613958457445" duration="19850000" />
<workItem from="1614131869846" duration="2614000" /> <workItem from="1614131869846" duration="4308000" />
</task>
<task id="LOCAL-00006" summary="NoEnergyPanel">
<created>1612601677844</created>
<option name="number" value="00006" />
<option name="presentableId" value="LOCAL-00006" />
<option name="project" value="LOCAL" />
<updated>1612601677845</updated>
</task> </task>
<task id="LOCAL-00007" summary="NoStep"> <task id="LOCAL-00007" summary="NoStep">
<created>1612602696160</created> <created>1612602696160</created>
...@@ -481,7 +474,14 @@ ...@@ -481,7 +474,14 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1614133895122</updated> <updated>1614133895122</updated>
</task> </task>
<option name="localTasksCounter" value="55" /> <task id="LOCAL-00055" summary="m">
<created>1614135665220</created>
<option name="number" value="00055" />
<option name="presentableId" value="LOCAL-00055" />
<option name="project" value="LOCAL" />
<updated>1614135665220</updated>
</task>
<option name="localTasksCounter" value="56" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
......
...@@ -3,35 +3,41 @@ ...@@ -3,35 +3,41 @@
"data": { "data": {
"records": [ "records": [
{ {
"score": 35280, "score": 40150,
"level": 1, "level": 1,
"isVisitSuccess": true, "isVisitSuccess": true,
"stars": 3 "stars": 3
},
{
"score": 96840,
"level": 99,
"isVisitSuccess": true,
"stars": 3
} }
], ],
"openId": "AAHr9QYsANUEO_cbBdzJUj7O", "openId": "AAHr9QYsANUEO_cbBdzJUj7O",
"rule": "扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩", "rule": "扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩后端是多扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩扩",
"topLevelVisitSuccess": false, "topLevelVisitSuccess": true,
"updateTime": 1614047423516, "updateTime": 1614136276849,
"title": "斐乐测试测试活动", "title": "斐乐测试",
"tools": { "tools": {
"booms": 1, "booms": 99,
"hammers": 1, "hammers": 111,
"steps": 1 "steps": 111
}, },
"levelPrize": { "levelPrize": {
"level50": "https://img.alicdn.com/imgextra/i2/676606897/O1CN017elfUH20osKEsgRdY_!!676606897-0-miniprogram.jpg", "level50": "https://img.alicdn.com/imgextra/i2/676606897/O1CN017elfUH20osKEsgRdY_!!676606897-0-miniprogram.jpg",
"level99": "https://img.alicdn.com/imgextra/i1/676606897/O1CN01kJeK0w20osKKCIz8a_!!676606897-0-miniprogram.jpg" "level99": "https://img.alicdn.com/imgextra/i1/676606897/O1CN01kJeK0w20osKKCIz8a_!!676606897-0-miniprogram.jpg"
}, },
"currentLevel": 2, "currentLevel": 99,
"createTime": 1614047375527, "createTime": 1614047372717,
"isDrawTopLevelPrize": false, "isDrawTopLevelPrize": true,
"deleteStatus": 1, "deleteStatus": 1,
"awardReceiveExpiredTime": 1615257022000, "awardReceiveExpiredTime": 1617155583000,
"startTime": 1614047422000, "startTime": 1614131952569,
"power": 1, "power": 6,
"_id": "6034688fe5c0d7b04c985429", "_id": "6034688c3075d92efd920adc",
"endTime": 1614652222000, "endTime": 1616550783000,
"openPrizeStatus": 1, "openPrizeStatus": 1,
"tasks": { "tasks": {
"invites": { "invites": {
......
...@@ -11318,12 +11318,13 @@ var HelpPanel = (function (_super) { ...@@ -11318,12 +11318,13 @@ var HelpPanel = (function (_super) {
_super.prototype.hidePanel.call(this); _super.prototype.hidePanel.call(this);
Tools_1.Tools.globalData.inviteId = ''; Tools_1.Tools.globalData.inviteId = '';
}; };
HelpPanel.prototype.doHelp = function () { HelpPanel.prototype.doHelp = function (e) {
return __awaiter(this, void 0, void 0, function () { return __awaiter(this, void 0, void 0, function () {
var _this = this; var _this = this;
return __generator(this, function (_a) { return __generator(this, function (_a) {
switch (_a.label) { switch (_a.label) {
case 0: case 0:
this.btnDelay(e.target);
if (Tools_1.Tools.globalData.inviteId == Tools_1.Tools.globalData.openId) { if (Tools_1.Tools.globalData.inviteId == Tools_1.Tools.globalData.openId) {
ctrls_1.showToast('自己不能给自己助力'); ctrls_1.showToast('自己不能给自己助力');
this.hidePanel(); this.hidePanel();
...@@ -11486,7 +11487,7 @@ var LotteryPanel = (function (_super) { ...@@ -11486,7 +11487,7 @@ var LotteryPanel = (function (_super) {
var _a = this.prizeData, type = _a.type, _id = _a._id; var _a = this.prizeData, type = _a.type, _id = _a._id;
switch (type) { switch (type) {
case 1: case 1:
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id }, function (success, res) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id, id: _id }, function (success, res) {
if (!success || !res) { if (!success || !res) {
ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理'); ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理');
_this.hidePanel(); _this.hidePanel();
...@@ -12498,7 +12499,7 @@ var SuccessPrizePanel = (function (_super) { ...@@ -12498,7 +12499,7 @@ var SuccessPrizePanel = (function (_super) {
var _a = this.data.prize, name = _a.name, _id = _a._id, image = _a.image, type = _a.type, toolType = _a.toolType; var _a = this.data.prize, name = _a.name, _id = _a._id, image = _a.image, type = _a.type, toolType = _a.toolType;
switch (this.data.prize.type) { switch (this.data.prize.type) {
case 1: case 1:
TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id }, function (success, res) { TaoBaoNet_1.sendTbNet(TaoBaoNet_1.TbNetName.receiveEnamePrize, { _id: _id, id: _id }, function (success, res) {
if (!success || !res) { if (!success || !res) {
ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理'); ctrls_1.showToast('奖品发放失败\n请前往我的奖品处进行处理');
_this.hidePanel(); _this.hidePanel();
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -71,6 +71,8 @@ export class Tools { ...@@ -71,6 +71,8 @@ export class Tools {
tasks: any, tasks: any,
};// 活动基本信息 };// 活动基本信息
static actEnd = false;
/** /**
* 进入地图页面刷新 * 进入地图页面刷新
*/ */
...@@ -79,12 +81,28 @@ export class Tools { ...@@ -79,12 +81,28 @@ export class Tools {
sendTbNet(TbNetName.getActivityBaseInfoById, {}, (s, res) => { sendTbNet(TbNetName.getActivityBaseInfoById, {}, (s, res) => {
if (s) { if (s) {
this.gameData = res.data; this.gameData = res.data;
sendTbNet(TbNetName.updateActivityInfo, {data: JSON.parse(JSON.stringify(res.data))}); sendTbNet(TbNetName.updateActivityInfo, { data: JSON.parse(JSON.stringify(res.data)) });
Tools.gameData.prizeLevels = []; Tools.gameData.prizeLevels = [];
for (let k in Tools.gameData.levelPrize) { for (let k in Tools.gameData.levelPrize) {
Tools.gameData.prizeLevels.push(+k.split('level')[1]); Tools.gameData.prizeLevels.push(+k.split('level')[1]);
} }
Tools.gameData.prizeLevels.sort((a, b) => a - b); Tools.gameData.prizeLevels.sort((a, b) => a - b);
// @ts-ignore
if (my && my.getServerTime) {
// @ts-ignore
my.getServerTime({
success: (t) => {
Tools.actEnd = (+res.data.endTime <= +t.time);
},
failed: () => {
Tools.actEnd = (+res.data.endTime <= Date.now());
}
});
} else {
Tools.actEnd = (+res.data.endTime <= Date.now());
}
} }
r(s); r(s);
}) })
......
...@@ -5,7 +5,7 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN; ...@@ -5,7 +5,7 @@ import TEXT_ALIGN = FYGE.TEXT_ALIGN;
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import { RES } from "../../../module/RES"; import { RES } from "../../../module/RES";
import { Tools } from "../../Tools"; import { Tools } from "../../Tools";
import { showPanel } from "../../../module/ctrls"; import { showPanel, showToast } from "../../../module/ctrls";
import { RulePanel } from "../../panels/RulePanel"; import { RulePanel } from "../../panels/RulePanel";
import { sendTbNet, TbNetName } from "../../TaoBaoNet"; import { sendTbNet, TbNetName } from "../../TaoBaoNet";
import { layers } from "../../../module/views/layers"; import { layers } from "../../../module/views/layers";
...@@ -57,6 +57,10 @@ export default class MapUI extends Container { ...@@ -57,6 +57,10 @@ export default class MapUI extends Container {
break; break;
case this.taskBtn: case this.taskBtn:
if (Tools.actEnd) {
showToast("活动已结束");
return;
}
Tools.openTask(); Tools.openTask();
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