Commit 695c91bd authored by haiyoucuv's avatar haiyoucuv

1111

parent 254f14b8
This diff is collapsed.
...@@ -5,16 +5,16 @@ ...@@ -5,16 +5,16 @@
"amount": "5", "amount": "5",
"drawStatus": 6, "drawStatus": 6,
"openId": "AAGquNyCAKrpWdzBzeceF5T-", "openId": "AAGquNyCAKrpWdzBzeceF5T-",
"remark": "今日领取达到上限,明日再来领取哦", "remark": "请至卡券包删除无用权益再领取",
"type": 1, "type": 1,
"prizeId": "5ee8809b8564b515371c5c11", "prizeId": "5ee8809b8564b515371c5c11",
"activityId": "5ee70c078564b5153717fbfd", "activityId": "5ee70c078564b5153717fbfd",
"ename": "ffdd8a992ad545d6b0ecb46d76f18982", "ename": "ffdd8a992ad545d6b0ecb46d76f18982",
"userNick": "lpf468169313", "userNick": "lpf468169313",
"name": "限制库存优惠券洽洽1", "name": "限制库存优惠券洽洽1",
"_id": "AAGquNyCAKrpWdzBzeceF5T-1592297851985", "_id": "AAGquNyCAKrpWdzBzeceF5T-1592373462304",
"exchangeDay": "2020/06/16" "exchangeDay": "2020/06/17"
}, },
"success": tr "success": true,
"message": "成功" "message": "成功"
} }
...@@ -3,43 +3,39 @@ ...@@ -3,43 +3,39 @@
"data": { "data": {
"guideStep": 8, "guideStep": 8,
"guideIsEnd": true, "guideIsEnd": true,
"waterDrops": 94, "waterDrops": 0,
"plants": [ "plants": [
{ {
"level": 2, "level": "",
"waterRestCount": 1, "waterRestCount": "",
"totalTime": 3000, "plant": false,
"plant": true, "waterTime": "",
"waterTime": 1591954069560,
"index": 1, "index": 1,
"plantType": "CHESTNUT" "plantType": ""
}, },
{ {
"level": 3, "level": "",
"waterRestCount": 0, "waterRestCount": "",
"totalTime": 0,
"plant": false, "plant": false,
"waterTime": "", "waterTime": "",
"index": 2, "index": 2,
"plantType": "CHESTNUT" "plantType": ""
}, },
{ {
"level": 3, "level": "",
"waterRestCount": 0, "waterRestCount": "",
"totalTime": 0,
"plant": false, "plant": false,
"waterTime": "", "waterTime": "",
"index": 3, "index": 3,
"plantType": "CHESTNUT" "plantType": ""
}, },
{ {
"level": 3, "level": "",
"waterRestCount": 0, "waterRestCount": "",
"totalTime": 0,
"plant": false, "plant": false,
"waterTime": "", "waterTime": "",
"index": 4, "index": 4,
"plantType": "CHESTNUT" "plantType": ""
} }
] ]
}, },
......
...@@ -57,11 +57,11 @@ export default class ExSuccessPanel extends Panel { ...@@ -57,11 +57,11 @@ export default class ExSuccessPanel extends Panel {
showToast('兑换成功'); showToast('兑换成功');
}).catch(() => { }).catch(() => {
this.hideAll(); this.hideAll();
showToast('奖品发放失败\n请前往我的奖品处进行处理'); // showToast('奖品发放失败\n请前往我的奖品处进行处理');
}) })
} else { } else {
this.hideAll(); this.hideAll();
// showToast('奖品发放失败\n请前往我的奖品处进行处理'); showToast('奖品发放失败\n请前往我的奖品处进行处理');
} }
} }
......
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import { Tool } from "../Tools"; import { Tool } from "../Tools";
import { layers } from "../../module/views/layers"; import { layers } from "../../module/views/layers";
import { RES } from "../../module/RES";
import { activityId, sellerId, sendTbNet, TbNetName } from "../TaoBaoNet"; import { activityId, sellerId, sendTbNet, TbNetName } from "../TaoBaoNet";
import { GDispatcher } from "../Main"; import { GDispatcher } from "../Main";
import { G_EVENT } from "../const/GEVENT"; import { G_EVENT } from "../const/GEVENT";
...@@ -147,7 +146,7 @@ const taskInfo = { ...@@ -147,7 +146,7 @@ const taskInfo = {
}, },
invites: { invites: {
name: '邀请好友', name: '邀请好友',
tips: '邀请3位好友可得大量水滴', tips: '邀请好友可得大量水滴',
btnLabel: '去邀请', btnLabel: '去邀请',
doneLabel: '明日再来' doneLabel: '明日再来'
}, },
......
...@@ -28,10 +28,15 @@ export default class ProgressBar extends Container { ...@@ -28,10 +28,15 @@ export default class ProgressBar extends Container {
this.fill.position.set(56, 1); this.fill.position.set(56, 1);
// mask // mask
const mask = this.addChild(new Graphics()); const mask = this.addChild(new Graphics());
mask.drawRect(56, 1, 139, 29); mask.drawRect(0, 0, 195, 31);
this.fill.mask = mask; this.fill.mask = mask;
this.fill.x = -59; mask.mouseEnable = false;
mask.mouseChildren = false;
this.fill.x = 56.2;
mask.x = -138;
// nameLabel // nameLabel
this.nameLabel = this.addChild(new TextField()); this.nameLabel = this.addChild(new TextField());
...@@ -116,8 +121,11 @@ export default class ProgressBar extends Container { ...@@ -116,8 +121,11 @@ export default class ProgressBar extends Container {
this.timeLabel.text = `${hour}${min}分后浇水`; this.timeLabel.text = `${hour}${min}分后浇水`;
// this.timeLabel.position.set(56 + (136 - this.timeLabel.textWidth) / 2, 0); // this.timeLabel.position.set(56 + (136 - this.timeLabel.textWidth) / 2, 0);
// const progress = 1 - this.cutTime / this.fullTime;
// this.fill.x = 139 * progress - 139 + 53;
const progress = 1 - this.cutTime / this.fullTime; const progress = 1 - this.cutTime / this.fullTime;
this.fill.x = 139 * progress - 139 + 53; this.fill.mask.x = -138 + 138 * progress;
} }
/** /**
......
...@@ -6,6 +6,7 @@ import { Land } from "../parts/Game/Land"; ...@@ -6,6 +6,7 @@ import { Land } from "../parts/Game/Land";
import MouseEvent = FYGE.MouseEvent; import MouseEvent = FYGE.MouseEvent;
import { gameResource } from "../const/staticData"; import { gameResource } from "../const/staticData";
import Sprite = FYGE.Sprite; import Sprite = FYGE.Sprite;
// import ProgressBar from "../parts/Game/ProgressBar";
export class GameScene extends Scene { export class GameScene extends Scene {
...@@ -44,6 +45,10 @@ export class GameScene extends Scene { ...@@ -44,6 +45,10 @@ export class GameScene extends Scene {
this.adBtn.name = '广告'; this.adBtn.name = '广告';
this.adBtn.visible = false; this.adBtn.visible = false;
// let a = this.addChild(new ProgressBar());
// a.position.set(400, 500);
// a.visible = true;
} }
start() { start() {
......
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