Commit 261c41e4 authored by 任建锋's avatar 任建锋

--

parent 3bb11d4f
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer, Button } from 'scilla-components/src';
import { callApi } from '../net/webService';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity;
level:Entity;
localText:Entity;
imgTextureRenderer
imgTransform
titleTextRenderer
levelTextRenderer
BuriedPoint
localTextTransform
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.localTextTransform=this.localText.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
this.levelTextRenderer=this.level.getComponent(TextRenderer)
if(data.prizeType==0){
if(data){
if(data.exposure){
console.log(data.exposure)
const exposure = data.exposure;
this.spmshow(exposure)
}
}
}
var img = new Image();
if(data.prizeType==0){
if(data.lottery){
img.src = data.lottery.imgurl;
}
}else{
img.src = data.imgurl;
}
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.title
this.localTextTransform.alpha=1;
switch(data.prizeType){
case 0:
this.levelTextRenderer.text="幸运奖";
this.localTextTransform.alpha=0;
break;
case 1:
this.levelTextRenderer.text="一等奖";
break;
case 2:
this.levelTextRenderer.text="二等奖";
break;
case 3:
this.levelTextRenderer.text="三等奖";
break;
case 4:
this.levelTextRenderer.text="四等奖";
break;
}
}
spmshow(exposure){
const domain = (exposure.domain ? exposure.domain : '') + '/engine/';
callApi(
domain + 'spmshow',
exposure,
'get', 'jsonp'
).catch(e => {
console.log(e);
});
}
spmclick(exposure){
const domain = (exposure.domain ? exposure.domain : '') + '/engine/';
callApi(
domain + 'spmclick',
exposure,
'get', 'jsonp'
).catch(e => {
console.log(e);
});
}
onclick_useBtn() {
/* if(this.data.exposure){
this.BuriedPoint.onTouchTap()
} */
if(this.data.prizeType==0){
if(this.data){
if(this.data.exposure){
const exposure = this.data.exposure;
this.spmclick(exposure)
}
if(this.data.lottery){
window.location.href=this.data.lottery.link;
}
}
}else{
window.location.href=`/customActivity/sjf/activity/recordIndex?weddingId=${window['CFG'].weddingId}&activityId=3&brickType=6`
}
this.bubbling('fuckNavigator', 'start')
}
onclick_closeBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer, Button } from 'scilla-components/src';
import { callApi } from '../net/webService';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity;
level:Entity;
localText:Entity;
imgTextureRenderer
imgTransform
titleTextRenderer
levelTextRenderer
BuriedPoint
localTextTransform
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.localTextTransform=this.localText.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
this.levelTextRenderer=this.level.getComponent(TextRenderer)
if(data.prizeType==0){
if(data){
if(data.exposure){
console.log(data.exposure)
const exposure = data.exposure;
this.spmshow(exposure)
}
}
}
var img = new Image();
if(data.prizeType==0){
if(data.lottery){
img.src = data.lottery.imgurl;
}
}else{
img.src = data.imgurl;
}
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.title
this.localTextTransform.alpha=1;
switch(data.prizeType){
case 0:
this.levelTextRenderer.text="幸运奖";
this.localTextTransform.alpha=0;
break;
case 1:
this.levelTextRenderer.text="一等奖";
break;
case 2:
this.levelTextRenderer.text="二等奖";
break;
case 3:
this.levelTextRenderer.text="三等奖";
break;
case 4:
this.levelTextRenderer.text="四等奖";
break;
}
}
spmshow(exposure){
const domain = (exposure.domain ? exposure.domain : '') + '/engine/';
callApi(
domain + 'spmshow',
exposure,
'get', 'jsonp'
).catch(e => {
console.log(e);
});
}
spmclick(exposure){
const domain = (exposure.domain ? exposure.domain : '') + '/engine/';
callApi(
domain + 'spmclick',
exposure,
'get', 'jsonp'
).catch(e => {
console.log(e);
});
}
onclick_useBtn() {
/* if(this.data.exposure){
this.BuriedPoint.onTouchTap()
} */
if(this.data.prizeType==0){
if(this.data){
if(this.data.exposure){
const exposure = this.data.exposure;
this.spmclick(exposure)
}
if(this.data.lottery){
window.location.href=this.data.lottery.link;
}
}
}else{
window.location.href=`/customActivity/sjf/activity/recordIndex?weddingId=${window['CFG'].weddingId}&activityId=3&brickType=6`
}
this.bubbling('fuckNavigator', 'start')
}
onclick_closeBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
import DialogContent from '../popup/DialogContent';
import BuriedPoint, { addBuriedPoints,addBuriedPointConfig,logExposure} from '../common/BuriedPoint';
import { Entity, Texture } from 'scilla/src';
import { TextureRenderer, Transform, TextRenderer, Button } from 'scilla-components/src';
import { callApi } from '../net/webService';
export default class GameOverPanel extends DialogContent {
onAwake() {
super.onAwake();
}
data
//BuriedPoint
img:Entity
title:Entity;
level:Entity;
localText:Entity;
imgTextureRenderer
imgTransform
titleTextRenderer
levelTextRenderer
BuriedPoint
localTextTransform
setup(data: any = {}) {
console.log(data)
this.data=data
this.imgTextureRenderer=this.img.getComponent(TextureRenderer)
this.imgTransform=this.img.getComponent(Transform)
this.localTextTransform=this.localText.getComponent(Transform)
this.titleTextRenderer=this.title.getComponent(TextRenderer)
this.levelTextRenderer=this.level.getComponent(TextRenderer)
if(data.prizeType==0){
if(data){
if(data.exposure){
console.log(data.exposure)
const exposure = data.exposure;
this.spmshow(exposure)
}
}
}
var img = new Image();
if(data.prizeType==0){
if(data.lottery){
img.src = data.lottery.imgurl;
}
}else{
img.src = data.imgurl;
}
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
this.titleTextRenderer.text=data.title
this.localTextTransform.alpha=1;
switch(data.prizeType){
case 0:
this.levelTextRenderer.text="幸运奖";
this.localTextTransform.alpha=0;
break;
case 1:
this.levelTextRenderer.text="一等奖";
break;
case 2:
this.levelTextRenderer.text="二等奖";
break;
case 3:
this.levelTextRenderer.text="三等奖";
break;
case 4:
this.levelTextRenderer.text="四等奖";
break;
}
}
spmshow(exposure){
const domain = (exposure.domain ? exposure.domain : '') + '/engine/';
callApi(
domain + 'spmshow',
exposure,
'get', 'jsonp'
).catch(e => {
console.log(e);
});
}
spmclick(exposure){
const domain = (exposure.domain ? exposure.domain : '') + '/engine/';
callApi(
domain + 'spmclick',
exposure,
'get', 'jsonp'
).catch(e => {
console.log(e);
});
}
onclick_useBtn() {
/* if(this.data.exposure){
this.BuriedPoint.onTouchTap()
} */
if(this.data.prizeType==0){
if(this.data){
if(this.data.exposure){
const exposure = this.data.exposure;
this.spmclick(exposure)
}
if(this.data.lottery){
window["downloadAppConfig"] =
{
openUrl: this.data.lottery.openUrl,
iosDownloadUrl: this.data.lottery.iosDownloadUrl,
androidDownloadUrl: this.data.lottery.androidDownloadUrl,
confirm: this.data.lottery.confirm ? this.data.lottery.confirm : false
};
window["downloadApp"]();
//window.location.href=this.data.lottery.link;
}
}
}else{
window.location.href=`/customActivity/sjf/activity/recordIndex?weddingId=${window['CFG'].weddingId}&activityId=3&brickType=6`
}
this.bubbling('fuckNavigator', 'start')
}
onclick_closeBtn() {
this.bubbling('fuckNavigator', 'start')
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 规则对话框内容
*/
import HtmlRenderer from "scilla-components/src/renderer/HtmlRenderer";
import { dynamic, Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
export default class RuleDialogContent extends DialogContent {
Content: Entity;
ajaxElement: dynamic;//ajax Element
private _contentRenderer: HtmlRenderer;
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=14;
this._contentRenderer.fontSize=750/window.innerWidth*size;
}
setup(data) {
this._contentRenderer.htmlText = window["rule"];
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 规则对话框内容
*/
import HtmlRenderer from "scilla-components/src/renderer/HtmlRenderer";
import { dynamic, Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
export default class RuleDialogContent extends DialogContent {
Content: Entity;
ajaxElement: dynamic;//ajax Element
private _contentRenderer: HtmlRenderer;
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=14;
this._contentRenderer.fontSize=window.innerWidth/750*size;
}
setup(data) {
this._contentRenderer.htmlText = window["rule"];
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 规则对话框内容
*/
import HtmlRenderer from "scilla-components/src/renderer/HtmlRenderer";
import { dynamic, Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
export default class RuleDialogContent extends DialogContent {
Content: Entity;
ajaxElement: dynamic;//ajax Element
private _contentRenderer: HtmlRenderer;
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=20;
this._contentRenderer.fontSize=window.innerWidth/750*size;
}
setup(data) {
this._contentRenderer.htmlText = window["rule"];
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 规则对话框内容
*/
import HtmlRenderer from "scilla-components/src/renderer/HtmlRenderer";
import { dynamic, Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
export default class RuleDialogContent extends DialogContent {
Content: Entity;
ajaxElement: dynamic;//ajax Element
private _contentRenderer: HtmlRenderer;
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=16;
this._contentRenderer.fontSize=window.innerWidth/750*size;
}
setup(data) {
this._contentRenderer.htmlText = window["rule"];
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 规则对话框内容
*/
import HtmlRenderer from "scilla-components/src/renderer/HtmlRenderer";
import { dynamic, Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
export default class RuleDialogContent extends DialogContent {
Content: Entity;
ajaxElement: dynamic;//ajax Element
private _contentRenderer: HtmlRenderer;
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=30;
this._contentRenderer.fontSize=window.innerWidth/750*size;
}
setup(data) {
this._contentRenderer.htmlText = window["rule"];
}
}
/**
* Created by rockyl on 2019-04-10.
*
* 规则对话框内容
*/
import HtmlRenderer from "scilla-components/src/renderer/HtmlRenderer";
import { dynamic, Entity } from "scilla/src";
import DialogContent from "../popup/DialogContent";
export default class RuleDialogContent extends DialogContent {
Content: Entity;
ajaxElement: dynamic;//ajax Element
private _contentRenderer: HtmlRenderer;
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=26;
this._contentRenderer.fontSize=window.innerWidth/750*size;
}
setup(data) {
this._contentRenderer.htmlText = window["rule"];
}
}
/**
* 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 {
//index: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
freeLimit: dynamic;
startTime: dynamic;
endTime: dynamic;
freeLimitApi
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;
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
this.playAnimation()
this.setVisible(this.loadingTransform,false)
this.initGameStage()
}
playAnimation(){
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
})
}
})
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
}else{
obj.alpha=0;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText(this.freeLimit);
this.updateStartBtnState();
}
canBegin=false;
updateCountText(freeLimit) {
//this.freeLimit;
console.log(freeLimit)
let text
this.canBegin=true;
if (freeLimit!=undefined&&freeLimit!=null) {
text = `剩余次数:${freeLimit}次`;
if(freeLimit<=0){
text = `剩余次数:0次`;
this.canBegin=false;
//this.bubbling('showDialog', 'AlertLose',"您已经没有抽奖次数了");
}
}
if (this.startTime!=undefined&&this.startTime!=null) {
if(Date.now()<this.startTime){
//this.canBegin=false;
//this.bubbling('showDialog', 'Alert',"活动还未开始\n敬请期待");
}
}
if (this.endTime!=undefined&&this.endTime!=null) {
if(Date.now()>this.endTime){
//this.canBegin=false;
//this.bubbling('showDialog', 'Alert',"活动已结束\n下次早点来哦");
}
}
this.setCountText(text);
}
updateStartBtnState(){
//this.startBtnButton.interactable=this.canBegin;
if(this.canBegin){
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)
}
}
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.interactable=true;
// if(this.freeLimitApi>0){
// this.startBtnButton.interactable=true;
// }else{
// this.startBtnButton.interactable=false;
// }
if(this.doJoin){
if(this.doJoin.prizeType==5){
this.bubbling('showDialog', 'AlertLose',"您与奖品擦肩而过");
}else{
this.bubbling('showDialog', 'GameOver',this.doJoin);
}
}else{
this.bubbling('showDialog', 'AlertLose',"您与奖品擦肩而过");
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnButton.interactable=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].activityId,
weddingId: window['CFG'].weddingId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError(key);
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].activityId,
weddingId: window['CFG'].weddingId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
if(!this.doJoin){
return
}
this.grabState=true;
this.freeLimitApi=this.doJoin.freeLimit;
console.log("s1")
if(this.doJoin.prizeType==5){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
//this.updateCountText()
this.updateCountText(this.freeLimitApi);
this.updateStartBtnState();
}
onGotDojoinError(data) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
if(data){
switch(data){
case "400001":
this.bubbling('showDialog', 'Alert',"活动不存在");
break;
case "400002":
this.bubbling('showDialog', 'AlertLose',"您已经没有抽奖次数了");
break;
case "400003":
this.bubbling('showDialog', 'AlertLose',"排行榜订单不存在");
break;
case "400004":
this.bubbling('showDialog', 'AlertLose',"排行榜订单状态不正确");
break;
case "400005":
this.bubbling('showDialog', 'Alert',"活动已结束\n下次早点来哦");
break;
case "400006":
this.bubbling('showDialog', 'Alert',"活动已结束\n下次早点来哦");
break;
default:
this.bubbling('showDialog', 'AlertLose',"网络异常,请稍后再试");
}
}else{
this.bubbling('showDialog', 'AlertLose',"网络异常,请稍后再试");
}
this.startBtnButton.interactable=true;
}
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');
window.location.href=`/customActivity/sjf/activity/recordIndex?weddingId=${window['CFG'].weddingId}&activityId=3&brickType=6`
//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 {
//index: dynamic;
doJoin: dynamic;
getOrderStatus: dynamic;
freeLimit: dynamic;
startTime: dynamic;
endTime: dynamic;
freeLimitApi
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;
this.gouzi_pingziTransform.alpha=0
this.pingzi_2Transform.alpha=1
this.playAnimation()
this.setVisible(this.loadingTransform,false)
this.initGameStage()
}
playAnimation(){
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
})
}
})
}
//是否隐藏对象
setVisible(obj,state){
if(state){
obj.alpha=1;
}else{
obj.alpha=0;
}
}
private setCountText(text: string) {
setText(this.countTxt, text);
}
initGameStage() {
this.updateCountText(this.freeLimit);
this.updateStartBtnState();
}
canBegin=false;
updateCountText(freeLimit) {
//this.freeLimit;
console.log(freeLimit)
let text
this.canBegin=true;
if (freeLimit!=undefined&&freeLimit!=null) {
text = `剩余次数:${freeLimit}次`;
if(freeLimit<=0){
text = `剩余次数:0次`;
this.canBegin=false;
//this.bubbling('showDialog', 'AlertLose',"您已经没有抽奖次数了");
}
}
if (this.startTime!=undefined&&this.startTime!=null) {
if(Date.now()<this.startTime){
//this.canBegin=false;
//this.bubbling('showDialog', 'Alert',"活动还未开始\n敬请期待");
}
}
if (this.endTime!=undefined&&this.endTime!=null) {
if(Date.now()>this.endTime){
//this.canBegin=false;
//this.bubbling('showDialog', 'Alert',"活动已结束\n下次早点来哦");
}
}
this.setCountText(text);
}
updateStartBtnState(){
//this.startBtnButton.interactable=this.canBegin;
if(this.canBegin){
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)
}
}
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.interactable=true;
// if(this.freeLimitApi>0){
// this.startBtnButton.interactable=true;
// }else{
// this.startBtnButton.interactable=false;
// }
if(this.doJoin){
if(this.doJoin.prizeType==5){
this.bubbling('showDialog', 'AlertLose',"您与奖品擦肩而过");
}else{
this.bubbling('showDialog', 'GameOver',this.doJoin);
}
}else{
this.bubbling('showDialog', 'AlertLose',"您与奖品擦肩而过");
}
}
onError_orderStatus() {
console.log(2)
}
onClick_startbtn() {
/* this.grabState=true;
this.hasPrize=true; */
this.setVisible(this.loadingTransform,true)
this.startBtnButton.interactable=false;
if (window['getDuibaToken']) {
window['getDuibaToken']((tokenObj: any) => {
this.broadcast('callApi', 1, 'doJoin', {
token:tokenObj.token,
activityId: window['CFG'].activityId,
weddingId: window['CFG'].weddingId
});
}, (key: string, messageObj: any) => {
this.onGotDojoinError(key);
});
} else {
this.broadcast('callApi', 1, 'doJoin', {
activityId: window['CFG'].activityId,
weddingId: window['CFG'].weddingId
});
}
}
onGotDojoin() {
console.log('onGotDojoin', this.doJoin);
if(!this.doJoin){
return
}
this.grabState=true;
this.freeLimitApi=this.doJoin.freeLimit;
console.log("s1")
if(this.doJoin.prizeType==5){
this.hasPrize=false;
}else{
this.hasPrize=true;
}
//this.updateCountText()
this.updateCountText(this.freeLimitApi);
this.updateStartBtnState();
}
onGotDojoinError(data) {
console.log('onGotDojoinError')
console.log(this.doJoin)
console.log(data)
if(data){
switch(data){
case "400001":
this.bubbling('showDialog', 'Alert',"活动不存在");
break;
case "400002":
this.bubbling('showDialog', 'AlertLose',"您已经没有抽奖次数了");
break;
case "400003":
this.bubbling('showDialog', 'AlertLose',"排行榜订单不存在");
break;
case "400004":
this.bubbling('showDialog', 'AlertLose',"排行榜订单状态不正确");
break;
case "400005":
this.bubbling('showDialog', 'Alert',"活动未开始\n敬请期待");
break;
case "400006":
this.bubbling('showDialog', 'Alert',"活动已结束\n下次早点来哦");
break;
default:
this.bubbling('showDialog', 'AlertLose',"网络异常,请稍后再试");
}
}else{
this.bubbling('showDialog', 'AlertLose',"网络异常,请稍后再试");
}
this.startBtnButton.interactable=true;
}
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');
window.location.href=`/customActivity/sjf/activity/recordIndex?weddingId=${window['CFG'].weddingId}&activityId=3&brickType=6`
//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;
}
}
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561640133/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561640133/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561691819/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561691819/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561691819/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561691819/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561692180/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561692180/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561692776/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561692776/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561693476/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561693476/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561693662/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561693662/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
color:#fff;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
加载中...
</div>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/zepto.min.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/downloadApp.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wx_test/security.js"></script>
<script src="//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561707857/bundle.js"></script>
<script>
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试";
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {
resPath:"//yun.duiba.com.cn/db_games/activity/wwjsjf-20190619/1561707857/"
};
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
</body>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
<img src="loading.gif" />
</div>
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="./downloadApp.js"></script>
<script src="debug/bundle.js"></script>
<script>
var CFG = {
activityId: 3561555,//活动id
freeLimit: 3,//剩余次数
weixinUid:'1',//微信uid
nickname:'nickname',//昵称
avatar: 'avatar',
startTime:1561447512324,
endTime:1562887512324,
weddingId:"1"
};
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试"
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
<img src="loading.gif" />
</div>
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="./zepto.min.js"></script>
<script src="./downloadApp.js"></script>
<script src="debug/bundle.js"></script>
<script>
var CFG = {
activityId: 3561555,//活动id
freeLimit: 3,//剩余次数
weixinUid:'1',//微信uid
nickname:'nickname',//昵称
avatar: 'avatar',
startTime:1561447512324,
endTime:1562887512324,
weddingId:"1"
};
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试"
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
<img src="loading.gif" />
</div>
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="./downloadApp.js"></script>
<script src="debug/bundle.js"></script>
<script>
var CFG = {
activityId: 3561555,//活动id
freeLimit: 3,//剩余次数
weixinUid:'1',//微信uid
nickname:'nickname',//昵称
avatar: 'avatar',
startTime:1561447512324,
endTime:1562887512324,
weddingId:"1"
};
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试"
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
\ No newline at end of file
......@@ -1202,7 +1202,7 @@
"width": 500,
"height": 550,
"position": {
"x": 374.1666666666667,
"x": 384.1666666666667,
"y": 607.3333333333334,
"_type_": "scilla/support/Vector2D"
}
......
......@@ -43,14 +43,20 @@ export default class GameOverPanel extends DialogContent {
}
}
var img = new Image();
img.src = data.imgurl;
img.onload = ()=>{
if(data.prizeType==0){
if(data.lottery){
img.src = data.lottery.imgurl;
}
}else{
img.src = data.imgurl;
}
img.onload = ()=>{
this.imgTextureRenderer.texture.setImg(img)
this.imgTextureRenderer.texture.bounds.height=img.height;
this.imgTextureRenderer.texture.bounds.width=img.width;
this.imgTransform.width=img.width;
this.imgTransform.height=img.height;
};
};
this.titleTextRenderer.text=data.title
this.localTextTransform.alpha=1;
......@@ -110,7 +116,15 @@ export default class GameOverPanel extends DialogContent {
this.spmclick(exposure)
}
if(this.data.lottery){
window.location.href=this.data.lottery.link;
window["downloadAppConfig"] =
{
openUrl: this.data.lottery.openUrl,
iosDownloadUrl: this.data.lottery.iosDownloadUrl,
androidDownloadUrl: this.data.lottery.androidDownloadUrl,
confirm: this.data.lottery.confirm ? this.data.lottery.confirm : false
};
window["downloadApp"]();
//window.location.href=this.data.lottery.link;
}
}
}else{
......
......@@ -16,6 +16,8 @@ export default class RuleDialogContent extends DialogContent {
onAwake() {
super.onAwake();
this._contentRenderer = this.Content.getComponent(HtmlRenderer);
var size=26;
this._contentRenderer.fontSize=window.innerWidth/750*size;
}
setup(data) {
......
......@@ -278,7 +278,7 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
if(data){
switch(data){
case "400001":
this.bubbling('showDialog', 'Alert',"活动还未开始\n敬请期待");
this.bubbling('showDialog', 'Alert',"活动不存在");
break;
case "400002":
this.bubbling('showDialog', 'AlertLose',"您已经没有抽奖次数了");
......@@ -290,6 +290,9 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
this.bubbling('showDialog', 'AlertLose',"排行榜订单状态不正确");
break;
case "400005":
this.bubbling('showDialog', 'Alert',"活动未开始\n敬请期待");
break;
case "400006":
this.bubbling('showDialog', 'Alert',"活动已结束\n下次早点来哦");
break;
default:
......
This diff is collapsed.
{
"file": "gameover.png",
"frames": {
"得分-拷贝.png": {
"x": 1,
"y": 1,
"w": 571,
"h": 672,
"offX": 0,
"offY": 0,
"sourceW": 571,
"sourceH": 752
},
"按钮2-拷贝.png": {
"x": 574,
"y": 1,
"w": 338,
"h": 110,
"offX": 0,
"offY": 0,
"sourceW": 338,
"sourceH": 110
},
"再来一次.png": {
"x": 574,
"y": 113,
"w": 259,
"h": 85,
"offX": 0,
"offY": 0,
"sourceW": 259,
"sourceH": 85
},
"Bitmap-4-1.png": {
"x": 835,
"y": 113,
"w": 48,
"h": 48,
"offX": 0,
"offY": 0,
"sourceW": 48,
"sourceH": 48
},
"得分.png": {
"x": 1,
"y": 675,
"w": 571,
"h": 652,
"offX": 0,
"offY": 0,
"sourceW": 571,
"sourceH": 652
}
}
}
\ No newline at end of file
{
"file": "play.png",
"frames": {
"淡蓝-1.png": {
"x": 1,
"y": 1,
"w": 223,
"h": 214,
"offX": 0,
"offY": 0,
"sourceW": 223,
"sourceH": 214
},
"绿-1.png": {
"x": 226,
"y": 1,
"w": 223,
"h": 213,
"offX": 0,
"offY": 0,
"sourceW": 223,
"sourceH": 213
},
"大炮板子-1.png": {
"x": 451,
"y": 1,
"w": 93,
"h": 23,
"offX": 0,
"offY": 0,
"sourceW": 93,
"sourceH": 23
},
"发弹雾气-1.png": {
"x": 451,
"y": 26,
"w": 87,
"h": 34,
"offX": 0,
"offY": 0,
"sourceW": 87,
"sourceH": 34
},
"子弹-1.png": {
"x": 540,
"y": 26,
"w": 10,
"h": 32,
"offX": 0,
"offY": 0,
"sourceW": 10,
"sourceH": 32
},
"大炮的头-1.png": {
"x": 451,
"y": 62,
"w": 70,
"h": 88,
"offX": 0,
"offY": 0,
"sourceW": 70,
"sourceH": 88
},
"淡蓝火箭-1.png": {
"x": 523,
"y": 62,
"w": 25,
"h": 27,
"offX": 0,
"offY": 0,
"sourceW": 25,
"sourceH": 27
},
"red20.png": {
"x": 523,
"y": 91,
"w": 25,
"h": 26,
"offX": 0,
"offY": 0,
"sourceW": 25,
"sourceH": 26
},
"1-1-1.png": {
"x": 451,
"y": 152,
"w": 45,
"h": 45,
"offX": 0,
"offY": 0,
"sourceW": 45,
"sourceH": 45
},
"紫-1.png": {
"x": 226,
"y": 216,
"w": 223,
"h": 213,
"offX": 0,
"offY": 0,
"sourceW": 223,
"sourceH": 213
},
"黄-1.png": {
"x": 1,
"y": 217,
"w": 222,
"h": 214,
"offX": 0,
"offY": 0,
"sourceW": 222,
"sourceH": 214
},
"蓝-1.png": {
"x": 225,
"y": 431,
"w": 222,
"h": 213,
"offX": 0,
"offY": 0,
"sourceW": 222,
"sourceH": 213
},
"红-1.png": {
"x": 1,
"y": 433,
"w": 222,
"h": 212,
"offX": 0,
"offY": 0,
"sourceW": 222,
"sourceH": 212
},
"火-1.png": {
"x": 225,
"y": 646,
"w": 128,
"h": 40,
"offX": 0,
"offY": 0,
"sourceW": 128,
"sourceH": 40
},
"火箭-1.png": {
"x": 355,
"y": 646,
"w": 128,
"h": 40,
"offX": 0,
"offY": 0,
"sourceW": 128,
"sourceH": 40
}
}
}
\ No newline at end of file
{
"file": "rule.png",
"frames": {
"游戏说明-1.png": {
"x": 1,
"y": 1,
"w": 571,
"h": 641,
"offX": 0,
"offY": 0,
"sourceW": 571,
"sourceH": 641
},
"closeBtn-1.png": {
"x": 1,
"y": 644,
"w": 56,
"h": 56,
"offX": 0,
"offY": 0,
"sourceW": 56,
"sourceH": 56
}
}
}
\ No newline at end of file
{
"file": "start.png",
"frames": {
"按钮-2.png": {
"x": 1,
"y": 1,
"w": 305,
"h": 99,
"offX": 0,
"offY": 0,
"sourceW": 305,
"sourceH": 99
},
"排行榜.png": {
"x": 1,
"y": 102,
"w": 88,
"h": 122,
"offX": 0,
"offY": 0,
"sourceW": 88,
"sourceH": 122
},
"规则-1.png": {
"x": 91,
"y": 102,
"w": 88,
"h": 122,
"offX": 0,
"offY": 0,
"sourceW": 88,
"sourceH": 122
}
}
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>new-kickball</title>
<meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" />
<meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" />
<style>
html,
body,
p {
padding: 0;
margin: 0;
border: 0;
}
html,
body {
height: 100%;
background-color: #282C34;
}
#loading {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
display: flex;
display: -webkit-flex;
justify-content: center;
-webkit-justify-content: center;
align-items: center;
-webkit-align-items: center;
}
#floatLayer::-webkit-scrollbar {
display: none
}
</style>
</head>
<body>
<script src="https://cdn.bootcss.com/fetch-jsonp/1.1.3/fetch-jsonp.min.js"></script>
<div id="gameContainer" style="width: 100%;height: 100%;overflow: hidden;"></div>
<div id="loading">
<img src="loading.gif" />
</div>
<script src="./zepto.min.js"></script>
<script src="./security.js"></script>
<script src="./zepto.min.js"></script>
<script src="./downloadApp.js"></script>
<script src="bundle.js"></script>
<script>
var CFG = {
activityId: 3561555,//活动id
freeLimit: 3,//剩余次数
weixinUid:'1',//微信uid
nickname:'nickname',//昵称
avatar: 'avatar',
startTime:1561447512324,
endTime:1562887512324,
weddingId:"1"
};
function requirelogin() {
console.log('requirelogin');
}
var rule="测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试测试"
setTimeout(function () {
var loadingEl = document.getElementById('loading');
function onProcess(p) {
if (p >= 1) {
loadingEl.style.display = 'none';
}
}
var options = {};//window['inputOptions'] ||
window['new-kickball'].startup(document.getElementById('gameContainer'), options, onProcess);
}, 100);
</script>
<script>
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] +
':35729/livereload.js?snipver=1"></' + 'script>')
</script>
</body>
</html>
\ No newline at end of file
{
"name": "new-kickball",
"engineConfig": {
"fps": 60,
"designWidth": 750,
"designHeight": 1624,
"scaleMode": "fixedWidth",
"modifyCanvasSize": false,
"resPath": ""
},
"customConfig": {
"scene": {
"scenes": {
"main": "scenes/main.scene"
},
"entryScene": "main"
},
"webServiceUrl-": "http://10.10.93.204:7555 http://localhost:3010",
"webServiceUrl": "http://localhost:4001"
},
"dataCenterConfig": {
"dataCenterRoot": [
"API",
"CFG"
]
}
}
This diff is collapsed.
{
"file": "gameover.png",
"frames": {
"得分-拷贝.png": {
"x": 1,
"y": 1,
"w": 571,
"h": 672,
"offX": 0,
"offY": 0,
"sourceW": 571,
"sourceH": 752
},
"按钮2-拷贝.png": {
"x": 574,
"y": 1,
"w": 338,
"h": 110,
"offX": 0,
"offY": 0,
"sourceW": 338,
"sourceH": 110
},
"再来一次.png": {
"x": 574,
"y": 113,
"w": 259,
"h": 85,
"offX": 0,
"offY": 0,
"sourceW": 259,
"sourceH": 85
},
"Bitmap-4-1.png": {
"x": 835,
"y": 113,
"w": 48,
"h": 48,
"offX": 0,
"offY": 0,
"sourceW": 48,
"sourceH": 48
},
"得分.png": {
"x": 1,
"y": 675,
"w": 571,
"h": 652,
"offX": 0,
"offY": 0,
"sourceW": 571,
"sourceH": 652
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"file": "rule.png",
"frames": {
"游戏说明-1.png": {
"x": 1,
"y": 1,
"w": 571,
"h": 641,
"offX": 0,
"offY": 0,
"sourceW": 571,
"sourceH": 641
},
"closeBtn-1.png": {
"x": 1,
"y": 644,
"w": 56,
"h": 56,
"offX": 0,
"offY": 0,
"sourceW": 56,
"sourceH": 56
}
}
}
\ No newline at end of file
{
"file": "start.png",
"frames": {
"按钮-2.png": {
"x": 1,
"y": 1,
"w": 305,
"h": 99,
"offX": 0,
"offY": 0,
"sourceW": 305,
"sourceH": 99
},
"排行榜.png": {
"x": 1,
"y": 102,
"w": 88,
"h": 122,
"offX": 0,
"offY": 0,
"sourceW": 88,
"sourceH": 122
},
"规则-1.png": {
"x": 91,
"y": 102,
"w": 88,
"h": 122,
"offX": 0,
"offY": 0,
"sourceW": 88,
"sourceH": 122
}
}
}
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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