Commit 9ed62a9b authored by wildfirecode's avatar wildfirecode

1

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