Commit 59d7e7cc authored by wildfirecode's avatar wildfirecode

1

parent 1e3d8902
import Scene from "../libs/new_wx/components/Scene"; import Scene from "../libs/new_wx/components/Scene";
import Utils from "./Utils"; import Utils from "./Utils";
import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../libs/new_wx/ctrls/panelCtrl";
import { NetManager } from "../libs/tw/manager/NetManager";
import { getlogItem } from "./Main";
export default class H52Scene extends Scene { export default class H52Scene extends Scene {
async start(data?) { async start(data?) {
NetManager.ins.showLog(getlogItem(51));
super.start(); super.start();
this['group'].y = (this.stage.stageHeight -1624)/2 this['group'].y = (this.stage.stageHeight -1624)/2
// this.height=this.stage.stageHeight; // this.height=this.stage.stageHeight;
...@@ -13,6 +16,7 @@ export default class H52Scene extends Scene { ...@@ -13,6 +16,7 @@ export default class H52Scene extends Scene {
// PanelCtrl.instance.show('inviterule') // PanelCtrl.instance.show('inviterule')
// },this); // },this);
this['gobtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{ this['gobtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
NetManager.ins.clickLog(getlogItem(51));
const code = Utils.getRequestByKey('shareCode'); const code = Utils.getRequestByKey('shareCode');
window.location.href = `${window['targetUrl']}&shareCode=${code}` window.location.href = `${window['targetUrl']}&shareCode=${code}`
},this); },this);
......
...@@ -29,7 +29,7 @@ export default class AdSmallComp extends ComponentBase { ...@@ -29,7 +29,7 @@ export default class AdSmallComp extends ComponentBase {
this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['img'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
if(data.logid) if(data.logid)
NetManager.ins.showLog(getlogItem(data.logid)); NetManager.ins.clickLog(getlogItem(data.logid));
wait(50).then(()=>{ wait(50).then(()=>{
window.location.href = result.url; window.location.href = result.url;
}); });
......
...@@ -73,6 +73,7 @@ export default class MapScene extends Scene { ...@@ -73,6 +73,7 @@ export default class MapScene extends Scene {
} }
if(!success) { return; } if(!success) { return; }
showToast("帮刮成功!"); showToast("帮刮成功!");
NetManager.ins.showLog(getlogItem(52));
NetManager.ins.showLog(getlogItem(36)); NetManager.ins.showLog(getlogItem(36));
}, _code); }, _code);
} }
...@@ -301,7 +302,7 @@ export default class MapScene extends Scene { ...@@ -301,7 +302,7 @@ export default class MapScene extends Scene {
if(mapAdvert == null) if(mapAdvert == null)
mapAdvert = {enable: false, advertList: []} mapAdvert = {enable: false, advertList: []}
this['adBtn'].visible = mapAdvert.enable; this['adBtn'].visible = mapAdvert.enable;
if(this['adBtn']) { if(this['adBtn'].visible) {
NetManager.ins.showLog(getlogItem(32)); NetManager.ins.showLog(getlogItem(32));
} }
if(mapAdvert.enable) { if(mapAdvert.enable) {
......
...@@ -8,12 +8,14 @@ import { loadSvga } from "../../loadSvga"; ...@@ -8,12 +8,14 @@ import { loadSvga } from "../../loadSvga";
import getResPath from "../../../libs/new_tc/getResPath"; import getResPath from "../../../libs/new_tc/getResPath";
import Utils from "../../Utils"; import Utils from "../../Utils";
import { showToast } from "../../../libs/new_wx/ctrls/toastCtrl"; import { showToast } from "../../../libs/new_wx/ctrls/toastCtrl";
import { getlogItem } from "../../Main";
export default class ScratchIcon extends IconBase { export default class ScratchIcon extends IconBase {
private cutTimer: CutTimer = null; private cutTimer: CutTimer = null;
constructor(name: string, group: eui.Group, btn: eui.Button, tipsBg?: eui.Image, tipsLabel?: eui.Label) { constructor(name: string, group: eui.Group, btn: eui.Button, tipsBg?: eui.Image, tipsLabel?: eui.Label) {
super(name, group, btn, tipsBg, tipsLabel); super(name, group, btn, tipsBg, tipsLabel);
NetManager.ins.showLog(getlogItem(49));
} }
protected start() { protected start() {
...@@ -64,6 +66,7 @@ export default class ScratchIcon extends IconBase { ...@@ -64,6 +66,7 @@ export default class ScratchIcon extends IconBase {
*/ */
protected onTouchBtn(e: egret.TouchEvent) { protected onTouchBtn(e: egret.TouchEvent) {
super.onTouchBtn(e); super.onTouchBtn(e);
NetManager.ins.showLog(getlogItem(49));
NetManager.ins.scratchGetTaskInfo((success, res) => { NetManager.ins.scratchGetTaskInfo((success, res) => {
if(!success) { if(!success) {
return; return;
......
...@@ -11,11 +11,11 @@ import { getlogItem } from "../../Main"; ...@@ -11,11 +11,11 @@ import { getlogItem } from "../../Main";
export default class TurntableIcon extends IconBase { export default class TurntableIcon extends IconBase {
constructor(name: string, group: eui.Group, btn: eui.Button, tipsBg?: eui.Image, tipsLabel?: eui.Label) { constructor(name: string, group: eui.Group, btn: eui.Button, tipsBg?: eui.Image, tipsLabel?: eui.Label) {
super(name, group, btn, tipsBg, tipsLabel); super(name, group, btn, tipsBg, tipsLabel);
NetManager.ins.showLog(getlogItem(43));
} }
protected start() { protected start() {
super.start(); super.start();
NetManager.ins.showLog(getlogItem(43));
//有免费次数 //有免费次数
//没有免费次数 //没有免费次数
//如果元宝足够 //如果元宝足够
...@@ -23,8 +23,8 @@ export default class TurntableIcon extends IconBase { ...@@ -23,8 +23,8 @@ export default class TurntableIcon extends IconBase {
} }
updateIcon(){ updateIcon(){
NetManager.ins.clickLog(getlogItem(43));
NetManager.ins.hc_turnableBaseInfo((success, res)=>{ NetManager.ins.hc_turnableBaseInfo((success, res)=>{
NetManager.ins.clickLog(getlogItem(43));
if(!success){ if(!success){
this.visible = false; this.visible = false;
return; return;
......
...@@ -32,14 +32,14 @@ export default class BagPanel extends Panel { ...@@ -32,14 +32,14 @@ export default class BagPanel extends Panel {
this['btn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['btn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
this['group1'].visible = true; this['group1'].visible = true;
this['group2'].visible = false; this['group2'].visible = false;
NetManager.ins.clickLog(getlogItem(39)); NetManager.ins.showLog(getlogItem(39));
}, this); }, this);
this['recordbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['recordbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
window.location.href = window['__link__']; window.location.href = window['__link__'];
}, this); }, this);
this['shopbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this['shopbtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
PanelCtrl.instance.show('Shop'); PanelCtrl.instance.show('Shop');
NetManager.ins.showLog(getlogItem(39)); NetManager.ins.clickLog(getlogItem(39));
}, this); }, this);
this.list.itemRenderer=BagItemRenderer; this.list.itemRenderer=BagItemRenderer;
......
...@@ -23,7 +23,7 @@ export default class InvitePrizePanel extends Panel { ...@@ -23,7 +23,7 @@ export default class InvitePrizePanel extends Panel {
start() { start() {
super.start(); super.start();
NetManager.ins.showLog(getlogItem(38)); NetManager.ins.showLog(getlogItem(37));
} }
protected onSkinComplete() { protected onSkinComplete() {
...@@ -60,7 +60,7 @@ export default class InvitePrizePanel extends Panel { ...@@ -60,7 +60,7 @@ export default class InvitePrizePanel extends Panel {
} }
onTapGoPrize() { onTapGoPrize() {
NetManager.ins.showLog(getlogItem(37)); NetManager.ins.clickLog(getlogItem(37));
window.location.href = window['__link__']; window.location.href = window['__link__'];
} }
......
...@@ -7,6 +7,7 @@ import ScratchRulePanel from "./ScratchRulePanel"; ...@@ -7,6 +7,7 @@ import ScratchRulePanel from "./ScratchRulePanel";
import CutTimer from "../CutTimer"; import CutTimer from "../CutTimer";
import Utils from "../Utils"; import Utils from "../Utils";
import { DataManager } from "../../libs/tw/manager/DataManager"; import { DataManager } from "../../libs/tw/manager/DataManager";
import { getlogItem } from "../Main";
export default class ScratchPanel extends Panel { export default class ScratchPanel extends Panel {
private cutTimer: CutTimer; private cutTimer: CutTimer;
...@@ -42,7 +43,7 @@ export default class ScratchPanel extends Panel { ...@@ -42,7 +43,7 @@ export default class ScratchPanel extends Panel {
} }
showlog() { showlog() {
NetManager.ins.showLog(getlogItem(50));
} }
initEvents() { initEvents() {
...@@ -221,6 +222,7 @@ class ScratchItem extends eui.ItemRenderer { ...@@ -221,6 +222,7 @@ class ScratchItem extends eui.ItemRenderer {
let s = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png"; let s = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png"; this.img.source = this.data.avatar || "http://yun.duiba.com.cn/db_games/default_avatar.png";
this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this.img.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(50));
NetManager.ins.scratchGetShareCode((success, res) => { NetManager.ins.scratchGetShareCode((success, res) => {
if(!success) { if(!success) {
return; return;
......
...@@ -24,6 +24,7 @@ export default class ScratchPrizePanel extends Panel { ...@@ -24,6 +24,7 @@ export default class ScratchPrizePanel extends Panel {
start() { start() {
super.start(); super.start();
this.initUI(); this.initUI();
NetManager.ins.showLog(getlogItem(53));
NetManager.ins.showLog(getlogItem(54)); NetManager.ins.showLog(getlogItem(54));
} }
...@@ -51,6 +52,7 @@ export default class ScratchPrizePanel extends Panel { ...@@ -51,6 +52,7 @@ export default class ScratchPrizePanel extends Panel {
super.onTouchTap_closeBtn(); super.onTouchTap_closeBtn();
break; break;
case (e.target == this.ok_btn): // 去领奖 case (e.target == this.ok_btn): // 去领奖
NetManager.ins.clickLog(getlogItem(53));
window.location.href = window['__link__']; window.location.href = window['__link__'];
break; break;
case (e.target == this.game_btn): // 继续闯关 case (e.target == this.game_btn): // 继续闯关
......
{ {
"code": "0000000000", "code": "0000000000",
"data": { "data": {
"mapAdvert": { "mapAdvert1": {
"enable": true, "enable": true,
"advertList": [ "advertList": [
{ {
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
} }
] ]
}, },
"noticeAdvert": { "noticeA1dvert": {
"enable": true, "enable": true,
"advertList": [ "advertList": [
{ {
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
} }
] ]
}, },
"popupAdvert": { "enable": true, "popupAd1vert": { "enable": true,
"advertList": [ "advertList": [
{ {
"img": "//yun.duiba.com.cn/images/201910/zqtdp6xibw.jpg", "img": "//yun.duiba.com.cn/images/201910/zqtdp6xibw.jpg",
......
...@@ -16,6 +16,6 @@ ...@@ -16,6 +16,6 @@
"value":"虚拟商品标识符" "value":"虚拟商品标识符"
}, },
"desc":"OK", "desc":"OK",
"success":true, "success":0,
"timestamp":1572079274940 "timestamp":1572079274940
} }
\ No newline at end of file
{ {"success":true,"code":"0000000000","desc":"OK","timestamp":1572403459420,"data":{"invitationId":null,"invitationCount":1,"sysTime":1572403459405,"endTime":1572489858000,"completeFlag":0,"openPrizMsg":null,"prizeType":"7","prizeName":null,"prizeImg":"//yun.dui88.com/images/201910/s0yhv1nlil.jpeg","facePrice":"3651404_286462788044574721","invitationUser":[]}}
"success": true, \ No newline at end of file
"code": "0000000000",
"desc": "OK",
"timestamp": 1572249599076,
"data": {
"invitationId": null,
"invitationCount": null,
"sysTime": null,
"endTime": null,
"completeFlag": 6,
"openPrizMsg": null,
"prizeType": null,
"prizeName": null,
"prizeImg": null,
"facePrice": null,
"invitationUser": null
}
}
\ No newline at end of file
...@@ -22,9 +22,9 @@ ...@@ -22,9 +22,9 @@
"num": 3 "num": 3
} }
], ],
"remainEnargy": 1, "remainEnargy": 5,
"askForEnergy":false, "askForEnergy":false,
"canReceiveTreasureBoxNum": 0, "canReceiveTreasureBoxNum": 10,
"nextRangeStarsNum": 0, "nextRangeStarsNum": 0,
"isGetAllTreasureBox": true, "isGetAllTreasureBox": true,
"refectionCountdown": 1685 "refectionCountdown": 1685
......
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