1234567891011121314151617181920212223242526272829303132333435 |
- import BaseMediator from "../../../lightMVC/core/base/BaseMediator";
- import SharePanel from "./SharePanel";
- import Notification from "../../Notification";
- export default class SharePanelViewMediator extends BaseMediator {
- public view: SharePanel;
- public init(data?: any): void {
- console.log(data+"跳转。。。");
- this.view.drawView();
- // let playerModel = this.getModel(PlayerModel);
- // this.view.setLevelDisplay(playerModel.getPlayerLv());
- // 监听修改经验事件
- // this.bindEvent(PopAView.UPDATE_LEVEL, (exp)=>{
- // this.sendCmd(UpdateExpCommand, exp);
- // }, this);
- // this.registerNoti(Notification.UPDATE_EXP_FINISH, ()=>{
- // this.view.setLevelDisplay(playerModel.getPlayerLv());
- // }, this);
- }
- public viewDidAppear(): void {
- }
- public destroy(): void {
- }
- }
|