Commit 23da194b authored by wangzhujun's avatar wangzhujun

1232

parent e1f849cc
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var NetManager_1 = require("../../../libs/tw/manager/NetManager");
var DataManager_1 = require("../../../libs/tw/manager/DataManager");
/**
* 开始游戏
* @param callback
* @param isAgain
* @param credits
* @param customizedType
*/
var doStart = function (callback, isAgain, credits, customizedType) {
if (isAgain === void 0) { isAgain = false; }
if (window['requirelogin'] && window['config_notrequirelogin'] === undefined) {
window['requirelogin']();
return;
}
NetManager_1.NetManager.ins.doStart(function (success) {
if (success) {
getStartOrderStatus(callback, customizedType);
}
else {
callback(success);
}
}, isAgain, credits, customizedType);
};
/**
* 查询订单结果
* @param callback
* @param ticketId
* @param customizedType
*/
var getStartOrderStatus = function (callback, customizedType) {
NetManager_1.NetManager.ins.getStartStatus(callback, DataManager_1.DataManager.ins.doStartData.ticketId, function () { return DataManager_1.DataManager.ins.getStartStatusData.code != 1; }, 5, customizedType);
};
exports.default = doStart;
//# sourceMappingURL=doStart.js.map
\ No newline at end of file
{"version":3,"file":"doStart.js","sourceRoot":"","sources":["../../../../libs/new_tw/ctrls/doStart.ts"],"names":[],"mappings":";;AAAA,kEAAiE;AACjE,oEAAmE;AAEnE;;;;;;GAMG;AACH,IAAM,OAAO,GAAG,UAAC,QAAkB,EAAE,OAAe,EAAE,OAAgB,EAAE,cAAuB;IAA1D,wBAAA,EAAA,eAAe;IAChD,EAAE,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,MAAM,CAAC,wBAAwB,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC;QAC3E,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;QACzB,MAAM,CAAC;IACX,CAAC;IACD,uBAAU,CAAC,GAAG,CAAC,OAAO,CAAC,UAAC,OAAgB;QACpC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YACV,mBAAmB,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;QAClD,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,QAAQ,CAAC,OAAO,CAAC,CAAC;QACtB,CAAC;IACL,CAAC,EACG,OAAO,EACP,OAAO,EACP,cAAc,CAAC,CAAC;AACxB,CAAC,CAAA;AAED;;;;;GAKG;AACH,IAAM,mBAAmB,GAAG,UAAC,QAAkB,EAAE,cAAuB;IACpE,uBAAU,CAAC,GAAG,CAAC,cAAc,CACzB,QAAQ,EACR,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EACpC,cAAQ,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,EAC9D,CAAC,EACD,cAAc,CAAC,CAAC;AACxB,CAAC,CAAA;AACD,kBAAe,OAAO,CAAC"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/1
* 组件基类
*/
var ABModule = (function () {
function ABModule(data) {
this._data = data;
var viewClass;
if (typeof this.data.viewClass === 'string') {
viewClass = eval(this.data.viewClass);
}
else {
viewClass = this.data.viewClass;
}
this._view = new viewClass();
}
Object.defineProperty(ABModule.prototype, "data", {
/**
* 模块数据
* @returns {IModuleData}
*/
get: function () {
return this._data;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ABModule.prototype, "view", {
/**
* 视图
* @returns {any}
*/
get: function () {
return this._view;
},
enumerable: true,
configurable: true
});
return ABModule;
}());
exports.ABModule = ABModule;
__reflect(ABModule.prototype, "\"e:/zqty/egret/libs/tc/component/ABModule\".ABModule", ["\"e:/zqty/egret/libs/tc/interface/IDestroy\".IDestroy"]);
//# sourceMappingURL=ABModule.js.map
\ No newline at end of file
{"version":3,"file":"ABModule.js","sourceRoot":"","sources":["../../../../libs/tc/component/ABModule.ts"],"names":[],"mappings":";;;;;AAGA;;;GAGG;AACH;IAWI,kBAAY,IAAiB;QACzB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAElB,IAAI,SAAc,CAAC;QACnB,EAAE,CAAC,CAAC,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC;YAC1C,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC1C,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;QACpC,CAAC;QACD,IAAI,CAAC,KAAK,GAAG,IAAI,SAAS,EAAE,CAAC;IACjC,CAAC;IA2DD,sBAAW,0BAAI;QAJf;;;WAGG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IAMD,sBAAc,0BAAI;QAJlB;;;WAGG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;QACtB,CAAC;;;OAAA;IACL,eAAC;AAAD,CAAC,AA3FD,IA2FC;AA3FqB,4BAAQ;AAAR,UAAA,QAAQ,+HA2F7B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/13
* 布局枚举
*/
var LayoutType;
(function (LayoutType) {
LayoutType[LayoutType["TOP"] = 0] = "TOP";
LayoutType[LayoutType["BOTTOM"] = 1] = "BOTTOM";
LayoutType[LayoutType["LEFT"] = 2] = "LEFT";
LayoutType[LayoutType["RIGHT"] = 3] = "RIGHT";
LayoutType[LayoutType["HORIZONTAL"] = 4] = "HORIZONTAL";
LayoutType[LayoutType["VERTICAL"] = 5] = "VERTICAL";
})(LayoutType = exports.LayoutType || (exports.LayoutType = {}));
//# sourceMappingURL=LayoutType.js.map
\ No newline at end of file
{"version":3,"file":"LayoutType.js","sourceRoot":"","sources":["../../../../libs/tc/enum/LayoutType.ts"],"names":[],"mappings":";;AAAA;;;GAGG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IAClB,yCAAO,CAAA;IACP,+CAAM,CAAA;IACN,2CAAI,CAAA;IACJ,6CAAK,CAAA;IACL,uDAAU,CAAA;IACV,mDAAQ,CAAA;AACZ,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = 1;
//# sourceMappingURL=index.js.map
\ No newline at end of file
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../libs/tc/index.ts"],"names":[],"mappings":";;AACa,QAAA,CAAC,GAAE,CAAC,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IData.js.map
\ No newline at end of file
{"version":3,"file":"IData.js","sourceRoot":"","sources":["../../../../libs/tc/interface/IData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IDestroy.js.map
\ No newline at end of file
{"version":3,"file":"IDestroy.js","sourceRoot":"","sources":["../../../../libs/tc/interface/IDestroy.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IModuleData.js.map
\ No newline at end of file
{"version":3,"file":"IModuleData.js","sourceRoot":"","sources":["../../../../libs/tc/interface/IModuleData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=INetData.js.map
\ No newline at end of file
{"version":3,"file":"INetData.js","sourceRoot":"","sources":["../../../../libs/tc/interface/INetData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 动画管理器
*/
var ABAnimationManager = (function () {
function ABAnimationManager() {
}
return ABAnimationManager;
}());
exports.ABAnimationManager = ABAnimationManager;
__reflect(ABAnimationManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABAnimationManager\".ABAnimationManager");
//# sourceMappingURL=ABAnimationManager.js.map
\ No newline at end of file
{"version":3,"file":"ABAnimationManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABAnimationManager.ts"],"names":[],"mappings":";;;;;AAAA;;GAEG;AACH;IAAA;IAMA,CAAC;IAAD,yBAAC;AAAD,CAAC,AAND,IAMC;AANqB,gDAAkB;AAAlB,UAAA,kBAAkB,sFAMvC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var ABAudioManager = (function () {
function ABAudioManager() {
}
return ABAudioManager;
}());
exports.ABAudioManager = ABAudioManager;
__reflect(ABAudioManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABAudioManager\".ABAudioManager");
//# sourceMappingURL=ABAudioManager.js.map
\ No newline at end of file
{"version":3,"file":"ABAudioManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABAudioManager.ts"],"names":[],"mappings":";;;;;AAAA;IACI;IAEA,CAAC;IA+DL,qBAAC;AAAD,CAAC,AAlED,IAkEC;AAlEqB,wCAAc;AAAd,UAAA,cAAc,8EAkEnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/8
* 数据管理
*/
var ABDataManager = (function (_super) {
__extends(ABDataManager, _super);
function ABDataManager() {
return _super !== null && _super.apply(this, arguments) || this;
}
return ABDataManager;
}(egret.EventDispatcher));
exports.ABDataManager = ABDataManager;
__reflect(ABDataManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABDataManager\".ABDataManager");
//# sourceMappingURL=ABDataManager.js.map
\ No newline at end of file
{"version":3,"file":"ABDataManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABDataManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH;IAA4C,iCAAqB;IAAjE;;IAQA,CAAC;IAAD,oBAAC;AAAD,CAAC,AARD,CAA4C,KAAK,CAAC,eAAe,GAQhE;AARqB,sCAAa;AAAb,UAAA,aAAa,4EAQlC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 模块管理器
*/
var ABModuleManager = (function () {
function ABModuleManager() {
}
return ABModuleManager;
}());
exports.ABModuleManager = ABModuleManager;
__reflect(ABModuleManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABModuleManager\".ABModuleManager");
//# sourceMappingURL=ABModuleManager.js.map
\ No newline at end of file
{"version":3,"file":"ABModuleManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABModuleManager.ts"],"names":[],"mappings":";;;;;AAEA;;GAEG;AACH;IAAA;IA2BA,CAAC;IAAD,sBAAC;AAAD,CAAC,AA3BD,IA2BC;AA3BqB,0CAAe;AAAf,UAAA,eAAe,gFA2BpC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GTime_1 = require("../util/GTime");
var ABNetManager = (function () {
function ABNetManager() {
/**
* 调用接口对象池
*/
this.callbackPool = {};
}
/**
* 发送请求
* @param net
*/
ABNetManager.prototype.send = function (net) {
var scope = this;
var gTime = '?_=' + GTime_1.GTime.getTimestamp();
var realUrl = net.uri;
if (realUrl.indexOf('?') != -1) {
gTime = '&_=' + GTime_1.GTime.getTimestamp();
}
//url加参数等特殊需求(例如再玩一次需要在dostart接口的url上加埋点)
if (net.addUrl) {
realUrl += net.addUrl;
}
// console.log(`[send][${net.uri}]${JSON.stringify(net.param)}`)
window['$'].ajax({
type: net.type,
// url: realUrl + gTime,
url: realUrl,
dataType: net.dataType,
data: net.param,
async: true,
success: function (result) {
// console.log(`[success][${net.uri}]${JSON.stringify(result)}`)
scope.onResponse(net, result);
},
error: function (message) {
scope.onError(net);
},
beforeSend: function (xhr) {
if (net.beforeSend) {
net.beforeSend(xhr);
}
}
});
};
/**
* 客集集发送表单请求
* @param net
*/
ABNetManager.prototype.sendInfo = function (net) {
var scope = this;
var gTime = '?_=' + GTime_1.GTime.getTimestamp();
var realUrl = net.uri;
if (realUrl.indexOf('?') != -1) {
gTime = '&_=' + GTime_1.GTime.getTimestamp();
}
//url加参数等特殊需求(例如再玩一次需要在dostart接口的url上加埋点)
if (net.addUrl) {
realUrl += net.addUrl;
}
// console.log(`[send][${net.uri}]${JSON.stringify(net.param)}`)
window['$'].ajax({
type: net.type,
// url: realUrl + gTime,
url: realUrl,
dataType: net.dataType,
data: JSON.stringify(net.param),
contentType: 'application/json',
async: true,
success: function (result) {
// console.log(`[success][${net.uri}]${JSON.stringify(result)}`)
scope.onResponse(net, result);
},
error: function (message) {
scope.onError(net);
},
beforeSend: function (xhr) {
if (net.beforeSend) {
net.beforeSend(xhr);
}
}
});
};
/**
* 接口底层错误
*/
ABNetManager.ERROR = 'Error';
return ABNetManager;
}());
exports.ABNetManager = ABNetManager;
__reflect(ABNetManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABNetManager\".ABNetManager");
//# sourceMappingURL=ABNetManager.js.map
\ No newline at end of file
{"version":3,"file":"ABNetManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABNetManager.ts"],"names":[],"mappings":";;;;;AACA,uCAAsC;AAGtC;IAWI;QALA;;WAEG;QACK,iBAAY,GAAQ,EAAE,CAAC;IAG/B,CAAC;IAED;;;OAGG;IACI,2BAAI,GAAX,UAAY,GAAa;QACrB,IAAI,KAAK,GAAG,IAAI,CAAC;QACjB,IAAI,KAAK,GAAW,KAAK,GAAG,aAAK,CAAC,YAAY,EAAE,CAAC;QACjD,IAAI,OAAO,GAAW,GAAG,CAAC,GAAG,CAAC;QAC9B,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7B,KAAK,GAAG,KAAK,GAAG,aAAK,CAAC,YAAY,EAAE,CAAC;QACzC,CAAC;QAED,yCAAyC;QACzC,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC;YACb,OAAO,IAAI,GAAG,CAAC,MAAM,CAAC;QAC1B,CAAC;QACD,gEAAgE;QAChE,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;YACb,IAAI,EAAE,GAAG,CAAC,IAAI;YACd,wBAAwB;YACxB,GAAG,EAAE,OAAO;YACZ,QAAQ,EAAE,GAAG,CAAC,QAAQ;YACtB,IAAI,EAAE,GAAG,CAAC,KAAK;YACf,KAAK,EAAE,IAAI;YACX,OAAO,EAAE,UAAU,MAAM;gBACrB,gEAAgE;gBAChE,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;YAClC,CAAC;YACD,KAAK,EAAE,UAAU,OAAO;gBACpB,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;YACvB,CAAC;YACD,UAAU,EAAE,UAAU,GAAG;gBACrB,EAAE,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC;oBACjB,G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B,CAAC;YACL,CAAC;SACJ,CAAC,CAAC;IACP,CAAC;IA1FD;;OAEG;IACW,kBAAK,GAAG,OAAO,CAAC;IAsGlC,mBAAC;CAAA,AA1GD,IA0GC;AA1GqB,oCAAY;AAAZ,UAAA,YAAY,0EA0GjC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 面板管理
*/
var ABPanelManager = (function () {
function ABPanelManager() {
}
return ABPanelManager;
}());
exports.ABPanelManager = ABPanelManager;
__reflect(ABPanelManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABPanelManager\".ABPanelManager");
//# sourceMappingURL=ABPanelManager.js.map
\ No newline at end of file
{"version":3,"file":"ABPanelManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABPanelManager.ts"],"names":[],"mappings":";;;;;AAEA;;GAEG;AACH;IAEI;IACA,CAAC;IA6BL,qBAAC;AAAD,CAAC,AAhCD,IAgCC;AAhCqB,wCAAc;AAAd,UAAA,cAAc,8EAgCnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var ABResManager = (function () {
function ABResManager() {
}
return ABResManager;
}());
exports.ABResManager = ABResManager;
__reflect(ABResManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABResManager\".ABResManager");
//# sourceMappingURL=ABResManager.js.map
\ No newline at end of file
{"version":3,"file":"ABResManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABResManager.ts"],"names":[],"mappings":";;;;;AAEA;IAAA;IAmBA,CAAC;IAAD,mBAAC;AAAD,CAAC,AAnBD,IAmBC;AAnBqB,oCAAY;AAAZ,UAAA,YAAY,0EAmBjC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 场景管理器
*/
var ABSceneManager = (function () {
function ABSceneManager() {
}
return ABSceneManager;
}());
exports.ABSceneManager = ABSceneManager;
__reflect(ABSceneManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABSceneManager\".ABSceneManager");
//# sourceMappingURL=ABSceneManager.js.map
\ No newline at end of file
{"version":3,"file":"ABSceneManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABSceneManager.ts"],"names":[],"mappings":";;;;;AACA;;GAEG;AACH;IACI;IACA,CAAC;IAqBL,qBAAC;AAAD,CAAC,AAvBD,IAuBC;AAvBqB,wCAAc;AAAd,UAAA,cAAc,8EAuBnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var ABStageManager = (function () {
function ABStageManager() {
}
return ABStageManager;
}());
exports.ABStageManager = ABStageManager;
__reflect(ABStageManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABStageManager\".ABStageManager");
//# sourceMappingURL=ABStageManager.js.map
\ No newline at end of file
{"version":3,"file":"ABStageManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABStageManager.ts"],"names":[],"mappings":";;;;;AAEA;IAAA;IAsBA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBqB,wCAAc;AAAd,UAAA,cAAc,8EAsBnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var ABVideoManager = (function () {
function ABVideoManager() {
}
return ABVideoManager;
}());
exports.ABVideoManager = ABVideoManager;
__reflect(ABVideoManager.prototype, "\"e:/zqty/egret/libs/tc/manager/ABVideoManager\".ABVideoManager");
//# sourceMappingURL=ABVideoManager.js.map
\ No newline at end of file
{"version":3,"file":"ABVideoManager.js","sourceRoot":"","sources":["../../../../libs/tc/manager/ABVideoManager.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAmCA,CAAC;IAAD,qBAAC;AAAD,CAAC,AAnCD,IAmCC;AAnCqB,wCAAc;AAAd,UAAA,cAAc,8EAmCnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GFun_1 = require("./GFun");
var GConsole_1 = require("./GConsole");
var GCache = (function () {
function GCache() {
}
/**
* 初始化
* @param keys
*/
GCache.init = function (keys) {
var i = 0;
var len = keys.length;
this.gKey = '';
for (i; i < len; i++) {
this.gKey += '_' + keys[i];
}
};
/**
* 写入缓存
* @param key
* @param value
* @param type type 缓存类型 localStorage永久缓存 sessionStorage浏览器生命周期结束前'
*/
GCache.writeCache = function (key, value, type) {
if (type === void 0) { type = 'localStorage'; }
if (!window[type]) {
GConsole_1.GConsole.log(GFun_1.GFun.replace('webview不支持{0}', [type]));
return;
}
window[type].setItem(key + this.gKey, value);
};
/**
* 读取缓存
* @param key
* @param type type 缓存类型 localStorage永久缓存 sessionStorage浏览器生命周期结束前'
* @return
*/
GCache.readCache = function (key, type) {
if (type === void 0) { type = 'localStorage'; }
if (!window[type]) {
GConsole_1.GConsole.log(GFun_1.GFun.replace('webview不支持{0}', [type]));
return;
}
return window[type].getItem(key + this.gKey);
};
/**
* 删除缓存
* @param key
* @param type 缓存类型 localStorage永久缓存 sessionStorage浏览器生命周期结束前
*/
GCache.removeCache = function (key, type) {
if (type === void 0) { type = 'localStorage'; }
if (!window[type]) {
GConsole_1.GConsole.log(GFun_1.GFun.replace('webview不支持{0}', [type]));
return;
}
window[type].removeItem(key + this.gKey);
};
return GCache;
}());
exports.GCache = GCache;
__reflect(GCache.prototype, "\"e:/zqty/egret/libs/tc/util/GCache\".GCache");
//# sourceMappingURL=GCache.js.map
\ No newline at end of file
{"version":3,"file":"GCache.js","sourceRoot":"","sources":["../../../../libs/tc/util/GCache.ts"],"names":[],"mappings":";;;;;AAAA,+BAA8B;AAC9B,uCAAsC;AAEtC;IAAA;IAwDA,CAAC;IArDG;;;OAGG;IACW,WAAI,GAAlB,UAAmB,IAAc;QAC7B,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,IAAM,GAAG,GAAW,IAAI,CAAC,MAAM,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,EAAE,CAAC;QACf,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YACnB,IAAI,CAAC,IAAI,IAAI,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACW,iBAAU,GAAxB,UAAyB,GAAW,EAAE,KAAU,EAAE,IAAqB;QAArB,qBAAA,EAAA,qBAAqB;QACnE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,mBAAQ,CAAC,GAAG,CAAC,WAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACpD,MAAM,CAAC;QACX,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACjD,CAAC;IAED;;;;;OAKG;IACW,gBAAS,GAAvB,UAAwB,GAAW,EAAE,IAAqB;QAArB,qBAAA,EAAA,qBAAqB;QACtD,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,mBAAQ,CAAC,GAAG,CAAC,WAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACpD,MAAM,CAAC;QACX,CAAC;QACD,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACW,kBAAW,GAAzB,UAA0B,GAAW,EAAE,IAAqB;QAArB,qBAAA,EAAA,qBAAqB;QACxD,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,mBAAQ,CAAC,GAAG,CAAC,WAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACpD,MAAM,CAAC;QACX,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACL,aAAC;AAAD,CAAC,AAxDD,IAwDC;AAxDY,wBAAM;AAAN,UAAA,MAAM,2DAwDlB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GConsole = (function () {
function GConsole() {
}
/**
* 日志打印
* @param args
*/
GConsole.log = function () {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
if (!this.switch) {
return;
}
var i = 0;
var len = args.length;
for (i; i < len; i++) {
console.log(args[i]);
}
};
GConsole.switch = window['debug'] || true;
return GConsole;
}());
exports.GConsole = GConsole;
__reflect(GConsole.prototype, "\"e:/zqty/egret/libs/tc/util/GConsole\".GConsole");
//# sourceMappingURL=GConsole.js.map
\ No newline at end of file
{"version":3,"file":"GConsole.js","sourceRoot":"","sources":["../../../../libs/tc/util/GConsole.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAgBA,CAAC;IAdG;;;OAGG;IACW,YAAG,GAAjB;QAAkB,cAAO;aAAP,UAAO,EAAP,qBAAO,EAAP,IAAO;YAAP,yBAAO;;QACrB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACf,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,GAAG,CAAC,CAAC;QACV,IAAM,GAAG,GAAW,IAAI,CAAC,MAAM,CAAC;QAChC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACzB,CAAC;IACL,CAAC;IAdc,eAAM,GAAY,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC;IAe7D,eAAC;CAAA,AAhBD,IAgBC;AAhBY,4BAAQ;AAAR,UAAA,QAAQ,+DAgBpB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GDispatcher = (function () {
function GDispatcher() {
}
/**
*
* @param name 事件名
* @param callback 回调
* @param thisObj 作用域
*/
GDispatcher.addEvent = function (name, callback, thisObj) {
if (!this.callbackPool[name]) {
this.callbackPool[name] = [];
this.thisObjPool[name] = [];
}
var index = this.callbackPool[name].indexOf(callback);
if (index != -1) {
this.callbackPool[name][index] = callback;
this.thisObjPool[name][index] = thisObj;
}
else {
this.callbackPool[name].push(callback);
this.thisObjPool[name].push(thisObj);
}
};
/**
*
* @param name 事件名
* @param callback 回调
* @param thisObj 作用域
*/
GDispatcher.removeEvent = function (name, callback, thisObj) {
if (this.callbackPool[name]) {
var index = this.callbackPool[name].indexOf(callback);
if (index != -1) {
this.callbackPool[name].splice(index, 1);
this.thisObjPool[name].splice(index, 1);
}
}
};
/**
* 派发事件
* @param name 事件名
* @param args 任意参数
*/
GDispatcher.dispatchEvent = function (name) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
var callbacks = this.callbackPool[name];
var thisObjs = this.thisObjPool[name];
if (callbacks) {
var i = 0;
var len = callbacks.length;
for (i; i < len; i++) {
callbacks[i].apply(thisObjs[i], args);
}
}
};
/**
* 事件回调池
*/
GDispatcher.callbackPool = {};
/**
* 事件作用域池
*/
GDispatcher.thisObjPool = {};
return GDispatcher;
}());
exports.GDispatcher = GDispatcher;
__reflect(GDispatcher.prototype, "\"e:/zqty/egret/libs/tc/util/GDispatcher\".GDispatcher");
//# sourceMappingURL=GDispatcher.js.map
\ No newline at end of file
{"version":3,"file":"GDispatcher.js","sourceRoot":"","sources":["../../../../libs/tc/util/GDispatcher.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAiEA,CAAC;IAtDG;;;;;OAKG;IACW,oBAAQ,GAAtB,UAAuB,IAAY,EAAE,QAAQ,EAAE,OAAY;QACvD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC3B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YAC7B,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;QAChC,CAAC;QAED,IAAM,KAAK,GAAW,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAChE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;YACd,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAA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GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;gBACnB,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;YAC1C,CAAC;QACL,CAAC;IACL,CAAC;IA/DD;;OAEG;IACY,wBAAY,GAAQ,EAAE,CAAC;IAEtC;;OAEG;IACY,uBAAW,GAAQ,EAAE,CAAC;IAwDzC,kBAAC;CAAA,AAjED,IAiEC;AAjEY,kCAAW;AAAX,UAAA,WAAW,qEAiEvB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GFun = (function () {
function GFun() {
}
/**
* 加载 html Image
* @param url
* @param callback
*/
GFun.loadImage = function (url, callback) {
//取出跟url匹配的Image
var bitmapData = new Image();
bitmapData.onload = function (e) {
if (callback) {
callback(bitmapData);
}
};
bitmapData.src = url;
};
/**
* 替换字符串中元素
* @param str
* @param replaceList
*/
GFun.replace = function (str, replaceList) {
var len = replaceList.length;
for (var i = 0; i < len; i++) {
str = str.replace("{" + i + "}", replaceList[i].toString());
}
return str;
};
/**
* 是否在app内运行
* @param strs 匹配字符串
*/
GFun.checkInApp = function (strs) {
var ua = navigator.userAgent.toLocaleLowerCase();
var i;
var len = strs.length;
for (i = 0; i < len; i++) {
if (ua.indexOf(strs[i]) != -1) {
return true;
}
}
return false;
};
Object.defineProperty(GFun, "isIOS", {
/**
* 判断操作系统
* @returns {Array|{index: number, input: string}}
*/
get: function () {
return navigator.userAgent.match(/iphone|ipod|ipad/gi) != null;
},
enumerable: true,
configurable: true
});
/**
* 获取url参数
*/
GFun.getQueryString = function (name) {
var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
var r = window.location.search.substr(1).match(reg);
if (r != null) {
return unescape(r[2]);
}
return null;
};
return GFun;
}());
exports.GFun = GFun;
__reflect(GFun.prototype, "\"e:/zqty/egret/libs/tc/util/GFun\".GFun");
exports.check_webp_feature = function () {
var _support_webp_ = localStorage.getItem('_support_webp_');
if (_support_webp_ !== null) {
return _support_webp_ === '1';
}
var img = new Image();
img.onload = function () {
var result = (img.width > 0) && (img.height > 0);
localStorage.setItem('_support_webp_', result ? '1' : '0');
};
img.onerror = function () {
localStorage.setItem('_support_webp_', '0');
};
img.src = "data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";
return false;
};
// export const getImgURL = (url: string): any => {
// const isSupport = check_webp_feature();
// if (isSupport)
// return url + '?x-oss-process=image/format,webp';
// return url;
// }
//# sourceMappingURL=GFun.js.map
\ No newline at end of file
{"version":3,"file":"GFun.js","sourceRoot":"","sources":["../../../../libs/tc/util/GFun.ts"],"names":[],"mappings":";;;;;AAIA;IAAA;IAiEA,CAAC;IAhEG;;;;OAIG;IACW,cAAS,GAAvB,UAAwB,GAAW,EAAE,QAAkB;QACnD,gBAAgB;QAChB,IAAM,UAAU,GAAQ,IAAI,KAAK,EAAE,CAAC;QACpC,UAAU,CAAC,MAAM,GAAG,UAAC,CAAC;YAClB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;gBACX,QAAQ,CAAC,UAAU,CAAC,CAAC;YACzB,CAAC;QACL,CAAC,CAAC;QACF,UAAU,CAAC,GAAG,GAAG,GAAG,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACW,YAAO,GAArB,UAAsB,GAAW,EAAE,WAAmC;QAClE,IAAM,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC;QAC/B,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC;YAC3B,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,GAA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D,CAAC,AAjED,IAiEC;AAjEY,oBAAI;AAAJ,UAAA,IAAI,uDAiEhB,CAAA;AAEY,QAAA,kBAAkB,GAAG;IAC9B,IAAM,cAAc,GAAG,YAAY,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9D,EAAE,CAAC,CAAC,cAAc,KAAK,IAAI,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,cAAc,KAAK,GAAG,CAAC;IAClC,CAAC;IACD,IAAM,GAAG,GAAG,IAAI,KAAK,EAAE,CAAC;IACxB,GAAG,CAAC,MAAM,GAAG;QACT,IAAM,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACnD,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,CAAA;IAC9D,CAAC,CAAC;IACF,GAAG,CAAC,OAAO,GAAG;QACV,YAAY,CAAC,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,CAAA;IAC/C,CAAC,CAAC;IACF,GAAG,CAAC,GAAG,GAAG,iFAAiF,CAAC;IAC5F,MAAM,CAAC,KAAK,CAAC;AACjB,CAAC,CAAA;AAED,mDAAmD;AACnD,8CAA8C;AAC9C,qBAAqB;AACrB,2DAA2D;AAC3D,kBAAkB;AAClB,IAAI"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GLang = (function () {
function GLang() {
}
GLang.lang_001 = "pre资源加载完成";
GLang.lang_002 = "nomarl资源加载完成";
GLang.lang_003 = "delay资源加载完成";
return GLang;
}());
exports.GLang = GLang;
__reflect(GLang.prototype, "\"e:/zqty/egret/libs/tc/util/GLang\".GLang");
//# sourceMappingURL=GLang.js.map
\ No newline at end of file
{"version":3,"file":"GLang.js","sourceRoot":"","sources":["../../../../libs/tc/util/GLang.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAIA,CAAC;IAHiB,cAAQ,GAAG,WAAW,CAAC;IACvB,cAAQ,GAAG,cAAc,CAAC;IAC1B,cAAQ,GAAG,aAAa,CAAC;IAC3C,YAAC;CAAA,AAJD,IAIC;AAJY,sBAAK;AAAL,UAAA,KAAK,yDAIjB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var GMath = (function () {
function GMath() {
}
/**
* 向下取整
* @param n
* @returns {number}
*/
GMath.int = function (n) {
return n >> 0;
};
/**
* 给数组随机排序
* @param arr
*/
GMath.randomArr = function (arr) {
var len = arr.length;
for (var i = 0; i < len; i++) {
var n = this.random(0, arr.length, true);
var temp = arr[n];
arr[n] = arr[i];
arr[i] = temp;
}
return arr;
};
/**
* 范围随机数
* @param n1 范围起始
* @param n2 范围结束
* @param int 结果是否返回整数
* @return {*}
*/
GMath.random = function (n1, n2, int) {
var n;
var min;
var max;
if ((typeof n1) != 'undefined' && (typeof n2) != 'undefined') {
min = Math.min(n1, n2);
max = Math.max(n1, n2);
n = Math.random() * (max - min) + min;
}
else {
n = Math.random();
}
if (int) {
n = this.int(n);
}
return n;
};
return GMath;
}());
exports.GMath = GMath;
__reflect(GMath.prototype, "\"e:/zqty/egret/libs/tc/util/GMath\".GMath");
//# sourceMappingURL=GMath.js.map
\ No newline at end of file
{"version":3,"file":"GMath.js","sourceRoot":"","sources":["../../../../libs/tc/util/GMath.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAgDA,CAAC;IA/CG;;;;OAIG;IACW,SAAG,GAAjB,UAAkB,CAAM;QACpB,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;IAClB,CAAC;IAED;;;OAGG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,MAAM,CAAC,CAAC,CAAC;IACb,CAAC;IACL,YAAC;AAAD,CAAC,AAhDD,IAgDC;AAhDY,sBAAK;AAAL,UAAA,KAAK,yDAgDjB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 对象池
*/
var GPool = (function () {
function GPool() {
}
/**
* 根据类型设置缓存最大个数
* @param className
* @param count
*/
GPool.setMaxCountByType = function (className, count) {
this.maxCount[className] = count;
};
/**
* 取出
* @param className 资源名
* @param 类名
*/
GPool.takeOut = function (className, classObj, isCreate) {
if (!className || className == '') {
return;
}
var obj;
if (this.pool[className] && this.pool[className].length) {
obj = this.pool[className].shift();
}
else if (isCreate) {
if (!classObj) {
classObj = eval(className);
}
obj = new classObj();
}
return obj;
};
/**
* 回收
* @param className 资源Class
* @param obj 资源
*/
GPool.recover = function (className, obj) {
if (!obj || !className) {
return;
}
if (!this.pool[className]) {
this.pool[className] = [];
}
if (!this.maxCount[className]) {
this.maxCount[className] = 100;
}
if (this.pool[className].length > this.maxCount[className]) {
return;
}
this.pool[className].push(obj);
if (obj['dispose']) {
obj.dispose();
}
};
GPool.pool = {};
GPool.maxCount = {};
return GPool;
}());
exports.GPool = GPool;
__reflect(GPool.prototype, "\"e:/zqty/egret/libs/tc/util/GPool\".GPool");
//# sourceMappingURL=GPool.js.map
\ No newline at end of file
{"version":3,"file":"GPool.js","sourceRoot":"","sources":["../../../../libs/tc/util/GPool.ts"],"names":[],"mappings":";;;;;AAAA;;GAEG;AACH;IAAA;IA4DA,CAAC;IAxDG;;;;OAIG;IACW,uBAAiB,GAA/B,UAAgC,SAAc,EAAE,KAAK;QACjD,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC;IACrC,CAAC;IAED;;;;OAIG;IACW,aAAO,GAArB,UAAsB,S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CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACzD,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/B,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACjB,GAAG,CAAC,OAAO,EAAE,CAAC;QAClB,CAAC;IACL,CAAC;IA1Dc,UAAI,GAAQ,EAAE,CAAC;IACf,cAAQ,GAAG,EAAE,CAAC;IA0DjC,YAAC;CAAA,AA5DD,IA4DC;AA5DY,sBAAK;AAAL,UAAA,KAAK,yDA4DjB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var TimeFormat_1 = require("../enum/TimeFormat");
var GTime = (function () {
function GTime() {
}
/**
* 获取当前时间戳
* @returns {number}
*/
GTime.getTimestamp = function () {
return new Date().getTime();
};
/**
* 传入秒数返回带格式的时间
* @param time 单位秒
* @param type 枚举类型CountDownType
* @param dibit 是否双位
*/
GTime.formatTime = function (time, type, dibit, suffixs) {
if (type === void 0) { type = TimeFormat_1.TimeFormat.HMS; }
if (dibit === void 0) { dibit = false; }
if (suffixs === void 0) { suffixs = ['d', 'h', 'm', 's']; }
var countdown = this.getCountDown(time, type, dibit);
countdown = countdown.map(function (val, index) { return "" + (val < 10 ? '0' + val : val) + suffixs[index]; });
return countdown.join('');
};
/**
* 倒计时
* @param time 单位秒
* @param type 枚举类型CountDownType
* @param dibit 是否双位
*/
GTime.getCountDown = function (time, type, dibit) {
if (type === void 0) { type = TimeFormat_1.TimeFormat.HMS; }
if (dibit === void 0) { dibit = false; }
var result = [];
if (type.indexOf('s') !== -1) {
result.push(time % 60);
}
if (type.indexOf('m') !== -1) {
result.unshift(Math.floor((time % 3600) / 60));
}
if (type.indexOf('h') >= 0) {
if (type == TimeFormat_1.TimeFormat.HMS) {
result.unshift(Math.floor(time / 3600));
}
else {
result.unshift(Math.floor((time % 86400) / 3600));
}
}
if (type.indexOf('d') >= 0) {
result.unshift(Math.floor(time / 86400));
}
if (dibit)
result = result.map(function (ele) {
return ele < 10 ? "0" + ele : ele;
});
return result;
};
return GTime;
}());
exports.GTime = GTime;
__reflect(GTime.prototype, "\"e:/zqty/egret/libs/tc/util/GTime\".GTime");
//# sourceMappingURL=GTime.js.map
\ No newline at end of file
{"version":3,"file":"GTime.js","sourceRoot":"","sources":["../../../../libs/tc/util/GTime.ts"],"names":[],"mappings":";;;;;AAAA,iDAAgD;AAChD;IAAA;IAwDA,CAAC;IAvDG;;;OAGG;IACW,kBAAY,GAA1B;QACI,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACW,gBAAU,GAAxB,UAAyB,IAAY,EAAE,IAA6B,EAAE,KAAa,EAAE,OAA8B;QAA5E,qBAAA,EAAA,OAAe,uBAAU,CAAC,GAAG;QAAE,sBAAA,EAAA,aAAa;QAAE,wBAAA,EAAA,WAAW,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;QAC/G,IAAI,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;QACrD,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,UAAC,GAAG,EAAE,KAAK,IAAK,OAAA,MAAG,GAAG,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAG,OAAO,CAAC,KAAK,CAAG,EAAhD,CAAgD,CAAC,CAAC;QAC5F,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC9B,CAAC;IAED;;;;;OAKG;IACW,kBAAY,GAA1B,UAA2B,IAAY,EAAE,IAA6B,EAAE,KAAa;QAA5C,qBA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E,GAAG,MAAI,GAAK,GAAG,GAAG,CAAC;YACtC,CAAC,CAAC,CAAA;QACN,MAAM,CAAC,MAAM,CAAC;IAClB,CAAC;IACL,YAAC;AAAD,CAAC,AAxDD,IAwDC;AAxDY,sBAAK;AAAL,UAAA,KAAK,yDAwDjB,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isIPhoneX() {
var u = navigator.userAgent;
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
return isIOS && screen.height == 812 && screen.width == 375;
}
exports.default = isIPhoneX;
//# sourceMappingURL=isIPhoneX.js.map
\ No newline at end of file
{"version":3,"file":"isIPhoneX.js","sourceRoot":"","sources":["../../../../libs/tc/utils/isIPhoneX.ts"],"names":[],"mappings":";;AAAA;IACI,IAAI,CAAC,GAAG,SAAS,CAAC,SAAS,CAAC;IAC5B,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC,CAAC,CAAC,OAAO;IAC/D,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,IAAI,GAAG,IAAI,MAAM,CAAC,KAAK,IAAI,GAAG,CAAA;AAC/D,CAAC;AAJD,4BAIC"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var AssetAdapter = (function () {
function AssetAdapter() {
}
/**
* @language zh_CN
* 解析素材
* @param source 待解析的新素材标识符
* @param compFunc 解析完成回调函数,示例:callBack(content:any,source:string):void;
* @param thisObject callBack的 this 引用
*/
AssetAdapter.prototype.getAsset = function (source, compFunc, thisObject) {
function onGetRes(data) {
compFunc.call(thisObject, data, source);
}
if (RES.hasRes(source)) {
var data = RES.getRes(source);
if (data) {
onGetRes(data);
}
else {
RES.getResAsync(source, onGetRes, this);
}
}
else {
RES.getResByUrl(source, onGetRes, this, RES.ResourceItem.TYPE_IMAGE);
}
};
return AssetAdapter;
}());
exports.default = AssetAdapter;
__reflect(AssetAdapter.prototype, "\"e:/zqty/egret/libs/tl/adapter/AssetAdapter\".AssetAdapter", ["eui.IAssetAdapter"]);
//# sourceMappingURL=AssetAdapter.js.map
\ No newline at end of file
{"version":3,"file":"AssetAdapter.js","sourceRoot":"","sources":["../../../../libs/tl/adapter/AssetAdapter.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAyBA,CAAC;IAxBG;;;;;;OAMG;IACI,+BAAQ,GAAf,UAAgB,MAAc,EAAE,QAAiB,EAAE,UAAe;QAC9D,kBAAkB,IAAS;YACvB,QAAQ,CAAC,IAAI,CAAC,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;QAC5C,CAAC;QACD,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YAC9B,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;gBACP,QAAQ,CAAC,IAAI,CAAC,CAAC;YACnB,CAAC;YACD,IAAI,CAAC,CAAC;gBACF,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC5C,CAAC;QACL,CAAC;QACD,IAAI,CAAC,CAAC;YACF,GAAG,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACzE,CAAC;IACL,CAAC;IACL,mBAAC;AAAD,CAAC,AAzBD,IAyBC;;AAzBoB,UAAA,YAAY,iGAyBhC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../Data");
var GetRecordData = (function (_super) {
__extends(GetRecordData, _super);
function GetRecordData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetRecordData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.invalidPage = data.invalidPage;
this.nextPage = data.nextPage;
this.records = data.records;
};
return GetRecordData;
}(Data_1.Data));
exports.GetRecordData = GetRecordData;
__reflect(GetRecordData.prototype, "\"e:/zqty/egret/libs/tw/data/common/GetRecordData\".GetRecordData");
//# sourceMappingURL=GetRecordData.js.map
\ No newline at end of file
{"version":3,"file":"GetRecordData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/common/GetRecordData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAiC;AAEjC;IAAmC,iCAAI;IAAvC;;IAcA,CAAC;IATU,8BAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAA,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACP,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IACL,oBAAC;AAAD,CAAC,AAdD,CAAmC,WAAI,GActC;AAdY,sCAAa;AAAb,UAAA,aAAa,gFAczB,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IExposureData.js.map
\ No newline at end of file
{"version":3,"file":"IExposureData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/common/IExposureData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IShareData.js.map
\ No newline at end of file
{"version":3,"file":"IShareData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/common/IShareData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/7
* 添加游戏次数
*/
var Data_1 = require("../../Data");
var AddTimesForActivityData = (function (_super) {
__extends(AddTimesForActivityData, _super);
function AddTimesForActivityData() {
return _super !== null && _super.apply(this, arguments) || this;
}
AddTimesForActivityData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.addedTimes = data.addedTimes;
this.shareCount = data.shareCount;
};
return AddTimesForActivityData;
}(Data_1.Data));
exports.AddTimesForActivityData = AddTimesForActivityData;
__reflect(AddTimesForActivityData.prototype, "\"e:/zqty/egret/libs/tw/data/common/addTimesForActivity/AddTimesForActivityData\".AddTimesForActivityData");
//# sourceMappingURL=AddTimesForActivityData.js.map
\ No newline at end of file
{"version":3,"file":"AddTimesForActivityData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/addTimesForActivity/AddTimesForActivityData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAA6C,2CAAI;IAAjD;;IAmBA,CAAC;IARU,wCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;IACtC,CAAC;IACL,8BAAC;AAAD,CAAC,AAnBD,CAA6C,WAAI,GAmBhD;AAnBY,0DAAuB;AAAvB,UAAA,uBAAuB,wHAmBnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 用户剩余积分数据
*/
var Data_1 = require("../../Data");
var GetCreditsData = (function (_super) {
__extends(GetCreditsData, _super);
function GetCreditsData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetCreditsData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.unitName = result.data.unitName;
this.credits = result.data.credits;
this.consumerCredits = result.data.consumerCredits;
};
return GetCreditsData;
}(Data_1.Data));
exports.GetCreditsData = GetCreditsData;
__reflect(GetCreditsData.prototype, "\"e:/zqty/egret/libs/tw/data/common/getCredits/GetCreditsData\".GetCreditsData");
//# sourceMappingURL=GetCreditsData.js.map
\ No newline at end of file
{"version":3,"file":"GetCreditsData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/getCredits/GetCreditsData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAoC,kCAAI;IAAxC;;IAyBA,CAAC;IATU,+BAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACrC,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;QACnC,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC;IACvD,CAAC;IACL,qBAAC;AAAD,CAAC,AAzBD,CAAoC,WAAI,GAyBvC;AAzBY,wCAAc;AAAd,UAAA,cAAc,6FAyB1B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 获取用户角色信息
*/
var Data_1 = require("../../Data");
var GetRoleData = (function (_super) {
__extends(GetRoleData, _super);
function GetRoleData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetRoleData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.role = data.data.role;
};
return GetRoleData;
}(Data_1.Data));
exports.GetRoleData = GetRoleData;
__reflect(GetRoleData.prototype, "\"e:/zqty/egret/libs/tw/data/common/getRole/GetRoleData\".GetRoleData");
//# sourceMappingURL=GetRoleData.js.map
\ No newline at end of file
{"version":3,"file":"GetRoleData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/getRole/GetRoleData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAiC,+BAAI;IAArC;;IAaA,CAAC;IAPU,4BAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC;IAC/B,CAAC;IACL,kBAAC;AAAD,CAAC,AAbD,CAAiC,WAAI,GAapC;AAbY,kCAAW;AAAX,UAAA,WAAW,oFAavB,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IWinnerData.js.map
\ No newline at end of file
{"version":3,"file":"IWinnerData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/common/winners/IWinnerData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 自定义活动配置信息
*/
var Data_1 = require("../../Data");
var AjaxElementData = (function (_super) {
__extends(AjaxElementData, _super);
function AjaxElementData() {
return _super !== null && _super.apply(this, arguments) || this;
}
AjaxElementData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.throughCurrent = result.throughCurrent;
this.throughMode = result.throughMode;
this.throughNum = result.throughNum;
this.throughCurrentStep = result.throughCurrentStep;
this.jsTest = result.jsTest;
this.cssTest = result.cssTest;
this.rule = result.rule;
this.type = result.type;
this.options = result.options;
this.element = result.element;
};
return AjaxElementData;
}(Data_1.Data));
exports.AjaxElementData = AjaxElementData;
__reflect(AjaxElementData.prototype, "\"e:/zqty/egret/libs/tw/data/custom/ajaxElement/AjaxElementData\".AjaxElementData");
//# sourceMappingURL=AjaxElementData.js.map
\ No newline at end of file
{"version":3,"file":"AjaxElementData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/ajaxElement/AjaxElementData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAIlC;IAAqC,mCAAI;IAAzC;;IAmEA,CAAC;IAhBU,gCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;QAC5C,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;QACpC,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;QAC9B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;IAClC,CAAC;IACL,sBAAC;AAAD,CAAC,AAnED,CAAqC,WAAI,GAmExC;AAnEY,0CAAe;AAAf,UAAA,eAAe,gGAmE3B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ICustomOptionData.js.map
\ No newline at end of file
{"version":3,"file":"ICustomOptionData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/ajaxElement/ICustomOptionData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/12
* 活动工具页面展示数据
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IElementData.js.map
\ No newline at end of file
{"version":3,"file":"IElementData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/ajaxElement/IElementData.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 闯关游戏配置数据
*/
var Data_1 = require("../../Data");
var AjaxThroughInfoData = (function (_super) {
__extends(AjaxThroughInfoData, _super);
function AjaxThroughInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
AjaxThroughInfoData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.throughCurrent = data.throughCurrent;
this.throughMode = data.throughMode;
this.throughNum = data.throughNum;
this.throughCurrentStep = data.throughCurrentStep;
this.throughInfoList = data.throughInfo;
};
return AjaxThroughInfoData;
}(Data_1.Data));
exports.AjaxThroughInfoData = AjaxThroughInfoData;
__reflect(AjaxThroughInfoData.prototype, "\"e:/zqty/egret/libs/tw/data/custom/ajaxThroughInfo/AjaxThroughInfoData\".AjaxThroughInfoData");
//# sourceMappingURL=AjaxThroughInfoData.js.map
\ No newline at end of file
{"version":3,"file":"AjaxThroughInfoData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/ajaxThroughInfo/AjaxThroughInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAGlC;IAAyC,uCAAI;IAA7C;;IAqCA,CAAC;IAXU,oCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;QAClD,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5C,CAAC;IACL,0BAAC;AAAD,CAAC,AArCD,CAAyC,WAAI,GAqC5C;AArCY,kDAAmB;AAAnB,UAAA,mBAAmB,4GAqC/B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IThroughInfoData.js.map
\ No newline at end of file
{"version":3,"file":"IThroughInfoData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/ajaxThroughInfo/IThroughInfoData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 前置开奖提交数据
*/
var Data_1 = require("../../Data");
var BeforSubmitData = (function (_super) {
__extends(BeforSubmitData, _super);
function BeforSubmitData() {
return _super !== null && _super.apply(this, arguments) || this;
}
BeforSubmitData.prototype.update = function (data) {
if (!data) {
return;
}
this.result = data.result;
this.type = data.type;
this.facePrice = data.facePrice;
this.orderId = data.orderId;
this.title = data.title;
};
return BeforSubmitData;
}(Data_1.Data));
exports.BeforSubmitData = BeforSubmitData;
__reflect(BeforSubmitData.prototype, "\"e:/zqty/egret/libs/tw/data/custom/beforSubmit/BeforSubmitData\".BeforSubmitData");
//# sourceMappingURL=BeforSubmitData.js.map
\ No newline at end of file
{"version":3,"file":"BeforSubmitData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/beforSubmit/BeforSubmitData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAqC,mCAAI;IAAzC;;IAoCA,CAAC;IAVU,gCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC5B,CAAC;IACL,sBAAC;AAAD,CAAC,AApCD,CAAqC,WAAI,GAoCxC;AApCY,0CAAe;AAAf,UAAA,eAAe,gGAoC3B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=ICustomCfgData.js.map
\ No newline at end of file
{"version":3,"file":"ICustomCfgData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/cfg/ICustomCfgData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/12
* 活动工具抽奖数据
*/
var Data_1 = require("../../Data");
var DoJoinData = (function (_super) {
__extends(DoJoinData, _super);
function DoJoinData() {
return _super !== null && _super.apply(this, arguments) || this;
}
DoJoinData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.needCredits = data.needCredits;
this.orderId = data.orderId;
};
return DoJoinData;
}(Data_1.Data));
exports.DoJoinData = DoJoinData;
__reflect(DoJoinData.prototype, "\"e:/zqty/egret/libs/tw/data/custom/doJoin/DoJoinData\".DoJoinData");
//# sourceMappingURL=DoJoinData.js.map
\ No newline at end of file
{"version":3,"file":"DoJoinData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/doJoin/DoJoinData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAgC,8BAAI;IAApC;;IAmBA,CAAC;IARU,2BAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;IAChC,CAAC;IACL,iBAAC;AAAD,CAAC,AAnBD,CAAgC,WAAI,GAmBnC;AAnBY,gCAAU;AAAV,UAAA,UAAU,iFAmBtB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GPool_1 = require("../../../../tc/util/GPool");
var LotteryData_1 = require("../../common/lottery/LotteryData");
var Data_1 = require("../../Data");
/**
*Created by cuiliqiang on 2018/3/12
* 订单状态
*/
var GetCustomOrderStatusData = (function (_super) {
__extends(GetCustomOrderStatusData, _super);
function GetCustomOrderStatusData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetCustomOrderStatusData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.result = data.result;
if (data.exposure) {
this.exposure = data.exposure;
}
else if (this.exposure) {
this.exposure = null;
}
if (data.lottery && data.lottery.type != 'thanks') {
this.lottery = GPool_1.GPool.takeOut('LotteryData', LotteryData_1.LotteryData);
if (!this.lottery) {
this.lottery = new LotteryData_1.LotteryData();
}
this.lottery.update(data.lottery);
}
else {
GPool_1.GPool.recover('LotteryData', this.lottery);
this.lottery = null;
}
};
return GetCustomOrderStatusData;
}(Data_1.Data));
exports.GetCustomOrderStatusData = GetCustomOrderStatusData;
__reflect(GetCustomOrderStatusData.prototype, "\"e:/zqty/egret/libs/tw/data/custom/doJoin/GetCustomOrderStatusData\".GetCustomOrderStatusData");
//# sourceMappingURL=GetCustomOrderStatusData.js.map
\ No newline at end of file
{"version":3,"file":"GetCustomOrderStatusData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/doJoin/GetCustomOrderStatusData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAkD;AAClD,gEAA+D;AAC/D,mCAAkC;AAElC;;;GAGG;AAEH;IAA8C,4CAAI;IAAlD;;IAwCA,CAAC;IAxBU,yCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAE1B,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;QAClC,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACzB,CAAC;QAED,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC;YAChD,IAAI,CAAC,OAAO,GAAG,aAAK,CAAC,OAAO,CAAC,aAAa,EAAE,yBAAW,CAAC,CAAC;YACzD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBAChB,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAW,EAAE,CAAC;YACrC,CAAC;YACD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtC,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,aAAK,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACxB,CAAC;IACL,CAAC;IACL,+BAAC;AAAD,CAAC,AAxCD,CAA8C,WAAI,GAwCjD;AAxCY,4DAAwB;AAAxB,UAAA,wBAAwB,6GAwCpC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
*Created by cuiliqiang on 2018/3/13
* 中奖前置数据
*/
var Data_1 = require("../../Data");
var GetOrderInfoData = (function (_super) {
__extends(GetOrderInfoData, _super);
function GetOrderInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetOrderInfoData.prototype.update = function (data) {
if (!data) {
return;
}
this.result = data.result;
this.type = data.type;
this.facePrice = data.facePrice;
this.cacheInfo = data.cacheInfo;
this.orderId = data.orderId;
this.title = data.title;
};
return GetOrderInfoData;
}(Data_1.Data));
exports.GetOrderInfoData = GetOrderInfoData;
__reflect(GetOrderInfoData.prototype, "\"e:/zqty/egret/libs/tw/data/custom/getOrderInfo/GetOrderInfoData\".GetOrderInfoData");
//# sourceMappingURL=GetOrderInfoData.js.map
\ No newline at end of file
{"version":3,"file":"GetOrderInfoData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/custom/getOrderInfo/GetOrderInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;GAGG;AACH,mCAAkC;AAElC;IAAsC,oCAAI;IAA1C;;IA0CA,CAAC;IAXU,iCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IAC5B,CAAC;IACL,uBAAC;AAAD,CAAC,AA1CD,CAAsC,WAAI,GA0CzC;AA1CY,4CAAgB;AAAhB,UAAA,gBAAgB,mGA0C5B,CAAA"}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/1
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IAppData.js.map
\ No newline at end of file
{"version":3,"file":"IAppData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/cfg/IAppData.ts"],"names":[],"mappings":";AAAA;;GAEG"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IDefenseStrategyData.js.map
\ No newline at end of file
{"version":3,"file":"IDefenseStrategyData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/cfg/IDefenseStrategyData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IExtraCfgData.js.map
\ No newline at end of file
{"version":3,"file":"IExtraCfgData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/cfg/IExtraCfgData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IGameCfgData.js.map
\ No newline at end of file
{"version":3,"file":"IGameCfgData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/cfg/IGameCfgData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IGameData.js.map
\ No newline at end of file
{"version":3,"file":"IGameData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/cfg/IGameData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/1
* 推荐位
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IRecommendData.js.map
\ No newline at end of file
{"version":3,"file":"IRecommendData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/cfg/IRecommendData.ts"],"names":[],"mappings":";AACA;;;GAGG"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IDynamicData.js.map
\ No newline at end of file
{"version":3,"file":"IDynamicData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/datapash/IDynamicData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var LotteryData_1 = require("./../../common/lottery/LotteryData");
var Data_1 = require("./../../Data");
var GPool_1 = require("../../../../tc/util/GPool");
/**
* 获取游戏抽奖结果
*/
var GameGetSubmitResultData = (function (_super) {
__extends(GameGetSubmitResultData, _super);
function GameGetSubmitResultData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GameGetSubmitResultData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.flag = result.data.flag;
if (result.data.option) {
this.lottery = GPool_1.GPool.takeOut('LotteryData', LotteryData_1.LotteryData);
if (!this.lottery) {
this.lottery = new LotteryData_1.LotteryData();
}
if (!result.data.option.lottery) {
result.data.option.lottery = {};
}
result.data.option.lottery.type = result.data.option.type;
result.data.option.lottery.stinfodpmgouse = result.data.useDpm;
result.data.option.lottery.stinfodpmimg = result.data.useDpm;
result.data.option.lottery.imgurl = result.data.option.image;
result.data.option.lottery.link = result.data.option.link;
result.data.option.lottery.name = result.data.option.name;
result.data.option.lottery.type = result.data.option.type;
this.lottery.update(result.data.option.lottery);
}
else if (this.lottery) {
GPool_1.GPool.recover('LotteryData', this.lottery);
this.lottery = null;
}
if (this.lottery) {
this.exposure = result.data.option.lottery.exposure;
}
else if (this.exposure) {
this.exposure = null;
}
this.againExposure = JSON.parse(result.data.againDpm);
this.score = result.data.score;
};
return GameGetSubmitResultData;
}(Data_1.Data));
exports.GameGetSubmitResultData = GameGetSubmitResultData;
__reflect(GameGetSubmitResultData.prototype, "\"e:/zqty/egret/libs/tw/data/game/submit/GameGetSubmitResultData\".GameGetSubmitResultData");
//# sourceMappingURL=GameGetSubmitResultData.js.map
\ No newline at end of file
{"version":3,"file":"GameGetSubmitResultData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/game/submit/GameGetSubmitResultData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,kEAAiE;AACjE,qCAAoC;AACpC,mDAAkD;AAClD;;GAEG;AAEH;IAA6C,2CAAI;IAAjD;;IA6DA,CAAC;IAnCU,wCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACT,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7B,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,aAAK,CAAC,OAAO,CAAC,aAAa,EAAE,yBAAW,CAAC,CAAC;YACzD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBAChB,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAW,EAAE,CAAC;YACrC,CAAC;YACD,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC9B,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,GAAG,EAAE,CAAC;YACpC,CAAC;YACD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YAC1D,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,cAAc,GAAG,MAAM,CAAC,IAAI,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AAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACtD,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC;IACnC,CAAC;IACL,8BAAC;AAAD,CAAC,AA7DD,CAA6C,WAAI,GA6DhD;AA7DY,0DAAuB;AAAvB,UAAA,uBAAuB,yGA6DnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../Data");
/**
* 收取礼物
*/
var CollectData = (function (_super) {
__extends(CollectData, _super);
function CollectData() {
return _super !== null && _super.apply(this, arguments) || this;
}
CollectData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
};
return CollectData;
}(Data_1.Data));
exports.CollectData = CollectData;
__reflect(CollectData.prototype, "\"e:/zqty/egret/libs/tw/data/pet/CollectData\".CollectData");
//# sourceMappingURL=CollectData.js.map
\ No newline at end of file
{"version":3,"file":"CollectData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/CollectData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAA+B;AAE/B;;GAEG;AACH;IAAiC,+BAAI;IAArC;;IAOA,CAAC;IANU,4BAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACT,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;IACzB,CAAC;IACL,kBAAC;AAAD,CAAC,AAPD,CAAiC,WAAI,GAOpC;AAPY,kCAAW;AAAX,UAAA,WAAW,yEAOvB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../Data");
var GetFoodPilesData = (function (_super) {
__extends(GetFoodPilesData, _super);
function GetFoodPilesData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetFoodPilesData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.list = result.data;
};
return GetFoodPilesData;
}(Data_1.Data));
exports.GetFoodPilesData = GetFoodPilesData;
__reflect(GetFoodPilesData.prototype, "\"e:/zqty/egret/libs/tw/data/pet/GetFoodPilesData\".GetFoodPilesData");
//# sourceMappingURL=GetFoodPilesData.js.map
\ No newline at end of file
{"version":3,"file":"GetFoodPilesData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/GetFoodPilesData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAiC;AACjC;IAAsC,oCAAI;IAA1C;;IASA,CAAC;IAPU,iCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC5B,CAAC;IACL,uBAAC;AAAD,CAAC,AATD,CAAsC,WAAI,GASzC;AATY,4CAAgB;AAAhB,UAAA,gBAAgB,mFAS5B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GetRankItemData.js.map
\ No newline at end of file
{"version":3,"file":"GetRankItemData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/GetRankItemData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../Data");
var GetRankListData = (function (_super) {
__extends(GetRankListData, _super);
function GetRankListData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetRankListData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
if (!result.data) {
return;
}
this.list = result.data.rankList;
if (result.data.user) {
this.myUserData = result.data.user;
}
};
return GetRankListData;
}(Data_1.Data));
exports.GetRankListData = GetRankListData;
__reflect(GetRankListData.prototype, "\"e:/zqty/egret/libs/tw/data/pet/GetRankListData\".GetRankListData");
//# sourceMappingURL=GetRankListData.js.map
\ No newline at end of file
{"version":3,"file":"GetRankListData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/GetRankListData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAiC;AAEjC;IAAqC,mCAAI;IAAzC;;IAsBA,CAAC;IAbU,gCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,EAAE,CAAA,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA,CAAC;YACb,MAAM,CAAC;QACX,CAAC;QACD,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC;QACjC,EAAE,CAAA,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAC;YACjB,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACvC,CAAC;IACL,CAAC;IACL,sBAAC;AAAD,CAAC,AAtBD,CAAqC,WAAI,GAsBxC;AAtBY,0CAAe;AAAf,UAAA,eAAe,iFAsB3B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../Data");
/**
* 道具展示接口
*/
var GetToysData = (function (_super) {
__extends(GetToysData, _super);
function GetToysData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetToysData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.list = result.data;
};
return GetToysData;
}(Data_1.Data));
exports.GetToysData = GetToysData;
__reflect(GetToysData.prototype, "\"e:/zqty/egret/libs/tw/data/pet/GetToysData\".GetToysData");
//# sourceMappingURL=GetToysData.js.map
\ No newline at end of file
{"version":3,"file":"GetToysData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/GetToysData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAA+B;AAG/B;;GAEG;AACH;IAAiC,+BAAI;IAArC;;IAaA,CAAC;IAPU,4BAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;IAC5B,CAAC;IACL,kBAAC;AAAD,CAAC,AAbD,CAAiC,WAAI,GAapC;AAbY,kCAAW;AAAX,UAAA,WAAW,yEAavB,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPetToyData.js.map
\ No newline at end of file
{"version":3,"file":"IPetToyData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/IPetToyData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IToyItemData.js.map
\ No newline at end of file
{"version":3,"file":"IToyItemData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pet/IToyItemData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GetActToysItemData.js.map
\ No newline at end of file
{"version":3,"file":"GetActToysItemData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/GetActToysItemData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("./../Data");
var GetActToysListData = (function (_super) {
__extends(GetActToysListData, _super);
function GetActToysListData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetActToysListData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.toyList = result.data;
};
return GetActToysListData;
}(Data_1.Data));
exports.GetActToysListData = GetActToysListData;
__reflect(GetActToysListData.prototype, "\"e:/zqty/egret/libs/tw/data/pets/GetActToysListData\".GetActToysListData");
//# sourceMappingURL=GetActToysListData.js.map
\ No newline at end of file
{"version":3,"file":"GetActToysListData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/GetActToysListData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAiC;AAEjC;IAAwC,sCAAI;IAA5C;;IAYA,CAAC;IAPU,mCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC;IAC/B,CAAC;IACL,yBAAC;AAAD,CAAC,AAZD,CAAwC,WAAI,GAY3C;AAZY,gDAAkB;AAAlB,UAAA,kBAAkB,wFAY9B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../Data");
var GetHomeInfoData = (function (_super) {
__extends(GetHomeInfoData, _super);
function GetHomeInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetHomeInfoData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
var data;
if (result.data) {
data = result.data;
}
if (data) {
this.accountBalanceLimit = data.accountBalanceLimit;
this.amountPerPiles = data.amountPerPiles;
this.hasNewInfo = data.hasNewInfo;
this.hasGift = data.hasGift;
this.nextPeriodBegin = data.nextPeriodBegin;
this.usingPetToys = data.usingPetToys;
this.wanderPet = data.wanderPet;
this.accountBalance = data.accountBalance;
this.foodPiles = data.foodPiles;
this.newUser = data.newUser;
}
};
return GetHomeInfoData;
}(Data_1.Data));
exports.GetHomeInfoData = GetHomeInfoData;
__reflect(GetHomeInfoData.prototype, "\"e:/zqty/egret/libs/tw/data/pets/GetHomeInfoData\".GetHomeInfoData");
//# sourceMappingURL=GetHomeInfoData.js.map
\ No newline at end of file
{"version":3,"file":"GetHomeInfoData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/GetHomeInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAA+B;AAI/B;IAAqC,mCAAI;IAAzC;;IA2EA,CAAC;IAvBU,gCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QAErB,IAAI,IAAI,CAAC;QACT,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;YACd,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACvB,CAAC;QACD,EAAE,CAAA,CAAC,IAAI,CAAC,CAAA,CAAC;YACL,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,mBAAmB,CAAC;YACpD,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC1C,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YAClC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC5B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;YAC5C,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;YACtC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;YAC1C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAChC,CAAC;IACL,CAAC;IACL,sBAAC;AAAD,CAAC,AA3ED,CAAqC,WAAI,GA2ExC;AA3EY,0CAAe;AAAf,UAAA,eAAe,kFA2E3B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=GetUserToysItemData.js.map
\ No newline at end of file
{"version":3,"file":"GetUserToysItemData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/GetUserToysItemData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../Data");
/**
* 道具使用
*/
var GetUserToysListData = (function (_super) {
__extends(GetUserToysListData, _super);
function GetUserToysListData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetUserToysListData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.myToyList = result.data;
};
return GetUserToysListData;
}(Data_1.Data));
exports.GetUserToysListData = GetUserToysListData;
__reflect(GetUserToysListData.prototype, "\"e:/zqty/egret/libs/tw/data/pets/GetUserToysListData\".GetUserToysListData");
//# sourceMappingURL=GetUserToysListData.js.map
\ No newline at end of file
{"version":3,"file":"GetUserToysListData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/GetUserToysListData.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gCAA+B;AAG/B;;GAEG;AACH;IAAyC,uCAAI;IAA7C;;IAYA,CAAC;IAPU,oCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;IACjC,CAAC;IACL,0BAAC;AAAD,CAAC,AAZD,CAAyC,WAAI,GAY5C;AAZY,kDAAmB;AAAnB,UAAA,mBAAmB,0FAY/B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPlayToyDetailData.js.map
\ No newline at end of file
{"version":3,"file":"IPlayToyDetailData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/IPlayToyDetailData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IUsingPetToysData.js.map
\ No newline at end of file
{"version":3,"file":"IUsingPetToysData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/IUsingPetToysData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IVisitPetData.js.map
\ No newline at end of file
{"version":3,"file":"IVisitPetData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/IVisitPetData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IWanderPetData.js.map
\ No newline at end of file
{"version":3,"file":"IWanderPetData.js","sourceRoot":"","sources":["../../../../../libs/tw/data/pets/IWanderPetData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
// import { GPool } from '../../../../tc/util/GPool';
var LotteryData_1 = require("../../common/lottery/LotteryData");
var Data_1 = require("../../Data");
var GPool_1 = require("../../../../tc/util/GPool");
/**
*Created by cuiliqiang on 2018/3/8
* 查询插件订单结果
*/
var GetPlugOrderStatusData = (function (_super) {
__extends(GetPlugOrderStatusData, _super);
function GetPlugOrderStatusData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetPlugOrderStatusData.prototype.update = function (result) {
if (!result) {
return;
}
_super.prototype.update.call(this, result);
this.result = result.result;
if (result.exposure) {
this.exposure = result.exposure;
}
else if (this.exposure) {
this.exposure = null;
}
if (result.lottery && result.lottery.type != 'thanks') {
this.lottery = GPool_1.GPool.takeOut('LotteryData', LotteryData_1.LotteryData);
if (!this.lottery) {
this.lottery = new LotteryData_1.LotteryData();
}
this.lottery.update(result.lottery);
}
else {
GPool_1.GPool.recover('LotteryData', this.lottery);
this.lottery = null;
}
};
return GetPlugOrderStatusData;
}(Data_1.Data));
exports.GetPlugOrderStatusData = GetPlugOrderStatusData;
__reflect(GetPlugOrderStatusData.prototype, "\"e:/zqty/egret/libs/tw/data/plug/doJoinPlugDraw/GetPlugOrderStatusData\".GetPlugOrderStatusData");
//# sourceMappingURL=GetPlugOrderStatusData.js.map
\ No newline at end of file
{"version":3,"file":"GetPlugOrderStatusData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/plug/doJoinPlugDraw/GetPlugOrderStatusData.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,qDAAqD;AACrD,gEAA+D;AAC/D,mCAAkC;AAClC,mDAAkD;AAClD;;;GAGG;AAEH;IAA4C,0CAAI;IAAhD;;IAsCA,CAAC;IAtBU,uCAAM,GAAb,UAAc,MAAW;QACrB,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;YACV,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,MAAM,CAAC,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QAC5B,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;YAClB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QACpC,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YACvB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACzB,CAAC;QACD,EAAE,CAAC,CAAC,MAAM,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC;YACpD,IAAI,CAAC,OAAO,GAAG,aAAK,CAAC,OAAO,CAAC,aAAa,EAAE,yBAAW,CAAC,CAAC;YACzD,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;gBAChB,IAAI,CAAC,OAAO,GAAG,IAAI,yBAAW,EAAE,CAAC;YACrC,CAAC;YACD,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,aAAK,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACxB,CAAC;IACL,CAAC;IACL,6BAAC;AAAD,CAAC,AAtCD,CAA4C,WAAI,GAsC/C;AAtCY,wDAAsB;AAAtB,UAAA,sBAAsB,+GAsClC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Data_1 = require("../../Data");
/**
*Created by cuiliqiang on 2018/3/30
* 查询插件剩余抽奖次数
*/
var GetPrizeInfoData = (function (_super) {
__extends(GetPrizeInfoData, _super);
function GetPrizeInfoData() {
return _super !== null && _super.apply(this, arguments) || this;
}
GetPrizeInfoData.prototype.update = function (data) {
if (!data) {
return;
}
_super.prototype.update.call(this, data);
this.creditsPrice = data.creditsPrice;
this.limitScope = data.limitScope;
this.limitCount = data.limitCount;
this.ruleDescription = data.ruleDescription;
this.rateDescription = data.rateDescription;
this.prizeList = data.prize;
};
return GetPrizeInfoData;
}(Data_1.Data));
exports.GetPrizeInfoData = GetPrizeInfoData;
__reflect(GetPrizeInfoData.prototype, "\"e:/zqty/egret/libs/tw/data/plug/getPrizeInfo/GetPrizeInfoData\".GetPrizeInfoData");
//# sourceMappingURL=GetPrizeInfoData.js.map
\ No newline at end of file
{"version":3,"file":"GetPrizeInfoData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/plug/getPrizeInfo/GetPrizeInfoData.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,mCAAkC;AAElC;;;GAGG;AACH;IAAsC,oCAAI;IAA1C;;IA2CA,CAAC;IAZU,iCAAM,GAAb,UAAc,IAAS;QACnB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YACR,MAAM,CAAC;QACX,CAAC;QACD,iBAAM,MAAM,YAAC,IAAI,CAAC,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;QAClC,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;QAC5C,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,eAAe,CAAC;QAC5C,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC;IAChC,CAAC;IACL,uBAAC;AAAD,CAAC,AA3CD,CAAsC,WAAI,GA2CzC;AA3CY,4CAAgB;AAAhB,UAAA,gBAAgB,iGA2C5B,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPrizeData.js.map
\ No newline at end of file
{"version":3,"file":"IPrizeData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/plug/getPrizeInfo/IPrizeData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPlugData.js.map
\ No newline at end of file
{"version":3,"file":"IPlugData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/plug/optionInfo/IPlugData.ts"],"names":[],"mappings":""}
\ No newline at end of file
"use strict";
/**
*Created by cuiliqiang on 2018/3/9
* 插件奖项数据
*/
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=IPlugOptionData.js.map
\ No newline at end of file
{"version":3,"file":"IPlugOptionData.js","sourceRoot":"","sources":["../../../../../../libs/tw/data/plug/optionInfo/IPlugOptionData.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GetVisitInfoData_1 = require("./../data/pets/GetVisitInfoData");
var GetSummerInfoData_1 = require("./../data/game/getInfo/GetSummerInfoData");
var GetReviveCardNumData_1 = require("./../data/game/doRevive/GetReviveCardNumData");
var DoReviveData_1 = require("./../data/game/doRevive/DoReviveData");
var DoJoinPlugDrawData_1 = require("./../data/plug/doJoinPlugDraw/DoJoinPlugDrawData");
var NetName_1 = require("./../enum/NetName");
var QuestionSubmitData_1 = require("./../data/custom/questionSbumit/QuestionSubmitData");
var GetCollectRuleData_1 = require("./../data/common/getCollectRule/GetCollectRuleData");
var DatapashData_1 = require("./../data/game/datapash/DatapashData");
var openCollectGoodsPrizeData_1 = require("./../data/common/openCollectGoodsPrize/openCollectGoodsPrizeData");
var TwLang_1 = require("../util/TwLang");
var DoStartData_1 = require("../data/game/doStart/DoStartData");
var GetStartStatusData_1 = require("../data/game/doStart/GetStartStatusData");
var GetInfoData_1 = require("../data/game/getInfo/GetInfoData");
var GetOptionsData_1 = require("../data/game/getOptions/GetOptionsData");
var GetRuleData_1 = require("../data/game/getRule/GetRuleData");
var GetUserTotalScoreData_1 = require("../data/game/getUserTotalScore/GetUserTotalScoreData");
var GuessPokerData_1 = require("../data/game/guessPoker/GuessPokerData");
var GameSubmitData_1 = require("../data/game/submit/GameSubmitData");
var RealTimeRankData_1 = require("../data/game/realtimerank/RealTimeRankData");
var WinRanksData_1 = require("../data/game/winranks/WinRanksData");
var AjaxElementData_1 = require("../data/custom/ajaxElement/AjaxElementData");
var DoJoinData_1 = require("../data/custom/doJoin/DoJoinData");
var AjaxThroughInfoData_1 = require("../data/custom/ajaxThroughInfo/AjaxThroughInfoData");
var GetOrderInfoData_1 = require("../data/custom/getOrderInfo/GetOrderInfoData");
var GetCustomOrderStatusData_1 = require("../data/custom/doJoin/GetCustomOrderStatusData");
var GetRoleData_1 = require("../data/common/getRole/GetRoleData");
var GetCreditsData_1 = require("../data/common/getCredits/GetCreditsData");
var AddTimesForActivityData_1 = require("../data/common/addTimesForActivity/AddTimesForActivityData");
var SetRoleData_1 = require("../data/common/setRole/SetRoleData");
var GameGetSubmitResultData_1 = require("./../data/game/submit/GameGetSubmitResultData");
var ThroughSubmitData_1 = require("../data/custom/throughSubmit/ThroughSubmitData");
var BeforSubmitData_1 = require("../data/custom/beforSubmit/BeforSubmitData");
var PetAdopteData_1 = require("../data/pet/PetAdopteData");
var PetFeedData_1 = require("../data/pet/PetFeedData");
var PetStatusData_1 = require("../data/pet/PetStatusData");
var SignInfoData_1 = require("../data/pet/SignInfoData");
var PetHomeInfoData_1 = require("../data/pet/PetHomeInfoData");
var GetToysData_1 = require("../data/pet/GetToysData");
var ToyExchangeData_1 = require("../data/pet/ToyExchangeData");
var ToyUseData_1 = require("../data/pet/ToyUseData");
var CollectData_1 = require("../data/pet/CollectData");
var Data_1 = require("../data/Data");
var GetPlugOrderStatusData_1 = require("../data/plug/doJoinPlugDraw/GetPlugOrderStatusData");
var OptionInfoData_1 = require("../data/plug/optionInfo/OptionInfoData");
var UnblockingData_1 = require("../data/plug/unblocking/UnblockingData");
var GetPrizeInfoData_1 = require("../data/plug/getPrizeInfo/GetPrizeInfoData");
// import { ABDataManager } from 'duiba-tc';
var PetIndexData_1 = require("../data/pet/PetIndexData");
var GetRankListData_1 = require("../data/pet/GetRankListData");
var GetFoodPilesData_1 = require("../data/pet/GetFoodPilesData");
var GetRecordData_1 = require("../data/common/GetRecordData");
var UseToyData_1 = require("../data/pets/UseToyData");
var GetActToysListData_1 = require("../data/pets/GetActToysListData");
var ToyExchangesData_1 = require("../data/pets/ToyExchangesData");
var GetUserToysListData_1 = require("../data/pets/GetUserToysListData");
var GetHomeInfoData_1 = require("../data/pets/GetHomeInfoData");
var PetsIndexData_1 = require("../data/pets/PetsIndexData");
var VisitStatisticsData_1 = require("../data/pets/VisitStatisticsData");
var VisitDetailData_1 = require("../data/pets/VisitDetailData");
var ABDataManager_1 = require("../../tc/manager/ABDataManager");
/**
*Created by cuiliqiang on 2018/3/8
* 数据管理
*/
var DataManager = (function (_super) {
__extends(DataManager, _super);
function DataManager() {
var _this = _super.call(this) || this;
/**
* 签到业务
*/
_this.petIndexData = new PetIndexData_1.PetIndexData(); //用户基础数据
/**
* 外来宠物养成
*/
_this.petsIndexData = new PetsIndexData_1.PetsIndexData(); //外来宠物活动主页
_this._getActToysListData = []; //商店道具接口
/**
* 插件信息列表
*/
_this._getPrizeInfoList = {};
if (_this.isInit) {
throw Error(TwLang_1.TwLang.lang_001);
}
_this.isInit = true;
return _this;
}
Object.defineProperty(DataManager, "ins", {
get: function () {
if (!this.instance) {
this.instance = new DataManager();
}
return this.instance;
},
enumerable: true,
configurable: true
});
/**
* 更新数据
* @param {NetName} name
* @param result
* @returns {any}
*/
// tslint:disable-next-line:cyclomatic-complexity
DataManager.prototype.updateData = function (name, result, param) {
var data;
switch (name) {
case NetName_1.NetName.GET_ROLE:
if (!this._getRoleData) {
this._getRoleData = new GetRoleData_1.GetRoleData();
}
this._getRoleData.update(result);
data = this._getRoleData;
break;
case NetName_1.NetName.GAME_TOTAL_SCORE:
if (!this._getUserTotalScoreData) {
this._getUserTotalScoreData = new GetUserTotalScoreData_1.GetUserTotalScoreData();
}
this._getUserTotalScoreData.update(result);
data = this._getUserTotalScoreData;
break;
case NetName_1.NetName.GET_CREDITS:
if (!this._getCreditsData) {
this._getCreditsData = new GetCreditsData_1.GetCreditsData();
}
this._getCreditsData.update(result);
data = this._getCreditsData;
break;
case NetName_1.NetName.GAME_INFO:
if (!this._getInfoData) {
this._getInfoData = new GetInfoData_1.GetInfoData();
}
this._getInfoData.update(result);
data = this._getInfoData;
break;
case NetName_1.NetName.GAME_SUMMERINFO:
if (!this._getSummerInfoData) {
this._getSummerInfoData = new GetSummerInfoData_1.GetSummerInfoData();
}
this._getSummerInfoData.update(result);
data = this._getSummerInfoData;
break;
case NetName_1.NetName.GAME_START:
if (!this._doStartData) {
this._doStartData = new DoStartData_1.DoStartData();
}
this._doStartData.update(result);
data = this._doStartData;
break;
case NetName_1.NetName.GAME_START_STATUS:
if (!this._getStartStatusData) {
this._getStartStatusData = new GetStartStatusData_1.GetStartStatusData();
}
this._getStartStatusData.update(result);
data = this._getStartStatusData;
break;
case NetName_1.NetName.GAME_REVIVE:
if (!this._doReviveData) {
this._doReviveData = new DoReviveData_1.DoReviveData();
}
this._doReviveData.update(result);
data = this._doReviveData;
break;
case NetName_1.NetName.GAME_REVIVE_STATUS:
if (!this._getReviveCardNumData) {
this._getReviveCardNumData = new GetReviveCardNumData_1.GetReviveCardNumData();
}
this._getReviveCardNumData.update(result);
data = this._getReviveCardNumData;
break;
case NetName_1.NetName.GAME_SUBMIT:
if (!this._gameSubmitData) {
this._gameSubmitData = new GameSubmitData_1.GameSubmitData();
}
this._gameSubmitData.update(result);
data = this._gameSubmitData;
if (result.data) {
this._getInfoData.update(result);
}
break;
case NetName_1.NetName.GAME_SUBMIT_STATUS:
if (!this._gameGetSubmitResultData) {
this._gameGetSubmitResultData = new GameGetSubmitResultData_1.GameGetSubmitResultData();
}
this._gameGetSubmitResultData.update(result);
data = this._gameGetSubmitResultData;
break;
case NetName_1.NetName.GAME_RANKS:
if (!this._winRanksData) {
this._winRanksData = new WinRanksData_1.WinRanksData();
}
this._winRanksData.update(result);
data = this._winRanksData;
break;
case NetName_1.NetName.GAME_OPTIONS:
if (!this._getOptionsData) {
this._getOptionsData = new GetOptionsData_1.GetOptionsData();
}
this._getOptionsData.update(result);
data = this._getOptionsData;
break;
case NetName_1.NetName.GAME_RULE:
if (!this._getRuleData) {
this._getRuleData = new GetRuleData_1.GetRuleData();
}
this._getRuleData.update(result);
data = this._getRuleData;
break;
case NetName_1.NetName.ADD_TIMES:
if (!this._addTimesForActivityData) {
this._addTimesForActivityData = new AddTimesForActivityData_1.AddTimesForActivityData();
}
this._addTimesForActivityData.update(result);
data = this._addTimesForActivityData;
break;
case NetName_1.NetName.COLLECT_RULE:
if (!this._getCollectRuleData) {
this._getCollectRuleData = new GetCollectRuleData_1.GetCollectRuleData();
}
this._getCollectRuleData.update(result);
data = this._getCollectRuleData;
break;
case NetName_1.NetName.OPEN_COLLECT:
if (!this._openCollectGoodsPrizeData) {
this._openCollectGoodsPrizeData = new openCollectGoodsPrizeData_1.OpenCollectGoodsPrizeData();
}
this._openCollectGoodsPrizeData.update(result);
data = this._openCollectGoodsPrizeData;
break;
case NetName_1.NetName.GAME_REAL_TIME_RANK:
if (!this._realTimeRankData) {
this._realTimeRankData = new RealTimeRankData_1.RealTimeRankData();
}
this._realTimeRankData.update(result);
data = this._realTimeRankData;
break;
case NetName_1.NetName.PLUG_DO_JOIN:
if (!this._doJoinPlugDrawData) {
this._doJoinPlugDrawData = new DoJoinPlugDrawData_1.DoJoinPlugDrawData();
}
this._doJoinPlugDrawData.update(result);
data = this._doJoinPlugDrawData;
break;
case NetName_1.NetName.PLUG_ORDER_STATUS:
if (!this._getPlugOrderStatusData) {
this._getPlugOrderStatusData = new GetPlugOrderStatusData_1.GetPlugOrderStatusData();
}
this._getPlugOrderStatusData.update(result);
data = this._getPlugOrderStatusData;
break;
case NetName_1.NetName.PLUG_PRIZE_INFO://查询插件信息
var plugID = param.activityId;
if (!this._getPrizeInfoList[plugID]) {
this._getPrizeInfoList[plugID] = new GetPrizeInfoData_1.GetPrizeInfoData();
}
this._getPrizeInfoList[plugID].update(result);
data = this._getPrizeInfoList[plugID];
break;
case NetName_1.NetName.SET_ROLE:
if (!this._setRoleData) {
this._setRoleData = new SetRoleData_1.SetRoleData();
}
this._setRoleData.update(result);
data = this._setRoleData;
break;
case NetName_1.NetName.CUSTOM_ELEMENT:
if (!this._ajaxElementData) {
this._ajaxElementData = new AjaxElementData_1.AjaxElementData();
}
this._ajaxElementData.update(result);
data = this._ajaxElementData;
break;
case NetName_1.NetName.CUSTOM_THROUGH_INFO:
if (!this._ajaxThroughInfoData) {
this._ajaxThroughInfoData = new AjaxThroughInfoData_1.AjaxThroughInfoData();
}
this._ajaxThroughInfoData.update(result);
data = this._ajaxThroughInfoData;
break;
case NetName_1.NetName.CUSTOM_DO_JOIN:
if (!this._doJoinData) {
this._doJoinData = new DoJoinData_1.DoJoinData();
}
this._doJoinData.update(result);
data = this._doJoinData;
break;
case NetName_1.NetName.CUSTOM_ORDER_STATUS:
if (!this._getCustomOrderStatusData) {
this._getCustomOrderStatusData = new GetCustomOrderStatusData_1.GetCustomOrderStatusData();
}
this._getCustomOrderStatusData.update(result);
data = this._getCustomOrderStatusData;
this._ajaxElementData.element = result.element;
break;
case NetName_1.NetName.CUSTOM_ORDER_INFO:
if (!this._getOrderInfoData) {
this._getOrderInfoData = new GetOrderInfoData_1.GetOrderInfoData();
}
this._getOrderInfoData.update(result);
data = this._getOrderInfoData;
break;
case NetName_1.NetName.CUSTOM_THROUGH_SUBMIT:
if (!this._throughSubmitData) {
this._throughSubmitData = new ThroughSubmitData_1.ThroughSubmitData();
}
this._throughSubmitData.update(result);
data = this._throughSubmitData;
break;
case NetName_1.NetName.CUSTOM_BEFOR_SUBMIT:
if (!this._beforSubmitData) {
this._beforSubmitData = new BeforSubmitData_1.BeforSubmitData();
}
this._beforSubmitData.update(result);
data = this._beforSubmitData;
break;
case NetName_1.NetName.CUSTOM_QUESTION_SUBMIT:
if (!this._questionSubmitData) {
this._questionSubmitData = new QuestionSubmitData_1.QuestionSubmitData();
}
this._questionSubmitData.update(result);
data = this._questionSubmitData;
break;
case NetName_1.NetName.GAME_GUESS_POKER:
if (!this._guessPokerData) {
this._guessPokerData = new GuessPokerData_1.GuessPokerData();
}
this._guessPokerData.update(result);
data = this._guessPokerData;
break;
case NetName_1.NetName.PLUG_OPTION_INFO:
if (!this._optionInfoData) {
this._optionInfoData = new OptionInfoData_1.OptionInfoData();
}
this._optionInfoData.update(result);
data = this._optionInfoData;
break;
case NetName_1.NetName.PET_ADOPTE:
if (!this._petAdopteData) {
this._petAdopteData = new PetAdopteData_1.PetAdopteData();
}
this._petAdopteData.update(result);
this.petIndexData.update(result.data); //更新petIndexData里面的活动id(activityid);
if (!this._petHomeInfoData) {
this._petHomeInfoData = new PetHomeInfoData_1.PetHomeInfoData();
}
this._petHomeInfoData.update(result); //更新宠物信息
data = this._petAdopteData;
break;
case NetName_1.NetName.PET_FEED:
if (!this._petFeedData) {
this._petFeedData = new PetFeedData_1.PetFeedData();
}
this._petFeedData.update(result);
if (!this._petHomeInfoData) {
this._petHomeInfoData = new PetHomeInfoData_1.PetHomeInfoData();
}
this._petHomeInfoData.update(result); //更新宠物信息
data = this._petFeedData;
break;
case NetName_1.NetName.PET_STATUS:
if (!this._petStatusData) {
this._petStatusData = new PetStatusData_1.PetStatusData();
}
this._petStatusData.update(result);
if (!this._petHomeInfoData) {
this._petHomeInfoData = new PetHomeInfoData_1.PetHomeInfoData();
}
this._petHomeInfoData.update(result); //更新宠物信息
data = this._petStatusData;
break;
case NetName_1.NetName.PET_INFO:
if (!this._petHomeInfoData) {
this._petHomeInfoData = new PetHomeInfoData_1.PetHomeInfoData();
}
this._petHomeInfoData.update(result); //更新宠物信息
data = this._petHomeInfoData;
break;
case NetName_1.NetName.PET_TOYS://签到养成里暂时没用到这个接口
if (!this._getToysData) {
this._getToysData = new GetToysData_1.GetToysData();
}
this._getToysData.update(result);
data = this._getToysData;
break;
case NetName_1.NetName.PET_TOY_EXCHANGE://签到养成里暂时没用到这个接口
if (!this._toyExchangeData) {
this._toyExchangeData = new ToyExchangeData_1.ToyExchangeData();
}
this._toyExchangeData.update(result);
data = this._toyExchangeData;
break;
case NetName_1.NetName.PET_TOY_USE://签到养成里暂时没用到这个接口
if (!this._toyUseData) {
this._toyUseData = new ToyUseData_1.ToyUseData();
}
this._toyUseData.update(result);
data = this._toyUseData;
break;
case NetName_1.NetName.PET_COLLECT://收取礼物接口
if (!this._collectData) {
this._collectData = new CollectData_1.CollectData();
}
this._collectData.update(result);
data = this._collectData;
break;
case NetName_1.NetName.SIGN_INFO: //查询签到信息接口
case NetName_1.NetName.SIGN_DO_SIGN://签到接口
if (!this._signInfoData) {
this._signInfoData = new SignInfoData_1.SignInfoData();
}
this._signInfoData.update(result);
data = this._signInfoData;
break;
case NetName_1.NetName.PET_GET_RANK_LIST://群内喂食排行榜
if (!this._getRankListData) {
this._getRankListData = new GetRankListData_1.GetRankListData();
}
this._getRankListData.update(result);
data = this._getRankListData;
break;
case NetName_1.NetName.PET_GET_FOOD_PILES://查询待领取粮食
if (!this._getFoodPilesData) {
this._getFoodPilesData = new GetFoodPilesData_1.GetFoodPilesData();
}
this._getFoodPilesData.update(result);
data = this._getFoodPilesData;
break;
case NetName_1.NetName.PET_COLLECT_FOOD://待领取粮食收取
if (!data) {
data = new Data_1.Data();
}
data.update(result);
break;
case NetName_1.NetName.PETS_GET_HOME_INFO://外来宠物养成---活动主信息接口
if (!this._getHomeInfoData) {
this._getHomeInfoData = new GetHomeInfoData_1.GetHomeInfoData();
}
this._getHomeInfoData.update(result);
data = this._getHomeInfoData;
break;
case NetName_1.NetName.PETS_GET_ACT_TOYS://外来宠物养成---商店道具接口
var toyType = param.toyType;
if (!this._getActToysListData[toyType]) {
this._getActToysListData[toyType] = new GetActToysListData_1.GetActToysListData();
}
this._getActToysListData[toyType].update(result);
data = this._getActToysListData[toyType];
break;
case NetName_1.NetName.PETS_TOY_EXCHANGE://外来宠物养成---道具兑换
if (!this._toyExchangesData) {
this._toyExchangesData = new ToyExchangesData_1.ToyExchangesData();
}
this._toyExchangesData.update(result);
data = this._toyExchangesData;
break;
case NetName_1.NetName.PETS_USE_TOYS://外来宠物养成---道具使用
if (!this._useToyData) {
this._useToyData = new UseToyData_1.UseToyData();
}
this._useToyData.update(result);
data = this._useToyData;
break;
case NetName_1.NetName.PETS_GET_USER_TOYS://外来宠物养成---已购买的道具
if (!this._getUserToysListData) {
this._getUserToysListData = new GetUserToysListData_1.GetUserToysListData();
}
this._getUserToysListData.update(result);
data = this._getUserToysListData;
break;
case NetName_1.NetName.PETS_BATCHOLLECT_FOOD://外来宠物养成---收取猫草
if (!this._batchollectFoodData) {
this._batchollectFoodData = new Data_1.Data();
}
this._batchollectFoodData.update(result);
data = this._batchollectFoodData;
break;
case NetName_1.NetName.PETS_VISI_STATISTICS://外来宠物养成---来访统计
if (!this._visitStatisticsData) {
this._visitStatisticsData = new VisitStatisticsData_1.VisitStatisticsData();
}
this._visitStatisticsData.update(result);
data = this._visitStatisticsData;
break;
case NetName_1.NetName.PETS_GET_VISIT_INFO://未来宠物养成---动态信息列表
if (!this._getVisitInfoData) {
this._getVisitInfoData = new GetVisitInfoData_1.GetVisitInfoData();
}
this._getVisitInfoData.update(result);
data = this._getVisitInfoData;
break;
case NetName_1.NetName.PETS_VISIT_DETAIL://外来宠物养成---到访记录详情
if (!this._visitDetailData) {
this._visitDetailData = new VisitDetailData_1.VisitDetailData();
}
this._visitDetailData.update(result);
data = this._visitDetailData;
break;
case NetName_1.NetName.PETS_COLLECT_GIFT_RECORD:
if (!this._collectGiftRecord) {
this._collectGiftRecord = new Data_1.Data();
}
this._collectGiftRecord.update(result);
data = this._collectGiftRecord;
break;
case NetName_1.NetName.PLUG_UNBLOCKING:
if (!this._unblockingData) {
this._unblockingData = new UnblockingData_1.UnblockingData();
}
this._unblockingData.update(result);
data = this._unblockingData;
break;
case NetName_1.NetName.GAME_DATA_PASH:
if (!this._datapashData) {
this._datapashData = new DatapashData_1.DatapashData();
}
this._datapashData.update(result);
data = this._datapashData;
break;
case NetName_1.NetName.GAME_SUMMER_BUYPROP:
this._summerBuyPropData = result;
data = result;
break;
case NetName_1.NetName.GAME_SUMMER_GET_ORDER_STATUS:
this._summerOrderStatus = result;
data = result;
break;
case NetName_1.NetName.GAME_SUMMER_GET_TOY_INFO:
this._summerToyInfo = result;
data = result;
break;
case NetName_1.NetName.GET_RECORD://查询我的奖品记录
if (!this._getRecordData) {
this._getRecordData = new GetRecordData_1.GetRecordData();
}
this._getRecordData.update(result);
data = this._getRecordData;
default:
this[this.getKey(name)] = result;
}
this.dispatchEvent(new egret.Event('dataUpdate', false, false, name));
return data || result;
};
DataManager.prototype.getData = function (name) {
return this[this.getKey(name)];
};
DataManager.prototype.getKey = function (name) {
return "_tw_data_" + name + "_";
};
Object.defineProperty(DataManager.prototype, "getInfoData", {
/**
* 用户信息
*/
get: function () {
return this._getInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getSummerInfoData", {
/**
* 夏日活动用户信息
*/
get: function () {
return this._getSummerInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getRoleData", {
/**
* 角色信息
*/
get: function () {
return this._getRoleData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getUserTotalScoreData", {
/**
* 用户成长值
*/
get: function () {
return this._getUserTotalScoreData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getCreditsData", {
/**
* 用户积分
*/
get: function () {
return this._getCreditsData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "doStartData", {
/**
* 开始游戏
*/
get: function () {
return this._doStartData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getStartStatusData", {
/**
* 开始游戏订单结果
*/
get: function () {
return this._getStartStatusData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "doReviveData", {
/**
* 复活
*/
get: function () {
return this._doReviveData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getReviveCardNumData", {
/**
* 获得复活卡数量
*/
get: function () {
return this._getReviveCardNumData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "gameSubmitData", {
/**
* 游戏提交
*/
get: function () {
return this._gameSubmitData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "gameGetSubmitResultData", {
/**
* 游戏提交订单结果
*/
get: function () {
return this._gameGetSubmitResultData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "winRanksData", {
/**
* 开奖
*/
get: function () {
return this._winRanksData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getOptionsData", {
/**
* 游戏奖品
*/
get: function () {
return this._getOptionsData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getRuleData", {
/**
* 游戏规则
*/
get: function () {
return this._getRuleData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "addTimesForActivityData", {
/**
* 活动次数
*/
get: function () {
return this._addTimesForActivityData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getCollectRuleData", {
/**
* 集卡规则
*/
get: function () {
return this._getCollectRuleData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "openCollectGoodsPrizeData", {
/**
* 集卡开奖
*/
get: function () {
return this._openCollectGoodsPrizeData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "realTimeRankData", {
/**
* 实时排行榜
*/
get: function () {
return this._realTimeRankData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "doJoinPlugDrawData", {
/**
* 插件
*/
get: function () {
return this._doJoinPlugDrawData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getPlugOrderStatusData", {
/**
* 插件订单结果
*/
get: function () {
return this._getPlugOrderStatusData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "setRoleData", {
/**
* 设置角色
*/
get: function () {
return this._setRoleData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "ajaxElementData", {
/**
* 活动工具基础信息
*/
get: function () {
return this._ajaxElementData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "ajaxThroughInfoData", {
/**
* 闯关游戏基础信息
*/
get: function () {
return this._ajaxThroughInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "doJoinData", {
/**
* 活动工具抽奖
*/
get: function () {
return this._doJoinData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getCustomOrderStatusData", {
/**
* 活动工具订单结果
*/
get: function () {
return this._getCustomOrderStatusData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getOrderInfoData", {
/**
* 前置抽奖
*/
get: function () {
return this._getOrderInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "throughSubmitData", {
/**
* 闯关游戏提交
*/
get: function () {
return this._throughSubmitData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "beforSubmitData", {
/**
* 前置开奖提交
*/
get: function () {
return this._beforSubmitData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "questionSubmitData", {
/**
* 答题提交
*/
get: function () {
return this._questionSubmitData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "guessPokerData", {
/**
* 猜扑克
*/
get: function () {
return this._guessPokerData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "optionInfoData", {
/**
* 插件奖品信息
*/
get: function () {
return this._optionInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "unblockingData", {
/**
* 解锁插件
*/
get: function () {
return this._unblockingData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "datapashData", {
/**
* 防作弊阶段提交
*/
get: function () {
return this._datapashData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "summerBuyPropData", {
get: function () {
return this._summerBuyPropData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "summerOrderStatus", {
get: function () {
return this._summerOrderStatus;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "summerToyInfo", {
get: function () {
return this._summerToyInfo;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "petHomeInfoData", {
/**
* 养成
* 宠物基础数据
*/
get: function () {
return this._petHomeInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "petFeedData", {
/**
* 养成
* 宠物喂食回调数据
*/
get: function () {
return this._petFeedData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "signInfoData", {
/**
* 养成
* 签到信息
*/
get: function () {
return this._signInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getPrizeInfoList", {
/**
* 插件列表
*/
get: function () {
return this._getPrizeInfoList;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getRankListData", {
/**
* 喂养排名信息
*/
get: function () {
return this._getRankListData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getFoodPilesData", {
/**
* 查询待领取粮食信息
*/
get: function () {
return this._getFoodPilesData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getRecordData", {
/**
* 查询我的奖品记录
*/
get: function () {
return this._getRecordData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getHomeInfoData", {
/**
* 外来宠物养成--活动主信息接口
*/
get: function () {
return this._getHomeInfoData;
},
set: function (d) {
this._getHomeInfoData = d;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "gtBatchollectFoodData", {
/**
* 收取猫草回调数据
*/
get: function () {
return this._batchollectFoodData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getActToysListData", {
/**
* 外来宠物养成--商店道具接口
*/
get: function () {
return this._getActToysListData;
},
set: function (d) {
this._getActToysListData = d;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getUserToysListData", {
/**
* 外来宠物养成--商店道具接口
*/
get: function () {
return this._getUserToysListData;
},
set: function (d) {
this._getUserToysListData = d;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "visitStatisticsData", {
/**
* 外来宠物养成--来访统计
*/
get: function () {
return this._visitStatisticsData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "getVisitInfoData", {
/**
* 外来宠物养成--动态信息列表
*/
get: function () {
return this._getVisitInfoData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "visitDetailData", {
/**
* 外来宠物养成--到访记录详情
*/
get: function () {
return this._visitDetailData;
},
enumerable: true,
configurable: true
});
Object.defineProperty(DataManager.prototype, "collectGiftRecord", {
/**
* 外来宠物养成--礼物收取
*/
get: function () {
return this._collectGiftRecord;
},
enumerable: true,
configurable: true
});
return DataManager;
}(ABDataManager_1.ABDataManager));
exports.DataManager = DataManager;
__reflect(DataManager.prototype, "\"e:/zqty/egret/libs/tw/manager/DataManager\".DataManager");
//# sourceMappingURL=DataManager.js.map
\ No newline at end of file
{"version":3,"file":"DataManager.js","sourceRoot":"","sources":["../../../../libs/tw/manager/DataManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAmE;AACnE,8EAA6E;AAC7E,qFAAoF;AACpF,qEAAoE;A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AAmB,GAAG,CAAC,CAAC;QACjC,CAAC;;;OAJA;IASD,sBAAW,4CAAmB;QAH9B;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;aAED,UAA+B,CAAsB;YACjD,IAAI,CAAC,oBAAoB,GAAG,CAAC,CAAC;QAClC,CAAC;;;OAJA;IASD,sBAAW,4CAAmB;QAH9B;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,oBAAoB,CAAC;QACrC,CAAC;;;OAAA;IAKD,sBAAW,yCAAgB;QAH3B;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;QAClC,CAAC;;;OAAA;IAKD,sBAAW,wCAAe;QAH1B;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC;QACjC,CAAC;;;OAAA;IAKD,sBAAW,0CAAiB;QAH5B;;WAEG;aACH;YACI,MAAM,CAAC,IAAI,CAAC,kBAAkB,CAAC;QACnC,CAAC;;;OAAA;IAGL,kBAAC;AAAD,CAAC,AA15BD,CAAiC,6BAAa,GA05B7C;AA15BY,kCAAW;AAAX,UAAA,WAAW,wEA05BvB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var LotteryType_1 = require("../../enum/LotteryType");
var NetManager_1 = require("../../manager/NetManager");
var DataManager_1 = require("./../../manager/DataManager");
var Model_1 = require("./../Model");
/**
* 兑吧活动领域模型
*/
var ActivityModel = (function (_super) {
__extends(ActivityModel, _super);
function ActivityModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 插件抽奖
* @param callback
* @param plugId
*/
ActivityModel.prototype.plugDoJoin = function (callback, plugId) {
var _this = this;
NetManager_1.NetManager.ins.doJoinPlugDraw(function (success) {
if (success) {
_this.getPlugOrderStatus(callback);
}
else {
callback(success);
}
}, plugId);
};
/**
* 插件抽奖订单结果
* @param net
*/
ActivityModel.prototype.getPlugOrderStatus = function (callback) {
NetManager_1.NetManager.ins.getPlugOrderStatus(callback, DataManager_1.DataManager.ins.doJoinPlugDrawData.orderId, function () {
return DataManager_1.DataManager.ins.getPlugOrderStatusData.result == 0;
});
};
Object.defineProperty(ActivityModel.prototype, "plugIsWinning", {
/**
* 插件结果弹窗
*/
get: function () {
return DataManager_1.DataManager.ins.getPlugOrderStatusData.lottery ? true : false;
},
enumerable: true,
configurable: true
});
/**
* 曝光埋点
*/
ActivityModel.prototype.showLog = function () {
//曝光埋点
if (this.lottery.imgExposure) {
NetManager_1.NetManager.ins.showLog(this.lottery.imgExposure);
}
//如果是福袋还需要推啊曝光
if (this.lottery.type == "lucky") {
NetManager_1.NetManager.ins.spmshow(this.exposure);
}
};
Object.defineProperty(ActivityModel.prototype, "optionImgSize", {
/**
* 奖品图尺寸
*/
get: function () {
var size;
if (this.lottery.type == LotteryType_1.LotteryType.ALIPAY ||
this.lottery.type == LotteryType_1.LotteryType.VIRTUAL ||
this.lottery.type == LotteryType_1.LotteryType.OBJECT) {
size = 's';
}
else {
size = 'b';
}
return size;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ActivityModel.prototype, "optionImg", {
/**
* 奖品图片链接
*/
get: function () {
return this.lottery.img;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ActivityModel.prototype, "optionName", {
/**
* 奖品名字
*/
get: function () {
return this.lottery.name;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ActivityModel.prototype, "lottery", {
/**
* 奖品数据
*/
get: function () {
return;
},
enumerable: true,
configurable: true
});
Object.defineProperty(ActivityModel.prototype, "exposure", {
/**
* 福袋埋点数据
*/
get: function () {
return;
},
enumerable: true,
configurable: true
});
/**
* 立即使用
*/
ActivityModel.prototype.onUse = function () {
if (this.lottery.type == LotteryType_1.LotteryType.COUPON || this.lottery.type == LotteryType_1.LotteryType.LUCKY) {
window["downloadAppConfig"] =
{
openUrl: this.lottery.openUrl,
iosDownloadUrl: this.lottery.iosDownloadUrl,
androidDownloadUrl: this.lottery.androidDownloadUrl,
confirm: this.lottery.confirm ? this.lottery.confirm : false
};
window["downloadApp"]();
if (this.lottery.type == "lucky") {
NetManager_1.NetManager.ins.spmclick(this.exposure);
}
}
else {
window.location.href = this.lottery.link;
}
};
return ActivityModel;
}(Model_1.Model));
exports.ActivityModel = ActivityModel;
__reflect(ActivityModel.prototype, "\"e:/zqty/egret/libs/tw/model/common/ActivityModel\".ActivityModel");
//# sourceMappingURL=ActivityModel.js.map
\ No newline at end of file
{"version":3,"file":"ActivityModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/common/ActivityModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,sDAAqD;AACrD,uDAAsD;AACtD,2DAA0D;AAC1D,oCAAmC;AAEnC;;GAEG;AACH;IAAmC,iCAAK;IAAxC;;IAgHA,CAAC;IA/GG;;;;OAIG;IACI,kCAAU,GAAjB,UAAkB,QAAkB,EAAE,MAAc;QAApD,iBAQC;QAPG,uBAAU,CAAC,GAAG,CAAC,cAAc,CAAC,UAAC,OAAgB;YAC3C,EAAE,CAAA,CAAC,OAAO,CAAC,CAAC,CAAC;gBACT,KAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;YACtC,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,QAAQ,CAAC,OAAO,CAAC,CAAC;YACtB,CAAC;QACL,CAAC,EAAE,MAAM,CAAC,CAAC;IACf,CAAC;IAED;;;OAGG;IACI,0CAAkB,GAAzB,UAA0B,QAAkB;QACxC,uBAAU,CAAC,GAAG,CAAC,kBAAkB,CAAC,QAAQ,EAAE,yBAAW,CAAC,GAAG,CAAC,kBAAkB,CAA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
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var ActivityModel_1 = require("./ActivityModel");
var NetManager_1 = require("../../manager/NetManager");
var DataManager_1 = require("../../manager/DataManager");
/**
* 自定义活动工具业务模型
*/
var CustomModel = (function (_super) {
__extends(CustomModel, _super);
function CustomModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 抽奖
* @param callback
* @param nextStep 下一步做什么,轮询结果或者前置开奖等
*/
CustomModel.prototype.customDoJoin = function (callback, nextStep, collectRuleId) {
if (window['uid'] == 'not_login') {
window['requirelogin']();
return;
}
NetManager_1.NetManager.ins.doJoin(function (success) {
if (nextStep && success) {
nextStep(callback);
}
else {
callback(success);
}
}, collectRuleId);
};
/**
* 获取活动工具抽奖结果
* @param callback
*/
CustomModel.prototype.getCustomOrderStatus = function (callback) {
NetManager_1.NetManager.ins.getCustomOrderStatus(callback, DataManager_1.DataManager.ins.doJoinData.orderId, function () {
return DataManager_1.DataManager.ins.getCustomOrderStatusData.result == 0;
});
};
/**
* 获取前置开奖信息
* @param callback
*/
CustomModel.prototype.getOrderInfo = function (callback) {
NetManager_1.NetManager.ins.getOrderInfo(callback, DataManager_1.DataManager.ins.doJoinData.orderId);
};
/**
* 前置抽奖提交
* @param callback
*/
CustomModel.prototype.beforSubmit = function (callback) {
var _this = this;
NetManager_1.NetManager.ins.beforSubmit(function (success) {
if (success) {
_this.getCustomOrderStatus(callback);
}
else {
callback(success);
}
}, DataManager_1.DataManager.ins.doJoinData.orderId, DataManager_1.DataManager.ins.getOrderInfoData.facePrice);
};
/**
* 闯关游戏提交
* @param callback
*/
CustomModel.prototype.throughSubmit = function (callback) {
NetManager_1.NetManager.ins.throughSubmit(callback, DataManager_1.DataManager.ins.doJoinData.orderId);
};
Object.defineProperty(CustomModel.prototype, "customIsWinning", {
/**
* 活动工具是否中奖
*/
get: function () {
return DataManager_1.DataManager.ins.getCustomOrderStatusData.lottery ? true : false;
},
enumerable: true,
configurable: true
});
return CustomModel;
}(ActivityModel_1.ActivityModel));
exports.CustomModel = CustomModel;
__reflect(CustomModel.prototype, "\"e:/zqty/egret/libs/tw/model/common/CustomModel\".CustomModel");
//# sourceMappingURL=CustomModel.js.map
\ No newline at end of file
{"version":3,"file":"CustomModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/common/CustomModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,uDAAsD;AACtD,yDAAwD;AACxD;;GAEG;AACH;IAAiC,+BAAa;IAA9C;;IAkEA,CAAC;IAjEG;;;;OAIG;IACI,kCAAY,GAAnB,UAAoB,QAAkB,EAAE,QAAkB,EAAE,aAAsB;QAC9E,EAAE,CAAA,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC;YAC9B,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC;YACzB,MAAM,CAAC;QACX,CAAC;QACD,uBAAU,CAAC,GAAG,CAAC,MAAM,CAAC,UAAC,OAAgB;YACnC,EAAE,CAAA,CAAC,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC;gBACrB,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACvB,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,QAAQ,CAAC,OAAO,CAAC,CAAC;YACtB,CAAC;QACL,CAAC,EAAE,aAAa,CAAC,CAAC;IACtB,CAAC;IAED;;;OAGG;IACI,0CAAoB,GAA3B,UAA4B,QAAkB;QAC1C,uBAAU,CAAC,GAAG,CAAC,oBAAoB,CAAC,QAAQ,EAAE,yBAAW,CAAC,GAAG,CAAC,UAAU,CAAC,OAAO,EAAE;YAC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p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../../manager/DataManager");
var NetManager_1 = require("../../manager/NetManager");
var ActivityModel_1 = require("../common/ActivityModel");
var GameModel = (function (_super) {
__extends(GameModel, _super);
function GameModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 获取规则数据
*/
GameModel.prototype.getRule = function (callback) {
if (DataManager_1.DataManager.ins.getRuleData) {
callback(true);
}
else {
NetManager_1.NetManager.ins.getRule(callback);
}
};
/**
* 获取活动奖品数据
*/
GameModel.prototype.getOptions = function (callback) {
if (DataManager_1.DataManager.ins.getOptionsData) {
callback(true);
}
else {
NetManager_1.NetManager.ins.getOptions(callback);
}
};
/**
* 开始游戏
* @param callback
* @param isAgain
* @param credits
* @param customizedType
*/
GameModel.prototype.doStart = function (callback, isAgain, credits, customizedType) {
var _this = this;
if (isAgain === void 0) { isAgain = false; }
if (window['requirelogin']) {
window['requirelogin']();
return;
}
NetManager_1.NetManager.ins.doStart(function (success) {
if (success) {
_this.getStartOrderStatus(callback, customizedType);
}
else {
callback(success);
}
}, isAgain, credits, customizedType);
};
/**
* 查询订单结果
* @param callback
* @param ticketId
* @param customizedType
*/
GameModel.prototype.getStartOrderStatus = function (callback, customizedType) {
NetManager_1.NetManager.ins.getStartStatus(callback, DataManager_1.DataManager.ins.doStartData.ticketId, function () { return DataManager_1.DataManager.ins.getStartStatusData.code != 1; }, 5, customizedType);
};
/**
* 获取用户数据
* @param callback
*/
GameModel.prototype.getInfo = function (callback) {
NetManager_1.NetManager.ins.getInfo(callback);
};
/**
* 获取夏日活动用户数据
* @param callback
*/
GameModel.prototype.getSummerInfo = function (callback, rankBaseConfigId) {
NetManager_1.NetManager.ins.getSummerInfo(callback, rankBaseConfigId);
};
/**
* 阶段数据提交
* @param callback
* @param dynamicStr 数据
*/
GameModel.prototype.datapashData = function (callback, dynamicStr) {
NetManager_1.NetManager.ins.datapash(null, DataManager_1.DataManager.ins.doStartData.ticketId, dynamicStr);
};
/**
* 猜扑克
* @param callback
* @param plugId 插件ID
* @param ruleId 集卡规则ID
* @param betting 0大1小2红3黑
*/
GameModel.prototype.guessPoker = function (callback, plugId, ruleId, betting) {
NetManager_1.NetManager.ins.guessPoker(callback, plugId, DataManager_1.DataManager.ins.doStartData.ticketId, ruleId, betting);
};
/**
* 提交游戏成绩
* @param callback
* @param score 得分
* @param allDynamics 防作弊数据
* @param checkScore 是否校验得分
* @param customizedType 定制类型 1推币机
*/
GameModel.prototype.gameSubmitData = function (callback, score, allDynamics, checkScore, customizedType) {
var _this = this;
NetManager_1.NetManager.ins.gameSubmit(function (success) {
if (success) {
_this.getSubmitResult(callback, DataManager_1.DataManager.ins.gameSubmitData.orderId);
}
else {
callback(success);
}
}, DataManager_1.DataManager.ins.doStartData.ticketId, score, '[]', DataManager_1.DataManager.ins.doStartData.submitToken, JSON.stringify(allDynamics), checkScore, customizedType);
};
/**
* 查询提交结果
* @param callback
* @param orderId
*/
GameModel.prototype.getSubmitResult = function (callback, orderId) {
NetManager_1.NetManager.ins.getSubmitResult(callback, orderId, function () {
return DataManager_1.DataManager.ins.gameGetSubmitResultData.flag;
});
};
/**
* 获取实时排行榜数据
* @param callback
* @param type 0总排行榜 1今日排行榜 2 多游戏总排行榜 3 昨日排行榜
* @param count
*/
GameModel.prototype.realtimerank = function (callback, type, count) {
if (type === void 0) { type = 0; }
if (count === void 0) { count = 30; }
NetManager_1.NetManager.ins.realtimerank(callback, type, count);
};
return GameModel;
}(ActivityModel_1.ActivityModel));
exports.GameModel = GameModel;
__reflect(GameModel.prototype, "\"e:/zqty/egret/libs/tw/model/common/GameModel\".GameModel");
//# sourceMappingURL=GameModel.js.map
\ No newline at end of file
{"version":3,"file":"GameModel.js","sourceRoot":"","sources":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,CAAC,UAAU,CACrB,UAAC,OAAgB;YACb,EAAE,CAAA,CAAC,OAAO,CAAC,CAAC,CAAC;gBACT,KAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,yBAAW,CAAC,GAAG,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;YAC3E,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,QAAQ,CAAC,OAAO,CAAC,CAAC;YACtB,CAAC;QACL,CAAC,EACD,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,EACpC,KAAK,EACL,IAAI,EACJ,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,EACvC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAC3B,UAAU,EACV,cAAc,CAAC,CAAC;IACxB,CAAC;IAED;;;;OAIG;IACK,mCAAe,GAAvB,UAAwB,QAAkB,EAAE,OAAe;QACvD,uBAAU,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE;YAC9C,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAAI,CAAC;QACxD,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;;;OAKG;IACI,gCAAY,GAAnB,UAAoB,QAAkB,EAAE,IAAQ,EAAE,KAAU;QAApB,qBAAA,EAAA,QAAQ;QAAE,sBAAA,EAAA,UAAU;QACxD,uBAAU,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;IACtD,CAAC;IACL,gBAAC;AAAD,CAAC,AA/ID,CAA+B,6BAAa,GA+I3C;AA/IY,8BAAS;AAAT,UAAA,SAAS,yEA+IrB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Model_1 = require("./../Model");
var CustomOptionInfoModel = (function (_super) {
__extends(CustomOptionInfoModel, _super);
function CustomOptionInfoModel() {
return _super.call(this) || this;
}
return CustomOptionInfoModel;
}(Model_1.Model));
exports.CustomOptionInfoModel = CustomOptionInfoModel;
__reflect(CustomOptionInfoModel.prototype, "\"e:/zqty/egret/libs/tw/model/custom/CustomOptionInfoModel\".CustomOptionInfoModel");
//# sourceMappingURL=CustomOptionInfoModel.js.map
\ No newline at end of file
{"version":3,"file":"CustomOptionInfoModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/custom/CustomOptionInfoModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oCAAmC;AACnC;IAA2C,yCAAK;IAC5C;eACI,iBAAO;IACX,CAAC;IACL,4BAAC;AAAD,CAAC,AAJD,CAA2C,aAAK,GAI/C;AAJY,sDAAqB;AAArB,UAAA,qBAAqB,iGAIjC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../../manager/DataManager");
var CustomPlayModel_1 = require("./CustomPlayModel");
var CustomPlayBeforModel = (function (_super) {
__extends(CustomPlayBeforModel, _super);
function CustomPlayBeforModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 中奖资格
*/
CustomPlayBeforModel.prototype.getFacePrice = function () {
return DataManager_1.DataManager.ins.getOrderInfoData.facePrice != null && DataManager_1.DataManager.ins.getOrderInfoData.facePrice != -1;
};
/**
* 中奖类型
*/
CustomPlayBeforModel.prototype.getOptionType = function () {
return DataManager_1.DataManager.ins.getOrderInfoData.type;
};
return CustomPlayBeforModel;
}(CustomPlayModel_1.CustomPlayModel));
exports.CustomPlayBeforModel = CustomPlayBeforModel;
__reflect(CustomPlayBeforModel.prototype, "\"e:/zqty/egret/libs/tw/model/custom/CustomPlayBeforModel\".CustomPlayBeforModel");
//# sourceMappingURL=CustomPlayBeforModel.js.map
\ No newline at end of file
{"version":3,"file":"CustomPlayBeforModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/custom/CustomPlayBeforModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAA0D;AAC1D,qDAAoD;AAIpD;IAA0C,wCAAe;IAAzD;;IAcA,CAAC;IAbG;;OAEG;IACI,2CAAY,GAAnB;QACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,SAAS,IAAI,IAAI,IAAI,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC;IAClH,CAAC;IAED;;OAEG;IACI,4CAAa,GAApB;QACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC;IACjD,CAAC;IACL,2BAAC;AAAD,CAAC,AAdD,CAA0C,iCAAe,GAcxD;AAdY,oDAAoB;AAApB,UAAA,oBAAoB,+FAchC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var CustomModel_1 = require("./../common/CustomModel");
var GFun_1 = require("../../../tc/util/GFun");
/**
* 自定义活动工具玩法模型
*/
var CustomPlayModel = (function (_super) {
__extends(CustomPlayModel, _super);
function CustomPlayModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(CustomPlayModel.prototype, "countTxt", {
/**
* 次数文案
*/
get: function () {
var str;
switch (DataManager_1.DataManager.ins.ajaxElementData.element.status) {
case 0:
break;
case 1:
str = TwLang_1.TwLang.lang_002;
break;
case 3:
str = TwLang_1.TwLang.lang_004 + TwLang_1.TwLang.lang_003;
break;
case 4:
str = TwLang_1.TwLang.lang_003;
break;
case 5:
str = TwLang_1.TwLang.lang_004 + GFun_1.GFun.replace(TwLang_1.TwLang.lang_005, [DataManager_1.DataManager.ins.ajaxElementData.element.freeLimit]);
break;
case 6:
str = GFun_1.GFun.replace(TwLang_1.TwLang.lang_006, [DataManager_1.DataManager.ins.ajaxElementData.element.needCredits, DataManager_1.DataManager.ins.customCfgData.unitName]);
break;
case 7:
str = GFun_1.GFun.replace(TwLang_1.TwLang.lang_005, [DataManager_1.DataManager.ins.ajaxElementData.element.freeLimit]);
break;
case 18:
str = TwLang_1.TwLang.lang_007;
break;
}
return str;
},
enumerable: true,
configurable: true
});
Object.defineProperty(CustomPlayModel.prototype, "optionList", {
/**
* 奖品列表
*/
get: function () {
return DataManager_1.DataManager.ins.ajaxElementData.options;
},
enumerable: true,
configurable: true
});
Object.defineProperty(CustomPlayModel.prototype, "rule", {
/**
* 活动规则
*/
get: function () {
return DataManager_1.DataManager.ins.ajaxElementData.rule;
},
enumerable: true,
configurable: true
});
return CustomPlayModel;
}(CustomModel_1.CustomModel));
exports.CustomPlayModel = CustomPlayModel;
__reflect(CustomPlayModel.prototype, "\"e:/zqty/egret/libs/tw/model/custom/CustomPlayModel\".CustomPlayModel");
//# sourceMappingURL=CustomPlayModel.js.map
\ No newline at end of file
{"version":3,"file":"CustomPlayModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/custom/CustomPlayModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAA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AAG,GAAG,eAAM,CAAC,QAAQ,CAAC;oBACtB,KAAK,CAAC;YACd,CAAC;YACD,MAAM,CAAC,GAAG,CAAC;QACf,CAAC;;;OAAA;IAKD,sBAAW,uCAAU;QAHrB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,eAAe,CAAC,OAAO,CAAC;QACnD,CAAC;;;OAAA;IAKD,sBAAW,iCAAI;QAHf;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC;QAChD,CAAC;;;OAAA;IACL,sBAAC;AAAD,CAAC,AA/CD,CAAqC,yBAAW,GA+C/C;AA/CY,0CAAe;AAAf,UAAA,eAAe,qFA+C3B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var CustomPlayModel_1 = require("./CustomPlayModel");
var CustomPlayThroughModel = (function (_super) {
__extends(CustomPlayThroughModel, _super);
function CustomPlayThroughModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
return CustomPlayThroughModel;
}(CustomPlayModel_1.CustomPlayModel));
exports.CustomPlayThroughModel = CustomPlayThroughModel;
__reflect(CustomPlayThroughModel.prototype, "\"e:/zqty/egret/libs/tw/model/custom/CustomPlayThroughModel\".CustomPlayThroughModel");
//# sourceMappingURL=CustomPlayThroughModel.js.map
\ No newline at end of file
{"version":3,"file":"CustomPlayThroughModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/custom/CustomPlayThroughModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAoD;AACpD;IAA4C,0CAAe;IAA3D;;IAEA,CAAC;IAAD,6BAAC;AAAD,CAAC,AAFD,CAA4C,iCAAe,GAE1D;AAFY,wDAAsB;AAAtB,UAAA,sBAAsB,mGAElC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var CustomModel_1 = require("./../common/CustomModel");
var DataManager_1 = require("./../../manager/DataManager");
// import { IExposureData } from '../../data/common/IExposureData';
var CustomWinModel = (function (_super) {
__extends(CustomWinModel, _super);
function CustomWinModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(CustomWinModel.prototype, "lottery", {
/**
* 奖品数据
*/
get: function () {
return DataManager_1.DataManager.ins.getCustomOrderStatusData.lottery;
},
enumerable: true,
configurable: true
});
Object.defineProperty(CustomWinModel.prototype, "exposure", {
/**
* 埋点数据
*/
get: function () {
return DataManager_1.DataManager.ins.getCustomOrderStatusData.exposure;
},
enumerable: true,
configurable: true
});
return CustomWinModel;
}(CustomModel_1.CustomModel));
exports.CustomWinModel = CustomWinModel;
__reflect(CustomWinModel.prototype, "\"e:/zqty/egret/libs/tw/model/custom/CustomWinModel\".CustomWinModel");
//# sourceMappingURL=CustomWinModel.js.map
\ No newline at end of file
{"version":3,"file":"CustomWinModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/custom/CustomWinModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAsD;AAEtD,2DAA0D;AAE1D,mEAAmE;AAEnE;IAAoC,kCAAW;IAA/C;;IAcA,CAAC;IAVG,sBAAc,mCAAO;QAHrB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,wBAAwB,CAAC,OAAO,CAAC;QAC5D,CAAC;;;OAAA;IAKD,sBAAc,oCAAQ;QAHtB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,wBAAwB,CAAC,QAAQ,CAAC;QAC7D,CAAC;;;OAAA;IACL,qBAAC;AAAD,CAAC,AAdD,CAAoC,yBAAW,GAc9C;AAdY,wCAAc;AAAd,UAAA,cAAc,mFAc1B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../../manager/DataManager");
// import { GFun } from '../../../tc/util/GFun';
var TwLang_1 = require("../../util/TwLang");
var GameModel_1 = require("../common/GameModel");
var GFun_1 = require("../../../tc/util/GFun");
var GameEndModel = (function (_super) {
__extends(GameEndModel, _super);
function GameEndModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 获取积分文案
*/
GameEndModel.prototype.getScoreTxt = function (totalStr, maxStr) {
if (totalStr === void 0) { totalStr = TwLang_1.TwLang.lang_011; }
if (maxStr === void 0) { maxStr = TwLang_1.TwLang.lang_010; }
var str;
if (DataManager_1.DataManager.ins.gameCfgData.gameInfo.openTotalScoreSwitch) {
str = GFun_1.GFun.replace(totalStr, [DataManager_1.DataManager.ins.getInfoData.totalScore || '0']);
}
else {
str = GFun_1.GFun.replace(maxStr, [DataManager_1.DataManager.ins.getInfoData.maxScore || '0']);
}
return str;
};
return GameEndModel;
}(GameModel_1.GameModel));
exports.GameEndModel = GameEndModel;
__reflect(GameEndModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameEndModel\".GameEndModel");
//# sourceMappingURL=GameEndModel.js.map
\ No newline at end of file
{"version":3,"file":"GameEndModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameEndModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAA0D;AAC1D,gDAAgD;AAChD,4CAA2C;AAC3C,iDAAgD;AAChD,8CAA6C;AAE7C;IAAkC,gCAAS;IAA3C;;IAaA,CAAC;IAZG;;OAEG;IACI,kCAAW,GAAlB,UAAmB,QAAkC,EAAE,MAAgC;QAApE,yBAAA,EAAA,WAAmB,eAAM,CAAC,QAAQ;QAAE,uBAAA,EAAA,SAAiB,eAAM,CAAC,QAAQ;QACnF,IAAI,GAAW,CAAC;QAChB,EAAE,CAAC,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC;YAC5D,GAAG,GAAG,WAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,IAAI,GAAG,CAAC,CAAC,CAAC;QAClF,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,GAAG,GAAG,WAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,IAAI,GAAG,CAAC,CAAC,CAAC;QAC9E,CAAC;QACD,MAAM,CAAC,GAAG,CAAC;IACf,CAAC;IACL,mBAAC;AAAD,CAAC,AAbD,CAAkC,qBAAS,GAa1C;AAbY,oCAAY;AAAZ,UAAA,YAAY,6EAaxB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("./../../manager/DataManager");
// import { IRankData } from '../..';
var GameEndRankModel = (function (_super) {
__extends(GameEndRankModel, _super);
function GameEndRankModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(GameEndRankModel.prototype, "rankList", {
/**
* 排行榜列表
*/
get: function () {
return DataManager_1.DataManager.ins.winRanksData.rankList;
},
enumerable: true,
configurable: true
});
return GameEndRankModel;
}(GameModel_1.GameModel));
exports.GameEndRankModel = GameEndRankModel;
__reflect(GameEndRankModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameEndRankModel\".GameEndRankModel");
//# sourceMappingURL=GameEndRankModel.js.map
\ No newline at end of file
{"version":3,"file":"GameEndRankModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameEndRankModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,2DAA0D;AAE1D,qCAAqC;AACrC;IAAsC,oCAAS;IAA/C;;IAOA,CAAC;IAHG,sBAAW,sCAAQ;QAHnB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC;QACjD,CAAC;;;OAAA;IACL,uBAAC;AAAD,CAAC,AAPD,CAAsC,qBAAS,GAO9C;AAPY,4CAAgB;AAAhB,UAAA,gBAAgB,qFAO5B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("./../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var GFun_1 = require("../../../tc/util/GFun");
var GameLoseModel = (function (_super) {
__extends(GameLoseModel, _super);
function GameLoseModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(GameLoseModel.prototype, "costTxt", {
/**
* 剩余次数文案
*/
get: function () {
return DataManager_1.DataManager.ins.getInfoData.status.text;
},
enumerable: true,
configurable: true
});
/**
* 排名文案
* @param str
*/
GameLoseModel.prototype.getRankTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_018; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.getInfoData.rank]);
};
/**
* 排名百分比
* @param str
*/
GameLoseModel.prototype.getPercentageTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_017; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.getInfoData.percentage]);
};
/**
* 当前得分文案
* @param str
*/
GameLoseModel.prototype.getCurrScoreTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_009; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.gameGetSubmitResultData.score]);
};
/**
* 获取最高积分
* @param maxStr
* @param totalStr
*/
GameLoseModel.prototype.getMaxScoreTxt = function (maxStr, totalStr) {
if (maxStr === void 0) { maxStr = TwLang_1.TwLang.lang_010; }
if (totalStr === void 0) { totalStr = TwLang_1.TwLang.lang_011; }
var str;
if (DataManager_1.DataManager.ins.gameCfgData.gameInfo.openTotalScoreSwitch) {
str = GFun_1.GFun.replace(totalStr, [DataManager_1.DataManager.ins.getInfoData.totalScore]);
}
else {
str = GFun_1.GFun.replace(maxStr, [DataManager_1.DataManager.ins.getInfoData.maxScore]);
}
return str;
};
return GameLoseModel;
}(GameModel_1.GameModel));
exports.GameLoseModel = GameLoseModel;
__reflect(GameLoseModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameLoseModel\".GameLoseModel");
//# sourceMappingURL=GameLoseModel.js.map
\ No newline at end of file
{"version":3,"file":"GameLoseModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameLoseModel.ts"],"names":[],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GAAG,GAAG,WAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;QAC3E,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,GAAG,GAAG,WAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC;QACvE,CAAC;QACD,MAAM,CAAC,GAAG,CAAC;IACf,CAAC;IACL,oBAAC;AAAD,CAAC,AA9CD,CAAmC,qBAAS,GA8C3C;AA9CY,sCAAa;AAAb,UAAA,aAAa,+EA8CzB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var GFun_1 = require("../../../tc/util/GFun");
// import { IGameOptionData } from '../../data/game/getOptions/IGameOptionData';
var GameOptionModel = (function (_super) {
__extends(GameOptionModel, _super);
function GameOptionModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 活动结束时间
*/
GameOptionModel.prototype.getEndTimeTxt = function (endTimeTxt, openPrizeTimeTxt) {
if (endTimeTxt === void 0) { endTimeTxt = TwLang_1.TwLang.lang_012; }
if (openPrizeTimeTxt === void 0) { openPrizeTimeTxt = TwLang_1.TwLang.lang_013; }
var str;
str = GFun_1.GFun.replace(endTimeTxt, [DataManager_1.DataManager.ins.gameCfgData.gameInfo.offDate]);
if (DataManager_1.DataManager.ins.gameCfgData.gameInfo.rankPrize) {
str += "\n" + openPrizeTimeTxt;
}
return str;
};
Object.defineProperty(GameOptionModel.prototype, "optionList", {
/**
* 奖品列表
*/
get: function () {
return DataManager_1.DataManager.ins.getOptionsData.optionList;
},
enumerable: true,
configurable: true
});
return GameOptionModel;
}(GameModel_1.GameModel));
exports.GameOptionModel = GameOptionModel;
__reflect(GameOptionModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameOptionModel\".GameOptionModel");
//# sourceMappingURL=GameOptionModel.js.map
\ No newline at end of file
{"version":3,"file":"GameOptionModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameOptionModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,yDAAwD;AACxD,4CAA2C;AAC3C,8CAA6C;AAE7C,gFAAgF;AAChF;IAAqC,mCAAS;IAA9C;;IAmBA,CAAC;IAlBG;;OAEG;IACI,uCAAa,GAApB,UAAqB,UAAoC,EAAE,gBAA0C;QAAhF,2BAAA,EAAA,aAAqB,eAAM,CAAC,QAAQ;QAAE,iCAAA,EAAA,mBAA2B,eAAM,CAAC,QAAQ;QACjG,IAAI,GAAW,CAAC;QAChB,GAAG,GAAG,WAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;QAC/E,EAAE,CAAC,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;YACjD,GAAG,IAAI,IAAI,GAAG,gBAAgB,CAAC;QACnC,CAAC;QACD,MAAM,CAAC,GAAG,CAAC;IACf,CAAC;IAKD,sBAAW,uCAAU;QAHrB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,cAAc,CAAC,UAAU,CAAC;QACrD,CAAC;;;OAAA;IACL,sBAAC;AAAD,CAAC,AAnBD,CAAqC,qBAAS,GAmB7C;AAnBY,0CAAe;AAAf,UAAA,eAAe,mFAmB3B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var NetManager_1 = require("./../../manager/NetManager");
var DataManager_1 = require("./../../manager/DataManager");
var GameModel_1 = require("../common/GameModel");
var GMath_1 = require("../../../tc/util/GMath");
var GCache_1 = require("../../../tc/util/GCache");
// import { IDynamicData } from '../../data/game/datapash/IDynamicData';
var GamePlayModel = (function (_super) {
__extends(GamePlayModel, _super);
function GamePlayModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
GamePlayModel.prototype.update = function () {
this.dynamics = [];
this.allDynamics = [];
this.datapashCount = 0;
};
/**
* 是否达到阶段提交的条件
*/
GamePlayModel.prototype.checkDatapash = function (score) {
var interfaceLimit = DataManager_1.DataManager.ins.gameCfgData.defenseStrategy.interfaceLimit || 50;
var scoreUnit = DataManager_1.DataManager.ins.gameCfgData.defenseStrategy.scoreUnit;
var nextDatapashScore = score - this.datapashCount * scoreUnit;
if (nextDatapashScore >= scoreUnit && this.datapashCount < interfaceLimit) {
return true;
}
return false;
};
/**
* 阶段提交
* @param net
*/
GamePlayModel.prototype.datapash = function () {
var dynamicStr = JSON.stringify(this.dynamics);
this.allDynamics.push(this.dynamics);
this.datapashData(null, dynamicStr);
this.dynamics = [];
this.datapashCount++;
};
/**
* 添加防作弊数据
* @param dynamic
*/
GamePlayModel.prototype.addDynamic = function (dynamic) {
var args = [];
for (var _i = 1; _i < arguments.length; _i++) {
args[_i - 1] = arguments[_i];
}
this.dynamics.push(dynamic);
};
/**
* 缓存最高分
*/
GamePlayModel.prototype.cacheMaxScore = function (score) {
//将最高纪录缓存
var maxScore = GMath_1.GMath.int(GCache_1.GCache.readCache("maxScore"));
if (!maxScore) {
maxScore = 0;
}
maxScore = Math.max(maxScore, score);
GCache_1.GCache.writeCache('maxScore', maxScore);
};
/**
* 复活操作
* @param callback
* @param collectRuleId 集卡规则id
* @param itemId 复活卡id
*/
GamePlayModel.prototype.doRevive = function (callback, collectRuleId, itemId) {
if (window['requirelogin']) {
window['requirelogin']();
return;
}
NetManager_1.NetManager.ins.doRevive(function (success) {
callback(success);
}, collectRuleId, itemId);
};
/**
* 获得复活次数
* @param callback
* @param collectRuleId 集卡规则id
* @param itemId 复活卡id
*/
GamePlayModel.prototype.getReviveCardNum = function (callback, collectRuleId, itemId) {
if (window['requirelogin']) {
window['requirelogin']();
return;
}
NetManager_1.NetManager.ins.getReviveCardNum(function (success) {
callback(success);
}, collectRuleId, itemId);
};
/**
* 提交游戏成绩
* @param callback
* @param score 得分
* @param checkScore 是否校验得分
* @param customizedType 定制类型 1推币机
*/
GamePlayModel.prototype.submit = function (callback, score, checkScore, customizedType) {
this.allDynamics.push(this.dynamics);
this.gameSubmitData(callback, score, this.allDynamics, checkScore, customizedType);
this.dynamics = [];
};
Object.defineProperty(GamePlayModel.prototype, "gameIsWinning", {
/**
* 游戏结束弹窗
*/
get: function () {
return DataManager_1.DataManager.ins.gameGetSubmitResultData.lottery ? true : false;
},
enumerable: true,
configurable: true
});
return GamePlayModel;
}(GameModel_1.GameModel));
exports.GamePlayModel = GamePlayModel;
__reflect(GamePlayModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GamePlayModel\".GamePlayModel");
//# sourceMappingURL=GamePlayModel.js.map
\ No newline at end of file
{"version":3,"file":"GamePlayModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GamePlayModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAwD;AACxD,2DAA0D;AAC1D,iDAAgD;AAGhD,gDAA+C;AAC/C,kDAAiD;AACjD,wEAAwE;AACxE;IAAmC,iCAAS;IAA5C;;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C;QACrC,IAAI,CAAC,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;QACnF,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;IACvB,CAAC;IAKD,sBAAW,wCAAa;QAHxB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,uBAAuB,CAAC,OAAO,GAAG,IAAI,GAAG,KAAK,CAAC;QAC1E,CAAC;;;OAAA;IACL,oBAAC;AAAD,CAAC,AA1HD,CAAmC,qBAAS,GA0H3C;AA1HY,sCAAa;AAAb,UAAA,aAAa,+EA0HzB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("./../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var GFun_1 = require("../../../tc/util/GFun");
// import { IUserData } from '../../data/game/common/IUserData';
var GameRealTimeRankModel = (function (_super) {
__extends(GameRealTimeRankModel, _super);
function GameRealTimeRankModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 我得排行文案
* @param inRankStr
* @param unitName 单位
* @param outRankStr
*/
GameRealTimeRankModel.prototype.getRankTxt = function (inRankStr, unitName, outRankStr) {
if (inRankStr === void 0) { inRankStr = TwLang_1.TwLang.lang_015; }
if (unitName === void 0) { unitName = TwLang_1.TwLang.lang_016; }
if (outRankStr === void 0) { outRankStr = TwLang_1.TwLang.lang_014; }
var str;
if (DataManager_1.DataManager.ins.realTimeRankData.myUserData && DataManager_1.DataManager.ins.realTimeRankData.myUserData.rank) {
str = GFun_1.GFun.replace(inRankStr, [DataManager_1.DataManager.ins.realTimeRankData.myUserData.maxScore, unitName, DataManager_1.DataManager.ins.realTimeRankData.myUserData.rank]);
}
else {
str = outRankStr;
}
return str;
};
Object.defineProperty(GameRealTimeRankModel.prototype, "userList", {
/**
* 用户列表
*/
get: function () {
return DataManager_1.DataManager.ins.realTimeRankData.userList;
},
enumerable: true,
configurable: true
});
return GameRealTimeRankModel;
}(GameModel_1.GameModel));
exports.GameRealTimeRankModel = GameRealTimeRankModel;
__reflect(GameRealTimeRankModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameRealTimeRankModel\".GameRealTimeRankModel");
//# sourceMappingURL=GameRealTimeRankModel.js.map
\ No newline at end of file
{"version":3,"file":"GameRealTimeRankModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameRealTimeRankModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,2DAA0D;AAC1D,4CAA2C;AAC3C,8CAA6C;AAE7C,gEAAgE;AAChE;IAA2C,yCAAS;IAApD;;IAwBA,CAAC;IAvBG;;;;;OAKG;IACI,0CAAU,GAAjB,UAAkB,SAAmC,EAAE,QAAkC,EAAE,UAAoC;QAA7G,0BAAA,EAAA,YAAoB,eAAM,CAAC,QAAQ;QAAE,yBAAA,EAAA,WAAmB,eAAM,CAAC,QAAQ;QAAE,2BAAA,EAAA,aAAqB,eAAM,CAAC,QAAQ;QAC3H,IAAI,GAAW,CAAC;QAChB,EAAE,CAAC,CAAC,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,UAAU,IAAI,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;YAClG,GAAG,GAAG,WAAI,CAAC,OAAO,CAAC,SAAS,EACxB,CAAC,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;QAC5H,CAAC;QAAC,IAAI,CAAC,CAAC;YACJ,GAAG,GAAG,UAAU,CAAC;QACrB,CAAC;QACD,MAAM,CAAC,GAAG,CAAC;IACf,CAAC;IAKD,sBAAW,2CAAQ;QAHnB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,gBAAgB,CAAC,QAAQ,CAAC;QACrD,CAAC;;;OAAA;IACL,4BAAC;AAAD,CAAC,AAxBD,CAA2C,qBAAS,GAwBnD;AAxBY,sDAAqB;AAArB,UAAA,qBAAqB,+FAwBjC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("../../manager/DataManager");
var GameStartModel = (function (_super) {
__extends(GameStartModel, _super);
function GameStartModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(GameStartModel.prototype, "countTxt", {
/**
* 剩余次数
* 为了按钮字体的美观,不展示开始游戏之外的文案,非常规状态由业务文案代替展示。
*/
get: function () {
var txt;
if (DataManager_1.DataManager.ins.getInfoData.status.code != 0) {
txt = DataManager_1.DataManager.ins.getInfoData.status.btnText;
}
else {
txt = DataManager_1.DataManager.ins.getInfoData.status.text;
}
return txt;
},
enumerable: true,
configurable: true
});
Object.defineProperty(GameStartModel.prototype, "startBtnEnable", {
/**
* 开始游戏按钮状态
*/
get: function () {
var enable;
if (DataManager_1.DataManager.ins.getInfoData.status.btnDisable || DataManager_1.DataManager.ins.getInfoData.status.code == 6) {
enable = false;
}
else {
enable = true;
}
return enable;
},
enumerable: true,
configurable: true
});
return GameStartModel;
}(GameModel_1.GameModel));
exports.GameStartModel = GameStartModel;
__reflect(GameStartModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameStartModel\".GameStartModel");
//# sourceMappingURL=GameStartModel.js.map
\ No newline at end of file
{"version":3,"file":"GameStartModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameStartModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,yDAAwD;AAExD;IAAoC,kCAAS;IAA7C;;IA2BA,CAAC;IAtBG,sBAAW,oCAAQ;QAJnB;;;WAGG;aACH;YACI,IAAI,GAAW,CAAC;YAChB,EAAE,CAAC,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;gBAC/C,GAAG,GAAG,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC;YACrD,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,GAAG,GAAG,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC;YAClD,CAAC;YACD,MAAM,CAAC,GAAG,CAAC;QACf,CAAC;;;OAAA;IAKD,sBAAW,0CAAc;QAHzB;;WAEG;aACH;YACI,IAAI,MAAe,CAAC;YACpB,EAAE,CAAC,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,IAAI,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;gBAChG,MAAM,GAAG,KAAK,CAAC;YACnB,CAAC;YAAC,IAAI,CAAC,CAAC;gBACJ,MAAM,GAAG,IAAI,CAAC;YAClB,CAAC;YACD,MAAM,CAAC,MAAM,CAAC;QAClB,CAAC;;;OAAA;IACL,qBAAC;AAAD,CAAC,AA3BD,CAAoC,qBAAS,GA2B5C;AA3BY,wCAAc;AAAd,UAAA,cAAc,iFA2B1B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("./../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var GFun_1 = require("../../../tc/util/GFun");
// import { GFun } from '../../../tc/util/GFun';
// import { IExposureData } from '../../data/common/IExposureData';
var GameWinModel = (function (_super) {
__extends(GameWinModel, _super);
function GameWinModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
Object.defineProperty(GameWinModel.prototype, "costTxt", {
/**
* 剩余次数文案
*/
get: function () {
return DataManager_1.DataManager.ins.getInfoData.status.text;
},
enumerable: true,
configurable: true
});
/**
* 排名文案
* @param str
*/
GameWinModel.prototype.getRankTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_018; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.getInfoData.rank]);
};
/**
* 排名百分比
* @param str
*/
GameWinModel.prototype.getPercentageTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_017; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.getInfoData.percentage]);
};
/**
* 当前得分文案
* @param str
*/
GameWinModel.prototype.getCurrScoreTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_009; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.gameGetSubmitResultData.score]);
};
/**
* 获取最高积分
* @param maxStr
* @param totalStr
*/
GameWinModel.prototype.getMaxScoreTxt = function (maxStr, totalStr) {
if (maxStr === void 0) { maxStr = TwLang_1.TwLang.lang_010; }
if (totalStr === void 0) { totalStr = TwLang_1.TwLang.lang_011; }
var str;
if (DataManager_1.DataManager.ins.gameCfgData.gameInfo.openTotalScoreSwitch) {
str = GFun_1.GFun.replace(totalStr, [DataManager_1.DataManager.ins.getInfoData.totalScore]);
}
else {
str = GFun_1.GFun.replace(maxStr, [DataManager_1.DataManager.ins.getInfoData.maxScore]);
}
return str;
};
Object.defineProperty(GameWinModel.prototype, "lottery", {
/**
* 奖品数据
*/
get: function () {
return DataManager_1.DataManager.ins.gameGetSubmitResultData.lottery;
},
enumerable: true,
configurable: true
});
Object.defineProperty(GameWinModel.prototype, "exposure", {
/**
* 埋点数据
*/
get: function () {
return DataManager_1.DataManager.ins.gameGetSubmitResultData.exposure;
},
enumerable: true,
configurable: true
});
return GameWinModel;
}(GameModel_1.GameModel));
exports.GameWinModel = GameWinModel;
__reflect(GameWinModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameWinModel\".GameWinModel");
//# sourceMappingURL=GameWinModel.js.map
\ No newline at end of file
{"version":3,"file":"GameWinModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameWinModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,2DAA0D;AAE1D,4CAA2C;AAC3C,8CAA6C;AAE7C,gDAAgD;AAChD,mEAAmE;AAEnE;IAAkC,gCAAS;IAA3C;;IA4DA,CAAC;IAxDG,sBAAW,iCAAO;QAHlB;;WAEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC;QACnD,CAAC;;;OAAA;IAED;;;OAGG;IACI,iCAAU,GAAjB,UAAkB,GAA6B;QAA7B,oBAAA,EAAA,MAAc,eAAM,CAAC,QAAQ;QAC3C,MAAM,CAAC,WAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IACjE,CAAC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AEG;aACH;YACI,MAAM,CAAC,yBAAW,CAAC,GAAG,CAAC,uBAAuB,CAAC,QAAQ,CAAC;QAC5D,CAAC;;;OAAA;IACL,mBAAC;AAAD,CAAC,AA5DD,CAAkC,qBAAS,GA4D1C;AA5DY,oCAAY;AAAZ,UAAA,YAAY,6EA4DxB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var GameModel_1 = require("../common/GameModel");
var DataManager_1 = require("./../../manager/DataManager");
var TwLang_1 = require("../../util/TwLang");
var GFun_1 = require("../../../tc/util/GFun");
var GameWinnerModel = (function (_super) {
__extends(GameWinnerModel, _super);
function GameWinnerModel() {
return _super !== null && _super.apply(this, arguments) || this;
}
/**
* 排名文案
* @param rankStr
*/
GameWinnerModel.prototype.getRankTxt = function (rankStr) {
if (rankStr === void 0) { rankStr = TwLang_1.TwLang.lang_020; }
if (DataManager_1.DataManager.ins.winRanksData.consumer.rank == "?") {
return GFun_1.GFun.replace(TwLang_1.TwLang.lang_019, [DataManager_1.DataManager.ins.winRanksData.consumer.rank || '0']);
}
return GFun_1.GFun.replace(rankStr, [DataManager_1.DataManager.ins.winRanksData.consumer.rank]);
};
/**
* 奖品文案
* @param winningStr
* @param notWinningStr
* @param notJoinStr
*/
GameWinnerModel.prototype.getOptionTxt = function (winningStr, notWinningStr, notJoinStr) {
if (winningStr === void 0) { winningStr = TwLang_1.TwLang.lang_021; }
if (notWinningStr === void 0) { notWinningStr = TwLang_1.TwLang.lang_022; }
if (notJoinStr === void 0) { notJoinStr = TwLang_1.TwLang.lang_024; }
var str;
//是否参与过游戏
if (DataManager_1.DataManager.ins.winRanksData.consumer.join) {
//是否中奖
if (DataManager_1.DataManager.ins.winRanksData.consumer.option) {
str = GFun_1.GFun.replace(winningStr, [DataManager_1.DataManager.ins.winRanksData.consumer.option]);
}
else {
str = notWinningStr;
}
}
else {
str = notJoinStr;
}
return str;
};
/**
* 用户ID文案
* @param str
*/
GameWinnerModel.prototype.getConsumerTxt = function (str) {
if (str === void 0) { str = TwLang_1.TwLang.lang_023; }
return GFun_1.GFun.replace(str, [DataManager_1.DataManager.ins.winRanksData.consumer.cid]);
};
Object.defineProperty(GameWinnerModel.prototype, "rankList", {
/**
* 排行列表
*/
get: function () {
return DataManager_1.DataManager.ins.winRanksData.rankList;
},
enumerable: true,
configurable: true
});
return GameWinnerModel;
}(GameModel_1.GameModel));
exports.GameWinnerModel = GameWinnerModel;
__reflect(GameWinnerModel.prototype, "\"e:/zqty/egret/libs/tw/model/game/GameWinnerModel\".GameWinnerModel");
//# sourceMappingURL=GameWinnerModel.js.map
\ No newline at end of file
{"version":3,"file":"GameWinnerModel.js","sourceRoot":"","sources":["../../../../../libs/tw/model/game/GameWinnerModel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iDAAgD;AAChD,2DAA0D;AAC1D,4CAA2C;AAC3C,8CAA6C;AAE7C;IAAqC,mCAAS;IAA9C;;IAgDA,CAAC;IA/CG;;;OAGG;IACI,oCAAU,GAAjB,UAAkB,OAAiC;QAAjC,wBAAA,EAAA,UAAkB,eAAM,CAAC,QAAQ;QAC/C,EAAE,CAAA,CAAC,yBAAW,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;YACnD,MAAM,CAAC,WAAI,CAAC,OAAO,CAAC,eAAM,CAAC,QAAQ,EAAE,CAAC,yBAAW,CAAC,GAAG,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC;QAC9F,CAAC;QACD,MAAM,CAAC,WAAI,CAAC,OAAO,CAA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AC,QAAQ,CAAC;QACjD,CAAC;;;OAAA;IACL,sBAAC;AAAD,CAAC,AAhDD,CAAqC,qBAAS,GAgD7C;AAhDY,0CAAe;AAAf,UAAA,eAAe,mFAgD3B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../manager/DataManager");
// import { IExposureData } from '..';
var Buried = (function () {
function Buried() {
}
/**
* 初始化
*/
Buried.init = function () {
if (DataManager_1.DataManager.ins.gameCfgData) {
this.appId = DataManager_1.DataManager.ins.gameCfgData.appInfo.appId;
this.consumerId = DataManager_1.DataManager.ins.getInfoData.consumerId;
this.oaId = DataManager_1.DataManager.ins.gameCfgData.gameInfo.oaId;
}
else if (DataManager_1.DataManager.ins.customCfgData) {
this.appId = DataManager_1.DataManager.ins.customCfgData.appId;
this.consumerId = DataManager_1.DataManager.ins.customCfgData.consumerId;
this.oaId = DataManager_1.DataManager.ins.customCfgData.oaId;
}
else if (DataManager_1.DataManager.ins.petIndexData && DataManager_1.DataManager.ins.petIndexData.appId && DataManager_1.DataManager.ins.petIndexData.activityId) {
this.appId = DataManager_1.DataManager.ins.petIndexData.appId;
this.consumerId = DataManager_1.DataManager.ins.petIndexData.consumerId;
this.oaId = DataManager_1.DataManager.ins.petIndexData.activityId;
}
else if (DataManager_1.DataManager.ins.petsIndexData && DataManager_1.DataManager.ins.petsIndexData.appId && DataManager_1.DataManager.ins.petsIndexData.activityId) {
this.appId = DataManager_1.DataManager.ins.petsIndexData.appId;
this.consumerId = DataManager_1.DataManager.ins.petsIndexData.consumerId;
this.oaId = DataManager_1.DataManager.ins.petsIndexData.activityId;
}
else {
this.appId = window["appId"];
this.consumerId = window["consumerId"];
this.oaId = window["oaId"];
}
};
/**
* 创建dpm埋点数据
* @param {string} dpm 点击埋点
* @param {string} dcm 曝光埋点
* @param {string} embedDomain 埋点域名
* @returns {{dpm: string; consumerId: number; domain: string; appId: number}}
*/
Buried.createExposure = function (dpm, dcm, embedDomain) {
if (embedDomain === void 0) { embedDomain = '//embedlog.duiba.com.cn'; }
var exposure = {
dpm: dpm,
dcm: dcm,
consumerId: Buried.consumerId,
appId: Buried.appId,
domain: embedDomain
};
return exposure;
};
/**
* dpm拼接
* @param pageId 页面ID
* @param area 区域
* @param dpm 埋点号
* @returns {string}
*/
Buried.connectDpm = function (pageId, area, dpm) {
return Buried.appId + '.' + pageId + '.' + area + '.' + dpm;
};
/**
* dcm拼接
* @param typeId 类型ID
* @param contentInfo 内容信息
* @param dcm 埋点号
* @returns {string}
*/
Buried.connectDcm = function (typeId, contentInfo, dcm) {
return typeId + '.' + Buried.oaId + '.' + contentInfo + '.' + dcm;
};
/**
* 插件dcm拼接
* @param plugId 插件ID
* @param type 1 活动工具 2 主会场 4 楼层 5 游戏 7 子页面
* @returns {string}
*/
Buried.connectPlugDcm = function (plugId, type) {
return 212 + '.' + plugId + '.' + type + '.' + Buried.oaId;
};
/**
* 活动dcm拼接
* @param type 1 活动工具 2 主会场 4 楼层 5 游戏 7 子页面
* @returns {string}
*/
Buried.connectActivityDcm = function (type) {
return 202 + '.' + Buried.oaId + '.' + type + '.' + Buried.oaId;
};
return Buried;
}());
exports.Buried = Buried;
__reflect(Buried.prototype, "\"e:/zqty/egret/libs/tw/util/Buried\".Buried");
//# sourceMappingURL=Buried.js.map
\ No newline at end of file
{"version":3,"file":"Buried.js","sourceRoot":"","sources":["../../../../libs/tw/util/Buried.ts"],"names":[],"mappings":";;;;;AAAA,wDAAuD;AAEvD,sCAAsC;AAEtC;IAAA;IA2FA,CAAC;IAtFG;;OAEG;IACW,WAAI,GAAlB;QACI,EAAE,CAAC,CAAC,yBAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC;YAC9B,IAAI,CAAC,KAAK,GAAG,yBAAW,CAAC,GAAG,CAAC,WAAW,CAA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G,GAAG,GAAG,GAAG,MAAM,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC;IAC/D,CAAC;IAED;;;;OAIG;IACW,yBAAkB,GAAhC,UAAiC,IAAY;QACzC,MAAM,CAAC,GAAG,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,GAAG,GAAG,GAAG,IAAI,GAAG,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC;IACpE,CAAC;IAEL,aAAC;AAAD,CAAC,AA3FD,IA2FC;AA3FY,wBAAM;AAAN,UAAA,MAAM,2DA2FlB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* 游戏常量
*/
var GameConst = (function () {
function GameConst() {
}
// 二次贝塞尔,用于做曲线运动
GameConst.bezier = function (t, p0, p1, p2) {
// (1-t)^2 P0 + 2(1-t)tP1+ t^2P2
return Math.pow(1 - t, 2) * p0 + 2 * (1 - t) * t * p1 + Math.pow(t, 2) * p2;
};
// 计算距离
GameConst.distance = function (obj1, obj2) {
var distance = Math.sqrt(Math.pow(obj1.x - obj2.x, 2) + Math.pow(obj1.y - obj2.y, 2));
return distance;
};
// 重新随机排序
GameConst.randomsort = function (a, b) {
return Math.random() > .5 ? -1 : 1;
};
/**
* 随机数字区间里的一个数
* @param n1 开始区间
* @param n2 结束区间
*/
GameConst.randomNum = function (n1, n2) {
if (arguments.length === 2) {
return Math.round(n1 + Math.random() * (n2 - n1));
}
else if (arguments.length === 1) {
return Math.round(Math.random() * n1);
}
else {
return Math.round(Math.random() * 255);
}
};
// 是否是IOS系统
GameConst.isIOS = function () {
var u = navigator.userAgent;
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/);
return isiOS;
};
// 是否招行app端内
GameConst.isMPBank = function () {
var ua = navigator.userAgent;
if (ua.indexOf('MPBank') > -1)
return true;
else
return false;
};
// 从url里取字段
GameConst.getQueryString = function (name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
var r = window.location.search.substr(1).match(reg);
if (r != null)
return unescape(r[2]);
return null;
};
/**
* 画圆
* @param x
* @param y
* @param radius
* @param color
* @param alpha
*/
GameConst.drawCircle = function (x, y, radius, color, alpha) {
if (color === void 0) { color = 0x000000; }
if (alpha === void 0) { alpha = 0.7; }
var circle = new egret.Shape();
circle.graphics.beginFill(color, alpha);
circle.graphics.drawArc(x, y, radius, 0, Math.PI * 2, true);
circle.graphics.endFill();
return circle;
};
/**
* 画方
* @param x
* @param y
* @param w
* @param h
* @param color
* @param alpha
*/
GameConst.drawRect = function (x, y, w, h, color, alpha) {
if (color === void 0) { color = 0x000000; }
if (alpha === void 0) { alpha = 0.7; }
var rect = new egret.Shape();
rect.graphics.beginFill(color, alpha);
rect.graphics.drawRect(x, y, w, h);
rect.graphics.endFill();
return rect;
};
/**
* 画方
* @param obj
* @param color
* @param alpha
*/
GameConst.drawRectByObj = function (obj, color, alpha) {
if (color === void 0) { color = 0x000000; }
if (alpha === void 0) { alpha = 0.7; }
var rect = new egret.Shape();
rect.graphics.beginFill(color, alpha);
rect.graphics.drawRect(obj.x, obj.y, obj.width, obj.height);
rect.graphics.endFill();
return rect;
};
/**
* 判断两个物体是否发生碰撞
* @param obj0 检测目标1 {x,y,width,height}
* @param obj1 检测目标2 {x,y,width,height}
* @param gap 增加判断发生碰撞的间隔距离
*/
GameConst.collisionDetection = function (obj0, obj1, gap) {
if (gap === void 0) { gap = 0; }
var l1 = obj0.x - gap;
var t1 = obj0.y - gap;
var r1 = obj0.x + obj0.width + gap;
var b1 = obj0.y + obj0.height + gap;
var l2 = obj1.x;
var t2 = obj1.y;
var r2 = obj1.x + obj1.width;
var b2 = obj1.y + obj1.height;
return !(b1 < t2 || l1 > r2 || t1 > b2 || r1 < l2);
};
/**
* 判断物体是否在区域内
* @param obj1 区域物体 {x,y,width,height}
* @param obj2 被检测物体 {x,y,width,height}
*/
GameConst.contain = function (obj1, obj2) {
var condition = obj2.x >= obj1.x && obj2.y >= obj1.y && obj2.x + obj2.width <= obj1.x + obj1.width && obj2.y + obj2.height <= obj1.y + obj1.height;
return condition;
};
/**
* 设置cookie
* @param name cookie的名称
* @param value cookie的值
* @param day cookie的过期时间
*/
GameConst.setCookie = function (name, value, day) {
if (day !== 0) {
var expires = day * 24 * 60 * 60 * 1000;
var date = new Date(+new Date() + expires);
document.cookie = name + "=" + escape(value) + ";expires=" + date.toUTCString();
}
else {
document.cookie = name + "=" + escape(value);
}
};
;
/**
* 获取对应名称的cookie
* @param name cookie的名称
* @returns {null} 不存在时,返回null
*/
GameConst.getCookie = function (name) {
var arr;
var reg = new RegExp("(^| )" + name + "=([^;]*)(;|$)");
if (arr = document.cookie.match(reg))
return unescape(arr[2]);
else
return null;
};
;
/**
* 删除cookie
* @param name cookie名称
*/
GameConst.removeCookie = function (name) {
this.setCookie(name, 1, -1);
};
// 用于控制全局音乐是否播放和音乐按钮状态
GameConst.isPlayMusic = true;
// 数组类方法
GameConst.arr = {
/**
* 从数组里移除指定元素
* @param e 要移除的元素
* @param arr 目标数组
*/
removeEle: function (e, arr) {
var index = arr.indexOf(e);
if (index >= 0) {
arr.splice(index, 1);
}
},
/**
* 数组去重
* @param arr 数组
*/
unique: function (arr) {
if (!arr.length)
return arr;
var hash = [];
hash.push(arr[0]);
for (var i = 1; i < arr.length; i++) {
var ele = arr[i];
if (hash.indexOf(ele) == -1) {
hash.push(ele);
}
}
return hash;
},
/**
* 数组随机排序
* @param arr 数组
*/
shuffle: function (arr) {
var i = arr.length;
while (i) {
var j = Math.floor(Math.random() * i--); //5555
_a = [arr[i], arr[j]], arr[j] = _a[0], arr[i] = _a[1];
}
return arr;
var _a;
},
/**
* 从数组里取出第一个
* @param arr 目标数组
*/
getOne: function (arr) {
if (arr && arr.length) {
return arr.shift();
}
return false;
},
/**
* 从两个数组中取出不同元素
* @param arr1
* @param arr2
*/
getDifference: function (arr1, arr2) {
return arr1.concat(arr2).filter(function (v, i, arr) {
return arr.indexOf(v) === arr.lastIndexOf(v);
});
},
/**
* 从两个数组中取出相同元素
* @param arr1
* @param arr2
*/
getEqual: function (arr1, arr2) {
var newArr = [];
for (var i = 0; i < arr2.length; i++) {
for (var j = 0; j < arr1.length; j++) {
if (arr1[j] === arr2[i]) {
newArr.push(arr1[j]);
}
}
}
return newArr;
},
/**
* 从数组里随机取出一个元素
* @param e 目标数组
* @param n
*/
getRandomOne: function (e, n) {
return e && "number" == typeof e.length && e.length ? e[Math.floor(Math.random() * e.length)] : ("number" != typeof n && (n = e || 1, e = 0), e + Math.random() * (n - e));
}
};
// 时间类方法
GameConst.time = {
/**
* 获取今天零点时间戳
*/
getTodayMark: function () {
return new Date(new Date().setHours(0, 0, 0, 0)).getTime();
},
/**
* 倒计时(默认开始时间为当前时间)
* @param endTime 结束时间 时间戳
* @returns 例:剩余时间 {d:1, h:16, m:45, s:41} 代表:1天 16小时 45 分钟41 秒
*/
getEndTime: function (endTime) {
var startDate = new Date(); //开始时间,当前时间
var endDate = new Date(endTime); //结束时间,需传入时间参数
var t = endDate.getTime() - startDate.getTime(); //时间差的毫秒数
var d = 0, h = 0, m = 0, s = 0;
if (t >= 0) {
d = Math.floor(t / 1000 / 3600 / 24);
h = Math.floor(t / 1000 / 60 / 60 % 24);
m = Math.floor(t / 1000 / 60 % 60);
s = Math.floor(t / 1000 % 60);
}
return { d: d, h: h, m: m, s: s };
}
};
return GameConst;
}());
exports.default = GameConst;
__reflect(GameConst.prototype, "\"e:/zqty/egret/src/GameConst\".GameConst");
exports.wait = function (time) {
if (time === void 0) { time = 500; }
return new Promise(function (resolve) {
setTimeout(function () {
resolve();
}, time);
});
};
//# sourceMappingURL=GameConst.js.map
\ No newline at end of file
{"version":3,"file":"GameConst.js","sourceRoot":"","sources":["../../src/GameConst.ts"],"names":[],"mappings":";;;;;AAGA;;GAEG;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AC,KAAK,CAAC,CAAC,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;gBACnC,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC;YAC/B,CAAC;YACD,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;QACnC,CAAC;KAED,CAAA;IAkLF,gBAAC;CAAA,AAtTD,IAsTC;kBAtToB,SAAS;AAAT,UAAA,SAAS,wDAsT7B,CAAA;AAIY,QAAA,IAAI,GAAG,UAAC,IAAkB;IAAlB,qBAAA,EAAA,UAAkB;IACtC,MAAM,CAAC,IAAI,OAAO,CAAC,UAAC,OAAO;QAC1B,UAAU,CAAC;YACV,OAAO,EAAE,CAAA;QACV,CAAC,EAAE,IAAI,CAAC,CAAC;IACV,CAAC,CAAC,CAAA;AACH,CAAC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var Alert = (function (_super) {
__extends(Alert, _super);
function Alert() {
return _super !== null && _super.apply(this, arguments) || this;
}
Alert.prototype.start = function (data) {
var message = data.message, btnTxt = data.btnTxt;
this.data.message = message;
this.data.btnTxt = btnTxt || '确定';
};
Object.defineProperty(Alert.prototype, "skinKey", {
get: function () { return 'Alert'; },
enumerable: true,
configurable: true
});
Object.defineProperty(Alert.prototype, "closeBtns", {
get: function () {
return [this['closeBtn']];
},
enumerable: true,
configurable: true
});
return Alert;
}(Panel_1.default));
exports.default = Alert;
__reflect(Alert.prototype, "\"e:/zqty/egret/src/alert/Alert\".Alert");
//# sourceMappingURL=Alert.js.map
\ No newline at end of file
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/alert/Alert.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAmC;AACnC;IAAmC,yBAAK;IAAxC;;IAYA,CAAC;IAXG,qBAAK,GAAL,UAAM,IAAI;QACE,IAAA,sBAAO,EAAE,oBAAM,CAAU;QACjC,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAC5B,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC;IACtC,CAAC;IAED,sBAAc,0BAAO;aAArB,cAA0B,MAAM,CAAC,OAAO,CAAA,CAAC,CAAC;;;OAAA;IAE1C,sBAAc,4BAAS;aAAvB;YACI,MAAM,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAA;QAC7B,CAAC;;;OAAA;IACL,YAAC;AAAD,CAAC,AAZD,CAAmC,eAAK,GAYvC;;AAZoB,UAAA,KAAK,sDAYzB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var utils_1 = require("../utils");
var ComponentBase = (function (_super) {
__extends(ComponentBase, _super);
function ComponentBase(data) {
var _this = _super.call(this) || this;
_this.data = data ? data : {};
_this.skinName = utils_1.getSkinPath(_this.skinKey);
if (_this.skin) {
_this.onSkinComplete();
}
else {
_this.addEventListener(egret.Event.COMPLETE, _this.onSkinComplete, _this);
}
return _this;
}
// 添加点击
ComponentBase.prototype.onTap = function (target, func) {
target.addEventListener(egret.TouchEvent.TOUCH_TAP, func, this);
};
ComponentBase.prototype.onTapBegin = function (target, func) {
target.addEventListener(egret.TouchEvent.TOUCH_BEGIN, func, this);
};
ComponentBase.prototype.onTapEnd = function (target, func) {
target.addEventListener(egret.TouchEvent.TOUCH_END, func, this);
};
// 移除点击事件
ComponentBase.prototype.clearTap = function (target, func) {
target.removeEventListener(egret.TouchEvent.TOUCH_TAP, func, this);
};
ComponentBase.prototype.clearTapBegin = function (target, func) {
target.removeEventListener(egret.TouchEvent.TOUCH_BEGIN, func, this);
};
ComponentBase.prototype.clearTapEnd = function (target, func) {
target.removeEventListener(egret.TouchEvent.TOUCH_END, func, this);
};
// 打印
ComponentBase.prototype.log = function (msg) {
console.log(msg);
};
ComponentBase.prototype.initEvents = function () { };
ComponentBase.prototype.removeEvents = function () { };
ComponentBase.prototype.start = function (data) {
};
Object.defineProperty(ComponentBase.prototype, "skinKey", {
get: function () { return null; },
enumerable: true,
configurable: true
});
ComponentBase.prototype.onSkinComplete = function () {
this.initEvents();
};
ComponentBase.prototype.destroy = function () {
this.removeEvents();
};
return ComponentBase;
}(eui.Component));
exports.default = ComponentBase;
__reflect(ComponentBase.prototype, "\"e:/zqty/egret/src/components/ComponentBase\".ComponentBase");
//# sourceMappingURL=ComponentBase.js.map
\ No newline at end of file
{"version":3,"file":"ComponentBase.js","sourceRoot":"","sources":["../../../src/components/ComponentBase.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kCAAuC;AAEvC;IAA2C,iCAAa;IAEpD,uBAAY,IAAK;QAAjB,YACI,iBAAO,SASV;QARG,KAAI,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QAC7B,KAAI,CAAC,QAAQ,GAAG,mBAAW,CAAC,KAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,EAAE,CAAC,CAAC,KAAI,CAAC,IAAI,CAAC,CAAC,CAAC;YACZ,KAAI,CAAC,cAAc,EAAE,CAAC;QAC1B,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AAU,GAApB,cAAyB,CAAC;IAEhB,oCAAY,GAAtB,cAA2B,CAAC;IAE5B,6BAAK,GAAL,UAAM,IAAK;IAEX,CAAC;IAED,sBAAc,kCAAO;aAArB,cAA0B,MAAM,CAAC,IAAI,CAAA,CAAC,CAAC;;;OAAA;IAE7B,sCAAc,GAAxB;QACI,IAAI,CAAC,UAAU,EAAE,CAAC;IACtB,CAAC;IAED,+BAAO,GAAP;QACI,IAAI,CAAC,YAAY,EAAE,CAAC;IACxB,CAAC;IAEL,oBAAC;AAAD,CAAC,AA7DD,CAA2C,GAAG,CAAC,SAAS,GA6DvD;;AA7DoB,UAAA,aAAa,2EA6DjC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var PlayScene_1 = require("../playScene/PlayScene");
var CountDownPanel = (function (_super) {
__extends(CountDownPanel, _super);
function CountDownPanel() {
var _this = _super.call(this) || this;
_this.initUI();
return _this;
}
Object.defineProperty(CountDownPanel.prototype, "skinKey", {
get: function () { return 'CountDown'; },
enumerable: true,
configurable: true
});
CountDownPanel.prototype.initUI = function () {
var _this = this;
egret.Tween.get(this.countnum)
.set({ source: "three_png" })
.call(function () {
egret.Tween.get(_this.countnum)
.wait(1000)
.set({ source: "two_png" })
.call(function () {
egret.Tween.get(_this.countnum)
.wait(1000)
.set({ source: "one_png" })
.wait(1000)
.call(function () {
_this.hidePanel();
PlayScene_1.default.instance.getEnterFrame();
var now = Date.now();
PlayScene_1.default.instance.createtime = now;
});
});
});
egret.Tween.get(this.tips)
.set({ text: "Tips:按照箭头方向,操控汽车,变换车道哦~" })
.call(function () {
egret.Tween.get(_this.tips)
.wait(1000)
.set({ text: "Tips:注意躲避车辆和路障,碰到3次障碍物,游戏结束。" })
.call(function () {
egret.Tween.get(_this.tips)
.wait(1000)
.set({ text: "Tips:记得收集路上的月饼,提高自己的排名哦~" });
});
});
};
return CountDownPanel;
}(Panel_1.default));
exports.default = CountDownPanel;
__reflect(CountDownPanel.prototype, "\"e:/zqty/egret/src/countDownPanel/CountDownPanel\".CountDownPanel");
//# sourceMappingURL=CountDownPanel.js.map
\ No newline at end of file
{"version":3,"file":"CountDownPanel.js","sourceRoot":"","sources":["../../../src/countDownPanel/CountDownPanel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAmC;AACnC,oDAA+C;AAE/C;IAA4C,kCAAK;IAM7C;QAAA,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,MAAM,EAAE,CAAA;;IACjB,CAAC;IARD,sBAAc,mCAAO;aAArB,cAA0B,MAAM,CAAC,WAAW,CAAA,CAAC,CAAC;;;OAAA;IAS9C,+BAAM,GAAN;QAAA,iBAmCC;QAlCG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;aAC7B,GAAG,CAAC,EAAC,MAAM,EAAC,WAAW,EAAC,CAAC;aACzB,IAAI,CAAC;YACF,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAI,CAAC,QAAQ,CAAC;iBAC7B,IAAI,CAAC,IAAI,CAAC;iBACV,GAAG,CAAC,EAAC,MAAM,EAAC,SAAS,EAAC,CAAC;iBACvB,IAAI,CAAC;gBACF,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAI,CAAC,QAAQ,CAAC;qBAC7B,IAAI,CAAC,IAAI,CAAC;qBACV,GAAG,CAAC,EAAC,MAAM,EAAC,SAAS,EAAC,CAAC;qBACvB,IAAI,CAAC,IAAI,CAAC;qBACV,IAAI,CAAC;oBACF,KAAI,CAAC,SAAS,EAAE,CAAC;oBACjB,mBAAS,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;oBACnC,IAAI,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;oBACrB,mBAAS,CAAC,QAAQ,CAAC,UAAU,GAAG,GAAG,CAAC;gBACxC,CAAC,CAAC,CAAA;YACN,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;QACF,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;aACzB,GAAG,CAAC,EAAC,IAAI,EAAC,yBAAyB,EAAC,CAAC;aACrC,IAAI,CAAC;YACF,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAI,CAAC,IAAI,CAAC;iBACzB,IAAI,CAAC,IAAI,CAAC;iBACV,GAAG,CAAC,EAAC,IAAI,EAAC,8BAA8B,EAAC,CAAC;iBAC1C,IAAI,CAAC;gBACF,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,KAAI,CAAC,IAAI,CAAC;qBACzB,IAAI,CAAC,IAAI,CAAC;qBACV,GAAG,CAAC,EAAC,IAAI,EAAC,0BAA0B,EAAC,CAAC,CAAA;YAE3C,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IAGN,CAAC;IACL,qBAAC;AAAD,CAAC,AA9CD,CAA4C,eAAK,GA8ChD;;AA9CoB,UAAA,cAAc,iFA8ClC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Panel_1 = require("../views/Panel");
var NetConst_1 = require("../NetConst");
var Waiting_1 = require("../waiting/Waiting");
var panelCtrl_1 = require("../ctrls/panelCtrl");
var sceneTypes_1 = require("../types/sceneTypes");
var DataManager_1 = require("../../libs/tw/manager/DataManager");
var toastCtrl_1 = require("../ctrls/toastCtrl");
var sceneCtrl_1 = require("../ctrls/sceneCtrl");
var getOptionImgSize_1 = require("../prize/data/getOptionImgSize");
var ImgSizeType_1 = require("../prize/data/ImgSizeType");
var LotteryType_1 = require("../../libs/tw/enum/LotteryType");
var NetManager_1 = require("../../libs/tw/manager/NetManager");
var GameConst_1 = require("../GameConst");
var EndPanel = (function (_super) {
__extends(EndPanel, _super);
function EndPanel(data) {
var _this = _super.call(this) || this;
_this.cakenum = 0;
_this.blocknum = 0;
_this.distancenum = 0;
_this.initUI(data);
return _this;
}
Object.defineProperty(EndPanel.prototype, "skinKey", {
get: function () { return 'End'; },
enumerable: true,
configurable: true
});
Object.defineProperty(EndPanel.prototype, "exposure", {
get: function () {
return;
},
enumerable: true,
configurable: true
});
EndPanel.prototype.initUI = function (data) {
var _this = this;
this.endnoprizeGroup.visible = false;
this.endprizeGroup.visible = false;
this.closeBtn.visible = false;
this.cakenum = data.cakenum;
this.blocknum = data.blocknum;
this.distancenum = data.distance;
NetConst_1.default.getOrderStatus(function (ss) {
Waiting_1.default.instance.hide();
if (!ss) {
_this.endnoprizeGroup.visible = true;
_this.NoPrizePop();
return;
}
if (DataManager_1.DataManager.ins.getData("getOrderStatus") && DataManager_1.DataManager.ins.getData("getOrderStatus").data && DataManager_1.DataManager.ins.getData("getOrderStatus").data.lottery && DataManager_1.DataManager.ins.getData("getOrderStatus").data.lottery.type !== "thanks") {
_this.endprizeGroup.visible = true;
_this.PrizePop();
}
else {
_this.endnoprizeGroup.visible = true;
_this.NoPrizePop();
}
}, DataManager_1.DataManager.ins.getData("doJoin").data, function () {
return DataManager_1.DataManager.ins.getData("getOrderStatus").code == "C000000001";
});
};
EndPanel.prototype.NoPrizePop = function () {
this.juliLab.text = this.distancenum + "km";
this.cakeLab.text = "共收集 :" + this.cakenum + "个";
this.blockLab.text = "碰到障碍 :" + this.blocknum + "个";
this.closeBtn.visible = true;
this.closeBtn.y = 169;
// this.onTap(this.getRankBtn,this.onTap_Rank);
// this.onTap(this.closeBtn,this.onTap_closeBtn);
};
EndPanel.prototype.onTap_Rank = function () {
Waiting_1.default.instance.show();
NetConst_1.default.recentRankList(function (s) {
if (!s) {
// 容错
toastCtrl_1.default.instance.show("活动太火爆了,请稍后再来");
return;
}
console.log(s);
panelCtrl_1.default.instance.show(sceneTypes_1.ModuleTypes.RANK_PANEL);
}, window['rankId'], DataManager_1.DataManager.ins.customCfgData.actId);
};
Object.defineProperty(EndPanel.prototype, "lottery", {
get: function () { return DataManager_1.DataManager.ins.getData("getOrderStatus").data.lottery; },
enumerable: true,
configurable: true
});
Object.defineProperty(EndPanel.prototype, "picWidth", {
get: function () { return 250; },
enumerable: true,
configurable: true
});
;
Object.defineProperty(EndPanel.prototype, "picBigWidth", {
get: function () { return 500; },
enumerable: true,
configurable: true
});
;
Object.defineProperty(EndPanel.prototype, "bigPicRatio", {
get: function () { return 640 / 300; },
enumerable: true,
configurable: true
});
EndPanel.prototype.PrizePop = function () {
this.julilab.text = this.distancenum + "km";
this.cakelab.text = "共收集 :" + this.cakenum + "个";
this.blocklab.text = "碰到障碍 :" + this.blocknum + "个";
this.closeBtn.visible = true;
this.closeBtn.y = 39;
//奖品显示
if (this.lottery) {
var sizeType = getOptionImgSize_1.default(this.lottery);
if (ImgSizeType_1.default.BIG === sizeType) {
this.prizeimg.width = this.picBigWidth;
this.prizeimg.height = this.picBigWidth / this.bigPicRatio;
}
else {
this.prizeimg.width = this.prizeimg.height = this.picWidth;
}
this.prizeimg.source = this.lottery.imgUrl;
this.prizeimg.anchorOffsetX = 250 / 2;
this.prizeimg.anchorOffsetY = 250 / 2;
}
// this.onTap(this.closeBtn,this.onTap_closeBtn);
// this.onTap(this.restartBtn,this.onTap_closeBtn);
// this.onTap(this.getprizeBtn,this.onTap_getPrizeBtn);
};
EndPanel.prototype.initEvents = function () {
_super.prototype.initEvents.call(this);
this.onTap(this.getRankBtn, this.onTap_Rank);
this.onTap(this.closeBtn, this.onTap_closeBtn);
this.onTap(this.restartBtn, this.onTap_closeBtn);
this.onTap(this.getprizeBtn, this.onTap_getPrizeBtn);
};
EndPanel.prototype.onTap_closeBtn = function (e) {
var _this = this;
Waiting_1.default.instance.show();
NetConst_1.default.ajaxElement(function (s) {
Waiting_1.default.instance.hide();
_this.hidePanel();
sceneCtrl_1.default.instance.change(sceneTypes_1.ModuleTypes.START_SCENE);
});
};
EndPanel.prototype.onTap_getPrizeBtn = function () {
if (this.lottery.type == LotteryType_1.LotteryType.COUPON || this.lottery.type == LotteryType_1.LotteryType.LUCKY) {
var isIOS = GameConst_1.default.isIOS();
if (isIOS) {
window.location.href = this.lottery.iosDownloadUrl;
}
else {
window.location.href = this.lottery.androidDownloadUrl;
}
if (this.lottery.type == "lucky") {
NetManager_1.NetManager.ins.spmclick(this.exposure);
}
}
else {
window.location.href = this.lottery.link;
}
};
EndPanel.prototype.removeEvents = function () {
_super.prototype.removeEvents.call(this);
this.clearTap(this.getRankBtn, this.onTap_Rank);
this.clearTap(this.closeBtn, this.onTap_closeBtn);
this.clearTap(this.restartBtn, this.onTap_closeBtn);
this.clearTap(this.getprizeBtn, this.onTap_getPrizeBtn);
};
return EndPanel;
}(Panel_1.default));
exports.default = EndPanel;
__reflect(EndPanel.prototype, "\"e:/zqty/egret/src/endPanel/EndPanel\".EndPanel");
//# sourceMappingURL=EndPanel.js.map
\ No newline at end of file
{"version":3,"file":"EndPanel.js","sourceRoot":"","sources":["../../../src/endPanel/EndPanel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAmC;AACnC,wCAAmC;AACnC,8CAAyC;AACzC,gDAA2C;AAC3C,kDAAkD;AAClD,iEAAgE;AAChE,gDAA2C;AAC3C,gDAA2C;AAC3C,mEAA8D;AAC9D,yDAAoD;AACpD,8DAA6D;AAC7D,+DAA8D;AAG9D,0CAAqC;AAErC;IAAsC,4BAAK;IAyBvC,kBAAY,IAAI;QAAhB,YACI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UAAU,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QACnD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;IAC3D,CAAC;IAEL,eAAC;AAAD,CAAC,AA9JD,CAAsC,eAAK,GA8J1C;;AA9JoB,UAAA,QAAQ,+DA8J5B,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var DataManager_1 = require("./../../libs/tw/manager/DataManager");
var Panel_1 = require("../views/Panel");
var Waiting_1 = require("../waiting/Waiting");
var NetConst_1 = require("../NetConst");
var sceneCtrl_1 = require("../ctrls/sceneCtrl");
var sceneTypes_1 = require("../types/sceneTypes");
var GetCreditsPanel = (function (_super) {
__extends(GetCreditsPanel, _super);
function GetCreditsPanel() {
var _this = _super.call(this) || this;
_this.btnTip.text = "\u53BB\u8D5A" + (DataManager_1.DataManager.ins.customCfgData.unitName || '积分');
_this.tips.text = (DataManager_1.DataManager.ins.customCfgData.unitName || '积分') + "\u4E0D\u591F\u5566";
_this.littletip.text = "\u4ECA\u5929" + (DataManager_1.DataManager.ins.customCfgData.unitName || '积分') + "\u4E0D\u591F\u5566\uFF0C\u5FEB\u53BB\u8D5A" + (DataManager_1.DataManager.ins.customCfgData.unitName || '积分') + "\u5427";
_this.btnTip.touchEnabled = false;
return _this;
}
Object.defineProperty(GetCreditsPanel.prototype, "skinKey", {
get: function () { return "GetCredits"; },
enumerable: true,
configurable: true
});
GetCreditsPanel.prototype.initEvents = function () {
_super.prototype.initEvents.call(this);
//this.onTap(this.earnBtn, this.onTap_earnBtn);
this.onTap(this.getcreditsBtn, this.onTap_earnBtn);
this.onTap(this.closeBtn, this.onTap_closeBtn);
};
GetCreditsPanel.prototype.onTap_earnBtn = function () {
// 赚积分链接
if (window["CFG"] && window["CFG"].getCreditsLink && window["CFG"].getCreditsLink !== "") {
window.location.href = window["CFG"].getCreditsLink;
}
else {
this.hidePanel();
}
};
GetCreditsPanel.prototype.onTap_closeBtn = function (e) {
var _this = this;
Waiting_1.default.instance.show();
NetConst_1.default.ajaxElement(function (s) {
Waiting_1.default.instance.hide();
_this.hidePanel();
sceneCtrl_1.default.instance.change(sceneTypes_1.ModuleTypes.START_SCENE);
});
};
GetCreditsPanel.prototype.removeEvents = function () {
_super.prototype.removeEvents.call(this);
this.clearTap(this.getcreditsBtn, this.onTap_earnBtn);
this.clearTap(this.closeBtn, this.onTap_closeBtn);
};
return GetCreditsPanel;
}(Panel_1.default));
exports.default = GetCreditsPanel;
__reflect(GetCreditsPanel.prototype, "\"e:/zqty/egret/src/getCredits/GetCreditsPanel\".GetCreditsPanel");
//# sourceMappingURL=GetCreditsPanel.js.map
\ No newline at end of file
{"version":3,"file":"GetCreditsPanel.js","sourceRoot":"","sources":["../../../src/getCredits/GetCreditsPanel.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAAkE;AAClE,wCAAmC;AACnC,8CAAyC;AACzC,wCAAmC;AACnC,gDAA2C;AAC3C,kDAAkD;AAElD;IAA6C,mCAAK;IAa9C;QAAA,YACI,iBAAO,SAKV;QAJG,KAAI,CAAC,MAAM,CAAC,IAAI,GAAG,kBAAK,yBAAW,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAE,CAAC;QACzE,KAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAG,yBAAW,CAAC,GAAG,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,wBAAK,CAAC;QACxE,KAAI,CAAC,SAAS,CAAC,IAAI,GAAG,kBAAK,yBAAW,CAAC,GAAG,CAAC,aAAa,CAA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,YAAY,WAAE,CAAC;QACrB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;QACtD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACrD,CAAC;IAEL,sBAAC;AAAD,CAAC,AApDD,CAA6C,eAAK,GAoDjD;;AApDoB,UAAA,eAAe,+EAoDnC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
var ImgSizeType = (function () {
function ImgSizeType() {
}
ImgSizeType.BIG = 'big';
ImgSizeType.SMALL = 'small';
return ImgSizeType;
}());
__reflect(ImgSizeType.prototype, "ImgSizeType");
exports.default = ImgSizeType;
//# sourceMappingURL=ImgSizeType.js.map
\ No newline at end of file
{"version":3,"file":"ImgSizeType.js","sourceRoot":"","sources":["../../../../src/prize/data/ImgSizeType.ts"],"names":[],"mappings":";;;;;AAAA;IAAA;IAGA,CAAC;IAFU,eAAG,GAAG,KAAK,CAAC;IACZ,iBAAK,GAAG,OAAO,CAAC;IAC3B,kBAAC;CAAA,AAHD,IAGC;AAHK,UAAA,WAAW,0BAGhB,CAAA;AACD,kBAAe,WAAW,CAAA"}
\ No newline at end of file
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ImgSizeType_1 = require("./ImgSizeType");
var LotteryType_1 = require("../../../libs/tw/enum/LotteryType");
// const getOptionImgSize = (lottery: LotteryData) => {
// return ImgSizeType.BIG
// }
var getOptionImgSize = function (lottery) {
var size;
if (lottery.type == LotteryType_1.LotteryType.VIRTUAL ||
lottery.type == LotteryType_1.LotteryType.OBJECT ||
lottery.type == LotteryType_1.LotteryType.ALIPAY ||
lottery.type == LotteryType_1.LotteryType.QB ||
lottery.type == LotteryType_1.LotteryType.PHONEBILL) {
size = ImgSizeType_1.default.SMALL;
}
else {
size = ImgSizeType_1.default.BIG;
}
return size;
};
exports.default = getOptionImgSize;
//# sourceMappingURL=getOptionImgSize.js.map
\ No newline at end of file
{"version":3,"file":"getOptionImgSize.js","sourceRoot":"","sources":["../../../../src/prize/data/getOptionImgSize.ts"],"names":[],"mappings":";;AACA,6CAAwC;AACxC,iEAA+D;AAE/D,uDAAuD;AACvD,6BAA6B;AAC7B,IAAI;AACJ,IAAM,gBAAgB,GAAG,UAAC,OAAoB;IAC1C,IAAI,IAAY,CAAC;IACjB,EAAE,CAAC,CACC,OAAO,CAAC,IAAI,IAAI,yBAAW,CAAC,OAAO;QACnC,OAAO,CAAC,IAAI,IAAI,yBAAW,CAAC,MAAM;QAClC,OAAO,CAAC,IAAI,IAAI,yBAAW,CAAC,MAAM;QAClC,OAAO,CAAC,IAAI,IAAI,yBAAW,CAAC,EAAE;QAC9B,OAAO,CAAC,IAAI,IAAI,yBAAW,CAAC,SAAS,CAAC,CAAC,CAAC;QACxC,IAAI,GAAG,qBAAW,CAAC,KAAK,CAAA;IAC5B,CAAC;IAAC,IAAI,CAAC,CAAC;QACJ,IAAI,GAAG,qBAAW,CAAC,GAAG,CAAC;IAC3B,CAAC;IACD,MAAM,CAAC,IAAI,CAAC;AAChB,CAAC,CAAA;AACD,kBAAe,gBAAgB,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Convert the text in html format to the object that can be assigned to the egret.TextField#textFlow property
* @see http://edn.egret.com/cn/docs/page/146 Text mixed in a variety of style
* @version Egret 2.4
* @platform Web,Native
* @includeExample egret/text/HtmlTextParser.ts
* @language en_US
*/
/**
* 将html格式文本转换为可赋值给 egret.TextField#textFlow 属性的对象
* @see http://edn.egret.com/cn/docs/page/146 多种样式文本混合
* @version Egret 2.4
* @platform Web,Native
* @includeExample egret/text/HtmlTextParser.ts
* @language zh_CN
*/
var HtmlTextParser = (function () {
/**
* @version Egret 2.4
* @platform Web,Native
*/
function HtmlTextParser() {
this.replaceArr = [];
this.preReplaceArr = [];
/**
* @private
*/
this.resutlArr = [];
this.initReplaceArr();
this.initPreReplaceArr();
}
HtmlTextParser.prototype.initReplaceArr = function () {
var arr = this.replaceArr = [];
arr.push([/&lt;/g, "<"]);
arr.push([/&gt;/g, ">"]);
arr.push([/&amp;/g, "&"]);
arr.push([/&quot;/g, "\""]);
arr.push([/&apos;/g, "\'"]);
};
HtmlTextParser.prototype.initPreReplaceArr = function () {
var arr = this.preReplaceArr = [];
arr.push([/\\\"/g, "\""]);
arr.push([/<br>/g, "\n"]);
};
/**
* @private
*
* @param value
* @returns
*/
HtmlTextParser.prototype.replaceSpecial = function (value) {
// tslint:disable-next-line:prefer-for-of
for (var i = 0; i < this.replaceArr.length; i++) {
var k = this.replaceArr[i][0];
var v = this.replaceArr[i][1];
value = value.replace(k, v);
}
return value;
};
/**
* Convert the text in html format to the object that can be assigned to the egret.TextField#textFlow property
* @param htmltext {string} Text in html
* @returns {Array<egret.ITextElement>} 可赋值给 egret.TextField#textFlow Object that can be assigned to the egret.TextField#textFlow property
* @version Egret 2.4
* @platform Web,Native
* @language en_US
*/
/**
* 将html格式文本转换为可赋值给 egret.TextField#textFlow 属性的对象
* @param htmltext {string} html文本
* @returns {Array<egret.ITextElement>} 可赋值给 egret.TextField#textFlow 属性的对象
* @version Egret 2.4
* @platform Web,Native
* @language zh_CN
*/
HtmlTextParser.prototype.parse = function (htmltext) {
this.preReplaceArr.forEach(function (p) {
htmltext = htmltext.replace(p[0], p[1]);
});
this.stackArray = [];
this.resutlArr = [];
var firstIdx = 0; //文本段开始位置
var length = htmltext.length;
while (firstIdx < length) {
var starIdx = htmltext.indexOf("<", firstIdx);
if (starIdx < 0) {
this.addToResultArr(htmltext.substring(firstIdx));
firstIdx = length;
}
else {
this.addToResultArr(htmltext.substring(firstIdx, starIdx));
var fontEnd = htmltext.indexOf(">", starIdx);
if (fontEnd == -1) {
egret.$error(1038);
fontEnd = starIdx;
}
else if (htmltext.charAt(starIdx + 1) == "\/") {
this.stackArray.pop();
}
else {
this.addToArray(htmltext.substring(starIdx + 1, fontEnd));
}
firstIdx = fontEnd + 1;
}
}
return this.resutlArr;
};
HtmlTextParser.prototype.parser = function (htmltext) {
return this.parse(htmltext);
};
/**
* @private
*
* @param value
*/
HtmlTextParser.prototype.addToResultArr = function (value) {
if (value == "") {
return;
}
value = this.replaceSpecial(value);
if (this.stackArray.length > 0) {
this.resutlArr.push({ text: value, style: this.stackArray[this.stackArray.length - 1] });
}
else {
this.resutlArr.push({ text: value });
}
};
//将字符数据转成Json数据
HtmlTextParser.prototype.changeStringToObject = function (str) {
str = this.replaceSpecial(str.trim());
var info = {};
var header = [];
if (str.charAt(0) == "i" || str.charAt(0) == "b" || str.charAt(0) == "u") {
this.addProperty(info, str, "true");
}
else if (header = str.match(/^(font|a)\s/)) {
str = str.substring(header[0].length).trim();
var next = 0;
var titles = void 0;
// tslint:disable-next-line:no-conditional-assignment
while (titles = str.match(this.getHeadReg())) {
var title = titles[0];
var value = "";
str = str.substring(title.length).trim();
if (str.charAt(0) == "\"") {
next = str.indexOf("\"", 1);
value = str.substring(1, next);
next += 1;
}
else if (str.charAt(0) == "\'") {
next = str.indexOf("\'", 1);
value = str.substring(1, next);
next += 1;
}
else {
value = str.match(/(\S)+/)[0];
next = value.length;
}
this.addProperty(info, title.substring(0, title.length - 1).trim(), value.trim());
str = str.substring(next).trim();
}
}
return info;
};
/**
* @private
*
* @returns
*/
HtmlTextParser.prototype.getHeadReg = function () {
return /^(color|textcolor|strokecolor|stroke|b|bold|i|italic|u|size|fontfamily|href|target)(\s)*=/;
};
/**
* @private
*
* @param info
* @param head
* @param value
*/
HtmlTextParser.prototype.addProperty = function (info, head, value) {
switch (head.toLowerCase()) {
case "color":
case "textcolor":
value = value.replace(/#/, "0x");
info.textColor = parseInt(value);
break;
case "strokecolor":
value = value.replace(/#/, "0x");
info.strokeColor = parseInt(value);
break;
case "stroke":
info.stroke = parseInt(value);
break;
case "b":
case "bold":
info.bold = value == "true";
break;
case "u":
info.underline = value == "true";
break;
case "i":
case "italic":
info.italic = value == "true";
break;
case "size":
info.size = parseInt(value);
break;
case "fontfamily":
info.fontFamily = value;
break;
case "href":
info.href = this.replaceSpecial(value);
break;
case "target":
info.target = this.replaceSpecial(value);
break;
}
};
/**
* @private
*
* @param infoStr
*/
HtmlTextParser.prototype.addToArray = function (infoStr) {
var info = this.changeStringToObject(infoStr);
if (this.stackArray.length == 0) {
this.stackArray.push(info);
}
else {
var lastInfo = this.stackArray[this.stackArray.length - 1];
for (var key in lastInfo) {
if (info[key] == null) {
info[key] = lastInfo[key];
}
}
this.stackArray.push(info);
}
};
return HtmlTextParser;
}());
exports.HtmlTextParser = HtmlTextParser;
__reflect(HtmlTextParser.prototype, "\"e:/zqty/egret/src/rulePanel/HtmlTextParser\".HtmlTextParser");
var parser = new HtmlTextParser();
exports.parseHtmlText = function (content) {
return parser.parse(content);
};
//# sourceMappingURL=HtmlTextParser.js.map
\ No newline at end of file
{"version":3,"file":"HtmlTextParser.js","sourceRoot":"","sources":["../../../src/rulePanel/HtmlTextParser.ts"],"names":[],"mappings":";;;;;AAAA;;;;;;;GAOG;AACH;;;;;;;GAOG;AACH;IAEC;;;OAGG;IACA;QAKQ,eAAU,GAAU,EAAE,CAAC;QAWvB,kBAAa,GAAU,EAAE,CAAC;QAyBrC;;WAEG;QACQ,cAAS,GAA8B,EAAE,CAAC;QA3C9C,IAAI,CAAC,cAAc,EAAE,CAAC;QACtB,IAAI,CAAC,iBAAiB,EAAE,CAAC;IAC7B,CAAC;IAIO,uCAAc,GAAtB;QACI,IAAM,GAAG,GAAG,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACjC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,GAA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CAAC,CAAC;oBACpB,IAAI,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;gBAC9B,CAAC;YACL,CAAC;YACD,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,CAAC;IACL,CAAC;IACL,qBAAC;AAAD,CAAC,AAjQD,IAiQC;AAjQY,wCAAc;AAAd,UAAA,cAAc,4EAiQ1B,CAAA;AAED,IAAM,MAAM,GAAG,IAAI,cAAc,EAAE,CAAC;AACvB,QAAA,aAAa,GAAG,UAAC,OAAO;IACjC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAA"}
\ No newline at end of file
"use strict";
var __reflect = (this && this.__reflect) || function (p, c, t) {
p.__class__ = c, t ? t.push(c) : t = [c], p.__types__ = p.__types__ ? t.concat(p.__types__) : t;
};
var __extends = this && this.__extends || function __extends(t, e) {
function r() {
this.constructor = t;
}
for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i]);
r.prototype = e.prototype, t.prototype = new r();
};
Object.defineProperty(exports, "__esModule", { value: true });
var Layers = (function (_super) {
__extends(Layers, _super);
function Layers() {
return _super !== null && _super.apply(this, arguments) || this;
}
Layers.prototype.init = function (root) {
root.addChild(this);
this._topLayer = new eui.UILayer();
this._popupLayer = new eui.UILayer();
this._sceneLayer = new eui.UILayer();
this._toastLayer = new eui.UILayer();
this._topLayer.visible = false;
this._popupLayer.visible = false;
this._toastLayer.visible = false;
this.addChild(this._sceneLayer);
this.addChild(this._popupLayer);
this.addChild(this._toastLayer);
this.addChild(this._topLayer);
};
Object.defineProperty(Layers.prototype, "topLayer", {
get: function () { return this._topLayer; },
enumerable: true,
configurable: true
});
Object.defineProperty(Layers.prototype, "toastLayer", {
get: function () { return this._toastLayer; },
enumerable: true,
configurable: true
});
Object.defineProperty(Layers.prototype, "popupLayer", {
get: function () { return this._popupLayer; },
enumerable: true,
configurable: true
});
Object.defineProperty(Layers.prototype, "sceneLayer", {
get: function () { return this._sceneLayer; },
enumerable: true,
configurable: true
});
return Layers;
}(eui.UILayer));
__reflect(Layers.prototype, "Layers");
var instance = new Layers();
exports.default = instance;
//# sourceMappingURL=layers.js.map
\ No newline at end of file
{"version":3,"file":"layers.js","sourceRoot":"","sources":["../../../src/views/layers.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;IAAqB,0BAAW;IAAhC;;IAyBA,CAAC;IApBG,qBAAI,GAAJ,UAAK,IAAiB;QAClB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACpB,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE,CAAC;QACrC,IAAI,CAAC,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;QAC/B,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC;QACjC,IAAI,CAAC,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC;QACjC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAChC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;IAED,sBAAI,4BAAQ;aAAZ,cAAiB,MAAM,CAAC,IAAI,CAAC,SAAS,CAAA,CAAC,CAAC;;;OAAA;IACxC,sBAAI,8BAAU;aAAd,cAAmB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAA,CAAC,CAAC;;;OAAA;IAC5C,sBAAI,8BAAU;aAAd,cAAmB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAA,CAAC,CAAC;;;OAAA;IAC5C,sBAAI,8BAAU;aAAd,cAAmB,MAAM,CAAC,IAAI,CAAC,WAAW,CAAA,CAAC,CAAC;;;OAAA;IAEhD,aAAC;AAAD,CAAC,AAzBD,CAAqB,GAAG,CAAC,OAAO,GAyB/B;AAzBK,UAAA,MAAM,qBAyBX,CAAA;AAED,IAAM,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;AAC9B,kBAAe,QAAQ,CAAA"}
\ No newline at end of file
...@@ -122,8 +122,12 @@ export default class PKScene extends Scene{ ...@@ -122,8 +122,12 @@ export default class PKScene extends Scene{
}else{ }else{
this["team"+i]["onphone"].text = "未知号码"; this["team"+i]["onphone"].text = "未知号码";
} }
if(data.myTeamMembers[i-1].avatar.search("qzapp")!=-1){
this["team"+i]["avatar"].source = "//yun.duiba.com.cn/db_games/activity/yzw_hjcd/touxiang/hualun.png";
}else{
this["team"+i]["avatar"].source = data.myTeamMembers[i-1].avatar; this["team"+i]["avatar"].source = data.myTeamMembers[i-1].avatar;
}
// this["team"+i]["avatar"].source = data.myTeamMembers[i-1].avatar;
this["team"+i]['avatar'].mask = this["team"+i]['avatarMask']; this["team"+i]['avatar'].mask = this["team"+i]['avatarMask'];
let now = new Date(); let now = new Date();
let year = now.getFullYear(); let year = now.getFullYear();
...@@ -160,8 +164,13 @@ export default class PKScene extends Scene{ ...@@ -160,8 +164,13 @@ export default class PKScene extends Scene{
} }
if(data.myTeamMembers[i-1].uId == uiddata.partnerUserId){ if(data.myTeamMembers[i-1].uId == uiddata.partnerUserId){
this["team"+i]["onphone"].text = "我" this["team"+i]["onphone"].text = "我"
if(data.myTeamMembers[i-1].avatar.search("qzapp")!=-1){
this.myavater = "//yun.duiba.com.cn/db_games/activity/yzw_hjcd/touxiang/hualun.png";
}else{
this.myavater = data.myTeamMembers[i-1].avatar; this.myavater = data.myTeamMembers[i-1].avatar;
} }
// this.myavater = data.myTeamMembers[i-1].avatar;
}
} }
for(let n = 5;n>data.myTeamMembers.length;n--){ for(let n = 5;n>data.myTeamMembers.length;n--){
......
...@@ -83,7 +83,12 @@ export default class PKScorePanel extends Panel{ ...@@ -83,7 +83,12 @@ export default class PKScorePanel extends Panel{
this["team"+(i+1)]["onnum"].text = data.pkResult.myTeamMembers[i].steps+"步" this["team"+(i+1)]["onnum"].text = data.pkResult.myTeamMembers[i].steps+"步"
} }
if(data.pkResult.myTeamMembers[i].avatar.search("qzapp")!=-1){
this["team"+(i+1)]["avatar"].source = "//yun.duiba.com.cn/db_games/activity/yzw_hjcd/touxiang/hualun.png";
}else{
this["team"+(i+1)]["avatar"].source = data.pkResult.myTeamMembers[i].avatar; this["team"+(i+1)]["avatar"].source = data.pkResult.myTeamMembers[i].avatar;
}
this["team"+(i+1)]['avatar'].mask = this["team"+(i+1)]['avatarMask']; this["team"+(i+1)]['avatar'].mask = this["team"+(i+1)]['avatarMask'];
if(data.pkResult.myTeamMembers[i].uId == uiddata.partnerUserId){ if(data.pkResult.myTeamMembers[i].uId == uiddata.partnerUserId){
this["team"+(i+1)]["onphone"].text = "我" this["team"+(i+1)]["onphone"].text = "我"
......
...@@ -50,9 +50,7 @@ export default class PlacePanel extends Panel{ ...@@ -50,9 +50,7 @@ export default class PlacePanel extends Panel{
this.mapBG.source = "mapmg_png" this.mapBG.source = "mapmg_png"
} }
document.getElementById('placeImg').style.display = "block"; document.getElementById('placeImg').style.display = "block";
setTimeout(()=>{
this.getScreen();
},500)
} }
geterweima(){ geterweima(){
yzwNet.genInvite((s)=>{ yzwNet.genInvite((s)=>{
...@@ -94,6 +92,7 @@ export default class PlacePanel extends Panel{ ...@@ -94,6 +92,7 @@ export default class PlacePanel extends Panel{
// img.style.opacity = 1; // img.style.opacity = 1;
// img['src'] = data; // img['src'] = data;
this.getTexture(data) this.getTexture(data)
},shareurl,124,124) },shareurl,124,124)
},window['projectId']) },window['projectId'])
...@@ -103,6 +102,9 @@ export default class PlacePanel extends Panel{ ...@@ -103,6 +102,9 @@ export default class PlacePanel extends Panel{
// console.log(base64) // console.log(base64)
// this.erweiImg["avaliable"] = true; // this.erweiImg["avaliable"] = true;
this.erweiImg.source = base64; this.erweiImg.source = base64;
setTimeout(()=>{
this.getScreen();
},500)
// this.erweiImg.onload = function() { // this.erweiImg.onload = function() {
// var texture = new egret.Texture(); // var texture = new egret.Texture();
// var bitmapdata = new egret.BitmapData(this.erweiImg); // var bitmapdata = new egret.BitmapData(this.erweiImg);
......
...@@ -50,9 +50,9 @@ export default class RecordMapScene extends Scene{ ...@@ -50,9 +50,9 @@ export default class RecordMapScene extends Scene{
this.mapBG.source = "mapmg_png" this.mapBG.source = "mapmg_png"
} }
document.getElementById('mapImg').style.display = "block"; document.getElementById('mapImg').style.display = "block";
setTimeout(()=>{ // setTimeout(()=>{
this.getScreen(); // this.getScreen();
},500) // },500)
const arr = ["HZ","AM","XG","TB","RB","HG","CX","MG"]; const arr = ["HZ","AM","XG","TB","RB","HG","CX","MG"];
if(data.data){ if(data.data){
for(let i =0;i<data.data.length;i++){ for(let i =0;i<data.data.length;i++){
...@@ -144,6 +144,9 @@ export default class RecordMapScene extends Scene{ ...@@ -144,6 +144,9 @@ export default class RecordMapScene extends Scene{
// console.log(base64) // console.log(base64)
// this.erweiImg["avaliable"] = true; // this.erweiImg["avaliable"] = true;
this.erweiImg.source = base64; this.erweiImg.source = base64;
setTimeout(()=>{
this.getScreen();
},500)
// this.erweiImg.onload = function() { // this.erweiImg.onload = function() {
// var texture = new egret.Texture(); // var texture = new egret.Texture();
// var bitmapdata = new egret.BitmapData(this.erweiImg); // var bitmapdata = new egret.BitmapData(this.erweiImg);
......
...@@ -14,21 +14,21 @@ ...@@ -14,21 +14,21 @@
"phone":182677888, "phone":182677888,
"score":10, "score":10,
"myFlag":0, "myFlag":0,
"uid":10000 "avatar":"https://yun.duiba.com.cn/db_games/activity/yzw_hjcd/touxiang/qugun.png"
}, },
{ {
"steps":122, "steps":122,
"phone":182677888, "phone":182677888,
"score":10, "score":10,
"myFlag":1, "myFlag":1,
"uid":100100 "avatar":"http://qzapp.qlogo.cn/qzapp/1107061264/4BDFE58FB03E1F87B6824B7D48D3685C/100"
}, },
{ {
"steps":122, "steps":122,
"phone":182677888, "phone":182677888,
"score":10, "score":10,
"myFlag":1, "myFlag":1,
"uid":100100 "avatar":"http://qzapp.qlogo.cn/qzapp/1107061264/4BDFE58FB03E1F87B6824B7D48D3685C/100"
} }
] ]
}, },
......
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