Commit 56aea6af authored by wildfirecode's avatar wildfirecode

Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev

parents 572856cc ef0fb2f5
...@@ -88,7 +88,7 @@ export default class MainScene extends Scene { ...@@ -88,7 +88,7 @@ export default class MainScene extends Scene {
exposure exposure
chapterData: ChapterData; chapterData: ChapterData;
//关数 //关数
chapter:number chapter: number
//所有的格子数组 //所有的格子数组
lattices: Lattice[]; lattices: Lattice[];
//最后一行的行数 //最后一行的行数
...@@ -2026,14 +2026,20 @@ export default class MainScene extends Scene { ...@@ -2026,14 +2026,20 @@ export default class MainScene extends Scene {
Loading.instace.show(); Loading.instace.show();
NetManager.ins.hc_submit((s, data) => { NetManager.ins.hc_submit((s, data) => {
if (s) { if (s) {
//提交成功后捞结果
NetManager.ins.getOrderStatus((s) => { NetManager.ins.getOrderStatus((s) => {
Loading.instace.hide(); Loading.instace.hide();
playSound(SoundType.sucess); playSound(SoundType.sucess);
if (s) { if (s) {
//区分奖品,待写 //区分奖品
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL); if (DataManager.ins.getCustomOrderStatusData.lottery) {
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
} else {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
} else { } else {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL); //失败直接显示未中奖
} }
}, },
DataManager.ins.getData("hc_doJoin").data, DataManager.ins.getData("hc_doJoin").data,
......
...@@ -50,6 +50,7 @@ export class ScoreProgress { ...@@ -50,6 +50,7 @@ export class ScoreProgress {
this.starCount = 3; this.starCount = 3;
}; };
} }
//是否超过2星
else if (value >= this.starScores[1]) { else if (value >= this.starScores[1]) {
scale = (value - this.starScores[1]) / (this.starScores[2] - this.starScores[1]); scale = (value - this.starScores[1]) / (this.starScores[2] - this.starScores[1]);
w = (595 - 522) * scale + 522; w = (595 - 522) * scale + 522;
...@@ -58,6 +59,7 @@ export class ScoreProgress { ...@@ -58,6 +59,7 @@ export class ScoreProgress {
this.starCount = 2; this.starCount = 2;
}; };
} }
//是否超过1星
else if (value >= this.starScores[0]) { else if (value >= this.starScores[0]) {
scale = (value - this.starScores[0]) / (this.starScores[1] - this.starScores[0]); scale = (value - this.starScores[0]) / (this.starScores[1] - this.starScores[0]);
w = (522 - 446) * scale + 446; w = (522 - 446) * scale + 446;
......
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