Commit 49451c64 authored by 邱旭's avatar 邱旭

1

parent d557c1ea
......@@ -41,7 +41,7 @@
<body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="true" data-show-log="true"
data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="true"
data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
......
import ComponentBase from "../libs/new_wx/components/ComponentBase";
// // 用法示例:
// // 创建一个形状
// function getShape(x, y, w, h) {
......@@ -25,7 +23,10 @@ import ComponentBase from "../libs/new_wx/components/ComponentBase";
// });
// })
export default class ReverseMask extends ComponentBase {
/**
* 简单的反向遮罩
*/
export default class ReverseMask extends eui.Component {
private canvasW: number = 750 / window.innerWidth * window.innerWidth;
private canvasH: number = 750 / window.innerWidth * window.innerHeight;
......
......@@ -4,10 +4,11 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import { getlogItem } from "../../Main";
import ReverseMask from "../../ReverseMask";
export default class TaskCenter extends Panel {
public closeBtn:eui.Button;
public list:eui.List;
public closeBtn: eui.Button;
public list: eui.List;
onShowAnim() {
let canvasH = 750 / window.innerWidth * window.innerHeight;
......@@ -100,14 +101,14 @@ class TaskCenterItem extends eui.ItemRenderer {
// 领奖
NetManager.ins.taskAward((success, res) => {
if(!success) {
PanelCtrl.instance.show('taskCenterNoPrize', {prizeData:res, taskData:this.data});
PanelCtrl.instance.show('taskCenterNoPrize', {prizeData: res, taskData: this.data});
return;
}
if(!res.data.option || res.data.option.categoryType == 1) { // 无奖励
PanelCtrl.instance.show('taskCenterNoPrize', {prizeData:res, taskData:this.data});
PanelCtrl.instance.show('taskCenterNoPrize', {prizeData: res, taskData: this.data});
return;
}
PanelCtrl.instance.show('taskCenterPrize', {prizeData:res, taskData:this.data});
PanelCtrl.instance.show('taskCenterPrize', {prizeData: res, taskData: this.data});
}, this.data.subActivityId);
}, this);
} else if(done < limit) { // 未完成
......
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