Commit 23655e06 authored by wildfirecode's avatar wildfirecode

1

parent 70978553
import getShowOffPic from "../../../src/getShowOffPic";
import { iswx } from "../../../src/iswx";
import { getlogItem } from "../../../src/Main";
import { addRankFriendList } from "../../../src/mapScene/RankFriendList";
import setGray from "../../../src/setGray";
import { NetManager } from "../../tw/manager/NetManager";
import Panel from "./Panel";
import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes";
import { createData, changeMapScene } from "../../../src/startScene/StartScene";
import { DataManager } from "../../tw/manager/DataManager";
import getShowOffPic from "../../../src/getShowOffPic";
import { showShare } from "../../../src/shareCtrl";
import { iswx } from "../../../src/iswx";
import { changeMapScene } from "../../../src/startScene/StartScene";
import wait from "../../new_tc/wait";
import { addAdComp } from "../../../src/panels/BoxPanel";
import { DataManager } from "../../tw/manager/DataManager";
import { NetManager } from "../../tw/manager/NetManager";
import Panel from "./Panel";
export default class NoPrizePanel extends Panel {
_level;
start(data) {
......@@ -40,7 +38,7 @@ export default class NoPrizePanel extends Panel {
changeMapScene();
}, this);
addAdComp(84,735.52,this);
addRankFriendList(84,735.52,this);
}
......
import getShowOffPic from "../../../src/getShowOffPic";
import { iswx } from "../../../src/iswx";
import { getlogItem } from "../../../src/Main";
import { addRankFriendList } from "../../../src/mapScene/RankFriendList";
import setGray from "../../../src/setGray";
import { showShare } from "../../../src/shareCtrl";
import { changeMapScene } from "../../../src/startScene/StartScene";
import wait from "../../new_tc/wait";
import { DataManager } from "../../tw/manager/DataManager";
import { NetManager } from "../../tw/manager/NetManager";
import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes";
import Panel from "./Panel";
import getShowOffPic from "../../../src/getShowOffPic";
import wait from "../../new_tc/wait";
import { changeMapScene } from "../../../src/startScene/StartScene";
import { addAdComp } from "../../../src/panels/BoxPanel";
export default class PrizePanel extends Panel {
_level;
start(data) {
......@@ -43,7 +41,7 @@ export default class PrizePanel extends Panel {
this.setStar(hc_submitData.stars);
addAdComp(84,938.52,this);
addRankFriendList(84,938.52,this);
}
showlog() {
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="RankFriendListSkin" width="582" height="203" xmlns:e="http://ns.egret.com/eui">
<e:Image source="startpanel_bg2_png" y="0" x="0"/>
<e:List id="friendlist" itemRendererSkinName="FriendItem2Skin" y="48" x="9">
<e:List id="friendlist" itemRendererSkinName="FriendItem2Skin" y="48" horizontalCenter="0">
<e:ArrayCollection>
<e:Array>
<e:Object a="null"/>
......
......@@ -2,6 +2,7 @@ import ComponentBase from "../../libs/new_wx/components/ComponentBase";
import { DataManager } from "../../libs/tw/manager/DataManager";
import { NetManager } from "../../libs/tw/manager/NetManager";
import FriendItem2Renderer from "../panels/FriendItem2Renderer";
import StartPanel from "../panels/StartPanel";
export default class RankFriendList extends ComponentBase {
public friendlist: eui.List;
......@@ -36,10 +37,12 @@ export default class RankFriendList extends ComponentBase {
get skinKey(): string { return 'RankFriendList' }
}
export const addRankFriendList = (x, y, parent: egret.DisplayObjectContainer) => {
export const addRankFriendList = (x, y, parent: egret.DisplayObjectContainer,level?) => {
if(!level)
level = StartPanel.currlevel;
const comp = new RankFriendList();
comp.loadSkin();
comp.start();
comp.start(level);
parent.addChildAt(comp, 0);
comp.x = x;
comp.y = y;
......
import Panel from "../../libs/new_wx/components/Panel";
import { DataManager } from "../../libs/tw/manager/DataManager";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "../Main";
import { DataManager } from "../../libs/tw/manager/DataManager";
import AdSmallComp from "../mapScene/AdSmallComp";
export default class BoxPanel extends Panel {
......
import Panel from "../../libs/new_wx/components/Panel";
import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import { ModuleTypes } from "../../libs/new_wx/types/sceneTypes";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { addRankFriendList } from "../mapScene/RankFriendList";
import { changeMapScene } from "../startScene/StartScene";
import { addAdComp } from "./BoxPanel";
export default class FailedPanel extends Panel {
_level;
......@@ -22,7 +20,7 @@ export default class FailedPanel extends Panel {
}, this);
addAdComp(84,674.52,this);
addRankFriendList(84,674.52,this);
}
onTouchTap_closeBtn() {
......
import wait from "../../libs/new_tc/wait";
import Panel from "../../libs/new_wx/components/Panel";
import { DataManager } from "../../libs/tw/manager/DataManager";
import { NetManager } from "../../libs/tw/manager/NetManager";
import getShowOffPic from "../getShowOffPic";
import { iswx } from "../iswx";
import { getlogItem } from "../Main";
import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import { ModuleTypes } from "../../libs/new_wx/types/sceneTypes";
import { addRankFriendList } from "../mapScene/RankFriendList";
import setGray from "../setGray";
import getShowOffPic from "../getShowOffPic";
import { showShare } from "../shareCtrl";
import { iswx } from "../iswx";
import wait from "../../libs/new_tc/wait";
import { changeMapScene } from "../startScene/StartScene";
import { addAdComp } from "./BoxPanel";
export default class Prize2Panel extends Panel {
_level;
......@@ -47,7 +45,7 @@ export default class Prize2Panel extends Panel {
const hc_submitData = DataManager.ins.getData('hc_submit').data;
this.setStar(hc_submitData.stars);
addAdComp(84,849.52,this);
addRankFriendList(84,849.52,this);
}
showlog() {
......
......@@ -18,15 +18,22 @@ import { ElementType } from "../something/enum/ElementType";
import { PassType } from "../something/enum/PassType";
import TargetItemRenderer from "./TargetItemRenderer";
import { addRankFriendList } from "../mapScene/RankFriendList";
import { addAdComp } from "./BoxPanel";
export default class StartPanel extends Panel {
static currlevel;
private _level;
private list: eui.List;
start(data) {
super.start();
addRankFriendList(84,925,this);
const homedata = getHomeData();
if (data > homedata.levels.length) {
addAdComp(84, 925, this)
}
else
addRankFriendList(84, 925, this,data);
setGlow(this['levelTxt'], 0xfa4b09, 1);
this['levelTxt'].text = `第${data}关`;
......@@ -124,6 +131,7 @@ export default class StartPanel extends Panel {
// Loading.instace.hide();
this.hidePanel();
SceneCtrl.instance.change(ModuleTypes.MAIN_SCENE, { chapter: this._level });
StartPanel.currlevel=this._level
}
}, this._level);
......
{"success":true,"code":"0000000000","desc":"OK","timestamp":1571045294822,"data":null}
\ No newline at end of file
{
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1571044339755,
"data": {
"levelNum": 1,
"rank": [
{
"nickName": "https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132",
"avatar": "https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132",
"stars": 3,
"maxScore": 31940,
"rank": null,
"levelNum": null,
"consumerId": null
}
,
{
"nickName": "https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132",
"avatar": "https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132",
"stars": 3,
"maxScore": 31940,
"rank": null,
"levelNum": null,
"consumerId": null
}
]
}
}
\ No newline at end of file
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