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

1

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