Commit 8ce3fa2e authored by 任建锋's avatar 任建锋

--

parent db038a85
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
this.setVisible(this.loadingTransform,false)
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj["Transform"].alpha=1;
obj.enabled=true;
}else{
obj["Transform"].alpha=0;
obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
this.setVisible(this.loadingTransform,false)
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
obj.enabled=true;
}else{
obj.alpha=0;
obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
this.setVisible(this.loadingTransform,false)
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
/* if(state){
obj.alpha=1;
obj.enabled=true;
}else{
obj.alpha=0;
obj.enabled=false;
} */
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
this.setVisible(this.loadingTransform,false)
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
this.setVisible(this.loadingTransform,false)
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
this.setVisible(this.loadingTransform,false)
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
this.startBtnAnimation.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnAnimation.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
this.startBtnAnimation.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnAnimation.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform, Button } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
startBtnButton:Button;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.startBtnButton = this.startbtn.getComponent(Transform);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
this.startBtnAnimation.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnAnimation.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform, Button } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
startBtnButton:Button;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.startBtnButton = this.startbtn.getComponent(Button);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
this.startBtnAnimation.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnAnimation.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform, Button } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
startBtnButton:Button;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.startBtnButton = this.startbtn.getComponent(Button);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
this.startBtnAnimation.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnButton.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
/**
* Created by rockyl on 2019-04-09.
*/
import ScillaComponent from "scilla-components/src/base/ScillaComponent";
import { dynamic, Entity, Tween } from "scilla/src";
import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform, Button } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
countTxt: Entity;
startbtn: Entity;
recordbtn: Entity;
pingziFront: Entity;
pingziBack: Entity;
rankbtn: Entity;
rulebtn: Entity;
gouzi: Entity;
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
pingziFrontTransform:Transform;
pingziBackTransform:Transform;
gouziTransform:Transform;
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
startBtnButton:Button;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.startBtnButton = this.startbtn.getComponent(Button);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
//Tween.
//egret.Tween.get(this.startBtn, {loop:true}).to({scaleX:0.9, scaleY:0.9}, 300).wait(1000).to({scaleX:1, scaleY:1}, 300);
// SingleSceneNavigator
console.log("sd")
/* var sd=createTween(this.startBtnAnimation, this.startBtnAnimation)
.to({scaleX:1.2,scaleY:1.2}, 1200) */
/* createTween(this, this.startBtnAnimation)
.set({scale: {x: 0, y: 0}, alpha: 1})
.wait(100)
.to({scale: {x: 0.8, y: 0.8}}, 800)
.to({scale: {x: 1.1, y: 1.1}, alpha: 0}, 1200); */
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
createTween(this, this.startBtnAnimation,true,{loop:-1})
.set({scale: {x: 1, y: 1}})
.to({scale: {x: .9, y: .9}}, 300)
.wait(1000)
.to({scale: {x: 1, y: 1}}, 300)
createTween(this, this.pingziBackTransform,true,{loop:-1})
.set({position: {x: 47.5}})
.to({position: {x: -152.5}},1000)
createTween(this, this.pingziFrontTransform,true,{loop:-1})
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
var time=1000;
if(this.hasPrize){
time=1000;
}else{
time=500;
}
createTween(this, this.gouziTransform,true,{loop:0})
.set({position: {y: 132.5}})
.to({position: {y: 335}},time)
.call(()=>{
if(this.hasPrize){
this.hasPrize=false;
this.pingzi_2Transform.alpha=0
this.gouzi_pingziTransform.alpha=1
setTimeout(()=>{
this.pingzi_2Transform.alpha=1
},1000)
}
})
.to({position: {y: 132.5}},1000)
.call(()=>{
this.hasGraDo()
this.pingzi_2Transform.alpha=1
this.gouzi_pingziTransform.alpha=0
})
}
})
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText();
}
updateCountText() {
const { element } = this.ajaxElement;
let text = ''
if (element.freeLimit > 0) {
text = `今日剩余免费次数:${element.freeLimit}次`;
} else {
text = `${element.needCredits}${window['CFG'].unitName}/次`
}
this.setCountText(text);
}
grabState=false;
hasPrize=false;
onFinish_orderStatus(){
if(!this.getOrderStatus){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
}
onResponse_orderStatus() {
//this.bubbling('showDialog', 'GameOver');
console.log(1)
console.log(this.getOrderStatus)
this.grabState=true;
if(this.getOrderStatus.code == "C000000001"){
this.hasPrize=false;
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
}else{
this.hasPrize=false;
}
}
hasGraDo(){
this.startBtnButton.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
else if(this.getOrderStatus.lottery){
if(this.getOrderStatus.lottery.type=="thanks"){
this.bubbling('showDialog', 'GameNoPrize');
}else{
this.bubbling('showDialog', 'GameOver',this.getOrderStatus);
}
}else{
this.bubbling('showDialog', 'GameNoPrize');
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnButton.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError();
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].actId,
activityType: 'hdtool',
consumerId: window['CFG'].consumerId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
this.broadcast('callApi', 1, 'getOrderStatus', {
orderId: this.doJoin
});
}
onGotDojoinError(data?) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
}
onGot_getNgameStartStatus() {
//console.log('onGot_getNgameStartStatus', this.getNgameStartStatus);
//fuck 不可以循环引用
this.bubbling('fuck', 'play');
}
onGotError_getNgameStartStatus() {
//console.log(this.getNgameStartStatus)
console.log('onGotError_getNgameStartStatus');
}
onClick_rulebtn() {
console.log('onClick_rulebtn');
this.bubbling('showDialog', 'Rule');
}
onClick_recordbtn() {
console.log('onClick_rulebtn');
//this.bubbling('showDialog', 'Rule');
}
onClick_rankbtn() {
alert('onClick_rankbtn')
// globalEvent.emit('alert', {title: 'Success', content: 'You complete this puzzle', button: 'Next level'}, this.onAlertClose);
}
onDidEnter(last: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = true;
}
onDidLeave(next: string, action: alien.NavigatorAction, parameters: any): void {
this.entity.enabled = false;
}
async onWillEnter(last: string, action: alien.NavigatorAction, parameters: any) {
}
async onWillLeave(next: string, action: alien.NavigatorAction, parameters: any) {
}
onWillMount(last: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
onWillUnMount(next: string, action: alien.NavigatorAction, parameters: any): Promise<any> {
return undefined;
}
}
{"map":"{\"version\":3,\"file\":\"GameLosePanel.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/dialogs/GameLosePanel.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD;IAA2C,yCAAa;IAAxD;;IAQA,CAAC;IAPA,+BAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAED,wCAAgB,GAAhB;QACC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IACF,oBAAC;AAAD,CAAC,AARD,CAA2C,aAAa,GAQvD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport DialogContent from '../popup/DialogContent';\r\nvar GameLosePanel = (function (_super) {\r\n tslib_1.__extends(GameLosePanel, _super);\r\n function GameLosePanel() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GameLosePanel.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n };\r\n GameLosePanel.prototype.onclick_againBtn = function () {\r\n this.bubbling('fuckNavigator', 'start');\r\n };\r\n return GameLosePanel;\r\n}(DialogContent));\r\nexport default GameLosePanel;\r\n//# sourceMappingURL=GameLosePanel.js.map"}
{"map":"{\"version\":3,\"file\":\"SceneController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/scenes/SceneController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,eAAe,MAAM,4CAA4C,CAAC;AACzE,OAAO,oBAAoB,MAAM,mCAAmC,CAAC;AAErE;IAA6C,2CAAe;IAA5D;;IAoBA,CAAC;IAnBA,iCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IAEjB,CAAC;IAED,8BAAI,GAAJ,UAAK,CAAC;QAEL,IAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;QAC3D,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACZ,CAAC;IAED,kCAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAC;IAEnB,CAAC;IAKF,sBAAC;AAAD,CAAC,AApBD,CAA6C,eAAe,GAoB3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport ScillaComponent from 'scilla-components/src/base/ScillaComponent';\r\nimport SingleSceneNavigator from '../navigator/SingleSceneNavigator';\r\nvar SceneController = (function (_super) {\r\n tslib_1.__extends(SceneController, _super);\r\n function SceneController() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n SceneController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n };\r\n SceneController.prototype.fuck = function (p) {\r\n var nav = this.entity.getComponent(SingleSceneNavigator);\r\n nav.push(p);\r\n };\r\n SceneController.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n };\r\n return SceneController;\r\n}(ScillaComponent));\r\nexport default SceneController;\r\n//# sourceMappingURL=SceneController.js.map"}
{"map":"{\"version\":3,\"file\":\"SamplePollingApi.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/api/SamplePollingApi.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAM,KAAK,GAAE,MAAM,YAAY,CAAA;AACtC,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAE3C;IAA8C,4CAAY;IAA1D;QAAA,qEA+DC;QA3DA,cAAQ,GAAG,CAAC,CAAC;QACb,WAAK,GAAG,GAAG,CAAC;QAEJ,gBAAU,GAAG,KAAK,CAAC;QA0CjB,eAAS,GAAC;YACnB,OAAO,KAAI,CAAC,UAAU,CAAC;QACxB,CAAC,CAAA;QAMD,iBAAW,GAAC,UAAC,QAAQ;YAIpB,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,YAAY,CAAC;QAC7C,CAAC,CAAA;;IACF,CAAC;IAtDM,kCAAO,GAAb,UAAc,IAAI,EAAE,WAAW;QAAE,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,6BAAO;;;;;;6BACnC,CAAA,IA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AI,CAAC;IACxB,CAAC;IAQF,uBAAC;AAAD,CAAC,AA/DD,CAA8C,YAAY,GA+DzD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { utils, } from 'scilla/src';\r\nimport ApiComponent from \"./ApiComponent\";\r\nimport { polling } from \"../net/webService\";\r\nvar SamplePollingApi = (function (_super) {\r\n tslib_1.__extends(SamplePollingApi, _super);\r\n function SamplePollingApi() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.maxTimes = 5;\r\n _this.delay = 500;\r\n _this._abortFlag = false;\r\n _this.abortFunc = function () {\r\n return _this._abortFlag;\r\n };\r\n _this.successFunc = function (response) {\r\n return response.origin.code != \"C000000001\";\r\n };\r\n return _this;\r\n }\r\n SamplePollingApi.prototype.callApi = function (name, paramsInput) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(this.name == name)) return [3, 2];\r\n return [4, this.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2: return [2];\r\n }\r\n });\r\n });\r\n };\r\n SamplePollingApi.prototype.abortCallApi = function (name) {\r\n if (this.name == name) {\r\n this._abort();\r\n }\r\n };\r\n SamplePollingApi.prototype.execute = function (paramsInput) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var params, _a, uri, method, response, e_1;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0: return [4, _super.prototype.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _b.sent();\r\n this._abortFlag = false;\r\n params = {};\r\n if (this.params) {\r\n utils.injectProp(params, this.params);\r\n }\r\n if (paramsInput) {\r\n utils.injectProp(params, paramsInput);\r\n }\r\n _a = this, uri = _a.uri, method = _a.method;\r\n _b.label = 2;\r\n case 2:\r\n _b.trys.push([2, 4, , 5]);\r\n return [4, polling(this.successFunc, uri, params, this.maxTimes, this.delay, this.abortFunc, method)];\r\n case 3:\r\n response = _b.sent();\r\n this.onGotResponse(response);\r\n return [2, response.data];\r\n case 4:\r\n e_1 = _b.sent();\r\n this.onGotError(e_1);\r\n return [3, 5];\r\n case 5: return [2];\r\n }\r\n });\r\n });\r\n };\r\n SamplePollingApi.prototype._abort = function () {\r\n this._abortFlag = true;\r\n };\r\n return SamplePollingApi;\r\n}(ApiComponent));\r\nexport default SamplePollingApi;\r\n//# sourceMappingURL=SamplePollingApi.js.map"}
{"map":"{\"version\":3,\"file\":\"GameOverPanel.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/dialogs/GameOverPanel.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD,OAAO,WAAgE,MAAM,uBAAuB,CAAC;AAErG,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,EAAU,MAAM,uBAAuB,CAAC;AAEzF;IAA2C,yCAAa;IAAxD;;IAiDA,CAAC;IAhDA,+BAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IAaD,6BAAK,GAAL,UAAM,IAAc;QAApB,iBAoBC;QApBK,qBAAA,EAAA,SAAc;QACnB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjB,IAAI,CAAC,IAAI,GAAC,IAAI,CAAA;QACd,IAAI,CAAC,kBAAkB,GAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,eAAe,CAAC,CAAA;QAC9D,IAAI,CAAC,YAAY,GAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;QAClD,IAAI,CAAC,iBAAiB,GAAC,IAAI,CAAC,KAA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AAgB,GAAhB;QACC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IACF,oBAAC;AAAD,CAAC,AAjDD,CAA2C,aAAa,GAiDvD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport DialogContent from '../popup/DialogContent';\r\nimport BuriedPoint from '../common/BuriedPoint';\r\nimport { TextureRenderer, Transform, TextRenderer } from 'scilla-components/src';\r\nvar GameOverPanel = (function (_super) {\r\n tslib_1.__extends(GameOverPanel, _super);\r\n function GameOverPanel() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GameOverPanel.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n };\r\n GameOverPanel.prototype.setup = function (data) {\r\n var _this = this;\r\n if (data === void 0) { data = {}; }\r\n console.log(data);\r\n this.data = data;\r\n this.imgTextureRenderer = this.img.getComponent(TextureRenderer);\r\n this.imgTransform = this.img.getComponent(Transform);\r\n this.titleTextRenderer = this.title.getComponent(TextRenderer);\r\n if (data.exposure) {\r\n this.BuriedPoint = this.getComponent(BuriedPoint);\r\n this.BuriedPoint.setConfig(data.exposure.dpm, data.exposure.dcm, true);\r\n }\r\n var img = new Image();\r\n img.src = data.lottery.imgUrl;\r\n img.onload = function () {\r\n _this.imgTextureRenderer.texture.setImg(img);\r\n _this.imgTextureRenderer.texture.bounds.height = img.height;\r\n _this.imgTextureRenderer.texture.bounds.width = img.width;\r\n _this.imgTransform.width = img.width;\r\n _this.imgTransform.height = img.height;\r\n };\r\n this.titleTextRenderer.text = data.lottery.title;\r\n };\r\n GameOverPanel.prototype.onclick_useBtn = function () {\r\n if (this.data.exposure) {\r\n this.BuriedPoint.onTouchTap();\r\n }\r\n window.location.href = this.data.lottery.link;\r\n this.bubbling('fuckNavigator', 'start');\r\n };\r\n GameOverPanel.prototype.onclick_closeBtn = function () {\r\n this.bubbling('fuckNavigator', 'start');\r\n };\r\n return GameOverPanel;\r\n}(DialogContent));\r\nexport default Game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,EAAE,IAAI,CAAC,kBAAkB,CAAC,EAAA;;wBAA9E,QAAQ,GAAG,SAAmE;wBAEpF,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;wBAE7B,WAAO,QAAQ,CAAC,IAAI,EAAC;;;wBAErB,IAAI,CAAC,UAAU,CAAC,GAAC,CAAC,CAAC;;;;;;KAEpB;IACF,gBAAC;AAAD,CAAC,AAnCD,CAAuC,YAAY,GAmClD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { utils, } from 'scilla/src';\r\nimport ApiComponent from \"./ApiComponent\";\r\nimport { callApi } from \"../net/webService\";\r\nvar SampleApi = (function (_super) {\r\n tslib_1.__extends(SampleApi, _super);\r\n function SampleApi() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.ignoreSuccessField = false;\r\n return _this;\r\n }\r\n SampleApi.prototype.callApi = function (name, paramsInput) {\r\n var args = [];\r\n for (var _i = 2; _i < arguments.length; _i++) {\r\n args[_i - 2] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n if (!(this.name == name)) return [3, 2];\r\n return [4, this.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _a.sent();\r\n _a.label = 2;\r\n case 2: return [2];\r\n }\r\n });\r\n });\r\n };\r\n SampleApi.prototype.execute = function (paramsInput) {\r\n var args = [];\r\n for (var _i = 1; _i < arguments.length; _i++) {\r\n args[_i - 1] = arguments[_i];\r\n }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n var params, _a, uri, method, response, e_1;\r\n return tslib_1.__generator(this, function (_b) {\r\n switch (_b.label) {\r\n case 0: return [4, _super.prototype.execute.apply(this, tslib_1.__spread([paramsInput], args))];\r\n case 1:\r\n _b.sent();\r\n params = {};\r\n if (this.params) {\r\n utils.injectProp(params, this.params);\r\n }\r\n if (paramsInput) {\r\n utils.injectProp(params, paramsInput);\r\n }\r\n _a = this, uri = _a.uri, method = _a.method;\r\n _b.label = 2;\r\n case 2:\r\n _b.trys.push([2, 4, , 5]);\r\n return [4, callApi(uri, params, method, 'json', this.ignoreSuccessField)];\r\n case 3:\r\n response = _b.sent();\r\n this.onGotResponse(response);\r\n return [2, response.data];\r\n case 4:\r\n e_1 = _b.sent();\r\n this.onGotError(e_1);\r\n return [3, 5];\r\n case 5: return [2];\r\n }\r\n });\r\n });\r\n };\r\n return SampleApi;\r\n}(ApiComponent));\r\nexport default SampleApi;\r\n//# sourceMappingURL=SampleApi.js.map"}
{"map":"{\"version\":3,\"file\":\"RuleDialogContent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/dialogs/RuleDialogContent.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,YAAY,MAAM,6CAA6C,CAAC;AAEvE,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD;IAA+C,6CAAa;IAA5D;;IAcA,CAAC;IATA,mCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAChB,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IACjE,CAAC;IAED,iCAAK,GAAL,UAAM,IAAI;QACT,IAAI,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACxD,CAAC;IAEF,wBAAC;AAAD,CAAC,AAdD,CAA+C,aAAa,GAc3D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport HtmlRenderer from \"scilla-components/src/renderer/HtmlRenderer\";\r\nimport DialogContent from \"../popup/DialogContent\";\r\nvar RuleDialogContent = (function (_super) {\r\n tslib_1.__extends(RuleDialogContent, _super);\r\n function RuleDialogContent() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n RuleDialogContent.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this._contentRenderer = this.Content.getComponent(HtmlRenderer);\r\n };\r\n RuleDialogContent.prototype.setup = function (data) {\r\n this._contentRenderer.htmlText = this.ajaxElement.rule;\r\n };\r\n return RuleDialogContent;\r\n}(DialogContent));\r\nexport default RuleDialogContent;\r\n//# sourceMappingURL=RuleDialogContent.js.map"}
{"map":"{\"version\":3,\"file\":\"MustCompile.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/generated/MustCompile.ts\"],\"names\":[],\"mappings\":\"AAKA,OAAO,EAAC,WAAW,EAAC,MAAM,QAAQ,CAAA;AAElC,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,WAAW,CAAC,2BAA2B,EAAE,UAAU,CAAC,CAAC;AAErD,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,WAAW,CAAC,mCAAmC,EAAE,UAAU,CAAC,CAAC;AAE7D,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,WAAW,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC;AAEhD,OAAO,UAAU,MAAM,gCAAgC,CAAC;AACxD,WAAW,CAAC,gCAAgC,EAAE,UAAU,CAAC,CAAC;AAE1D,OAAO,UAAU,MAAM,kCAAkC,CAAC;AAC1D,WAAW,CAAC,kCAAkC,EAAE,UAAU,CAAC,CAAC;AAE5D,OAAO,UAAU,MAAM,qCAAqC,CAAC;AAC7D,WAAW,CAAC,qCAAqC,EAAE,UAAU,CAA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W,CAAC,oCAAoC,EAAE,WAAW,CAAC,CAAC;AAE/D,OAAO,WAAW,MAAM,mCAAmC,CAAC;AAC5D,WAAW,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC;AAEnD,OAAO,WAAW,MAAM,8CAA8C,CAAC;AACvE,WAAW,CAAC,mCAAmC,EAAE,WAAW,CAAC,CAAC\"}","code":"import { registerDef } from 'scilla';\r\nimport component0 from 'components/renderer/TextRenderer';\r\nregisterDef('components/renderer/TextRenderer', component0);\r\nimport component1 from 'components/base/Transform';\r\nregisterDef('components/base/Transform', component1);\r\nimport component2 from 'components/renderer/HtmlRenderer';\r\nregisterDef('components/renderer/HtmlRenderer', component2);\r\nimport component3 from 'components/base/TouchInterrupt';\r\nregisterDef('components/base/TouchInterrupt', component3);\r\nimport component4 from 'components/other/FullStageSize';\r\nregisterDef('components/other/FullStageSize', component4);\r\nimport component5 from 'components/other/CameraController';\r\nregisterDef('components/other/CameraController', component5);\r\nimport component6 from 'components/ui/Button';\r\nregisterDef('components/ui/Button', component6);\r\nimport component7 from 'components/animation/TouchZoom';\r\nregisterDef('components/animation/TouchZoom', component7);\r\nimport component8 from 'components/renderer/RectRenderer';\r\nregisterDef('components/renderer/RectRenderer', component8);\r\nimport component9 from 'components/renderer/TextureRenderer';\r\nregisterDef('components/renderer/TextureRenderer', component9);\r\nimport component10 from '../../assets/scripts/dialogs/RuleDialogContent';\r\nregisterDef('./scripts/dialogs/RuleDialogContent', component10);\r\nimport component11 from '../../assets/scripts/api/SamplePollingApi';\r\nregisterDef('./scripts/api/SamplePollingApi', component11);\r\nimport component12 from '../../assets/scripts/scenes/SceneController';\r\nregisterDef('./scripts/scenes/SceneController', component12);\r\nimport component13 from '../../assets/scripts/navigator/SingleSceneNavigator';\r\nregisterDef('./scripts/navigator/SingleSceneNavigator', component13);\r\nimport component14 from '../../assets/scripts/scenes/ScenePlay';\r\nregisterDef('./scripts/scenes/ScenePlay', component14);\r\nimport component15 from '../../assets/scripts/popup/Popup';\r\nregisterDef('./scripts/popup/Popup', component15);\r\nimport component16 from '../../assets/scripts/api/SampleApi';\r\nregisterDef('./scripts/api/SampleApi', component16);\r\nimport component17 from '../../assets/scripts/dialogs/AlertDialogContent';\r\nregisterDef('./scripts/dialogs/AlertDialogContent', component17);\r\nimport component18 from '../../assets/scripts/scenes/SceneStart';\r\nregisterDef('./scripts/scenes/SceneStart', component18);\r\nimport component19 from '../../assets/scripts/MainController';\r\nregisterDef('./scripts/MainController', component19);\r\nimport component20 from '../../assets/scripts/dialogs/GameOverPanel';\r\nregisterDef('./scripts/dialogs/GameOverPanel', component20);\r\nimport component21 from '../../assets/scripts/common/BuriedPoint';\r\nregisterDef('./scripts/common/BuriedPoint', component21);\r\nimport component22 from '../../assets/scripts/dialogs/GameLosePanel';\r\nregisterDef('./scripts/dialogs/GameLosePanel', component22);\r\nimport component23 from '../../assets/scripts/dialogs/GameNoPrizePanel';\r\nregisterDef('./scripts/dialogs/GameNoPrizePanel', component23);\r\nimport component24 from '../../assets/scripts/common/Toast';\r\nregisterDef('./scripts/common/Toast', component24);\r\nimport component25 from '../../assets/scripts/game/CustomTextRenderer';\r\nregisterDef('./scripts/game/CustomTextRenderer', component25);\r\n//# sourceMappingURL=MustCompile.js.map"}
{"map":"{\"version\":3,\"file\":\"AlertDialogContent.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/dialogs/AlertDialogContent.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD;IAAgD,8CAAa;IAA7D;QAAA,qEA2BC;QAPA,UAAI,GAAG,UAAC,IAAK,EAAE,QAAS;YACvB,KAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,KAAI,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC/D,CAAC,CAAA;;IAKF,CAAC;IApBA,oCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAChB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;IAClE,CAAC;IAED,kCAAK,GAAL,UAAM,IAAc;QAAd,qBAAA,EAAA,SAAc;QACnB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;QACjB,IAAI,CAAC,IAAI,GAAC,IAAI,CAAA;QACd,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAEtB,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,GAAC,IAAI,CAAC,IAAI,CAAA;IACzC,CAAC;IAMD,iDAAoB,GAApB;QACC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrB,CAAC;IACF,yBAAC;AAAD,CAAC,AA3BD,CAAgD,aAAa,GA2B5D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport DialogContent from \"../popup/DialogContent\";\r\nimport { TextRenderer } from \"scilla-components/src\";\r\nvar AlertDialogContent = (function (_super) {\r\n tslib_1.__extends(AlertDialogContent, _super);\r\n function AlertDialogContent() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.show = function (data, callback) {\r\n _this.bubbling('showDialog', _this.entity.name, data, callback);\r\n };\r\n return _this;\r\n }\r\n AlertDialogContent.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.text[\"TextRenderer\"] = this.text.getComponent(TextRenderer);\r\n };\r\n AlertDialogContent.prototype.setup = function (data) {\r\n if (data === void 0) { data = {}; }\r\n console.log(data);\r\n this.data = data;\r\n console.log(this.text);\r\n this.text[\"TextRenderer\"].text = this.data;\r\n };\r\n AlertDialogContent.prototype.onClickConfirmButton = function () {\r\n this.hide('confirm');\r\n };\r\n return AlertDialogContent;\r\n}(DialogContent));\r\nexport default AlertDialogContent;\r\n//# sourceMappingURL=AlertDialogContent.js.map"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E,MAA6B,EAAE,UAAe;QACzE,OAAO,SAAS,CAAC;IAClB,CAAC;IAED,4BAAQ,GAAR,UAAS,CAAC;QACT,iBAAM,QAAQ,YAAC,CAAC,CAAC,CAAA;QACjB,IAAI,CAAC,YAAY,EAAE,CAAA;IACpB,CAAC;IAEF,gBAAC;AAAD,CAAC,AAveD,CAAuC,iBAAiB,GAuevD\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport InteractComponent from \"scilla-components/src/base/InteractComponent\";\r\nimport { engine } from \"scilla/src\";\r\nimport { createSgin } from \"../net/webService\";\r\nimport { Transform } from 'scilla-components/src';\r\nimport { createTween } from \"scilla\";\r\nvar ScenePlay = (function (_super) {\r\n tslib_1.__extends(ScenePlay, _super);\r\n function ScenePlay() {\r\n var _this = _super !== null && _super.apply(this, arguments) || this;\r\n _this.checkpoint = 0;\r\n _this.checkpointCounts = [3, 3, 3];\r\n _this.touchEnabled = true;\r\n _this.roadIndex = 1;\r\n _this.carGoFirst = true;\r\n _this.goCount = 0;\r\n _this.nextLength = 400 + (Math.random() * 100);\r\n _this.lastIndex = 1;\r\n _this.bgIndex = 1;\r\n _this.bridgeState = false;\r\n _this.bridgeFirst = true;\r\n _this.bridgeX = 0;\r\n return _this;\r\n }\r\n ScenePlay.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n this.bottomGrass[\"Transform\"] = this.bottomGrass.getComponent(Transform);\r\n this.firstGui[\"Transform\"] = this.firstGui.getComponent(Transform);\r\n this.car[\"Transform\"] = this.car.getComponent(Transform);\r\n this.carImage[\"Transform\"] = this.carImage.getComponent(Transform);\r\n this.bridge[\"Transform\"] = this.bridge.getComponent(Transform);\r\n this.roadGroup[\"Transform\"] = this.roadGroup.getComponent(Transform);\r\n this.road_0[\"Transform\"] = this.road_0.getComponent(Transform);\r\n this.road_1[\"Transform\"] = this.road_1.getComponent(Transform);\r\n this.road_2[\"Transform\"] = this.road_2.getComponent(Transform);\r\n this.road_3[\"Transform\"] = this.road_3.getComponent(Transform);\r\n this.bottomGrass[\"Transform\"].position.y = engine.renderContext.stageSize.height;\r\n this.check_1[\"Transform\"] = this.check_1.getComponent(Transform);\r\n this.check_2[\"Transform\"] = this.check_2.getComponent(Transform);\r\n this.check_3[\"Transform\"] = this.check_3.getComponent(Transform);\r\n this.check_4[\"Transform\"] = this.check_4.getComponent(Transform);\r\n this.bg1[\"Transform\"] = this.bg1.getComponent(Transform);\r\n this.bg2[\"Transform\"] = this.bg2.getComponent(Transform);\r\n this.bg3[\"Transform\"] = this.bg3.getComponent(Transform);\r\n this.setFirstGui();\r\n this.setCarAnimation();\r\n this.bridgeInit();\r\n this.roadInit();\r\n this.bridgeFirst = true;\r\n this.check_1[\"Transform\"].alpha = 0;\r\n this.check_2[\"Transform\"].alpha = 0;\r\n this.check_3[\"Transform\"].alpha = 0;\r\n this.check_4[\"Transform\"].alpha = 0;\r\n this.carGoFirst = true;\r\n this.roadIndex = 1;\r\n this.nowPos = null;\r\n this.lastPos = null;\r\n this.nextPos = null;\r\n this.nextWidth = null;\r\n this.lastIndex = 1;\r\n this.touchEnabled = true;\r\n this.goCount = 0;\r\n this.bgIndex = 1;\r\n this.checkpoint = 0;\r\n this.updataBgAndTop();\r\n this.bg1[\"Transform\"].position.x = 0;\r\n this.bg2[\"Transform\"].position.x = 0;\r\n this.bg3[\"Transform\"].position.x = 0;\r\n this.road_0[\"Transform\"].position.x = 0;\r\n this.road_1[\"Transform\"].position.x = 518;\r\n this.road_2[\"Transform\"].position.x = 1033;\r\n this.road_3[\"Transform\"].position.x = 1526;\r\n this.roadGroup[\"Transform\"].position.x = 0;\r\n this.car[\"Transform\"].position.x = 105;\r\n this.bubbling('showToast', '这是一个toast测试', 2000);\r\n this.score = 100;\r\n };\r\n ScenePlay.prototype.onClick_firstGui = function () {\r\n this.setVisible(this.firstGui, false);\r\n };\r\n ScenePlay.prototype.setFirstGui = function () {\r\n if (localStorage[\"firstGui\" + window[\"CFG\"].actId]) {\r\n this.setVisible(this.firstGui, false);\r\n }\r\n else {\r\n localStorage[\"firstGui\" + window[\"CFG\"].actId] = \"1\";\r\n this.setVisible(this.firstGui, true);\r\n }\r\n };\r\n ScenePlay.prototype.setCarAnimation = function () {\r\n createTween(this, this.carImage[\"Transform\"], true, { loop: -1 })\r\n .set({ scale: { x: 1, y: 1 }, position: { x: 0, y: 0 } })\r\n .to({ scale: { x: .98, y: .98 }, position: { x: .5, y: .5 } }, 50)\r\n .to({ scale: { x: 1, y: 1 }, position: { x: -.5, y: -.5 } }, 50);\r\n };\r\n ScenePlay.prototype.setVisible = function (obj, state) {\r\n if (state) {\r\n obj[\"Transform\"].alpha = 1;\r\n obj.enabled = true;\r\n }\r\n else {\r\n obj[\"Transform\"].alpha = 0;\r\n obj.enabled = false;\r\n }\r\n };\r\n ScenePlay.prototype.roadInit = function () {\r\n this.roadIndex = 1;\r\n };\r\n ScenePlay.prototype.carInit = function () {\r\n this.car[\"Transform\"].position.x = 105;\r\n this.car[\"Transform\"].position.y = 807.5;\r\n };\r\n ScenePlay.prototype.carGo = function () {\r\n var _this = this;\r\n var distanceMin = 0;\r\n var distanceMax = 0;\r\n if (this.roadIndex == 1) {\r\n console.log(\"this.roadIndex\");\r\n console.log(this.roadIndex);\r\n if (this.carGoFirst) {\r\n this.carGoFirst = false;\r\n distanceMin = 518 - this[\"road_\" + (1)][\"Transform\"].width;\r\n distanceMax = 518 - this[\"road_\" + (1)][\"Transform\"].width + this[\"road_\" + (2)][\"Transform\"].width;\r\n console.log(\"第一次\");\r\n }\r\n else {\r\n distanceMin = this[\"road_\" + (1)][\"Transform\"].position.x - this[\"road_\" + (1)][\"Transform\"].width - this[\"road_\" + (4)][\"Transform\"].position.x;\r\n distanceMax = this[\"road_\" + (1)][\"Transform\"].position.x - this[\"road_\" + (1)][\"Transform\"].width - this[\"road_\" + (4)][\"Transform\"].position.x + this[\"road_\" + (4)][\"Transform\"].width;\r\n }\r\n }\r\n else {\r\n distanceMin = this[\"road_\" + (this.roadIndex)][\"Transform\"].position.x - this[\"road_\" + (this.roadIndex)][\"Transform\"].width - this[\"road_\" + (this.roadIndex - 1)][\"Transform\"].position.x;\r\n distanceMax = this[\"road_\" + (this.roadIndex)][\"Transform\"].position.x - this[\"road_\" + (this.roadIndex)][\"Transform\"].width - this[\"road_\" + (this.roadIndex - 1)][\"Transform\"].position.x + this[\"road_\" + (this.roadIndex - 1)][\"Transform\"].width;\r\n }\r\n if (this.bridgeX > distanceMin && this.bridgeX < distanceMax) {\r\n createTween(this, this.car[\"Transform\"], true, { loop: 0 })\r\n .to({ position: { x: this[\"road_\" + (this.roadIndex)][\"Transform\"].position.x + this.roadGroup[\"Transform\"].position.x + 100 } }, 500)\r\n .call(function () {\r\n console.log(2233);\r\n _this.roadGo();\r\n });\r\n }\r\n else {\r\n if (this.bridgeX < distanceMin) {\r\n console.log(\"长度不够\");\r\n }\r\n if (this.bridgeX > distanceMax) {\r\n console.log(\"长度超出\");\r\n }\r\n createTween(this, this.car[\"Transform\"], true, { loop: 0 })\r\n .to({ position: { x: this.car[\"Transform\"].position.x + this.bridgeX + 80 } }, 500)\r\n .call(function () {\r\n _this.onGameLose();\r\n });\r\n }\r\n };\r\n ScenePlay.prototype.roadGo = function () {\r\n var _this = this;\r\n this.roadIndex++;\r\n if (this.roadIndex > 3) {\r\n this.roadIndex = 1;\r\n }\r\n console.log(this.roadIndex);\r\n if (this.nowPos) {\r\n this.lastPos = this.nowPos;\r\n }\r\n else {\r\n this.lastPos = this[\"road_1\"][\"Transform\"].position.x;\r\n }\r\n this.nextLength = 400 + (Math.random() * 100);\r\n this.nowPos = this[\"road_\" + (this.roadIndex)][\"Transform\"].position.x;\r\n this.nextPos = this[\"road_\" + (this.roadIndex)][\"Transform\"].position.x + this.nextLength;\r\n createTween(this, this.roadGroup[\"Transform\"], true, { loop: 0 })\r\n .to({ position: { x: this.roadGroup[\"Transform\"].position.x - (this.nowPos - this.lastPos) } }, 500)\r\n .call(function () {\r\n if (_this.roadIndex < 3) {\r\n _this[\"road_\" + (_this.roadIndex + 1)][\"Transform\"].position.x = _this.nowPos + _this.nextLength;\r\n }\r\n else {\r\n console.log();\r\n _this[\"road_1\"][\"Transform\"].position.x = _this.nowPos + _this.nextLength;\r\n }\r\n });\r\n createTween(this, this[\"bg\" + (this.bgIndex)][\"Transform\"], true, { loop: 0 })\r\n .to({ position: { x: this[\"bg\" + (this.bgIndex)][\"Transform\"].position.x - (this.nowPos - this.lastPos) } }, 500)\r\n .call(function () {\r\n if (_this[\"bg\" + (_this.bgIndex)][\"Transform\"].position.x <= -750) {\r\n _this[\"bg\" + (_this.bgIndex)][\"Transform\"].position.x += 750;\r\n }\r\n _this.bridgeReset();\r\n setTimeout(function () {\r\n _this.touchEnabled = true;\r\n }, 100);\r\n _this.goCount++;\r\n _this.updataBgAndTop();\r\n });\r\n createTween(this, this.car[\"Transform\"], true, { loop: 0 })\r\n .to({ position: { x: this.car[\"Transform\"].position.x - (this.nowPos - this.lastPos) } }, 500);\r\n this.bridgeGo();\r\n };\r\n ScenePlay.prototype.updataBgAndTop = function () {\r\n this.bg1[\"Transform\"].alpha = 0;\r\n this.bg2[\"Transform\"].alpha = 0;\r\n this.bg3[\"Transform\"].alpha = 0;\r\n if (this.goCount >= this.checkpointCounts[this.checkpoint]) {\r\n this.goCount = 0;\r\n this.checkpoint++;\r\n this[\"check_\" + this.checkpoint][\"Transform\"].alpha = 1;\r\n if (this.checkpoint >= 3) {\r\n this[\"check_\" + 4][\"Transform\"].alpha = 1;\r\n this.onGameOver();\r\n }\r\n }\r\n if (this.checkpoint < 3) {\r\n this.bgIndex = this.checkpoint + 1;\r\n }\r\n if (this.checkpoint >= 3) {\r\n this.bgIndex = 3;\r\n }\r\n this[\"bg\" + (this.bgIndex)][\"Transform\"].alpha = 1;\r\n };\r\n ScenePlay.prototype.onDidEnter = function (last, action, parameters) {\r\n this.entity.enabled = true;\r\n setTimeout(function () {\r\n }, 3000);\r\n };\r\n ScenePlay.prototype.onGameOver = function () {\r\n this.ngameSubmit();\r\n };\r\n ScenePlay.prototype.ngameSubmit = function () {\r\n console.log('createSgin', this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);\r\n var sign = createSgin(this.doJoinData, this.score, '[]', this.getNgameStartStatus.submitToken);\r\n var param = {\r\n orderId: this.doJoinData,\r\n score: this.score,\r\n gameData: '[]',\r\n sgin: sign,\r\n dynamicData: '[]'\r\n };\r\n this.broadcast('callApi', 1, 'getNgameSubmit', param);\r\n };\r\n ScenePlay.prototype.onResponse_ngameSubmit = function () {\r\n var param = {\r\n orderId: this.doJoinData,\r\n };\r\n this.broadcast('callApi', 1, 'getOrderStatus', param);\r\n };\r\n ScenePlay.prototype.onError_ngameSubmit = function () {\r\n };\r\n ScenePlay.prototype.onFinish_orderStatus = function () {\r\n if (!this.getOrderStatus) {\r\n this.bubbling('showDialog', 'Alert', \"查询超时,请点击首页【奖品】按钮查看。\");\r\n }\r\n };\r\n ScenePlay.prototype.onResponse_orderStatus = function () {\r\n console.log(1);\r\n console.log(this.getOrderStatus);\r\n if (this.getOrderStatus.code == \"C000000001\") {\r\n this.bubbling('showDialog', 'Alert', \"查询超时,请点击首页【奖品】按钮查看。\");\r\n }\r\n else if (this.getOrderStatus.lottery) {\r\n if (this.getOrderStatus.lottery.type == \"thanks\") {\r\n this.bubbling('showDialog', 'GameNoPrize');\r\n }\r\n else {\r\n this.bubbling('showDialog', 'GameOver', this.getOrderStatus);\r\n }\r\n }\r\n else {\r\n this.bubbling('showDialog', 'GameNoPrize');\r\n }\r\n };\r\n ScenePlay.prototype.onError_orderStatus = function () {\r\n console.log(2);\r\n };\r\n ScenePlay.prototype.onGameLose = function () {\r\n this.bubbling('showDialog', 'GameLose');\r\n };\r\n ScenePlay.prototype.onGlobalTouchBegin = function (e) {\r\n if (!this.touchEnabled) {\r\n return;\r\n }\r\n console.log(\"begin\");\r\n this.bridgeState = true;\r\n this.bridgeReset();\r\n console.log(this.bridge[\"Transform\"].position.x);\r\n };\r\n ScenePlay.prototype.onGlobalTouchEnd = function (e) {\r\n var _this = this;\r\n if (!this.touchEnabled) {\r\n return;\r\n }\r\n console.log(\"end\");\r\n this.bridgeState = false;\r\n this.touchEnabled = false;\r\n createTween(this, this.bridge[\"Transform\"], true, { loop: 0 })\r\n .to({ rotation: 0 }, 400)\r\n .call(function () {\r\n _this.carGo();\r\n });\r\n };\r\n ScenePlay.prototype.onGlobalTouchMove = function () {\r\n if (!this.touchEnabled) {\r\n return;\r\n }\r\n console.log(\"move\");\r\n };\r\n ScenePlay.prototype.bridgeInit = function () {\r\n this.setBridgeX(1);\r\n this.bridge[\"Transform\"].position.y = 892;\r\n this.bridge[\"Transform\"].scale.x = 0;\r\n };\r\n ScenePlay.prototype.bridgeReset = function () {\r\n this.bridgeX = 0;\r\n this.bridge[\"Transform\"].scale.x = 0;\r\n this.setBridgeX(2);\r\n this.bridge[\"Transform\"].position.y = 892;\r\n };\r\n ScenePlay.prototype.setBridgeX = function (state) {\r\n if (this.roadIndex == 1) {\r\n if (this.bridgeFirst) {\r\n if (state == 2) {\r\n this.bridgeFirst = false;\r\n }\r\n this.bridge[\"Transform\"].position.x = this[\"road_\" + (1)][\"Transform\"].width - 26;\r\n }\r\n else {\r\n this.bridge[\"Transform\"].position.x =\r\n this[\"road_\" + (4)][\"Transform\"].position.x\r\n + this.roadGroup[\"Transform\"].position.x +\r\n this[\"road_\" + (4)][\"Transform\"].width;\r\n }\r\n }\r\n else {\r\n this.bridge[\"Transform\"].position.x =\r\n this[\"road_\" + (this.roadIndex - 1)][\"Transform\"].position.x\r\n + this.roadGroup[\"Transform\"].position.x +\r\n this[\"road_\" + (this.roadIndex - 1)][\"Transform\"].width;\r\n }\r\n };\r\n ScenePlay.prototype.bridgeGo = function () {\r\n createTween(this, this.bridge[\"Transform\"], true, { loop: 0 })\r\n .to({ position: { x: this.bridge[\"Transform\"].position.x - (this.nowPos - this.lastPos) } }, 500)\r\n .call(function () {\r\n });\r\n };\r\n ScenePlay.prototype.onEnterFrame = function () {\r\n if (this.bridge[\"Transform\"]) {\r\n if (this.bridgeState) {\r\n this.bridgeX += 40;\r\n this.bridge[\"Transform\"].scale.x = this.bridgeX / 350;\r\n this.bridge[\"Transform\"].rotation = -90;\r\n }\r\n }\r\n };\r\n ScenePlay.prototype.onDidLeave = function (next, action, parameters) {\r\n this.entity.enabled = false;\r\n };\r\n ScenePlay.prototype.onWillEnter = function (last, action, parameters) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n return [2];\r\n });\r\n });\r\n };\r\n ScenePlay.prototype.onWillLeave = function (next, action, parameters) {\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n return [2];\r\n });\r\n });\r\n };\r\n ScenePlay.prototype.onWillMount = function (last, action, parameters) {\r\n return undefined;\r\n };\r\n ScenePlay.prototype.onWillUnMount = function (next, action, parameters) {\r\n return undefined;\r\n };\r\n ScenePlay.prototype.onUpdate = function (t) {\r\n _super.prototype.onUpdate.call(this, t);\r\n this.onEnterFrame();\r\n };\r\n return ScenePlay;\r\n}(InteractComponent));\r\nexport default ScenePlay;\r\n//# sourceMappingURL=ScenePlay.js.map"}
{"map":"{\"version\":3,\"file\":\"MainController.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../assets/scripts/MainController.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,eAAe,MAAM,4CAA4C,CAAC;AACzE,OAAO,EAAW,MAAM,EAAU,MAAM,YAAY,CAAC;AACrD,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,KAAK,MAAM,eAAe,CAAC;AAElC;IAA4C,0CAAe;IAA3D;;IAuFA,CAAC;IA3EA,gCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;QAEhB,MAAM,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE5C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;QAE7C,OAAO,EAAE,CAAC;QAEV,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA;IAChG,CAAC;IAED,yCAAgB,GAAhB;QACC,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;IACjC,CAAC;IAED,8CAAqB,GAArB,UAAsB,CAAC;QACtB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAehB,CAAC;IAED,uCAAc,GAAd,UAAe,CAAC;IAUhB,CAAC;IAED,kCAAS,GAAT,UAAU,OAAO,EAAE,QAAS;QAC3B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAChB,OAAO,SAAA;YACP,QAAQ,UAAA;SACR,CAAC,CAAA;IACH,CAAC;IAED,mCAAU,GAAV,UAAW,IAAI,EAAE,IAAK,EAAE,QAAS;QAChC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC9C,CAAC;IAED,qCAAY,GAAZ,UAAa,MAAO;IAgBpB,CAAC;IACF,qBAAC;AAAD,CAAC,AAvFD,CAA4C,eAAe,GAuF1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport ScillaComponent from \"scilla-components/src/base/ScillaComponent\";\r\nimport { engine } from \"scilla/src\";\r\nimport Toast from \"./common/Toast\";\r\nimport { initEnv } from \"./common/BuriedPoint\";\r\nimport Popup from \"./popup/Popup\";\r\nvar MainController = (function (_super) {\r\n tslib_1.__extends(MainController, _super);\r\n function MainController() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n MainController.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n engine.dataCenter.set('CFG', window['CFG']);\r\n this._toast = this.Toast.getComponent(Toast);\r\n this._popup = this.Popup.getComponent(Popup);\r\n initEnv();\r\n this.broadcast('callApi', 1, 'ajaxElement', { duibaId: this.hdToolId, activityId: this.actId });\r\n };\r\n MainController.prototype.onGotAjaxElement = function () {\r\n this.broadcast('initGameStage');\r\n };\r\n MainController.prototype.onGotAjaxElementError = function (e) {\r\n console.log(e);\r\n };\r\n MainController.prototype.showErrorToast = function (e) {\r\n };\r\n MainController.prototype.showToast = function (content, duration) {\r\n this._toast.show({\r\n content: content,\r\n duration: duration,\r\n });\r\n };\r\n MainController.prototype.showDialog = function (name, data, callback) {\r\n this._popup.showDialog(name, data, callback);\r\n };\r\n MainController.prototype.showNetError = function (action) {\r\n };\r\n return MainController;\r\n}(ScillaComponent));\r\nexport default MainController;\r\n//# sourceMappingURL=MainController.js.map"}
{"map":"{\"version\":3,\"file\":\"GameNoPrizePanel.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../assets/scripts/dialogs/GameNoPrizePanel.ts\"],\"names\":[],\"mappings\":\";AAAA,OAAO,aAAa,MAAM,wBAAwB,CAAC;AAEnD;IAA8C,4CAAa;IAA3D;;IAOA,CAAC;IANA,kCAAO,GAAP;QACC,iBAAM,OAAO,WAAE,CAAC;IACjB,CAAC;IACD,2CAAgB,GAAhB;QACC,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC,CAAA;IACxC,CAAC;IACF,uBAAC;AAAD,CAAC,AAPD,CAA8C,aAAa,GAO1D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport DialogContent from '../popup/DialogContent';\r\nvar GameNoPrizePanel = (function (_super) {\r\n tslib_1.__extends(GameNoPrizePanel, _super);\r\n function GameNoPrizePanel() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n GameNoPrizePanel.prototype.onAwake = function () {\r\n _super.prototype.onAwake.call(this);\r\n };\r\n GameNoPrizePanel.prototype.onclick_againBtn = function () {\r\n this.bubbling('fuckNavigator', 'start');\r\n };\r\n return GameNoPrizePanel;\r\n}(DialogContent));\r\nexport default GameNoPrizePanel;\r\n//# sourceMappingURL=GameNoPrizePanel.js.map"}
{"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../src/main.ts\"],\"names\":[],\"mappings\":\";AAMA,OAAO,EAAC,kBAAkB,EAAC,MAAM,YAAY,CAAA;AAC7C,OAAO,cAAc,MAAM,qBAAqB,CAAA;AAChD,OAAO,yBAAyB,CAAA;AAEhC,IAAI,QAAwB,CAAC;AAE7B,kBAAkB,CAAC;IAClB,eAAe,EAAE,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,uBAAuB,EAAE,KAAK;IAC9B,yBAAyB,EAAE,KAAK;IAChC,cAAc,EAAE,KAAK;CACrB,CAAC,CAAC;AAEH,MAAM,UAAgB,OAAO,CAAC,gBAAgB,EAAE,OAAiB,EAAE,UAAoB;IAAvC,wBAAA,EAAA,YAAiB;;;;;oBAChE,QAAQ,GAAG,IAAI,cAAc,EAAE,CAAC;oBAChC,WAAM,QAAQ,CAAC,MAAM,CAAC,gBAAgB,EAAE,OAAO,EAAE,UAAU,CAAC,EAAA;;oBAA5D,SAA4D,CAAC;;;;;CAC7D\"}","code":"import * as tslib_1 from \"tslib\";\r\nimport { modifyEngineConfig } from 'scilla/src';\r\nimport ScillaLauncher from 'scilla-launcher/src';\r\nimport './generated/MustCompile';\r\nvar launcher;\r\nmodifyEngineConfig({\r\n lineHeightRatio: 1.2,\r\n entityEnabled: false,\r\n awakeComponentWhenAdded: false,\r\n sleepComponentWhenRemoved: false,\r\n drawRenderRect: false,\r\n});\r\nexport function startup(containerElement, options, onProgress) {\r\n if (options === void 0) { options = {}; }\r\n return tslib_1.__awaiter(this, void 0, void 0, function () {\r\n return tslib_1.__generator(this, function (_a) {\r\n switch (_a.label) {\r\n case 0:\r\n launcher = new ScillaLauncher();\r\n return [4, launcher.launch(containerElement, options, onProgress)];\r\n case 1:\r\n _a.sent();\r\n return [2];\r\n }\r\n });\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map"}
[{"flatMessage":"Property 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.","formatted":"\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m389\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m389\u001b[0m onGlobalTouchBegin(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m399\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m399\u001b[0m onGlobalTouchEnd(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m414\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m414\u001b[0m onGlobalTouchMove(){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~\u001b[0m\n","category":1,"code":2416,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/wwjsjf-20190619/assets/scripts/scenes/ScenePlay.ts(389,2)"},{"flatMessage":"Property 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.","formatted":"\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m389\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m389\u001b[0m onGlobalTouchBegin(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m399\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m399\u001b[0m onGlobalTouchEnd(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m414\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m414\u001b[0m onGlobalTouchMove(){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~\u001b[0m\n","category":1,"code":2416,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/wwjsjf-20190619/assets/scripts/scenes/ScenePlay.ts(399,2)"},{"flatMessage":"Property 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.","formatted":"\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m389\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchBegin' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m389\u001b[0m onGlobalTouchBegin(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m399\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchEnd' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '(e: any) => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m399\u001b[0m onGlobalTouchEnd(e){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~\u001b[0m\n\u001b[96massets/scripts/scenes/ScenePlay.ts\u001b[0m:\u001b[93m414\u001b[0m:\u001b[93m2\u001b[0m - \u001b[91merror\u001b[0m\u001b[90m TS2416: \u001b[0mProperty 'onGlobalTouchMove' in type 'ScenePlay' is not assignable to the same property in base type 'InteractComponent'.\n Type '() => void' is not assignable to type '(e: any) => boolean'.\n Type 'void' is not assignable to type 'boolean'.\n\n\u001b[7m414\u001b[0m onGlobalTouchMove(){\n\u001b[7m \u001b[0m \u001b[91m ~~~~~~~~~~~~~~~~~\u001b[0m\n","category":1,"code":2416,"type":"semantic","fileLine":"/Users/renjianfeng/Desktop/web/scilla-project/wwjsjf-20190619/assets/scripts/scenes/ScenePlay.ts(414,2)"}]
......@@ -118,7 +118,8 @@
"pingzi_2": "entity|e285b74a-1412-4cd6-a305-16378a030922",
"gouzi_pingzi": "entity|baba7316-9d74-44c1-b2a8-1852e716e67d",
"doJoinData": "dynamic|API|doJoinData",
"getOrderStatus": "dynamic|API|getOrderStatus"
"getOrderStatus": "dynamic|API|getOrderStatus",
"loading": "entity|9f2ff038-536d-4848-98cf-7c82571a74a6"
}
},
{
......@@ -537,7 +538,7 @@
"properties": {
"position": {
"x": 375,
"y": 335,
"y": 132.5,
"_type_": "scilla/support/Vector2D"
},
"pivot": {
......@@ -878,6 +879,66 @@
}
],
"uuid": "42cd135d-b264-40af-9b62-5b0a2a935f3b"
},
{
"name": "Loading",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 237.5,
"y": 557.5,
"_type_": "scilla/support/Vector2D"
},
"alpha": 1
}
},
{
"script": "components/renderer/RectRenderer",
"properties": {
"width": 300,
"cornerRadius": 20,
"fillColor": "rgba(0, 0, 0, 1)",
"alpha": 0.6,
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "9f2ff038-536d-4848-98cf-7c82571a74a6",
"children": [
{
"name": "Label",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 105,
"y": 35
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "请稍后...",
"fillColor": "rgba(255, 255, 255, 1)",
"anchor": {
"x": 0,
"y": 0,
"_type_": "scilla/support/Vector2D"
}
}
}
],
"uuid": "4d48bbb4-aa6c-4f84-940b-2d6b091920f4"
}
]
}
],
"disabled": true
......@@ -2046,7 +2107,7 @@
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|d6163686-6056-40e1-8d5a-5e4248636a27"
"texture": "res|dbe0923b-0c36-47f2-910e-3afcba589c08"
}
}
],
......@@ -2059,8 +2120,8 @@
"script": "components/base/Transform",
"properties": {
"position": {
"x": 646,
"y": 372,
"x": 653.5,
"y": 349.5,
"_type_": "scilla/support/Vector2D"
}
}
......@@ -2068,7 +2129,7 @@
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|fbb05192-e4f2-4706-a177-91b2c71f24f9"
"texture": "res|d05f11ab-7b4c-4a1c-a0da-bfe65a60089a"
}
},
{
......@@ -2080,70 +2141,15 @@
{
"script": "components/ui/Button",
"properties": {
"disabledRes": "res|fbb05192-e4f2-4706-a177-91b2c71f24f9",
"downRes": "res|fbb05192-e4f2-4706-a177-91b2c71f24f9",
"upRes": "res|fbb05192-e4f2-4706-a177-91b2c71f24f9"
"disabledRes": "res|d05f11ab-7b4c-4a1c-a0da-bfe65a60089a",
"downRes": "res|d05f11ab-7b4c-4a1c-a0da-bfe65a60089a",
"upRes": "res|d05f11ab-7b4c-4a1c-a0da-bfe65a60089a"
}
}
],
"children": [],
"uuid": "a0fc547e-5d66-4d45-b2b1-1d0c1eee8424"
},
{
"name": "CloseButton",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 364,
"y": 798,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextureRenderer",
"properties": {
"texture": "res|c4d9cb82-8eed-4444-9638-bec8180db868"
}
},
{
"script": "components/animation/TouchZoom",
"properties": {
"easeName": "backOut"
}
},
{
"script": "components/ui/Button",
"properties": {
"disabledRes": "res|c4d9cb82-8eed-4444-9638-bec8180db868",
"downRes": "res|c4d9cb82-8eed-4444-9638-bec8180db868",
"upRes": "res|c4d9cb82-8eed-4444-9638-bec8180db868"
}
}
],
"children": [
{
"name": "label",
"components": [
{
"script": "components/base/Transform",
"properties": {}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "关闭",
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
"uuid": "924fc1b9-8358-49eb-a883-513e9dfd6715"
}
],
"uuid": "a819fafe-29e0-4a50-a442-ba1af70c96c8"
},
{
"name": "Label",
"components": [
......@@ -2152,7 +2158,7 @@
"properties": {
"position": {
"x": 380,
"y": 596,
"y": 641,
"_type_": "scilla/support/Vector2D"
},
"width": 460
......@@ -2162,8 +2168,11 @@
"script": "components/renderer/TextRenderer",
"properties": {
"text": "测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试",
"fillColor": "rgba(237, 110, 7, 1)",
"lineSpacing": 16
"fillColor": "rgba(136, 57, 46, 1)",
"lineSpacing": 16,
"textStyle": {
"fontSize": 34
}
}
}
],
......@@ -2197,7 +2206,7 @@
"script": "components/base/Transform",
"properties": {
"position": {
"x": 380,
"x": 375,
"y": 585.6666666666667,
"_type_": "scilla/support/Vector2D"
}
......@@ -2220,7 +2229,7 @@
"properties": {
"position": {
"x": 649.6666666666667,
"y": 263.00000000000006,
"y": 185.50000000000006,
"_type_": "scilla/support/Vector2D"
}
}
......@@ -2255,14 +2264,12 @@
{
"script": "components/base/Transform",
"properties": {
"width": 450,
"height": 450,
"width": 500,
"height": 550,
"position": {
"_hashCode": 17705,
"_x": 10,
"_y": 42.33333333333333,
"x": 386.6666666666667,
"y": 672.3333333333334
"x": 374.1666666666667,
"y": 607.3333333333334,
"_type_": "scilla/support/Vector2D"
}
}
},
......@@ -2356,8 +2363,8 @@
"_hashCode": 32327,
"_x": 376.66666666666663,
"_y": 1036,
"x": 376.66666666666663,
"y": 871.3333333333333
"x": 381.66666666666663,
"y": 958.8333333333333
}
}
},
......@@ -2446,8 +2453,8 @@
"script": "components/base/Transform",
"properties": {
"position": {
"x": 366,
"y": 796,
"x": 383.5,
"y": 786,
"_type_": "scilla/support/Vector2D"
}
}
......@@ -2456,7 +2463,7 @@
"script": "components/renderer/TextRenderer",
"properties": {
"text": "测试",
"fillColor": "rgba(247, 107, 56, 1)"
"fillColor": "rgba(255, 255, 255, 1)"
}
}
],
......@@ -2469,8 +2476,13 @@
"script": "components/base/Transform",
"properties": {
"position": {
"x": 372,
"y": 638,
"x": 382,
"y": 650.5,
"_type_": "scilla/support/Vector2D"
},
"scale": {
"x": 0.8,
"y": 0.8,
"_type_": "scilla/support/Vector2D"
}
}
......@@ -2523,6 +2535,32 @@
}
],
"uuid": "6983e2f4-69d7-482b-8fe8-08a71984e2e2"
},
{
"name": "Label",
"components": [
{
"script": "components/base/Transform",
"properties": {
"position": {
"x": 380,
"y": 502.5,
"_type_": "scilla/support/Vector2D"
}
}
},
{
"script": "components/renderer/TextRenderer",
"properties": {
"text": "一等奖",
"fillColor": "rgba(247, 250, 143, 1)",
"textStyle": {
"fontSize": 36
}
}
}
],
"uuid": "310c65df-0991-4fb7-b658-3aa920c0c66c"
}
],
"disabled": true
......@@ -2862,20 +2900,12 @@
"resource-groups": {
"preload": [
{
"uuid": "d05f11ab-7b4c-4a1c-a0da-bfe65a60089a",
"url": "singles/alert/Bitmap-4.png"
},
{
"uuid": "c4d9cb82-8eed-4444-9638-bec8180db868",
"url": "singles/button-red.png"
"uuid": "dbe0923b-0c36-47f2-910e-3afcba589c08",
"url": "singles/alert/Bitmap-1.png"
},
{
"uuid": "fbb05192-e4f2-4706-a177-91b2c71f24f9",
"url": "singles/close.png"
},
{
"uuid": "d6163686-6056-40e1-8d5a-5e4248636a27",
"url": "singles/dialog-bg.png"
"uuid": "d05f11ab-7b4c-4a1c-a0da-bfe65a60089a",
"url": "singles/alert/Bitmap-4.png"
},
{
"uuid": "8c8c4b37-5c19-4834-aaa7-18c44ece4507",
......
......@@ -8,7 +8,7 @@ import { setText } from "../entityUtils";
import { alien } from "../navigator/StackNavigator";
import Wave from 'components/animation/Wave'
import { INavigatorViewBase } from "../navigator/VirtualNavigator";
import { Transform } from 'scilla-components/src';
import { Transform, Button } from 'scilla-components/src';
import {createTween, ease} from "scilla";
export default class SceneStart extends ScillaComponent implements INavigatorViewBase {
ajaxElement: dynamic;
......@@ -26,6 +26,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
pingzi_1: Entity;
pingzi_2: Entity;
gouzi_pingzi: Entity;
loading: Entity;
private startBtnAnimation;
......@@ -36,16 +37,20 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
pingzi_1Transform:Transform;
pingzi_2Transform:Transform;
gouzi_pingziTransform:Transform;
loadingTransform:Transform;
startBtnButton:Button;
onAwake() {
super.onAwake();
this.setCountText('');
this.startBtnAnimation = this.startbtn.getComponent(Transform);
this.startBtnButton = this.startbtn.getComponent(Button);
this.pingziFrontTransform = this.pingziFront.getComponent(Transform);
this.pingziBackTransform = this.pingziBack.getComponent(Transform);
this.gouziTransform = this.gouzi.getComponent(Transform);
this.pingzi_1Transform = this.pingzi_1.getComponent(Transform);
this.pingzi_2Transform = this.pingzi_2.getComponent(Transform);
this.gouzi_pingziTransform = this.gouzi_pingzi.getComponent(Transform);
this.loadingTransform = this.loading.getComponent(Transform);
this.grabState=false;
this.hasPrize=false;
......@@ -84,6 +89,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
.set({position: {x: -110}})
.to({position: {x: 110}},1000)
.call(()=>{
this.setVisible(this.loadingTransform,false)
//console.log(`2`)
if(this.grabState){
this.grabState=false;
......@@ -119,12 +125,23 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
this.setVisible(this.loadingTransform,false)
//console.log(sd)
//.call(resolve);
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
//obj.enabled=true;
}else{
obj.alpha=0;
//obj.enabled=false;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
......@@ -175,6 +192,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
hasGraDo(){
this.startBtnButton.enabled=true;
if(this.getOrderStatus.code == "C000000001"){
this.bubbling('showDialog', 'Alert',"查询超时,请点击首页【奖品】按钮查看。");
}
......@@ -196,6 +214,8 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnButton.enabled=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
......
assets/singles/alert/Bitmap-1.png

2.43 KB | W: | H:

assets/singles/alert/Bitmap-1.png

61.1 KB | W: | H:

assets/singles/alert/Bitmap-1.png
assets/singles/alert/Bitmap-1.png
assets/singles/alert/Bitmap-1.png
assets/singles/alert/Bitmap-1.png
  • 2-up
  • Swipe
  • Onion skin
assets/singles/alert/Bitmap-4.png

2.53 KB | W: | H:

assets/singles/alert/Bitmap-4.png

918 Bytes | W: | H:

assets/singles/alert/Bitmap-4.png
assets/singles/alert/Bitmap-4.png
assets/singles/alert/Bitmap-4.png
assets/singles/alert/Bitmap-4.png
  • 2-up
  • Swipe
  • Onion skin
assets/singles/dialog-bg.png

27 KB | W: | H:

assets/singles/dialog-bg.png

61.1 KB | W: | H:

assets/singles/dialog-bg.png
assets/singles/dialog-bg.png
assets/singles/dialog-bg.png
assets/singles/dialog-bg.png
  • 2-up
  • Swipe
  • Onion skin
assets/singles/prize_panel/closeBtn.png

1.29 KB | W: | H:

assets/singles/prize_panel/closeBtn.png

918 Bytes | W: | H:

assets/singles/prize_panel/closeBtn.png
assets/singles/prize_panel/closeBtn.png
assets/singles/prize_panel/closeBtn.png
assets/singles/prize_panel/closeBtn.png
  • 2-up
  • Swipe
  • Onion skin
assets/singles/rule_panel/ruleBg.png

44.9 KB | W: | H:

assets/singles/rule_panel/ruleBg.png

142 KB | W: | H:

assets/singles/rule_panel/ruleBg.png
assets/singles/rule_panel/ruleBg.png
assets/singles/rule_panel/ruleBg.png
assets/singles/rule_panel/ruleBg.png
  • 2-up
  • Swipe
  • Onion skin
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