Commit 9ed62a9b authored by wildfirecode's avatar wildfirecode

1

parent ea6307e9
...@@ -178,5 +178,10 @@ ...@@ -178,5 +178,10 @@
"backgroundType": "user", "backgroundType": "user",
"useBgImage": false, "useBgImage": false,
"useBgColor": true "useBgColor": true
},
"16cd6d4c8ff": {
"backgroundType": "user",
"useBgImage": false,
"useBgColor": true
} }
} }
\ No newline at end of file
...@@ -128,7 +128,8 @@ export default class MainBase extends eui.UILayer { ...@@ -128,7 +128,8 @@ export default class MainBase extends eui.UILayer {
} }
private async runGame() { private async runGame() {
await this.loadResource() await this.loadResource();
// RES.getResAsync('bg_mp3');
RES.getResAsync(`nums_png`); RES.getResAsync(`nums_png`);
RES.getResAsync(`nums_fnt`); RES.getResAsync(`nums_fnt`);
if (!window['development']) if (!window['development'])
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="Share2Skin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="Share2Skin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16cd6d4c8ff"/>
<e:Rect width="750" height="1624" fillAlpha="0.7"/> <e:Rect width="750" height="1624" fillAlpha="0.7"/>
<e:Group id="pic" x="86" y="46"> <e:Group id="pic" x="86" y="46">
<e:Image source="share3_jpg" y="0" x="0"/> <e:Image source="share3_jpg" y="0" x="0"/>
......
...@@ -291,7 +291,7 @@ export default class MapScene extends Scene { ...@@ -291,7 +291,7 @@ export default class MapScene extends Scene {
if (s) { if (s) {
const data = DataManager.ins.getData('getPlugOrderStatus'); const data = DataManager.ins.getData('getPlugOrderStatus');
//区分奖品 //区分奖品
if (data.lottery) { if (data.lottery && data.lottery.type != 'thanks') {
PanelCtrl.instance.show('box'); PanelCtrl.instance.show('box');
} else { } else {
showToast('您与奖品擦肩而过~'); showToast('您与奖品擦肩而过~');
......
...@@ -5,6 +5,7 @@ import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl"; ...@@ -5,6 +5,7 @@ import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import { showToast } from "../../libs/new_wx/ctrls/toastCtrl"; import { showToast } from "../../libs/new_wx/ctrls/toastCtrl";
import { getlogItem } from "../Main"; import { getlogItem } from "../Main";
import wait from "../../libs/new_tc/wait"; import wait from "../../libs/new_tc/wait";
import { showShare } from "../shareCtrl";
export default class BloodPanel extends Panel { export default class BloodPanel extends Panel {
start(data) { start(data) {
...@@ -51,6 +52,7 @@ this['price1Txt'].text = window['price1'] ...@@ -51,6 +52,7 @@ this['price1Txt'].text = window['price1']
} }
onTapInvite() { onTapInvite() {
showShare();
NetManager.ins.clickLog(getlogItem(4)); NetManager.ins.clickLog(getlogItem(4));
const data = getHomeData(); const data = getHomeData();
if (data.askForEnergy) { if (data.askForEnergy) {
......
...@@ -14,10 +14,12 @@ class Share2 extends ComponentBase { ...@@ -14,10 +14,12 @@ class Share2 extends ComponentBase {
this['lvTxt'].text = data.levels.length; this['lvTxt'].text = data.levels.length;
this['btn1'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['btn1'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this.getFunc('btn1'); this.getFunc('btn1');
hideShare();
}, this); }, this);
this['btn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['btn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this.getFunc('btn2'); this.getFunc('btn2');
hideShare();
}, this); }, this);
} }
......
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