Commit 9dfaac5d authored by wildfirecode's avatar wildfirecode

1

parent 7bc95486
......@@ -700,7 +700,7 @@ export class NetManager extends ABNetManager {
*/
public getPlugOrderStatus(callback: Function, orderId: number, pollingCheck: Function, pollingCount = 5, prizeLevel?: number): void {
const net: INetData = {
name: NetName.PLUG_ORDER_STATUS,
name: 'getPlugOrderStatus',
uri: '/plugin/getOrderStatus',
type: 'get',
dataType: 'json',
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/icon.png","../assets/map/animal1.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/iconbg.png","../assets/map/光 副本 4.png"]}
\ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"map","version":5,"files":["../assets/map/progress2.png","../assets/map/progress1.png","../assets/map/icon.png","../assets/map/animal1.png","../assets/map/元宝bg.png","../assets/map/有星星.png","../assets/map/音乐.png","../assets/map/星星bg.png","../assets/map/星星.png","../assets/map/无星星.png","../assets/map/问题.png","../assets/map/退出.png","../assets/map/狮子.png","../assets/map/声音.png","../assets/map/设置bg.png","../assets/map/设置.png","../assets/map/关闭 拷贝.png","../assets/map/道具.png","../assets/map/宝箱btn.png","../assets/map/宝箱bg.png","../assets/map/宝箱.png","../assets/map/宝箱3.png","../assets/map/宝箱2.png","../assets/map/宝箱1.png","../assets/map/iconbg.png","../assets/map/光 副本 4.png","../assets/map/音乐关闭.png","../assets/map/声音关闭.png"]}
\ No newline at end of file
......@@ -46,6 +46,7 @@ import SceneCtrl from '../../libs/new_wx/ctrls/sceneCtrl';
import { PropGuide } from '../something/uis/PropGuide';
import { createData } from '../startScene/StartScene';
import { Loading2 } from '../something/uis/Loading2';
import { NetName } from '../../libs/tw/enum/NetName';
const aniClass = {
"BoomAni": BoomAni,
......@@ -2120,12 +2121,13 @@ export default class MainScene extends Scene {
NetManager.ins.hc_submit((s, data) => {
if (s) {
//提交成功后捞结果
NetManager.ins.getOrderStatus((s) => {
NetManager.ins.getPlugOrderStatus((s) => {
Loading2.instace.hide();
playSound(SoundType.sucess);
if (s) {
const data = DataManager.ins.getData('getPlugOrderStatus');
//区分奖品
if (DataManager.ins.getCustomOrderStatusData.lottery) {
if (data.lottery) {
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
} else {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
......@@ -2135,8 +2137,8 @@ export default class MainScene extends Scene {
PanelCtrl.instance.show(ModuleTypes.NO_PRIZE_PANEL, { starCount: this.scoreProgress.starCount });
}
},
DataManager.ins.getData("hc_doJoin").data,
() => { return DataManager.ins.getCustomOrderStatusData.code == "C000000001"; })
DataManager.ins.getData('hc_doJoin').data,
() => { DataManager.ins.getData('getPlugOrderStatus').result == 0 })
} else {
Loading2.instace.hide();
if (!data) {
......
......@@ -11,7 +11,7 @@ import MapTopPart from "./MapTopPart";
import { DataManager } from "../../libs/tw/manager/DataManager";
import wait from "../../libs/new_tc/wait";
import { showToast } from "../../libs/new_wx/ctrls/toastCtrl";
import { toggleSound, toggleBg } from "../soundCtrl";
import { toggleSound, toggleBg, playBg } from "../soundCtrl";
export default class MapScene extends Scene {
scrollGroup: eui.Group;
......@@ -65,6 +65,10 @@ export default class MapScene extends Scene {
if (data.level) {
PanelCtrl.instance.show('StartPanel', data.level)
}
// this.stage.once(egret.TouchEvent.TOUCH_TAP,()=>{
// if(getBgOn)playBg();
// },this);
}
disableIcon(level) {
......
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