Commit f9b60a25 authored by wjf's avatar wjf

l

parents
{"tinyType":"genie","tinyCnName":"天猫精灵","tinyProjectType":"tgcc-project","taobao:taobao-mini:tinyIcon":"https://gw.alicdn.com/tfs/TB1as1idqSs3KVjSZPiXXcsiVXa-21-21.svg","taobao:taobao-mini:compilePreviewTime":"","taobao:taobao-mini:compilePreviewWholePackSize":"","taobao:taobao-mini:compilePreviewSubpackSizes":"","taobao:taobao-mini:_appIdList":[{"appid":"3000000002141671","name":"百草味旗舰店B端","appkey":"28230600","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/96e284f0fb1b0c99130332f062e01766.png"},{"appid":"3000000003498575","name":"安踏儿童-福利活动后台","appkey":"29151021","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/cb9f17868d9f34113320164ee02ca401.jpg"},{"appid":"3000000003790803","name":"百草味龙腾寻宝记","appkey":"29309576","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/b925d4ec5b3608b74381aa45c05739d1.png"},{"appid":"3000000025923731","name":"欧珀莱泡泡大作战后端","appkey":"30653949","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/849d102a127a08684664cc0917feb22d.png"},{"appid":"3000000003498282","name":"安踏-福利活动","appkey":"29152603","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/c0dc86f04a0644885ff5fa6613bee9fe.jpg"},{"appid":"3000000003978362","name":"相宜本草官方旗舰店","appkey":"29441535","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/d05deb69131953c581e79e22bf002890.png"},{"appid":"3000000026743902","name":"网球大赛后台","appkey":"31174747","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/0c08aa44fdb6f1011e300b1eb861dfe8.png"},{"appid":"3000000003658002","name":"良品铺子吃货大作战","appkey":"29250619","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/7a6e9ee9d1c5075fac4eb429fa1c5f52.png"},{"appid":"3000000005461271","name":"FILA打星球B端","appkey":"30299356","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/18c6255cd980d1ab8586c921a97c6550.jpg"},{"appid":"3000000026744192","name":"斐乐网球大赛","appkey":"31209404","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/112022260c0a509d09b7466721539505.png"},{"appid":"3000000026466963","name":"苏泊尔接水滴","appkey":"31019209","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/b398dd164ac49cc7012a7a5614950370.jpg"},{"appid":"3000000005452193","name":"babycare 欢乐城玩法后台","appkey":"30313074","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/d504d6783a2fedb2da0c1f3e492550b3.png"},{"appid":"3000000005452521","name":"babycare欢乐城","appkey":"30319446","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/001e3f39bfb0571179a9d7fc1ba952c7.png"},{"appid":"3000000005376995","name":"Laya测试小程序","appkey":"30251119","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/f9061a7f030b13e5747079377bf3ed05.png"},{"appid":"3000000002138931","name":"巴拉巴拉旗舰店","appkey":"28167171","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/ba2e12abb07fa610f1b4b0229371e628.jpg"},{"appid":"3000000002693435","name":"店铺漂流记商家端","appkey":"28640163","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/40439164a3c61bd56680a750d608ecce.png"},{"appid":"3000000003975095","name":"珀莱雅后台","appkey":"29423768","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/8256df879c1d7807e506e39c2083aa43.png"},{"appid":"3000000003975483","name":"斑布奔跑吧小竹笋","appkey":"29449616","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/0596a0afa8fc8fe92cd583d03f0fb0f9.png"},{"appid":"3000000003657803","name":"良品铺子旗舰店后","appkey":"29219976","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/92442b458c9526acbe9c086456cdc4bd.png"},{"appid":"3000000002141632","name":"百草味年货节","appkey":"28214892","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/002c9f99b20c047ec5eba995de67019b.png"},{"appid":"3000000002141424","name":"认养一头牛C端","appkey":"28200679","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/0f3b1761582b03c5086d171ffc061079.png"},{"appid":"3000000026263283","name":"斯凯奇奔跑吧少年后台","appkey":"30848399","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/c6aac37db0aa21c8c1552a5accc194a0.png"},{"appid":"3000000026738514","name":"斐乐FRIEND来LA","appkey":"31181726","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/1b26d9cd27a63f0567492aa53d8fc6f5.png"},{"appid":"3000000003975544","name":"斑布旗舰店后台","appkey":"29447442","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/53aff61d285f628e38c0a48de4a5441d.png"},{"appid":"3000000003978621","name":"相宜本草官方旗舰店后台","appkey":"29449421","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/462bd49ebe0e621ad695e151582aebb2.png"},{"appid":"3000000003975073","name":"珀莱雅","appkey":"29417996","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/b770883c1a343803caf5eeec2275d3e2.png"},{"appid":"3000000005188061","name":"pick买家秀-商家后台","appkey":"30123678","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/6cdfbca37d387d3142af0b8bc39712cd.png"},{"appid":"3000000002141681","name":"认养一头牛B端","appkey":"28204907","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/3bb834e0d0a962cbaf84f34af356a559.png"},{"appid":"3000000026737394","name":"拉新排行榜后台","appkey":"31160367","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/b893178536700c68cd1a260b2956ed47.png"},{"appid":"3000000025923542","name":"欧珀莱泡泡大作战","appkey":"30649932","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/55b9bd283ffc39401dd630d2d5a541bc.png"},{"appid":"3000000002100342","name":"星球大作战","appkey":"28028018","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/9d7484f79c0f0ef1bf4984c28571a040.jpg"},{"appid":"3000000003498711","name":"安踏-福利活动后台","appkey":"29145658","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/8e79260a37858745dd54f83fd3643cd0.jpg"},{"appid":"3000000026263524","name":"斯凯奇奔跑吧少年","appkey":"30854061","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/72cfc6cfb9bc1c130c299455c264f47e.png"},{"appid":"3000000003790932","name":"百草后台","appkey":"29301972","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/61c1b737f6fe30311b4ffa87d4c4e559.png"},{"appid":"3000000026466723","name":"苏泊尔餐具旗舰店接水滴后台","appkey":"31008228","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/1d4e3bf23e165880aae6350ac0dec674.jpg"},{"appid":"3000000005461281","name":"FILA制造MAX星耀力","appkey":"30324482","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/338d0ca267b1da25a15bdce9df9c2564.jpg"},{"appid":"3000000005382994","name":"三只松鼠-松鼠养成记","appkey":"30244787","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/437e19c0dd0c7ed527361945aff76b7d.png"},{"appid":"3000000003563313","name":"认养一头牛·云牧场","appkey":"29168951","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/4de8fc7dd8ae02110c7a6f7d67d9d62a.png"},{"appid":"3000000003563611","name":"认养一头牛旗舰店后台","appkey":"29157197","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/6314545e8980fd6079d53e64326e7d1c.png"},{"appid":"3000000002138001","name":"百草味邀你领1年零食","appkey":"28176143","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/d329cfee95f2a49621d812f8d9c52853.png"},{"appid":"3000000003499081","name":"安踏儿童-福利活动","appkey":"29128931","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/bf1052c5d29ddd9a9e27b11959e0e738.jpg"},{"appid":"3000000002138592","name":"巴拉巴拉商家","appkey":"28170585","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/2ee73bdcaac11348693c1277205ed7ba.jpg"},{"appid":"3000000005383611","name":"三只松鼠旗舰店-松鼠养成记后台","appkey":"30251937","logoUrl":"https://ossgw.alicdn.com/taobao-miniapp/img/93f530df9ea086be45827edb23626fdd.png"}],"taobao:taobao-mini:preAuditLimit":10,"taobao:taobao-mini:preAuditUsed":0,"taobao:taobao-mini:uploadTime":"","taobao:taobao-mini:packageSize":"","taobao:taobao-mini:auditLink":null,"taobao:taobao-mini:whiteListLink":null,"taobao:taobao-mini:_enableAutoPush":true,"genie:tgcc-project:tinyIcon":"https://gw.alicdn.com/tfs/TB1xEaedBCw3KVjSZFuXXcAOpXa-21-21.svg","genie:tgcc-project:lastDeviceName":"天猫精灵CC","genie:tgcc-project:_appIdList":[{"appid":"2021001197647181","name":"认养一头牛云牧场","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/3072d0ad-87ca-452f-8623-0b4cd96f7367.png"},{"appid":"2021001196692187","name":"名称释放00433427","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/eebdb2f7-2747-499e-9a22-2b89664d7739.png"},{"appid":"2019092767894325","name":"名称释放00280231","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/eebdb2f7-2747-499e-9a22-2b89664d7739.png"},{"appid":"2019061165495863","name":"名称释放00234562","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/eebdb2f7-2747-499e-9a22-2b89664d7739.png"},{"appid":"2019060165500104","name":"名称释放00254668","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/a65bb03e-8772-49eb-b791-3ca20fdda328.png"},{"appid":"2019033063694846","name":"名称释放00190655","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/a4998fb7-4c4b-4d39-9aeb-80122262d2f0.png"},{"appid":"2019032263682050","name":"名称释放00235448","logoUrl":"https://appstoreisvpic.alipayobjects.com/prod/1d2943de-7814-44cc-baff-f9f51eadec64.png"}],"genie:tgcc-project:_enableAutoPush":true,"genie:tgcc-project:_appId":"2021001197647181","genie:tgcc-project:_appName":"认养一头牛云牧场","genie:tgcc-project:remoteVersion":"0.0.13","genie:tgcc-project:currentVersion":"0.0.14","genie:tgcc-project:whiteList":["activity.m.duibatest.com.cn","activity.m.duiba.com.cn"],"genie:tgcc-project:h5WhiteList":["activity.m.duibatest.com.cn","activity.m.duiba.com.cn"],"genie:tgcc-project:appLogo":"https://appstoreisvpic.alipayobjects.com/prod/3072d0ad-87ca-452f-8623-0b4cd96f7367.png","genie:tgcc-project:compilePreviewTime":"2020-11-05 18:24:32","genie:tgcc-project:compilePreviewWholePackSize":"139.9 KB","genie:tgcc-project:compilePreviewSubpackSizes":"","compilerList":[{"title":"普通编译","query":"","page":""},{"title":"b","page":"pages/bbb/bbb"}],"compilerIndex":0,"genie:tgcc-project:userAuthorization":["auth_user","userInfo"],"genie:tgcc-project:preAuditLimit":10,"genie:tgcc-project:preAuditUsed":0,"genie:tgcc-project:uploadTime":"2020-11-05 18:21:53","genie:tgcc-project:packageSize":"943.4 KB","genie:tgcc-project:auditLink":null,"genie:tgcc-project:whiteListLink":null,"genie:tgcc-project:lastZoom":50,"SimulatorMode":"EMBED","isSimulatorOpen":false,"isNotFirstToggleSimulator":true,"storageVersion":"1.5.10"}
\ No newline at end of file
{"watchers":[],"configurations":{},"breakpoints":{"breakpointsEnabled":true,"breakpoints":{},"exceptionsBreakpoints":{}},"storageVersion":"1.5.10"}
\ No newline at end of file
const g = typeof global !== 'undefined' ? global : self;
g.appXAppJson = {
"app": {
"$homepage": "pages/index/index"
}
};
if(!self.Map || !self.Set || !self.Symbol) {
importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
}
\ No newline at end of file
require('@alipay/appx-compiler/lib/sjsEnvInit');
require('./config$');
require('../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/index3/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/bbb/bbb?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
if(!self.__appxInited) {
self.__appxInited = 1;
require('./config$');
var AFAppX = self.AFAppX.getAppContext
? self.AFAppX.getAppContext().AFAppX
: self.AFAppX;
self.getCurrentPages = AFAppX.getCurrentPages;
self.getApp = AFAppX.getApp;
self.Page = AFAppX.Page;
self.App = AFAppX.App;
self.my = AFAppX.bridge || AFAppX.abridge;
self.abridge = self.my;
self.Component = AFAppX.WorkerComponent || function(){};
self.$global = AFAppX.$global;
self.requirePlugin = AFAppX.requirePlugin;
if(AFAppX.registerApp) {
AFAppX.registerApp({
appJSON: appXAppJson,
});
}
function success() {
require('../../app');
require('../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/index3/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/bbb/bbb?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
}
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
}
\ No newline at end of file
const g = typeof global !== 'undefined' ? global : self;
g.appXAppJson = {
"app": {
"$homepage": "pages/index/index"
}
};
if(!self.Map || !self.Set || !self.Symbol) {
importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
}
importScripts(`https://appx/af-appx.worker.min.js`);
require('@alipay/appx-compiler/lib/sjsEnvInit');
require('./config$');
require('../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/index3/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/bbb/bbb?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
/*BUGME_START*/
const __BUGME_START__ = 1;
!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=43)}({0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e){e.Connect="RemoteX.connect",e.Disconnect="RemoteX.disconnect",e.PageChanged="RemoteX.pageChanged",e.DataChanged="RemoteX.dataChanged",e.EvaluteScript="RemoteX.evaluteScript",e.RegisterChannel="RemoteX.registerChannel",e.PassByWorker="RemoteX.PassByWorker",e.syncStorage="RemoteX.syncStorage",e.setStorage="RemoteX.setStorage",e.removeStorage="RemoteX.removeStoarge",e.requestWillBeSent="RemoteX.requestWillBeSent",e.requestFinished="RemoteX.requestFinished",e.ExitApp="RemoteX.exitApp"}(t.RemoteXMethods||(t.RemoteXMethods={}))},10:function(e,t){
/*!
Copyright (C) 2013-2017 by Andrea Giammarchi - @WebReflection
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
var n="\\x"+("0"+"~".charCodeAt(0).toString(16)).slice(-2),o="\\"+n,r=new RegExp(n,"g"),a=new RegExp(o,"g"),s=new RegExp("(?:^|([^\\\\]))"+o),i=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},c=String;function u(e,t,n){return t instanceof Array?function(e,t,n){for(var o=0,r=t.length;o<r;o++)t[o]=u(e,t[o],n);return t}(e,t,n):t instanceof c?t.length?n.hasOwnProperty(t)?n[t]:n[t]=function(e,t){for(var n=0,o=t.length;n<o;e=e[t[n++].replace(a,"~")]);return e}(e,t.split("~")):e:t instanceof Object?function(e,t,n){for(var o in t)t.hasOwnProperty(o)&&(t[o]=u(e,t[o],n));return t}(e,t,n):t}var l={stringify:function(e,t,a,s){return l.parser.stringify(e,function(e,t,a){var s,c,u=!1,l=!!t,d=[],f=[e],h=[e],p=[a?"~":"[Circular]"],m=e,g=1;return l&&(c="object"==typeof t?function(e,n){return""!==e&&t.indexOf(e)<0?void 0:n}:t),function(e,t){return l&&(t=c.call(this,e,t)),u?(m!==this&&(s=g-i.call(f,this)-1,g-=s,f.splice(g,f.length),d.splice(g-1,d.length),m=this),"object"==typeof t&&t?(i.call(f,t)<0&&f.push(m=t),g=f.length,(s=i.call(h,t))<0?(s=h.push(t)-1,a?(d.push((""+e).replace(r,n)),p[s]="~"+d.join("~")):p[s]=p[0]):t=p[s]):"string"==typeof t&&a&&(t=t.replace(n,o).replace("~",n))):u=!0,t}}(e,t,!s),a)},parse:function(e,t){return l.parser.parse(e,function(e){return function(t,r){var a="string"==typeof r;return a&&"~"===r.charAt(0)?new c(r.slice(1)):(""===t&&(r=u(r,r,{})),a&&(r=r.replace(s,"$1~").replace(o,n)),e?e.call(this,t,r):r)}}(t))},parser:JSON};e.exports=l},11:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),r=n(4),a=n(2),s=n(0),i=Function,c=console.log,u=function(){a.getBridge().call("showRemoteDebugPanel",{status:"connecting",text:"远程调试连接中",buttonTitle:"退出"})},l=function(){a.getBridge().call("showRemoteDebugPanel",{status:"connected",text:"远程调试已连接",buttonTitle:"退出"})},d=function(){a.getBridge().call("showRemoteDebugPanel",{status:"disconnected",text:"远程调试已断开",buttonTitle:"退出"})},f={send:function(e){a.getBridge().sendSocketMessage(e)},close:function(){a.getBridge().closeSocket()}};t.SocketConn={socketTask:null,send:function(e){this.socketTask&&this.socketTask.send({data:"string"==typeof e?e:JSON.stringify(e)})},close:function(){this.socketTask&&this.socketTask.close()},open:function(){var e=this,t=a.getStartupParams().channelId;if(t){u();var n=a.getBridge();a.checkIOS()?(n.connectSocket({url:"wss://openchannel.alipay.com/host/"+t}),n.onSocketOpen((function(){e.socketTask=f,e.onopen()})),n.onSocketMessage((function(t){e.onmessage({data:t})})),n.onSocketClose((function(){e.onclose()})),n.connectSocket=function(){n.alert({content:"iOS 真机调试暂不支持 connectSocket JSAPI"})},n.onSocketMessage=n.offSocketMessage=function(){}):setTimeout((function(){var o=n.connectSocket({url:"wss://openchannel.alipay.com/host/"+t,multiple:!0});o.onOpen((function(){e.socketTask=o,e.onopen()})),o.onMessage((function(t){e.onmessage(t)})),o.onClose((function(){e.onclose()}))}),1200)}},onopen:function(){this.send({method:s.RemoteXMethods.Connect,params:{userAgent:a.getUserAgent()}}),l()},onmessage:function(e){try{var t=JSON.parse(e.data.data),n=t.method,a=t.id,u=t.params;if(n===s.RemoteXMethods.Disconnect)this.close();else if(n===s.RemoteXMethods.EvaluteScript){if(u&&u.code)try{var l=new i("var res = "+u.code+"; return res;")();this.send({returnId:a,payload:o.stringify(l)})}catch(e){c("[remoteX worker evaluteScript] ",e)}}else r.ChannelPot.sendToActiveChannel(t)}catch(t){c("RemoteX onSocketMessage error",t,e)}},onclose:function(){this.socketTask=null,d(),a.getBridge().call("alert",{title:"调试中断",button:"退出"},(function(){r.ChannelPot.sendToActiveChannel({method:s.RemoteXMethods.ExitApp})}))}}},2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUserAgent=function(){return navigator.swuserAgent||navigator.userAgent||""},t.checkIOS=function(){return/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(t.getUserAgent())},t.getAlipayVersion=function(){return(t.getUserAgent().match(/AlipayClient\/(\d+\.\d+\.\d+)/)||[])[1]||""},t.compareVersion=function(e,t){var n=e.split("."),o=t.split(".");if(e===t)return 0;for(var r=0;r<n.length;r++){var a=n[r]-o[r];if(a)return a>0?1:-1}};var o=self.AlipayJSBridge&&self.AlipayJSBridge.call,r=self.fetch;t.callInternalAPI=function(e,t){var n={data:{method:e,param:t},action:"internalAPI"},a=encodeURIComponent(JSON.stringify(n));r?r("https://alipay.kylinBridge/?data="+a,{mode:"no-cors"}).then((function(){})).catch((function(){})):o&&o("internalAPI",{method:e,param:t})},t.getStartupParams=function(){return self.__appxStartupParams||{}},t.getBridge=function(){return self.AFAppX.bridge},t.debug=console.log},4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(11),r=n(0),a=console.log;t.ChannelPot={_mainViewId:null,_activeViewId:null,_map:{},get:function(e){return this._map[e]||null},set:function(e,t){this._map[e]=t},remove:function(e){delete this._map[e]},setActiveId:function(e){this._activeViewId=e},setMainId:function(e){this._mainViewId=e},sendToMainChannel:function(e){o.SocketConn.send(e)},sendToActiveChannel:function(e){this.get(this._activeViewId)?this.get(this._activeViewId).postMessage(e):a("[remotex] missing active channel",e,this._activeViewId)}};var s=function(){function e(e){var t=this;this._port=e,this._port.onmessage=this.onMessage,Object.defineProperty(e,"onmessage",{get:function(){return t.onMessage},set:function(){}})}return e.prototype.onMessage=function(e){if(e.data){var n=e.data,o=n.method,a=n.params;o===r.RemoteXMethods.PassByWorker&&t.ChannelPot.sendToMainChannel(a)}},e.prototype.postMessage=function(e){this._port.postMessage(e)},e}();t.ChannelHandler=s},43:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(10),r=n(44),a=n(2);!function(){var e=function(e,t){return void 0===t?"©undefined":null===t?"©null":t===-1/0?"©- Infinity":t===1/0?"©Infinity":"number"==typeof t&&isNaN(t)?"©NaN":"function"==typeof t?"©function":t},t=Function,n=function(n){try{if(n.fromVConsoleToWorker){var r=n.requestId;if("exec"===n.method){try{new t("requestId","sendBack","var res = "+n.script+";console.log(res);")(r,(function(t){return a.callInternalAPI("tinyDebugConsole",{type:"msgFromWorkerToVConsole",content:o.stringify({requestId:r,returnValue:t},e)})}))}catch(e){console.error(e.name+":"+e.message)}}}}catch(e){}};setTimeout((function(){self.document?self.document.addEventListener("push",(function(e){try{var t=e.data.param;n(JSON.parse(t.content||t.data.content))}catch(e){}})):self.addEventListener&&self.addEventListener("push",(function(e){try{var t=JSON.parse(JSON.parse(e.data.text()).param.data.content);n(t)}catch(e){}}))}),10),["log","info","error","debug","warn"].forEach((function(t){var n="o"+t;console[n]||(console[n]=console[t],console[t]=function(){for(var r,s=[],i=0;i<arguments.length;i++)s[i]=arguments[i];console[n].apply(console,s);try{r=o.stringify(s.map((function(e){return e instanceof Error?e.name+": "+e.message:e})),e)}catch(e){return void console.error(e.name+": "+e.message)}a.callInternalAPI("tinyDebugConsole",{content:r,type:"console_"+t})})}));var s=setInterval((function(){if(self.AFAppX){clearInterval(s);var e=a.getStartupParams();e.isRemoteX&&e.channelId&&r.registerRemoteX()}}),50)}()},44:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(4),r=n(45),a=n(11),s=n(2),i=n(0);function c(){s.getBridge().call("hideOptionMenuItem",{scope:"single",name:"backToHome"}),(self.document||self).addEventListener("push",(function(e){var t=e.data;if(t&&"function"==typeof t.text)try{t=JSON.parse(t.text())}catch(e){return}if(t&&t.func){var n=t.func,s=t.viewId;if("nbcomponent.canrender"===n||"pageResume"===n)o.ChannelPot.setActiveId(s),o.ChannelPot.sendToMainChannel({method:i.RemoteXMethods.PageChanged});else if("beforeDestroy"===n)o.ChannelPot.remove(s);else if("tinyRemoteDebugPanelButtonClick"===n)a.SocketConn.close();else try{r.listenTinyDebug(t)}catch(e){}}})),r.hookGlobalApi()}t.initRemoteX=c,t.registerRemoteX=function(){self.addEventListener&&self.navigator&&(c(),a.SocketConn.open(),self.addEventListener("message",(function(e){if(e&&e.data){var t=e.data;if(t.method===i.RemoteXMethods.RegisterChannel){var n=e.ports[0],r=t.params.viewId+"";o.ChannelPot.set(r,new o.ChannelHandler(n)),o.ChannelPot.setActiveId(r),null===o.ChannelPot._mainViewId&&o.ChannelPot.setMainId(r),o.ChannelPot.sendToMainChannel({method:i.RemoteXMethods.PageChanged})}}})))}},45:function(e,t,n){"use strict";var o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e};Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),a=n(0),s=n(2),i=function(e){return"function"==typeof e},c=0;function u(e){if(!e||"object"!=typeof e)return{};var t={};return Object.keys(e).forEach((function(n){t[n]=""+e[n]})),t}function l(e){var t=e.name,n=e.params;/^(http)?Request$/i.test(t)&&r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.requestWillBeSent,params:{reqId:"remotex_req_"+e.reqId,url:n.url,method:(n.method||"GET").toUpperCase(),body:"string"==typeof n.data?n.data:JSON.stringify(n.data),headers:u(n.headers)}})}function d(e){var t=e.name,n=e.res,o=e.params;/^clearStorage(Sync)?$/.test(t)&&n.success?r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.syncStorage,params:{data:{}}}):/^removeStorage(Sync)?$/.test(t)&&n.success?r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.removeStorage,params:{key:o.key}}):/^setStorage(Sync)?$/.test(t)&&n.success?r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.setStorage,params:{key:o.key,value:o.data}}):/^(http)?Request$/i.test(t)&&r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.requestFinished,params:{reqId:"remotex_req_"+e.reqId,url:o.url,status:n.status,body:"string"==typeof n.data?n.data:JSON.stringify(n.data),headers:u(n.headers)}})}t.hookGlobalApi=function(){if(!(s.compareVersion(s.getAlipayVersion(),"10.1.75")>=0)){var e=self.AFAppX.bridge;e?["clearStorage","removeStorage","setStorage","httpRequest","request"].forEach((function(t){e[t]&&(e[t]=function(e,t){return function(n){var r=++c,a=o({},n),s=a.success,u=a.fail;l({name:e,params:n,reqId:r}),a.success=function(t){i(s)&&s(t),d({name:e,params:n,res:t,reqId:r})},a.fail=function(t){i(u)&&u(t),d({name:e,params:n,res:t,reqId:r})},t(a)}}(t,e[t]));var n=t+"Sync";e[n]&&(e[n]=function(e,t){return function(n){var o=++c;l({name:e,params:n,reqId:o});var r=t(n);return d({name:e,params:n,res:r,reqId:o}),r}}(n,e[n]))})):self.__APPX_DEVTOOLS_GLOBAL_HOOK__={onApiCallback:d,onApiSyncCallback:d,onApiCall:l}}};var f=/^https?:\/\/hpmweb\.alipay\.com/;function h(e,t){switch(e){case"tinyAppRemoteDebug_network_request":if(f.test(t.url))return;r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.requestWillBeSent,params:{reqId:t.requestId,url:t.url,method:(t.method||"GET").toUpperCase(),body:t.postBody,headers:u(t.headers)}});break;case"tinyAppRemoteDebug_network_response":if(f.test(t.url))return;r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.requestFinished,params:{reqId:t.requestId,url:t.url,status:t.status,body:t.body,headers:u(t.headers)}});break;case"tinyAppRemoteDebug_network_error":if(f.test(t.url))return;r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.requestFinished,params:{reqId:t.requestId,url:t.url,status:null}});break;case"tinyAppRemoteDebug_storage":var n={};Object.keys(t.data).forEach((function(e){try{n[e]=JSON.parse(t.data[e]).APDataStorage}catch(e){}})),r.ChannelPot.sendToMainChannel({method:a.RemoteXMethods.syncStorage,params:{data:n}})}}t.listenTinyDebug=function(e){var t=e.func,n=e.param;if(/^tinyAppRemoteDebug_/.test(t))h(t,n);else if("onTinyDebugConsole"===t){if(!n.data)return;var o=n.data,r=o.type,a=o.content;try{a=JSON.parse(a)}catch(e){}h(r,a)}}}});
const __BUGME_END__ = 1;
/*BUGME_END*/if(!self.__appxInited) {
self.__appxInited = 1;
require('./config$');
require('./importScripts$');
var AFAppX = self.AFAppX;
self.getCurrentPages = AFAppX.getCurrentPages;
self.getApp = AFAppX.getApp;
self.Page = AFAppX.Page;
self.App = AFAppX.App;
self.my = AFAppX.bridge || AFAppX.abridge;
self.abridge = self.my;
self.Component = AFAppX.WorkerComponent || function(){};
self.$global = AFAppX.$global;
self.requirePlugin = AFAppX.requirePlugin;
if(AFAppX.registerApp) {
AFAppX.registerApp({
appJSON: appXAppJson,
});
}
function success() {
require('../../app');
require('../../pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/index3/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../pages/bbb/bbb?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
}
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
}
\ No newline at end of file
{"layout":{"left":{"currentId":"explorer","size":310},"right":{"currentId":""},"bottom":{"currentId":""}},"storageVersion":"1.5.10"}
\ No newline at end of file
{"OPENED_FILE":["file:///c%3A/Users/57058/Desktop/tm/pages/index/index.axml","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.js","file:///c%3A/Users/57058/Desktop/tm/app.json","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.json","file:///c%3A/Users/57058/Desktop/tm/skill.json","file:///c%3A/Users/57058/Desktop/tm/debug.log","file:///c%3A/Users/57058/Desktop/tm/enterModal/enterModal.acss","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.acss","file:///c%3A/Users/57058/Desktop/tm/snapshot.png","file:///c%3A/Users/57058/Desktop/tm/enterModal/enterModal.axml","file:///c%3A/Users/57058/Desktop/tm/package.json","file:///c%3A/Users/57058/Desktop/tm/app.acss","file:///c%3A/Users/57058/Desktop/tm/pages/bbb/bbb.axml","file:///c%3A/Users/57058/Desktop/tm/pages/bbb/bbb.js","file:///c%3A/Users/57058/Desktop/tm/pages/aaaaa/aaaaa.axml","file:///c%3A/Users/57058/Desktop/tm/pages/aaaaa/aaaaa.js"],"storageVersion":"1.5.10"}
\ No newline at end of file
{"grid":{"editorGroup":{"uris":["file:///c%3A/Users/57058/Desktop/tm/pages/aaaaa/aaaaa.axml","file:///c%3A/Users/57058/Desktop/tm/pages/aaaaa/aaaaa.js","file:///c%3A/Users/57058/Desktop/tm/pages/bbb/bbb.js","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.js","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.json","file:///c%3A/Users/57058/Desktop/tm/app.json","file:///c%3A/Users/57058/Desktop/tm/skill.json","file:///c%3A/Users/57058/Desktop/tm/package.json","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.axml","file:///c%3A/Users/57058/Desktop/tm/pages/index/index.acss"],"current":"file:///c%3A/Users/57058/Desktop/tm/pages/index/index.axml","previewIndex":-1}},"storageVersion":"1.5.10"}
\ No newline at end of file
page {
flex: 1;
display: flex;
background: #f7f7f7;
}
App({
onLaunch(options) {
// 第一次打开
// options.query == {number:1}
console.info('App onLaunch');
},
onShow(options) {
// 从后台被 scheme 重新打开
// options.query == {number:1}
},
});
{
"pages": [
"pages/index/index",
"pages/index3/index",
"pages/bbb/bbb"
],
"window": {
"navigationBarForceEnable": true,
"defaultTitle": "My App",
"gpuAccelerate": "true",
"enableSkia": "true",
"navigationStyle": "custom"
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"includes": [
"app.json",
"skill.json"
]
}
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"@mrkwon/svga-player": {
"version": "1.0.3",
"resolved": "https://registry.npm.taobao.org/@mrkwon/svga-player/download/@mrkwon/svga-player-1.0.3.tgz",
"integrity": "sha1-MBrMd66BA6qYlY3QE78RDw3u/lI=",
"requires": {
"svga-parser": "^1.1.0"
}
},
"@tbminiapp/lottie-miniapp": {
"version": "0.0.4",
"resolved": "https://registry.npm.taobao.org/@tbminiapp/lottie-miniapp/download/@tbminiapp/lottie-miniapp-0.0.4.tgz",
"integrity": "sha1-YBN9pxTZa2mxzmDQQ6a5wf6FA5E="
},
"@tbmp/mp-cloud-sdk": {
"version": "1.4.1",
"resolved": "https://registry.npm.taobao.org/@tbmp/mp-cloud-sdk/download/@tbmp/mp-cloud-sdk-1.4.1.tgz",
"integrity": "sha1-2y9tanEKqWjGd2YMYtjaSjqryd0="
},
"fyge-tbmini": {
"version": "1.3.2",
"resolved": "https://registry.npm.taobao.org/fyge-tbmini/download/fyge-tbmini-1.3.2.tgz",
"integrity": "sha1-06+pauXjj6ehbprzi+gtZ/tH/9w="
},
"svga-parser": {
"version": "1.1.0",
"resolved": "https://registry.npm.taobao.org/svga-parser/download/svga-parser-1.1.0.tgz",
"integrity": "sha1-sXgVrAwaDgGobJG7l/g02tYCdek="
}
}
}
<view>
New Component
</view>
\ No newline at end of file
Component({
mixins: [],
data: {},
props: {},
didMount() {},
didUpdate() {},
didUnmount() {},
methods: {},
});
{
"component": true
}
\ No newline at end of file
<view>
New Page
</view>
\ No newline at end of file
Page({
data: {},
onLoad() {},
});
{}
\ No newline at end of file
.btn-integration{
position: absolute;
top: 310rpx;
left: 50%;
margin-left: -140rpx;
width: 266rpx;
height: 97rpx;
border: 0; padding: 0;
/* outline: none; */
/* background: url('/snapshot.png') no-repeat center; */
/* background-color:red */
}
.enter-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 20;
}
.enter-modal__shade {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.75);
}
.enter-modal__container {
position: absolute;
width: 653rpx;
height: 459rpx;
left: 50%;
top: 50%;
margin-left: -326rpx;
margin-top: -229rpx;
background: url('//yun.duiba.com.cn/db_games/activity/cowTmallGenie/shouquanBg.png') no-repeat center;
/* background-size: 653rpx 459rpx; */
}
.enter-modal-enter-btn {
position: absolute;
top: 275rpx;
left: 50%;
margin-left: -140rpx;
width: 266rpx;
height: 97rpx;
background: url('//yun.duiba.com.cn/db_games/activity/cowTmallGenie/shouquan.png') no-repeat center;
}
\ No newline at end of file
<view class="page">
<view class="enter-modal">
<view class="enter-modal__shade modal-animate-fade-in" />
<view class="enter-modal__container modal-animate-zoom-in">
<view class="enter-modal-title-enter"></view>
<view class="enter-modal__main">
</view>
<view class="enter-modal-enter-btn">
</view>
<!-- <button type="ghost" open-type="getAuthorize" class="btn-integration enter-modal-enter-btn" onGetAuthorize="onGetAuthorize" onError="onAuthError" scope='userInfo'>
会员基础信息授权
</button>
<button type="ghost" open-type="getAuthorize" class="btn-integration" onGetAuthorize="onGetAuthorize" onError="onAuthError" scope='userInfo'>
会员基础信息授权
</button> -->
<button type="ghost" open-type="getAuthorize" class="btn-integration" onGetAuthorize="onGetAuthorize" onError="onAuthError" scope='userInfo'>
</button>
</view>
</view>
<!-- <button type="ghost" open-type="getAuthorize" class="btn-integration" onGetAuthorize="onGetAuthorize" onError="onAuthError" scope='userInfo'>
会员基础信息授权
</button> -->
<web-view a:if="{{contentShow}}" id="web-view-1" src="https://activity.m.duiba.com.cn/projectx/p23ec4425/ff9bbe612.html" onMessage="onMessage"></web-view>
</view>
\ No newline at end of file
Page({
data: {
contentShow: false
},
onLoad(query) {
// 页面加载
console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
this.webViewContext = my.createWebViewContext('web-view-1');
//必须点击按钮授权过才行
// this.login();
},
onReady() {
// my.getAuthCode({
// scopes: ['auth_base'],
// success: (res) => {
// my.alert({
// content: res.authCode,
// });
// },
// });
//显示webview
// this.setData({
// contentShow: true
// })
},
login() {
my.call('hideNavigationBar')
my.getAuthCode({
scopes: 'auth_user',
success: ({ authCode }) => {
my.getOpenUserInfo({
fail: (error) => {
console.error('getAuthUserInfo', error);
},
success: (res) => {
console.log(`userInfo:`, res);
let userInfo = JSON.parse(res.response).response // 以下方的报文格式解析两层 response
// this.setData({
// mockAvatar: 'https://tfs.alipayobjects.com/images/partner/T1dH8EXcFeXXXXXXXX',
// userInfo,
// });
console.log(userInfo)
my.alert({
content: JSON.stringify(userInfo)
});
//头像,到时用
this.avatar = userInfo.avatar;
//昵称
this.userNick = userInfo.nickName;
//显示webview
this.setData({
contentShow: true
})
}
});
},
});
},
onGetAuthorize() {
my.call('hideNavigationBar');
let count = 0, countAll = 2;
//获取用户userId
my.call('getGenieUserInfo', (result) => {
this.userId = result ? result.userId : null;
if (++count >= countAll) {
//显示webview
this.setData({
contentShow: true
})
}
})
//返回数据参考
// {
// "avatar": "https://wwc.alicdn.com/avatar/getAvatar.do?userNick=jickyi521&_input_charset=UTF-8&width=160&height=160&type=sns",
// "nickName": "jickyi521test",
// "userId": "GULLg/5o1zoKbuZg605heg=="
// }
// 页面加载完成
// my.getAuthCode({
// scopes: ['auth_user'],
// success: ({ authCode }) => {
my.getOpenUserInfo({
fail: (error) => {
console.error('getAuthUserInfo', error);
},
success: (res) => {
let userInfo = JSON.parse(res.response).response // 以下方的报文格式解析两层 response
// console.log(userInfo.avatar, userInfo.userNick)
// my.alert({ content: "onVoiceEvent = " + JSON.stringify(userInfo) });
// my.alert({ content: "userInfo = " + JSON.stringify(userInfo) });
//头像,到时用
this.avatar = userInfo.avatar;
//昵称
this.userNick = userInfo.nickName;
// my.alert({title:this.userNick ,content:this.avatar})
// return
//显示webview
if (++count >= countAll) this.setData({
contentShow: true
})
}
});
// },
// });
},
onVoiceEvent(event) {
// my.alert({ content: "onVoiceEvent = " + JSON.stringify(event) });
},
onShow() {
// 页面显示
},
// {
// netName: netName,
// parameter: parameter
// }
onMessage(e) {
console.log(e)
// my.alert({ content: JSON.stringify(e) })
let netName = e.detail.netName;
let parameter = e.detail.parameter;
//前端接口
if (netName.indexOf("mine") == 0) {
var data = {
success: true,
data: null
};
switch (netName) {
case "mine.getAppData":
data.data = {
avatar: this.avatar,
userNick: this.userNick,
userId: this.userId
};
break;
case "mine.navigateToOutside":
my.call("navigateToOutside", {
url: parameter.url
}, (res) => {
// my.alert({ content: "success - " + JSON.stringify(res)})
});
break;
case "mine.returnHome":
my.call("sendKeyEvent", { "keyCode": "HOME" });
break;
}
this.webViewContext.postMessage({ netName: netName, data: data });
return
}
//获取后端接口
// var app = getApp();
// const { function: fc } = app.cloud;
// // console.log(e)
// fc.invoke("duiba", parameter, netName)
// .then(res => {
// // console.log("返回数据" + JSON.stringify(res));
// //发送消息
// this.webViewContext.postMessage({ netName: netName, data: res });
// //发送邀请和接受助力额外处理
// if (netName == "duiba.assist.createItem" || netName == "duiba.assist.doAssist") {
// app.cloud.topApi.invoke({
// api: 'taobao.chatting.platform.message.sendcard',
// scopes: 'scope.groupChat',
// data: { "request_info": JSON.stringify(res.data) }
// })
// }
// })
},
onMusic() {
this.webViewContext.postMessage({ netName: "mine.getVoiceType", data: "music" });
},
onBall() {
this.webViewContext.postMessage({ netName: "mine.getVoiceType", data: "basketball" });
},
onTouch() {
this.webViewContext.postMessage({ netName: "mine.getVoiceType", data: "touch" });
},
onMilk() {
this.webViewContext.postMessage({ netName: "mine.getVoiceType", data: "milk" });
},
onFeed() {
this.webViewContext.postMessage({ netName: "mine.getVoiceType", data: "feed" });
},
onGrass() {
this.webViewContext.postMessage({ netName: "mine.getVoiceType", data: "grass" });
},
respond() {
// my.tg.playTTS({ text: '你好主人,欢迎开发语音小程序。您可以查看开发者文档探索更多我所具备的能力哦。' })
// my.alert({ content: 'huhu' });
},
test1() {
// my.request({
// url: 'https://ams.dui88.com/server/index.php?g=Web&c=Mock&o=simple&projectID=218&uri=qiaqia2.getExchangeGoodsList',
// method: 'get',
// success: ({ data }) => {
// console.log(data)
// my.alert({ content: JSON.stringify(data) })
// }
// });
// my.tg.playTTS({ text: '我是呼呼呀' })
},
searchVideo(artist, video) {
// my.alert({ content: "searchVideo" + artist + "," + video })
},
onHide() {
// 页面隐藏
},
onUnload() {
// 页面被关闭
},
onTitleClick() {
// 标题被点击
},
onPullDownRefresh() {
// 页面被下拉
},
onReachBottom() {
// 页面被拉到底部
},
onShareAppMessage() {
// 返回自定义分享信息
return {
title: 'My App',
desc: 'My App description',
path: 'pages/index/index',
};
},
});
{
"skill": [
{
"commands": ["hello"],
"onVoice": "respond"
},
{
"commands": ["test1"],
"onVoice": "test1"
},
{
"commands": ["searchVideo"],
"onVoice": "searchVideo(artist, title)"
},
{
"commands": ["music"],
"onVoice": "onMusic"
},
{
"commands": ["ball"],
"onVoice": "onBall"
},
{
"commands": ["touch"],
"onVoice": "onTouch"
},
{
"commands": ["milk"],
"onVoice": "onMilk"
},
{
"commands": ["feed"],
"onVoice": "onFeed"
},
{
"commands": ["grass"],
"onVoice": "onGrass"
}
]
}
\ No newline at end of file
.canvas {
width:100%;
height:100%;
}
.page-game {
/* position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
min-height: 100vh; */
flex: 1;
display: flex;
flex-direction: column;
}
\ No newline at end of file
<!-- <view class="page" disable-scroll="true" style="padding-top: 0px;-ms-touch-action: none; touch-action: none;background: #888888;
padding: 0;
border: 0;
margin: 0;
height: 100%;" > -->
<!-- 备用的canvas用于绘制文本,尺寸对内存影响很大 -->
<!-- <canvas
id="backupCanvas"
style="width:750;height:750;position:absolute;left:0;top:0;opacity:1;display:block"
width="750"
height="750"
disable-scroll="true"
class="canvas"
onTouchStart=""
onTouchMove=""
onTouchEnd=""
/> -->
<!-- <canvas
id="canvas"
type="webgl"
width="{{canWidth}}"
height= "{{canHeight}}"
disable-scroll="true"
class="canvas"
onTouchStart="log"
onTouchMove="log"
onTouchEnd="log"
style="width:{{divWidth}}px;height:{{divHeight}}px;position:absolute;left:0;top:0;display:block;background: #ff0000"
/> -->
<!-- <canvas
id="canva4stats"
type="webgl"
style="width:80;height:48;position:absolute;right:0;top:0;opacity:0.9;z-index:10000;display:block;"
width="80"
height="48"
class="canvas"
disable-scroll="true" /> -->
<!-- </view> -->
<!-- <view a:if="{{my.getSystemInfoSync().pixelRatio === 2}}"> 1 </view>
<view a:elif="{{1 > 2}}"> 2 </view>
<view a:else> 3 </view> pointer-events: none;-->
<view class="page-game">
<canvas id="canvas" type="2d" class="canvas" disable-scroll="true"
onTouchStart="log"
onTouchMove="log"
onTouchEnd="log"
onReady="onCanvasReady"
></canvas>
<!-- <canvas
id="canva4stats"
type="webgl"
style="width:80;height:48;position:absolute;right:0;top:0;opacity:0.9;z-index:10000;display:block;"
width="80"
height="48"
class="canvas"
disable-scroll="true" /> -->
</view>
import { Main } from './output.1591869086';
Page({
//暂时先不用吧,有问题
data: {
},
onLoad(query) {
// 页面加载
console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
},
onReady() {
// console.log(my._createCanvas)
// this.createMain();
return
my.development = true;
my._createCanvas({
id: 'canvas',
success: (ccc) => {
const dpr = my.getSystemInfoSync().pixelRatio
const windowWidth = my.getSystemInfoSync().windowWidth;
const windowHeight = my.getSystemInfoSync().windowHeight;
ccc.width = windowWidth * dpr;
ccc.height = windowHeight * dpr;
// const context = canvas.getContext("2d");
console.log(ccc.width, ccc.height, dpr)
//初始化
FYGE.initedByCanvas(ccc);
//测试
var aa = ccc.createImage();
aa.src = "https://yun.duiba.com.cn/db_games/activity/etc/optionImages/%E5%8D%8E%E4%B8%BAP30.jpg";
// console.log(aa)
//帧率控制
FYGE.Stage.addFPS("canva4stats")
this.main = new Main(ccc)
console.log(ccc.width, ccc.height)
}
})
},
onCanvasReady() {
my.alert({ content: '111' });
my.development = true;
this.createMain();
},
createMain() {
my.createCanvas({
id: 'canvas',
success: (ccc) => {
const dpr = my.getSystemInfoSync().pixelRatio
const windowWidth = my.getSystemInfoSync().windowWidth;
const windowHeight = my.getSystemInfoSync().windowHeight;
ccc.width = windowWidth * dpr;//重新修改会有误差
ccc.height = windowHeight * dpr;
// console.log(Main)
console.log(ccc.width, ccc.height)
if (!this.main) this.main = new Main(ccc)
// console.log(this.main)
}
})
},
onShow() {
// 页面显示
// FYGE.Stage.pause = false
if (this.main) this.main.run();
},
onHide() {
// 页面隐藏
// FYGE.Stage.pause = true
if (this.main) this.main.pause();
},
onUnload() {
// 页面被关闭
// Stage.stop()
if (this.main) this.main.destroy();
},
onTitleClick() {
// 标题被点击
},
onPullDownRefresh() {
// 页面被下拉
},
onReachBottom() {
// 页面被拉到底部
},
onShareAppMessage() {
// 返回自定义分享信息
return {
title: 'My App',
desc: 'My App description',
path: 'pages/index/index',
};
},
log(e) {
if (this.main) this.main.stage.onMouseEvent(e)
},
});
{}
\ No newline at end of file
import * as FYGE from 'fyge';
var requestID
Page({
//暂时先不用吧,有问题
data: {
divWidth: FYGE.sysInfo.windowWidth,
divHeight: FYGE.sysInfo.windowHeight,
canWidth: FYGE.osType == "ios" ? FYGE.sysInfo.windowWidth : FYGE.sysInfo.windowWidth * FYGE.devicePixelRatio,
canHeight: FYGE.osType == "ios" ? FYGE.sysInfo.windowHeight : FYGE.sysInfo.windowHeight * FYGE.devicePixelRatio,
},
onLoad(query) {
// 页面加载
console.info(`Page onLoad with query: ${JSON.stringify(query)}`);
},
onReady() {
my.development = true;
my._createCanvas({
id: 'canvas',
success: (ccc) => {
// console.log(FYGE)
//准备备用的canvas上下文
// FYGE.setBackupCanvasContext(my.createCanvasContext('backupCanvas'))
//初始化
FYGE.initedByCanvas(ccc);
var gl = ccc.getContext('webgl');//获取上下文后才有宽高
// var gl = ccc.getContext('2d')
// var a = my._createOffscreenCanvas()
// a.width = a.height = 300
// var cctx = a.getContext("2d");
// cctx.font = "13px";
// cctx.fillStyle = "red";
// cctx.fillRect(0,0,300,300)
// cctx.fillStyle = "black";
// cctx.fillText("啊实打实大苏打", 100, 100)
// console.log(a)
// gl.drawImage(a, 0, 0)
// gl.fillStyle="#ff0000"
// gl.fillRect(20,0,350,300)
// console.log(ccc.width)
// return
var stage = new FYGE.Stage(
gl,
{
desWidth: 750,
desHeight: 1206,
divWidth: FYGE.sysInfo.windowWidth,
divHeight: FYGE.sysInfo.windowHeight,
canWidth: ccc.width,
canHeight: ccc.height,
type: FYGE.RENDERER_TYPE.WEBGL
}
);
console.log(FYGE.sysInfo)
console.log(ccc.width, ccc.height)
// stage.renderObj.textureManager.img = img
this.stage = stage;
//stage初始化
stage.addEventListener(FYGE.Event.INIT_STAGE, () => {
//启动循环
FYGE.Stage.flushAll()
}, this);
//测试
// console.log(stage)
var t = FYGE.Texture.fromUrl("https://yun.duiba.com.cn/db_games/activity/etc/optionImages/%E5%8D%8E%E4%B8%BAP30.jpg")
// var t= FYGE.Texture.fromCanvas(a)
for (var i = 0; i < 50; i++) {
let sprite = new FYGE.Sprite(t);
stage.addChild(sprite);
sprite.width = sprite.height = 250
sprite.position.set(Math.random() * 750, Math.random() * 1206)
sprite.rotation = 30;
sprite.addEventListener(FYGE.Event.ENTER_FRAME, function () {
sprite.rotation += 2
})
}
// console.log(t)
// FYGE.Tween.get(sprite).to({ x: 750 }, 5000)
//文本
var text = new FYGE.TextField()
// text.position.set(0,-30)
text.size = 30;
text.fillColor = "#ff0000";
text.text = "10";
// stage.addChild(text);
// var count=1;
// setInterval(()=>{
// text.text=""+(count++);
// },100)
var text1 = new FYGE.TextField()
text1.position.set(200, 200)
text1.size = 30;
text1.fillColor = "#ff0000";
text1.text = "10";
// stage.addChild(text1);
// //帧率
FYGE.Stage.addFPS("canva4stats")
// var stats = new FYGE.Stats("canva4stats");
// //循环
// loop();
// function loop() {
// stats.begin();
// //全部都循环
// FYGE.Stage.flushAll();
// stats.end();
// //记录一个id,到时要cancelAnimationFrame的
// requestID = ccc.requestAnimationFrame(loop);
// }
}
})
// this.stage = new FYGE.Sprite()
},
onShow() {
// 页面显示
FYGE.Stage.pause = false
},
onHide() {
// 页面隐藏
FYGE.Stage.pause = true
},
onUnload() {
// 页面被关闭
// Stage.stop()
this.main.destroy();
},
onTitleClick() {
// 标题被点击
},
onPullDownRefresh() {
// 页面被下拉
},
onReachBottom() {
// 页面被拉到底部
},
onShareAppMessage() {
// 返回自定义分享信息
return {
title: 'My App',
desc: 'My App description',
path: 'pages/index/index',
};
},
log(e) {
if (e.touches && e.touches[0]) {
// console.log(e.type, e.touches[0].x, e.touches[0].y);
// my.alert({
// title: '55729:' + e.type + "," + e.touches[0].b + "," + e.touches[0].c
// });
// my.alert({
// title: JSON.stringify(e.changedTouches[0])
// });
} else {
// my.alert({
// title: JSON.stringify(e.changedTouches)
// });
// console.log(e.type);
}
// my.alert({
// title: JSON.stringify(e.type)
// });
// this.stage.onMouseEvent(e)
// console.log(e.type);
// console.log(my.getSystemInfoSync())
// console.log(my._createCanvas)
// console.log(this.ctx)
// this.stage.onMouseEvent(e)
},
});
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
import * as FYGE from "fyge-tbmini";
import * as SvgaParser from "svga-parser";
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(window,(function(){return n={},e.m=t=[function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=n(5),a=n(6),u=(r(l,i=FYGE.Container),l.prototype.init=function(e){e.addChild(this);for(var t=["_bottomLayer","_sceneLayer","_popupLayer","_toastLayer","_topLayer","_shareLayer"],n=0;n<t.length;n++)this[t[n]]=new FYGE.Container,this.addChild(this[t[n]]);a.default.instance.init(this.sceneLayer),s.default.instance.init(this.popupLayer)},Object.defineProperty(l.prototype,"bottomLayer",{get:function(){return this._bottomLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"sceneLayer",{get:function(){return this._sceneLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"popupLayer",{get:function(){return this._popupLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"toastLayer",{get:function(){return this._toastLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"topLayer",{get:function(){return this._topLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"shareLayer",{get:function(){return this._shareLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageHeight",{get:function(){return this.stage?this.stage.viewRect.height:0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageWidth",{get:function(){return this.stage?this.stage.viewRect.width:0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageOffsetX",{get:function(){return this.stage?this.stage.viewRect.x:0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageOffsetY",{get:function(){return this.stage?this.stage.viewRect.y:0},enumerable:!0,configurable:!0}),l);function l(){return null!==i&&i.apply(this,arguments)||this}t.layers=new u,t.destroyLayers=function(){t.layers.removeChildren(),t.layers.parent&&t.layers.parent.removeChild(t.layers)}},function(e,t,n){"use strict";var o,r,i,s,a,u,l;function c(e,t,n){var r=e.substring(e.lastIndexOf(".")+1,e.length);if("png"==r||"jpg"==r){if(!FYGE.TextureCache[e]){if(l[e])return f(e,t,n);if((d=p(e))&&"jpg"!=r){var s=h(d);if(s&&s.atlas){var a=d+".json";return l[a]?l[a].then((function(o){return t&&t.call(n,FYGE.TextureCache[e],e),FYGE.TextureCache[e]}),(function(){return t&&t.call(n,null,e),null})):c(a).then((function(){return t&&t.call(n,FYGE.TextureCache[e],e),FYGE.TextureCache[e]}),(function(){return t&&t.call(n,null,e),null}))}}var u=d?o.resPath+d+"/"+e:e,y=new Promise((function(o,r){FYGE.GlobalLoader.loadImage((function(i,s){delete l[e],i?(FYGE.Texture.addToCache(FYGE.Texture.from(s),e),t&&t.call(n,FYGE.TextureCache[e],e),o(FYGE.TextureCache[e])):(t&&t.call(n,null,e),r())}),u)}));return l[e]=y}t&&t.call(n,FYGE.TextureCache[e],e),new Promise((function(t){t(FYGE.TextureCache[e])}))}else{if("svga"==r)return i[e]?(t&&t.call(n,i[e],e),new Promise((function(t){t(i[e])}))):l[e]?f(e,t,n):(u=(d=p(e))?o.resPath+d+"/"+e:e,y=new Promise((function(o,r){FYGE.GlobalLoader.loadSvga((function(s,a){delete l[e],s?(s&&(i[e]=a),t&&t.call(n,a,e),o(a)):(t&&t.call(n,null,e),r())}),u)})),l[e]=y);if("json"==r){if(l[e])return f(e,t,n);var d;u=(d=p(e))?o.resPath+d+"/"+e:e,y=new Promise((function(o,r){var i=h(d).atlas;FYGE.GlobalLoader.loadImage((function(s,a){var u;s?(u=FYGE.createTextureSheet(new FYGE.BaseTexture(a),i),t&&t.call(n,u,e),o(u)):(t&&t.call(n,null,e),r())}),u.replace("json","png"))}));return l[e]=y}}}function p(e){for(var t=0;t<r.groups.length;t++){var n=r.groups[t],o=n.keys;if(o&&-1<o.split(",").indexOf(e))return n.name;if(n.atlas&&n.name+".json"==e)return n.name}return null}function h(e){for(var t,n=r.groups,o=0;o<n.length;o++)if(n[o].name===e){t=n[o];break}return t}function f(e,t,n){return l[e].then((function(o){t&&t.call(n,o,e)}),(function(){t&&t.call(n,null,e)})),l[e]}Object.defineProperty(t,"__esModule",{value:!0}),o=t.RES||(t.RES={}),i={},s={},a={},u={},l={},o.loadConfig=function(e){r=e,o.resPath=e.path},o.loadGroup=function(e){if(a[e])return new Promise((function(e){e()}));if(u[e])return u[e];var t=function(e){var t=h(e);if(!t)return null;if(t.atlas){var n=[e+".json"];return t.keys&&(n=n.concat(t.keys.split(",").filter((function(e){return".png"!=e.substr(-4)})))),n}return t.keys?t.keys.split(","):null}(e);if(!t||!t.length)return a[e]=!0,new Promise((function(e){e()}));var n=new Promise((function(n,o){!function(e,t){var n=0,o=t.length;o||e(!0);for(var r=!0,i=0;i<o;i++)c(t[i],(function(t,i){t||(r=!1),++n==o&&e(r)}),this)}((function(t){delete u[e],t?(a[e]=!0,n()):o()}),t)}));return u[e]=n},o.getResAsync=c,o.getResByUrl=function(){},o.getRes=function(e){var t=e.substring(e.lastIndexOf(".")+1,e.length);return"png"==t||"jpg"==t?FYGE.TextureCache[e]||null:"svga"==t?i[e]||null:"mp3"==t?s[e]||null:void 0}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s,a=n(1),u=n(0),l=!1;t.showWaiting=function(e){var t,n,o,r;l||(l=!0,t=new p,s=u.layers.topLayer,i=t,n=(u.layers.stageWidth-160)/2,o=(u.layers.stageHeight-i.height)/2,i.x=u.layers.stageOffsetX-s.x+n,i.y=u.layers.stageOffsetY-s.y+o,(r=(new FYGE.Graphics).beginFill(0).drawRect(-n,-o,u.layers.stageWidth,u.layers.stageHeight).endFill()).alpha=0,i.addChildAt(r,0)),i.show(e),s.addChild(i)},t.hideWaiting=function(){s.removeChild(i)},t.destroyWaiting=function(){l&&i&&!i.destroyed&&(i.destroy(),s=i=null,l=!1)};var c,p=(r(h,c=FYGE.Container),h.prototype.show=function(e){void 0===e&&(e="加载中"),this.msg.text=e},h.prototype.destroy=function(){c.prototype.destroy.call(this),this.msg=null},h);function h(){var e=c.call(this)||this,t=a.RES.getRes("waitingBg.png"),n=new FYGE.Sprite(t);e.addChild(n);var o=a.RES.getRes("waitingRot.png"),r=new FYGE.Sprite(o);r.x=(t.width-o.width)/2,r.y=47,r.anchorX=o.width/2,r.anchorY=o.height/2,e.addChild(r);var i=0;return r.addEventListener(FYGE.Event.ENTER_FRAME,(function(){++i%30==0&&(r.rotation+=45)}),e),e.msg=new FYGE.TextField,e.msg.y=125,e.msg.textWidth=t.width,e.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,e.msg.size=26,e.msg.fillColor="#ffffff",e.addChild(e.msg),e}},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s,a,u,l=n(0),c=n(1),p=!1;t.showToast=function(e){var t,n;p||(p=!0,i=new f,s=l.layers.toastLayer,i.alpha=0,i.x=l.layers.stageOffsetX-s.x+(l.layers.stageWidth-i.width)/2,t=i.height,n=l.layers.stageOffsetY-s.y,a=n-t,u=n+(l.layers.stageHeight-t)/2),i.show(e),s.addChild(i),FYGE.Tween.removeTweens(i),FYGE.Tween.get(i).set({y:a,alpha:1}).to({y:u},500,FYGE.Ease.quartOut).wait(800).to({alpha:0},300).call((function(){s.removeChild(i)}))},t.destroyToast=function(){p&&i&&!i.destroyed&&(i.destroy(),s=i=null,p=!1)};var h,f=(r(y,h=FYGE.Container),y.prototype.show=function(e){this.msg.text=e,this.msg.x=(this.bg.width-this.msg.textWidth)/2},y.prototype.destroy=function(){h.prototype.destroy.call(this),this.msg=null,this.bg=null},y);function y(){var e=h.call(this)||this;e.PADDING=40,e.mouseChildren=!1,e.mouseEnable=!1;var t=c.RES.getRes("toastBg.png");return e.bg=new FYGE.Sprite(t),e.addChild(e.bg),e.msg=new FYGE.TextField,e.msg.size=28,e.msg.fillColor="0xffffff",e.msg.text="",e.msg.verticalAlign=FYGE.VERTICAL_ALIGN.MIDDLE,e.msg.textHeight=t.height,e.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,e.addChild(e.msg),e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(5),i=n(6),s=n(3),a=n(3);t.showToast=a.showToast,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(2)),t.showPanel=function(e,t){r.default.instance.show(e,t)},t.closeAllPanels=function(){r.default.instance.closeAll()},t.closeCurrentPanel=function(){r.default.instance.closeCurrent()},t.changeScene=function(e,t){i.default.instance.change(e,t)},t.getCurrentScene=function(){return i.default.instance.currentScene},t.showAlert=function(e,t){my?my.alert({title:e||"",content:t||""}):console.log(e,t)},t.wait=function(e,t){var n={};return FYGE.Tween.get(n).wait(t).call(e),n},t.clearWait=function(e){FYGE.Tween.removeTweens(e)},t.destroyAllCtrls=function(){s.destroyToast(),o.destroyWaiting(),r.default.instance.destroy(),i.default.instance.destroy()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(0),r=n(2),i=n(3),s=(Object.defineProperty(a,"instance",{get:function(){return a._instance||(a._instance=new a)},enumerable:!0,configurable:!0}),a.prototype.init=function(e){this._parent=e;var t=new FYGE.Graphics;t.beginFill(0,1),t.drawRect(o.layers.stageOffsetX-e.x,o.layers.stageOffsetY-e.y,o.layers.stageWidth,o.layers.stageHeight),t.endFill(),t.visible=!1,this._parent.addChild(t),this._bg=t},a.prototype.closeAll=function(){this.stacks.forEach((function(e){return e.hidePanel()}))},a.prototype.show=function(e,t){var n=this;r.showWaiting();var o=new e(t);return this.add(o),this.stacks.push(o),o.onLoaded=function(){r.hideWaiting(),n.updateView(),o.start(t)},o.onLoadError=function(){r.hideWaiting(),i.showToast("资源加载失败"),o.removeEventListener("onDestroy",n.onPanelHide,n),n.remove(o)},o},a.prototype.updateView=function(){this.stacks.length?!(this._parent.visible=!0)===this._bg.visible&&(this._bg.visible=!0,this._bg.alpha=0,FYGE.Tween.removeTweens(this._bg),FYGE.Tween.get(this._bg).to({alpha:.7},200,FYGE.Ease.cubicOut)):(this._bg.visible=!1,this._current=null,this._parent.visible=!1);for(var e=0;e<this.stacks.length;e++)e<this.stacks.length-1?this.stacks[e].visible=!1:(this.stacks[e].visible=!0,this.stacks[e].showAni(),this._current=this.stacks[e])},a.prototype.add=function(e){this._parent.addChild(e),e.addEventListener("onDestroy",this.onPanelHide,this)},a.prototype.remove=function(e){this._parent.removeChild(e),this.stacks=this.stacks.filter((function(t){return t!=e}))},a.prototype.onPanelHide=function(e){var t=e.target;t.removeEventListener("onDestroy",this.onPanelHide,this),this.remove(t),this.updateView()},a.prototype.closeCurrent=function(){this._current&&this._current.hidePanel()},a.prototype.destroy=function(){a._instance=null,this.stacks=null,this._current=null,this._parent=null,this._bg.destroy(),this._bg=null},a);function a(){this.stacks=[]}t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(2),r=n(3),i=(Object.defineProperty(s,"instance",{get:function(){return s._instance||(s._instance=new s)},enumerable:!0,configurable:!0}),s.prototype.init=function(e){this._parent=e},s.prototype.change=function(e,t){var n,i,s=this;this._currentScene&&this._currentScene instanceof e||((n=new e(t)).visible=!1,o.showWaiting(),i=this._currentScene,n.onLoaded=function(){o.hideWaiting(),n.showAni((function(){i&&i.destroy()})),n.visible=!0,n.start()},n.onLoadError=function(){o.hideWaiting(),r.showToast("资源加载失败"),s._currentScene=i||null,s._parent.removeChild(n)},this._currentScene=n,this._parent.addChild(n))},Object.defineProperty(s.prototype,"currentScene",{get:function(){return this._currentScene},enumerable:!0,configurable:!0}),s.prototype.destroy=function(){s._instance=null,this._currentScene=null,this._parent=null},s);function s(){}t.default=i},function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n=n||Promise)((function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}u((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=0<(r=i.trys).length&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(0),s=n(1),a=n(4),u=n(8),l=n(11),c=n(12);t.GDispatcher=new FYGE.EventDispatcher;var p=(h.prototype.onAddToStage=function(){return o(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return i.layers.init(this.stage),console.log("初始化层级完成"),s.RES.loadConfig(l.ResJson),console.log("初始化资源配置完成"),[4,s.RES.loadGroup("common")];case 1:return e.sent(),console.log("通用资源加载完成"),a.changeScene(u.StartScene),console.log("恶趣味去"),[2]}}))}))},h.prototype.run=function(){this._pause=!1},h.prototype.pause=function(){this._pause=!0},h.prototype.addGlobalEvent=function(e,n,o,r){void 0===r&&(r=!1),r?t.GDispatcher.once(e,n,o):t.GDispatcher.addEventListener(e,n,o)},h.prototype.dispatchGlobalEvent=function(e,n){t.GDispatcher.dispatchEvent(e,n)},h.prototype.removeGlobalEvent=function(e,n,o){t.GDispatcher.removeEventListener(e,n,o)},h.prototype.destroy=function(){FYGE.Tween.removeAllTweens(),FYGE.getCancelAnimationFrame()(this.requestID),i.destroyLayers(),a.destroyAllCtrls(),this.stage.destroy(),t.GDispatcher.removeAllEventListener(),c.destroyNetData()},h);function h(e){var t;my&&(FYGE.initedByCanvas(e),t=my.getSystemInfoSync());var n=new FYGE.Stage(e,750,1624,t&&t.windowWidth||document.body.clientWidth,t&&t.windowHeight||document.body.clientHeight,FYGE.RENDERER_TYPE.CANVAS);(this.stage=n).addEventListener(FYGE.Event.INIT_STAGE,this.onAddToStage,this);var o=this;!function e(){o._pause||(FYGE.Tween.flush(),n.flush()),o.requestID=FYGE.getRequestAnimationFrame()(e)}()}t.Main=p},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(9),s=n(1),a=n(4),u=n(0);t.svgaPool={};var l,c=(r(p,l=i.Scene),Object.defineProperty(p.prototype,"groupNames",{get:function(){return["startScene"]},enumerable:!0,configurable:!0}),p.prototype.initUi=function(){l.prototype.initUi.call(this),this.addChild(new FYGE.Sprite(s.RES.getRes("startBg.jpg")))},p.prototype.start=function(){l.prototype.start.call(this),a.showToast("点击下方按钮\n开始游戏"),a.wait((function(){a.showToast("下一句文案\n是否覆盖")}),2e3),this.testMove(),this.testMv();var e=new FYGE.Button(s.RES.getRes("startBtn.png"));e.position.set(151.5,1e3),this.addChild(e),e.addEventListener(FYGE.MouseEvent.CLICK,(function(){console.log("9999546"),my.navigateTo({url:"/pages/index2/index2"})}),this)},p.prototype.testMove=function(){var e=new FYGE.Sprite(s.RES.getRes("silverDraft.png"));e.x=500,e.y=0,this.addChild(e),this.addEventListener(FYGE.Event.ENTER_FRAME,(function(){e.y+=5,e.y=Math.round(e.y),1300<e.y&&(e.y=0)}),this)},p.prototype.testScroll=function(){var e=new FYGE.Sprite(s.RES.getRes("startBg.jpg")),t=new FYGE.ScrollPage(750,u.layers.stageHeight,1624,!0,!0);t.view.addChild(e),this.addChild(t),t.x=100,t.y=100;var n=new FYGE.ScrollPage(750,200,1624,!1,!1);n.maxDistance=2090,n.y=900,t.view.addChild(n);for(var o=0;o<10;o++){var r=new FYGE.Sprite(s.RES.getRes("silverDraft.png"));r.width=200,r.height=200,r.x=10*o+200*o,n.view.addChild(r)}},p.prototype.testGraphics=function(){var e=new FYGE.Graphics;e.beginFill(16711680,.7),e.drawEllipse(200,200,200,300),e.endFill(),this.addChild(e)},p.prototype.testSprite=function(){for(var e=s.RES.getRes("silverDraft.png"),t=0;t<2500;t++){var n=new FYGE.Sprite(e);n.x=750*Math.random(),n.y=1206*Math.random(),this.addChild(n)}},p.prototype.testMv=function(){var e=this;SvgaParser.loadSvga("cloud://A8673B47AAA58993A24A6718E203B967//dice.svga",(function(t){var n=new FYGE.MovieClip(t);e.addChild(n)}),(function(){console.log(123)}))},p);function p(){return null!==l&&l.apply(this,arguments)||this}t.StartScene=c},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=n(10),a=(r(u,i=s.Module),u.prototype.showAni=function(e){e()},u.prototype.updateScene=function(){},u);function u(){return null!==i&&i.apply(this,arguments)||this}t.Scene=a},function(e,t,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,s=n(1),a=(r(u,i=FYGE.Container),u.prototype.init=function(){var e=this;this.preLoadRes().then((function(){e.initUi(),e.onLoaded&&e.onLoaded()}),(function(){e.onLoadError&&e.onLoadError()}))},u.prototype.preLoadRes=function(){var e=this;return new Promise((function(t,n){if(e.groupNames&&e.groupNames.length){for(var o=[],r=0;r<e.groupNames.length;r++)o.push(s.RES.loadGroup(e.groupNames[r]));Promise.all(o).then(t,n)}else t()}))},u.prototype.initUi=function(){},Object.defineProperty(u.prototype,"groupNames",{get:function(){return null},enumerable:!0,configurable:!0}),u.prototype.start=function(e){this.initEvents()},u.prototype.initEvents=function(){},u.prototype.removeEvents=function(){},u.prototype.enableMouseEvt=function(e){this.mouseEnable=e,this.mouseChildren=e},u.prototype.destroy=function(){this.data=null,this.removeEvents(),this.dispatchEvent("onDestroy"),i.prototype.destroy.call(this)},u);function u(e){var t=i.call(this)||this;return t.data=e,t.init(),t}t.Module=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResJson={groups:[{keys:"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png",name:"common",atlas:{"comCloseBtn.png":{x:2,y:374,w:48,h:48,ox:0,oy:0,sw:48,sh:48,ro:!1},"toastBg.png":{x:2,y:2,w:460,h:130,ox:0,oy:0,sw:460,sh:130,ro:!1},"waitingBg.png":{x:2,y:134,w:160,h:180,ox:0,oy:0,sw:160,sh:180,ro:!1},"waitingRot.png":{x:2,y:316,w:56,h:56,ox:0,oy:0,sw:56,sh:56,ro:!1}}},{keys:"ele1024.png,ele128.png,ele16.png,ele2.png,ele2048.png,ele256.png,ele32.png,ele4.png,ele512.png,ele64.png,ele8.png,guideArrow.png,guideFinger.png,playBg.jpg",name:"playScene",atlas:{"ele1024.png":{x:217,y:188,w:100,h:99,ox:0,oy:0,sw:100,sh:99,ro:!1},"ele128.png":{x:358,y:2,w:106,h:92,ox:0,oy:0,sw:106,sh:92,ro:!1},"ele16.png":{x:351,y:96,w:102,h:101,ox:0,oy:0,sw:102,sh:101,ro:!1},"ele2.png":{x:2,y:200,w:103,h:89,ox:0,oy:0,sw:103,sh:89,ro:!1},"ele2048.png":{x:246,y:2,w:110,h:92,ox:0,oy:0,sw:110,sh:92,ro:!1},"ele256.png":{x:111,y:187,w:104,h:91,ox:0,oy:0,sw:104,sh:91,ro:!1},"ele32.png":{x:133,y:93,w:108,h:92,ox:0,oy:0,sw:108,sh:92,ro:!1},"ele4.png":{x:2,y:2,w:129,h:92,ox:0,oy:0,sw:129,sh:92,ro:!1},"ele512.png":{x:243,y:96,w:106,h:90,ox:0,oy:0,sw:106,sh:90,ro:!1},"ele64.png":{x:2,y:96,w:107,h:102,ox:0,oy:0,sw:107,sh:102,ro:!1},"ele8.png":{x:133,y:2,w:111,h:89,ox:0,oy:0,sw:111,sh:89,ro:!1},"guideArrow.png":{x:111,y:96,w:51,h:14,ox:0,oy:0,sw:51,sh:14,ro:!0},"guideFinger.png":{x:455,y:96,w:53,h:78,ox:0,oy:0,sw:53,sh:78,ro:!1}}},{keys:"silverDraft.png,startBg.jpg,startBtn.png",name:"startScene",atlas:{"silverDraft.png":{x:110,y:2,w:112,h:132,ox:0,oy:0,sw:112,sh:132,ro:!0},"startBtn.png":{x:2,y:2,w:447,h:106,ox:0,oy:0,sw:447,sh:106,ro:!0}}},{keys:"light.png,unlock1024.png,unlock128.png,unlock16.png,unlock2.png,unlock2048.png,unlock256.png,unlock32.png,unlock512.png,unlock64.png,unlock8.png,unlockMsg.png,unlockPanelBg.png,zailaiyiju.png",name:"unlockPanel",atlas:{"light.png":{x:2,y:2,w:1158,h:1190,ox:0,oy:90,sw:1162,sh:1280,ro:!1},"unlock1024.png":{x:676,y:1425,w:227,h:191,ox:143,oy:93,sw:449,sh:363,ro:!0},"unlock128.png":{x:1026,y:1622,w:197,h:165,ox:142,oy:101,sw:449,sh:363,ro:!0},"unlock16.png":{x:676,y:1863,w:183,h:179,ox:150,oy:87,sw:449,sh:363,ro:!0},"unlock2.png":{x:1040,y:1421,w:185,h:163,ox:143,oy:96,sw:449,sh:363,ro:!0},"unlock2048.png":{x:676,y:1194,w:229,h:187,ox:127,oy:74,sw:449,sh:363,ro:!0},"unlock256.png":{x:869,y:1421,w:199,h:169,ox:137,oy:96,sw:449,sh:363,ro:!0},"unlock32.png":{x:849,y:1654,w:201,h:175,ox:139,oy:92,sw:449,sh:363,ro:!0},"unlock512.png":{x:676,y:1654,w:207,h:171,ox:127,oy:87,sw:449,sh:363,ro:!0},"unlock64.png":{x:857,y:1857,w:197,h:187,ox:134,oy:81,sw:449,sh:363,ro:!1},"unlock8.png":{x:865,y:1194,w:225,h:179,ox:101,oy:88,sw:449,sh:363,ro:!0},"unlockMsg.png":{x:237,y:1946,w:276,h:40,ox:0,oy:0,sw:276,sh:40,ro:!1},"unlockPanelBg.png":{x:2,y:1194,w:672,h:750,ox:30,oy:386,sw:750,sh:1624,ro:!1},"zailaiyiju.png":{x:2,y:1946,w:233,h:77,ox:0,oy:0,sw:233,sh:77,ro:!1}}}],path:"https://yun.duiba.com.cn/db_games/activity/anything/1591687682/resource/"}},function(e,t,n){"use strict";var o=this&&this.__awaiter||function(e,t,n,o){return new(n=n||Promise)((function(r,i){function s(e){try{u(o.next(e))}catch(e){i(e)}}function a(e){try{u(o.throw(e))}catch(e){i(e)}}function u(e){e.done?r(e.value):new n((function(t){t(e.value)})).then(s,a)}u((o=o.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=0<(r=i.trys).length&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0});var i,s=n(4);(i=t.TbNetName||(t.TbNetName={})).aaa="aaa",i.getCredits="getCredits",i.startGame="startGame",i.submit="submit",i.getTools="getTools",i.getTaskList="getTaskList",i.getToolsByType="getToolsByType",i.useTools="useTools";var a,u={};t.sendTbNet=function(e,t,n,i){void 0===i&&(i=!1);var c=s.wait((function(){i||s.showToast("网络超时"),n(!1)}),5e3);my?(a=a||getApp().cloud.function).invoke("becheery",t,e).then((function(t){s.clearWait(c),u[e]=t,i||t.success||s.showToast(l[t.code]||t.message||"网络异常"),n(t.success,t)})):function(e){return o(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,fetch(e)];case 1:return[4,t.sent().json()];case 2:return[2,t.sent()]}}))}))}("../../mock/miniTb/"+e+".json").then((function(e){s.clearWait(c),u[name]=e,i||e.success||s.showToast(e.message||"网络异常"),n(e.success,e)}),(function(){}))},t.getTbData=function(e){return u[e]||null},t.destroyNetData=function(){u={}};var l={210001:"服务器异常",210002:"用户不存在",210003:"邀请已达上限",210004:"无法邀请自己",210006:"该活动ID无效",210009:"该活动暂未开始",210010:"该分享ID不存在",210012:"该用户暂未获奖",210013:"领取失败",210015:"该活动已删除",210016:"该活动已经结束",210017:"该奖品已达领取上线",210018:"请先分享好友",210019:"暂有奖品未领取",210020:"暂有奖品未完成",210021:"请先玩一局游戏",210022:"请先选择奖品",210023:"领取失败,库存不足",210024:"请先成为会员",210025:"奖品已经过期",210026:"不能重复助力",210028:"请至我的奖品页重新领取"}}],e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var r in t)e.d(o,r,function(e){return t[e]}.bind(null,r));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=7);function e(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var t,n}));
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
import * as FYGE from "fyge-tbmini";
import * as SvgaParser from "svga-parser";
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var o in n)("object"==typeof exports?exports:t)[o]=n[o]}}(window,(function(){return n={},t.m=e=[function(t,e,n){"use strict";var o,r,i,s,a,u,l;function c(t,e,n){var r=t.substring(t.lastIndexOf(".")+1,t.length);if("png"==r||"jpg"==r){if(!FYGE.TextureCache[t]){if(l[t])return f(t,e,n);if((y=h(t))&&"jpg"!=r){var s=p(y);if(s&&s.atlas){var a=y+".json";return l[a]?l[a].then((function(o){return e&&e.call(n,FYGE.TextureCache[t],t),FYGE.TextureCache[t]}),(function(){return e&&e.call(n,null,t),null})):c(a).then((function(){return e&&e.call(n,FYGE.TextureCache[t],t),FYGE.TextureCache[t]}),(function(){return e&&e.call(n,null,t),null}))}}var u=y?o.resPath+y+"/"+t:t,d=new Promise((function(o,r){FYGE.GlobalLoader.loadImage((function(i,s){delete l[t],i?(FYGE.Texture.addToCache(FYGE.Texture.from(s),t),e&&e.call(n,FYGE.TextureCache[t],t),o(FYGE.TextureCache[t])):(e&&e.call(n,null,t),r())}),u)}));return l[t]=d}e&&e.call(n,FYGE.TextureCache[t],t),new Promise((function(e){e(FYGE.TextureCache[t])}))}else{if("svga"==r)return i[t]?(e&&e.call(n,i[t],t),new Promise((function(e){e(i[t])}))):l[t]?f(t,e,n):(u=(y=h(t))?o.resPath+y+"/"+t:t,d=new Promise((function(o,r){FYGE.GlobalLoader.loadSvga((function(s,a){delete l[t],s?(s&&(i[t]=a),e&&e.call(n,a,t),o(a)):(e&&e.call(n,null,t),r())}),u)})),l[t]=d);if("json"==r){if(l[t])return f(t,e,n);var y;u=(y=h(t))?o.resPath+y+"/"+t:t,d=new Promise((function(o,r){var i=p(y).atlas;FYGE.GlobalLoader.loadImage((function(s,a){var u;s?(u=FYGE.createTextureSheet(new FYGE.BaseTexture(a),i),e&&e.call(n,u,t),o(u)):(delete l[t],e&&e.call(n,null,t),r())}),u.replace("json","png"))}));return l[t]=d}}}function h(t){for(var e=0;e<r.groups.length;e++){var n=r.groups[e],o=n.keys;if(o&&-1<o.split(",").indexOf(t))return n.name;if(n.atlas&&n.name+".json"==t)return n.name}return null}function p(t){for(var e,n=r.groups,o=0;o<n.length;o++)if(n[o].name===t){e=n[o];break}return e}function f(t,e,n){return l[t].then((function(o){e&&e.call(n,o,t)}),(function(){e&&e.call(n,null,t)})),l[t]}Object.defineProperty(e,"__esModule",{value:!0}),o=e.RES||(e.RES={}),i={},s={},a={},u={},l={},o.loadConfig=function(t){r=t,o.resPath=t.path},o.loadGroup=function(t){if(a[t])return new Promise((function(t){t()}));if(u[t])return u[t];var e=function(t){var e=p(t);if(!e)return null;if(e.atlas){var n=[t+".json"];return e.keys&&(n=n.concat(e.keys.split(",").filter((function(t){return".png"!=t.substr(-4)})))),n}return e.keys?e.keys.split(","):null}(t);if(!e||!e.length)return a[t]=!0,new Promise((function(t){t()}));var n=new Promise((function(n,o){!function(t,e){var n=0,o=e.length;o||t(!0);for(var r=!0,i=0;i<o;i++)c(e[i],(function(e,i){e||(r=!1),++n==o&&t(r)}),this)}((function(e){delete u[t],e?(a[t]=!0,n()):o()}),e)}));return u[t]=n},o.getResAsync=c,o.getResByUrl=function(){},o.getRes=function(t){var e=t.substring(t.lastIndexOf(".")+1,t.length);return"png"==e||"jpg"==e?FYGE.TextureCache[t]||null:"svga"==e?i[t]||null:"mp3"==e?s[t]||null:void 0}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(6),a=n(7),u=(r(l,i=FYGE.Container),l.prototype.init=function(t){t.addChild(this);for(var e=["_bottomLayer","_sceneLayer","_popupLayer","_toastLayer","_topLayer","_shareLayer"],n=0;n<e.length;n++)this[e[n]]=new FYGE.Container,this.addChild(this[e[n]]);a.default.instance.init(this.sceneLayer),s.default.instance.init(this.popupLayer)},Object.defineProperty(l.prototype,"bottomLayer",{get:function(){return this._bottomLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"sceneLayer",{get:function(){return this._sceneLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"popupLayer",{get:function(){return this._popupLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"toastLayer",{get:function(){return this._toastLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"topLayer",{get:function(){return this._topLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"shareLayer",{get:function(){return this._shareLayer},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageHeight",{get:function(){return this.stage?this.stage.viewRect.height:0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageWidth",{get:function(){return this.stage?this.stage.viewRect.width:0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageOffsetX",{get:function(){return this.stage?this.stage.viewRect.x:0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"stageOffsetY",{get:function(){return this.stage?this.stage.viewRect.y:0},enumerable:!0,configurable:!0}),l);function l(){return null!==i&&i.apply(this,arguments)||this}e.layers=new u,e.destroyLayers=function(){e.layers.removeChildren(),e.layers.parent&&e.layers.parent.removeChild(e.layers)}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s,a=n(0),u=n(1),l=!1;e.showWaiting=function(t){var e,n,o,r;l||(l=!0,e=new h,s=u.layers.topLayer,i=e,n=(u.layers.stageWidth-160)/2,o=(u.layers.stageHeight-i.height)/2,i.x=u.layers.stageOffsetX-s.x+n,i.y=u.layers.stageOffsetY-s.y+o,(r=(new FYGE.Graphics).beginFill(0).drawRect(-n,-o,u.layers.stageWidth,u.layers.stageHeight).endFill()).alpha=0,i.addChildAt(r,0)),i.show(t),s.addChild(i)},e.hideWaiting=function(){s.removeChild(i)},e.destroyWaiting=function(){l&&i&&!i.destroyed&&(i.destroy(),s=i=null,l=!1)};var c,h=(r(p,c=FYGE.Container),p.prototype.show=function(t){void 0===t&&(t="加载中"),this.msg.text=t},p.prototype.destroy=function(){c.prototype.destroy.call(this),this.msg=null},p);function p(){var t=c.call(this)||this,e=a.RES.getRes("waitingBg.png"),n=new FYGE.Sprite(e);t.addChild(n);var o=a.RES.getRes("waitingRot.png"),r=new FYGE.Sprite(o);r.x=(e.width-o.width)/2,r.y=47,r.anchorX=o.width/2,r.anchorY=o.height/2,t.addChild(r);var i=0;return r.addEventListener(FYGE.Event.ENTER_FRAME,(function(){++i%30==0&&(r.rotation+=45)}),t),t.msg=new FYGE.TextField,t.msg.y=125,t.msg.textWidth=e.width,t.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,t.msg.size=26,t.msg.fillColor="#ffffff",t.addChild(t.msg),t}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s,a,u,l=n(1),c=n(0),h=!1;e.showToast=function(t){var e,n;h||(h=!0,i=new f,s=l.layers.toastLayer,i.alpha=0,i.x=l.layers.stageOffsetX-s.x+(l.layers.stageWidth-i.width)/2,e=i.height,n=l.layers.stageOffsetY-s.y,a=n-e,u=n+(l.layers.stageHeight-e)/2),i.show(t),s.addChild(i),FYGE.Tween.removeTweens(i),FYGE.Tween.get(i).set({y:a,alpha:1}).to({y:u},500,FYGE.Ease.quartOut).wait(800).to({alpha:0},300).call((function(){s.removeChild(i)}))},e.destroyToast=function(){h&&i&&!i.destroyed&&(i.destroy(),s=i=null,h=!1)};var p,f=(r(d,p=FYGE.Container),d.prototype.show=function(t){this.msg.text=t,this.msg.x=(this.bg.width-this.msg.textWidth)/2},d.prototype.destroy=function(){p.prototype.destroy.call(this),this.msg=null,this.bg=null},d);function d(){var t=p.call(this)||this;t.PADDING=40,t.mouseChildren=!1,t.mouseEnable=!1;var e=c.RES.getRes("toastBg.png");return t.bg=new FYGE.Sprite(e),t.addChild(t.bg),t.msg=new FYGE.TextField,t.msg.size=28,t.msg.fillColor="0xffffff",t.msg.text="",t.msg.verticalAlign=FYGE.VERTICAL_ALIGN.MIDDLE,t.msg.textHeight=e.height,t.msg.textAlign=FYGE.TEXT_ALIGN.CENTER,t.addChild(t.msg),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(6),i=n(7),s=n(3),a=n(3);e.showToast=a.showToast,function(t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])}(n(2)),e.showPanel=function(t,e){r.default.instance.show(t,e)},e.closeAllPanels=function(){r.default.instance.closeAll()},e.closeCurrentPanel=function(){r.default.instance.closeCurrent()},e.changeScene=function(t,e){i.default.instance.change(t,e)},e.getCurrentScene=function(){return i.default.instance.currentScene},e.showAlert=function(t,e){my?my.alert({title:t||"",content:e||""}):console.log(t,e)},e.wait=function(t,e){var n={};return FYGE.Tween.get(n).wait(e).call(t),n},e.clearWait=function(t){FYGE.Tween.removeTweens(t)},e.destroyAllCtrls=function(){s.destroyToast(),o.destroyWaiting(),r.default.instance.destroy(),i.default.instance.destroy()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=(i.init=function(){},i.getSprite=function(t,e,n){void 0===e&&(e=0),void 0===n&&(n=0);var r=new FYGE.Sprite(o.RES.getRes(t));return r.x=e,r.y=n,r},i.getText=function(t,e,n,o,r,i,s){void 0===n&&(n="#000000"),void 0===o&&(o=0),void 0===r&&(r=FYGE.TEXT_ALIGN.CENTER),void 0===i&&(i=0),void 0===s&&(s=0);var a=new FYGE.TextField;return a.fillColor=n,a.size=e,a.textWidth=o,a.textAlign=r,a.x=i,a.y=s,a.text=t,a},i.getRect=function(t,e,n,o,r,i,s){void 0===n&&(n=16711680),void 0===o&&(o=1),void 0===r&&(r=0),void 0===i&&(i=0),void 0===s&&(s=0);var a=new FYGE.Graphics;return a.beginFill(n),a.alpha=o,r?a.drawRoundedRect(0,0,t,e,r):a.drawRect(0,0,t,e),a.endFill(),a.position.set(i,s),a},i.initLatData=function(){for(var t=this.width+11,e=this.height+11,n=this.offsetX+this.width/2,o=this.offsetY+this.height/2,r=0;r<this.rowNum;r++)for(var i=0;i<this.colNum;i++)this.rcToIndexMap[""+r+i]=r*this.colNum+i,this.indexToRcMap[r*this.colNum+i]=[r,i],this.rowColPositions[""+r+i]=[n+i*t,o+r*e],this.indexPositions[r*this.colNum+i]=[n+i*t,o+r*e]},i.rcToIndex=function(t,e){var n=""+t+e;return this.rcToIndexMap[n]},i.indexToRc=function(t){return this.indexToRcMap[t]},i.getPositionByRc=function(t,e){var n=""+t+e;return this.rowColPositions[n]},i.getPositionByIndex=function(t){return this.indexPositions[t]},i.cacheKey="hadCompleteHaokelai",i.rowNum=4,i.colNum=4,i.width=125,i.height=125,i.offsetX=106,i.offsetY=600,i.rcToIndexMap={},i.indexToRcMap=[],i.rowColPositions={},i.indexPositions=[],i);function i(){}e.Tool=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),i=n(3),s=(Object.defineProperty(a,"instance",{get:function(){return a._instance||(a._instance=new a)},enumerable:!0,configurable:!0}),a.prototype.init=function(t){this._parent=t;var e=new FYGE.Graphics;e.beginFill(0,1),e.drawRect(o.layers.stageOffsetX-t.x,o.layers.stageOffsetY-t.y,o.layers.stageWidth,o.layers.stageHeight),e.endFill(),e.visible=!1,this._parent.addChild(e),this._bg=e},a.prototype.closeAll=function(){this.stacks.forEach((function(t){return t.hidePanel()}))},a.prototype.show=function(t,e){var n=this;r.showWaiting();var o=new t(e);return this.add(o),this.stacks.push(o),o.onLoaded=function(){r.hideWaiting(),n.updateView(),o.start(e)},o.onLoadError=function(){r.hideWaiting(),i.showToast("资源加载失败"),o.removeEventListener("onDestroy",n.onPanelHide,n),n.remove(o)},o},a.prototype.updateView=function(){var t=this;this.stacks.length?(this._parent.visible=!0,"hide"==this.bgAni&&(this.bgAni="show",FYGE.Tween.removeTweens(this._bg),this._bg.alpha=.7),!1===this._bg.visible&&(this._bg.visible=!0,this._bg.alpha=0,FYGE.Tween.get(this._bg).to({alpha:.7},200,FYGE.Ease.cubicOut))):this._bg.visible&&(this.bgAni="hide",FYGE.Tween.removeTweens(this._bg),FYGE.Tween.get(this._bg).to({alpha:0},200,FYGE.Ease.cubicOut).call((function(){t._bg.visible=!1,t._current=null,t._parent.visible=!1})));for(var e=0;e<this.stacks.length;e++)e<this.stacks.length-1?this.stacks[e].visible=!1:(this.stacks[e].visible=!0,this.stacks[e].showAni(),this._current=this.stacks[e])},a.prototype.add=function(t){this._parent.addChild(t),t.addEventListener("onDestroy",this.onPanelHide,this)},a.prototype.remove=function(t){this._parent.removeChild(t),this.stacks=this.stacks.filter((function(e){return e!=t}))},a.prototype.onPanelHide=function(t){var e=t.target;e.removeEventListener("onDestroy",this.onPanelHide,this),this.remove(e),this.updateView()},a.prototype.closeCurrent=function(){this._current&&this._current.hidePanel()},a.prototype.destroy=function(){a._instance=null,this.stacks=null,this._current=null,this._parent=null,this._bg=null},a);function a(){this.stacks=[]}e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(3),i=(Object.defineProperty(s,"instance",{get:function(){return s._instance||(s._instance=new s)},enumerable:!0,configurable:!0}),s.prototype.init=function(t){this._parent=t},s.prototype.change=function(t,e){var n,i,s=this;this._currentScene&&this._currentScene instanceof t||((n=new t(e)).visible=!1,o.showWaiting(),i=this._currentScene,n.onLoaded=function(){o.hideWaiting(),n.showAni((function(){i&&i.destroy()})),n.visible=!0,n.start()},n.onLoadError=function(){o.hideWaiting(),r.showToast("资源加载失败"),s._currentScene=i||null,s._parent.removeChild(n)},this._currentScene=n,this._parent.addChild(n))},Object.defineProperty(s.prototype,"currentScene",{get:function(){return this._currentScene},enumerable:!0,configurable:!0}),s.prototype.destroy=function(){s._instance=null,this._currentScene=null,this._parent=null},s);function s(){}e.default=i},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(9),a=(r(u,i=s.Module),u.prototype.showAni=function(t){t()},u.prototype.updateScene=function(){},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.Scene=a},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(0),a=(r(u,i=FYGE.Container),u.prototype.init=function(){var t=this;this.preLoadRes().then((function(){t.initUi(),t.onLoaded&&t.onLoaded()}),(function(){t.onLoadError&&t.onLoadError()}))},u.prototype.preLoadRes=function(){var t=this;return new Promise((function(e,n){if(t.groupNames&&t.groupNames.length){for(var o=[],r=0;r<t.groupNames.length;r++)o.push(s.RES.loadGroup(t.groupNames[r]));Promise.all(o).then(e,n)}else e()}))},u.prototype.initUi=function(){},Object.defineProperty(u.prototype,"groupNames",{get:function(){return null},enumerable:!0,configurable:!0}),u.prototype.start=function(t){this.initEvents()},u.prototype.initEvents=function(){},u.prototype.removeEvents=function(){},u.prototype.enableMouseEvt=function(t){this.mouseEnable=t,this.mouseChildren=t},u.prototype.destroy=function(){this.data=null,this.removeEvents(),this.dispatchEvent("onDestroy"),i.prototype.destroy.call(this)},u);function u(t){var e=i.call(this)||this;return e.data=t,e.init(),e}e.Module=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=(r.takeOut=function(t){return this.pool[t]&&this.pool[t].length?this.pool[t].shift():null},r.recover=function(t,e){this.pool[t]||(this.pool[t]=[]),this.pool[t].push(e)},r.pool={},r);function r(){}e.GPool=o},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n=n||Promise)((function(r,i){function s(t){try{u(o.next(t))}catch(t){i(t)}}function a(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(s,a)}u((o=o.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=0<(r=i.trys).length&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),s=n(0),a=n(4),u=n(12),l=n(20),c=n(21);e.GDispatcher=new FYGE.EventDispatcher;var h=(p.prototype.onAddToStage=function(){return o(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return i.layers.init(this.stage),console.log("初始化层级完成"),s.RES.loadConfig(l.ResJson),console.log("初始化资源配置完成"),[4,s.RES.loadGroup("common")];case 1:return t.sent(),console.log("通用资源加载完成"),a.changeScene(u.StartScene),console.log("恶趣味去"),[2]}}))}))},p.prototype.run=function(){this._pause=!1},p.prototype.pause=function(){this._pause=!0},p.prototype.addGlobalEvent=function(t,n,o,r){void 0===r&&(r=!1),r?e.GDispatcher.once(t,n,o):e.GDispatcher.addEventListener(t,n,o)},p.prototype.dispatchGlobalEvent=function(t,n){e.GDispatcher.dispatchEvent(t,n)},p.prototype.removeGlobalEvent=function(t,n,o){e.GDispatcher.removeEventListener(t,n,o)},p.prototype.destroy=function(){FYGE.Tween.removeAllTweens(),FYGE.getCancelAnimationFrame()(this.requestID),i.destroyLayers(),a.destroyAllCtrls(),this.stage.destroy(),e.GDispatcher.removeAllEventListener(),c.destroyNetData()},p);function p(t){var e;my&&(FYGE.initedByCanvas(t),e=my.getSystemInfoSync());var n=new FYGE.Stage(t,750,1624,e&&e.windowWidth||document.body.clientWidth,e&&e.windowHeight||document.body.clientHeight,FYGE.RENDERER_TYPE.CANVAS);(this.stage=n).addEventListener(FYGE.Event.INIT_STAGE,this.onAddToStage,this);var o=this;!function t(){o._pause||(FYGE.Tween.flush(),n.flush()),o.requestID=FYGE.getRequestAnimationFrame()(t)}()}e.Main=h},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i=n(8),s=n(0),a=n(4),u=n(1),l=n(13);e.svgaPool={};var c,h=(r(p,c=i.Scene),Object.defineProperty(p.prototype,"groupNames",{get:function(){return["startScene"]},enumerable:!0,configurable:!0}),p.prototype.initUi=function(){c.prototype.initUi.call(this),this.addChild(new FYGE.Sprite(s.RES.getRes("startBg.jpg")))},p.prototype.start=function(){c.prototype.start.call(this),a.showToast("点击下方按钮\n开始游戏"),a.wait((function(){a.showToast("下一句文案\n是否覆盖")}),2e3),this.testMove();var t=new FYGE.Button(s.RES.getRes("startBtn.png"));t.position.set(151.5,1e3),this.addChild(t),t.addEventListener(FYGE.MouseEvent.CLICK,(function(){console.log("9999546"),a.changeScene(l.PlayScene)}),this)},p.prototype.testMove=function(){var t=new FYGE.Sprite(s.RES.getRes("silverDraft.png"));t.x=500,t.y=0,this.addChild(t),this.addEventListener(FYGE.Event.ENTER_FRAME,(function(){t.y+=5,t.y=Math.round(t.y),1300<t.y&&(t.y=0)}),this)},p.prototype.testScroll=function(){var t=new FYGE.Sprite(s.RES.getRes("startBg.jpg")),e=new FYGE.ScrollPage(750,u.layers.stageHeight,1624,!0,!0);e.view.addChild(t),this.addChild(e),e.x=100,e.y=100;var n=new FYGE.ScrollPage(750,200,1624,!1,!1);n.maxDistance=2090,n.y=900,e.view.addChild(n);for(var o=0;o<10;o++){var r=new FYGE.Sprite(s.RES.getRes("silverDraft.png"));r.width=200,r.height=200,r.x=10*o+200*o,n.view.addChild(r)}},p.prototype.testGraphics=function(){var t=new FYGE.Graphics;t.beginFill(16711680,.7),t.drawEllipse(200,200,200,300),t.endFill(),this.addChild(t)},p.prototype.testSprite=function(){for(var t=s.RES.getRes("silverDraft.png"),e=0;e<2500;e++){var n=new FYGE.Sprite(t);n.x=750*Math.random(),n.y=1206*Math.random(),this.addChild(n)}},p.prototype.testMv=function(){var t=this;SvgaParser.loadSvga("cloud://A8673B47AAA58993A24A6718E203B967//dice.svga",(function(e){var n=new FYGE.MovieClip(e);t.addChild(n)}),(function(t){console.log(t)}))},p.prototype.testList=function(){var t=new FYGE.ScrollList(d,60,100,200,100,!1);t.x=100,t.y=500,t.updateData([1,2,3,4,5,6]),this.addChild(t)},p);function p(){return null!==c&&c.apply(this,arguments)||this}e.StartScene=h;var f,d=(r(y,f=FYGE.Sprite),y.prototype.initData=function(t,e){console.log(e),this.txt.text=e+""},y);function y(){var t=f.call(this)||this;return t.txt=new FYGE.TextField,t.txt.size=50,t.txt.fillColor="#ff0000",t.addChild(t.txt),t}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s,a=n(8),u=n(4),l=n(5),c=n(10),h=n(14),p=n(15),f=n(16),d=n(17);(s=i=i||{})[s.left=0]="left",s[s.right=1]="right",s[s.up=2]="up",s[s.down=3]="down";var y,g=(r(v,y=a.Scene),Object.defineProperty(v.prototype,"groupNames",{get:function(){return["playScene"]},enumerable:!0,configurable:!0}),v.prototype.initUi=function(){this.addChild(l.Tool.getSprite("playBg.jpg")),l.Tool.initLatData(),this.lats=new Array(16),u.showToast("啊哦,没法移动了\n重置中")},v.prototype.start=function(){y.prototype.start.call(this),this.resetGame()},v.prototype.resetGame=function(){for(var t,e=0;e<this.lats.length;e++)this.lats[e]&&(t=this.lats[e],this.removeChild(t),c.GPool.recover("gameEle",t),this.lats[e]=null);this.generateOne(),this.generateOne()},v.prototype.generateOne=function(t,e){var n=this,o=(t=void 0===t?this.getOneEmptyIndex():t,void 0===e?Math.random()<.5?2:4:e),r=c.GPool.takeOut("gameEle");r?r.reset(o):r=new p.GameEle(o),this.addChild(r),r.position.set(l.Tool.getPositionByIndex(t)[0],l.Tool.getPositionByIndex(t)[1]),(this.lats[t]=r).index=t,r.scale.set(.1,.1),FYGE.Tween.get(r).to({scaleX:1,scaleY:1},100,FYGE.Ease.backOut).call((function(){!function(t){if(!function(t){for(var e=0;e<t.length;e++)if(!t[e])return 1}(t)){for(var e=0;e<t.length;e++){var n=t[e],o=l.Tool.indexToRc(e);if(o[1]<l.Tool.colNum-1&&n.type==t[e+1].type)return;if(o[0]<l.Tool.rowNum-1&&n.type==t[e+l.Tool.colNum].type)return}return 1}}(n.lats)?n.moveMark=!0:(u.showToast("啊哦,没法移动了\n重置中"),setTimeout((function(){n.resetGame()}),1600))}))},v.prototype.getOneEmptyIndex=function(){for(var t=[],e=0;e<this.lats.length;e++)this.lats[e]||t.push(e);return t.length?(h.GTool.disturbNumberArr(t),t[0]):null},v.prototype.onMouseDown=function(t){var e,n,o,r;function i(t){o=t.stageX-e,r=t.stageY-n}function s(){this.removeEventListener(FYGE.MouseEvent.MOUSE_MOVE,i,this),this.removeEventListener(FYGE.MouseEvent.MOUSE_UP,s,this),this.removeEventListener(FYGE.MouseEvent.MOUSE_OUT,s,this),this.checkMove(o,r),this.hasDown=!1}this.moveMark&&(this.hasDown||(this.hasDown=!0,e=t.stageX,n=t.stageY,this.addEventListener(FYGE.MouseEvent.MOUSE_MOVE,i,this),this.addEventListener(FYGE.MouseEvent.MOUSE_UP,s,this),this.addEventListener(FYGE.MouseEvent.MOUSE_OUT,s,this)))},v.prototype.checkMove=function(t,e){var n,o=this;if(Math.abs(t)>Math.abs(e)?(0<t&&(n=this.checkRight()),t<0&&(n=this.checkLeft())):0<e?n=this.checkDown():e<0&&(n=this.checkUp()),n&&n.length){this.moveMark=!1;for(var r=0,i=n.length,s=0;s<n.length;s++){var a=n[s];this.lats[a.startEle1.index]=null,a.startEle1.index=a.endIndex,this.lats[a.endIndex]=a.startEle1,a.startEle2&&(this.lats[a.startEle2.index]=null,a.startEle1.tempType=2*a.startEle1.type),f.moveAni((function(){++r==i&&(o.check2048()?u.showPanel(d.UnlockPanel,{closeFun:function(){o.resetGame()},grade:2048}):o.generateOne())}),a.startEle1,a.endIndex,a.startEle2)}}},v.prototype.checkLeft=function(){for(var t=[],e=0;e<l.Tool.rowNum;e++){for(var n=[],o=0;o<l.Tool.colNum;o++)n.push(e*l.Tool.colNum+o);t=t.concat(w(n,this.lats))}return t},v.prototype.checkRight=function(){for(var t=[],e=0;e<l.Tool.rowNum;e++){for(var n=[],o=l.Tool.colNum-1;0<=o;o--)n.push(e*l.Tool.colNum+o);t=t.concat(w(n,this.lats))}return t},v.prototype.checkUp=function(){for(var t=[],e=0;e<l.Tool.colNum;e++){for(var n=[],o=0;o<l.Tool.rowNum;o++)n.push(e+l.Tool.rowNum*o);t=t.concat(w(n,this.lats))}return t},v.prototype.checkDown=function(){for(var t=[],e=0;e<l.Tool.colNum;e++){for(var n=[],o=l.Tool.rowNum-1;0<=o;o--)n.push(e+l.Tool.rowNum*o);t=t.concat(w(n,this.lats))}return t},v.prototype.check2048=function(){for(var t=0;t<this.lats.length;t++)if(this.lats[t]&&2048==(this.lats[t].tempType||this.lats[t].type))return!0;return!1},v.prototype.initEvents=function(){y.prototype.initEvents.call(this),this.addEventListener(FYGE.MouseEvent.MOUSE_DOWN,this.onMouseDown,this)},v.prototype.removeEvents=function(){y.prototype.removeEvents.call(this),this.removeEventListener(FYGE.MouseEvent.MOUSE_DOWN,this.onMouseDown,this)},v.prototype.unlock=function(){},v);function v(){var t=null!==y&&y.apply(this,arguments)||this;return t.score=0,t}function w(t,e){for(var n,o,r=[],i=[],s=0;s<t.length;s++)e[o=t[s]]?n&&n.startEle1.type==e[o].type?(n.startEle2=e[o],-1==r.indexOf(n)&&r.push(n),n=null,i.push(o)):i.length?(n={startEle1:e[o],endIndex:i.shift()},r.push(n),i.push(o)):n={startEle1:e[o],endIndex:o}:i.push(o);return r}e.PlayScene=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=(r.changeURLArg=function(t,e,n){var o=e+"=([^&]*)",r=e+"="+n;if(t.match(o)){var i="/("+e+"=)([^&]*)/gi";return t.replace(new RegExp(i),r)}return t.match("[?]")?t+"&"+r:t+"?"+r},r.readCache=function(t,e){return void 0===e&&(e="localStorage"),!!window.localStorage&&window[e].getItem(t)},r.writeCache=function(t,e,n){void 0===e&&(e="true"),void 0===n&&(n="localStorage"),window.localStorage&&window[n].setItem(t,e)},r.returnTodayTimes=function(t){var e=this.readCache("year"+t),n=this.readCache("month"+t),o=this.readCache("day"+t),r=new Date,i=r.getFullYear().toString(),s=r.getMonth().toString(),a=r.getDate().toString();return this.int(i)<=this.int(e)&&this.int(s)<=this.int(n)&&this.int(a)<=this.int(o)?this.int(this.readCache(t)):(this.writeCache("year"+t,i),this.writeCache("month"+t,s),this.writeCache("day"+t,a),this.writeCache(t,"0"),0)},r.randomT=function(t,e){return t&&"number"==typeof t.length&&t.length?t[Math.floor(Math.random()*t.length)]:("number"!=typeof e&&(e=t||1,t=0),t+Math.random()*(e-t))},r.removeEle=function(t,e){var n=e.indexOf(t);0<=n&&e.splice(n,1)},r.insert=function(t,e){for(var n=e.length-1;0<=n;n--)if(t>e[n]){e.splice(n+1,0,t);break}},r.getRandomNumber=function(t,e,n){for(var o=[],r=0;r<n;r++){var i=Math.floor(Math.random()*(e-t+1)+t);o.indexOf(i)<0?o.push(i):r--}return o},r.disturbNumberArr=function(t){t.sort((function(){return.5-Math.random()}))},r.getRandomArrayElements=function(t,e){var n,o,r=t.slice(0),i=t.length,s=i-e;if(s<=0)return r;if(e<=0)return[];for(;i-- >s;)n=r[o=Math.floor((i+1)*Math.random())],r[o]=r[i],r[i]=n;return r.slice(s)},r.getRandomArrayElementsEx=function(t,e){if(t.length<=e)return t.slice();if(e<=0)return[];for(var n=t.slice(),o=[];e--;){var r=Math.floor(Math.random()*n.length),i=n.splice(r,1)[0];o.push(i)}return o},r.int=function(t){return t>>0},r.addSpaceInString=function(t){if(!t.length||1==t.length)return t;for(var e="",n=0;n<t.length-1;n++)e=e+t[n]+" ";return e+t[t.length-1]},r.emojiReg=/[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF][\u200D|\uFE0F]|[\uD83C|\uD83D|\uD83E][\uDC00-\uDFFF]|[0-9|*|#]\uFE0F\u20E3|[0-9|#]\u20E3|[\u203C-\u3299]\uFE0F\u200D|[\u203C-\u3299]\uFE0F|[\u2122-\u2B55]|\u303D|[\A9|\AE]\u3030|\uA9|\uAE|\u3030/gi,r);function r(){}e.GTool=o},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(0),a=n(5),u=(r(l,i=FYGE.Sprite),Object.defineProperty(l.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t,this.texture=s.RES.getRes("ele"+t+".png")},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"tempType",{get:function(){return this._tempType},set:function(t){this._tempType=t},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"row",{get:function(){return a.Tool.indexToRc(this.index)[0]},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"col",{get:function(){return a.Tool.indexToRc(this.index)[1]},enumerable:!0,configurable:!0}),l.prototype.reset=function(t){this.type=t,this.scale.set(1,1)},l);function l(t){var e=i.call(this)||this;return e._tempType=null,e.type=t,e.anchorTexture.set(.5,.5),e}e.GameEle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(10);e.moveAni=function(t,e,n,i){var s=2*e.type,a=o.Tool.getPositionByIndex(n);FYGE.Tween.get(e).to({x:a[0],y:a[1]},200).call((function(){t(),i&&FYGE.Tween.get(e).to({scaleX:.1,scaleY:.1},100).call((function(){e.type=s,e.tempType=null})).to({scaleX:1,scaleY:1},100,FYGE.Ease.backOut)})),i&&FYGE.Tween.get(i).to({x:a[0],y:a[1]},200).call((function(){i.parent.removeChild(i),r.GPool.recover("gameEle",i)}))}},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s,a=n(5),u=n(18),l=n(0),c=n(19),h=(r(p,i=u.Panel),Object.defineProperty(p.prototype,"groupNames",{get:function(){return["unlockPanel"]},enumerable:!0,configurable:!0}),p.prototype.initUi=function(){this.addChild(new c.Light).position.set(375,735),this.addChild(a.Tool.getSprite("unlockPanelBg.png")),this.closeBtn=new FYGE.Button(l.RES.getRes("comCloseBtn.png")),this.closeBtn.position.set(614,460),this.addChild(this.closeBtn),this.addChild(new FYGE.Button(l.RES.getRes("zailaiyiju.png"))).once(FYGE.MouseEvent.CLICK,this.onClick_closeBtn,this).position.set(258.5,938),this.addChild(new FYGE.Sprite(l.RES.getRes("unlock"+this.data.grade+".png"))).position.set(130.5,600)},p.prototype.start=function(t){i.prototype.start.call(this)},p.prototype.initEvents=function(){this.closeBtn.addEventListener(FYGE.MouseEvent.CLICK,this.onClick_closeBtn,this)},p.prototype.onClick_closeBtn=function(){this.data.closeFun(),this.hidePanel()},p.prototype.removeEvents=function(){this.closeBtn.removeEventListener(FYGE.MouseEvent.CLICK,this.onClick_closeBtn,this)},p);function p(){return null!==i&&i.apply(this,arguments)||this}e.UnlockPanel=h,r((function(t){var e=s.call(this)||this,n=new FYGE.Sprite(l.RES.getRes("unlockMsg.png"));e.addChild(n);for(var o={},r=0;r<10;r++)o[r]=l.RES.getRes("n"+r+".png");var i=new FYGE.BitmapText(o);i.textAlign=FYGE.TEXT_ALIGN.LEFT,i.text=t+"",e.addChild(i);var a=n.width+i.width;return n.position.set((750-a)/2,548),i.position.set(n.x+n.width,552),e}),s=FYGE.Container)},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(9),a=(r(u,i=s.Module),u.prototype.showAni=function(){var t,e=this;this.isShowing||(this.isShowing=!0,t=this.y||0,this.y=-200,FYGE.Tween.get(this).to({y:t},500,FYGE.Ease.quartOut).call((function(){e.isShowing=!1})))},u.prototype.initEvents=function(){var t=this;this.closeBtns.forEach((function(e){e&&e.addEventListener(FYGE.MouseEvent.CLICK,t.hidePanel,t)}))},u.prototype.removeEvents=function(){var t=this;this.closeBtns.forEach((function(e){e&&e.removeEventListener(FYGE.MouseEvent.CLICK,t.hidePanel,t)}))},Object.defineProperty(u.prototype,"closeBtns",{get:function(){return[this.closeBtn]},enumerable:!0,configurable:!0}),u.prototype.hidePanel=function(){this.destroy()},u);function u(){return null!==i&&i.apply(this,arguments)||this}e.Panel=a},function(t,e,n){"use strict";var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(0),a=(r(u,i=FYGE.Sprite),u);function u(){var t=i.call(this)||this;return t.texture=s.RES.getRes("light.png"),t.anchorTexture.set(.5,.5),t.addEventListener(FYGE.Event.ENTER_FRAME,(function(){t.rotation+=1}),t),t}e.Light=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ResJson={groups:[{keys:"comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png",name:"common",atlas:{"comCloseBtn.png":{x:2,y:374,w:48,h:48,ox:0,oy:0,sw:48,sh:48,ro:!1},"toastBg.png":{x:2,y:2,w:460,h:130,ox:0,oy:0,sw:460,sh:130,ro:!1},"waitingBg.png":{x:2,y:134,w:160,h:180,ox:0,oy:0,sw:160,sh:180,ro:!1},"waitingRot.png":{x:2,y:316,w:56,h:56,ox:0,oy:0,sw:56,sh:56,ro:!1}}},{keys:"ele1024.png,ele128.png,ele16.png,ele2.png,ele2048.png,ele256.png,ele32.png,ele4.png,ele512.png,ele64.png,ele8.png,guideArrow.png,guideFinger.png,playBg.jpg",name:"playScene",atlas:{"ele1024.png":{x:217,y:188,w:100,h:99,ox:0,oy:0,sw:100,sh:99,ro:!1},"ele128.png":{x:358,y:2,w:106,h:92,ox:0,oy:0,sw:106,sh:92,ro:!1},"ele16.png":{x:351,y:96,w:102,h:101,ox:0,oy:0,sw:102,sh:101,ro:!1},"ele2.png":{x:2,y:200,w:103,h:89,ox:0,oy:0,sw:103,sh:89,ro:!1},"ele2048.png":{x:246,y:2,w:110,h:92,ox:0,oy:0,sw:110,sh:92,ro:!1},"ele256.png":{x:111,y:187,w:104,h:91,ox:0,oy:0,sw:104,sh:91,ro:!1},"ele32.png":{x:133,y:93,w:108,h:92,ox:0,oy:0,sw:108,sh:92,ro:!1},"ele4.png":{x:2,y:2,w:129,h:92,ox:0,oy:0,sw:129,sh:92,ro:!1},"ele512.png":{x:243,y:96,w:106,h:90,ox:0,oy:0,sw:106,sh:90,ro:!1},"ele64.png":{x:2,y:96,w:107,h:102,ox:0,oy:0,sw:107,sh:102,ro:!1},"ele8.png":{x:133,y:2,w:111,h:89,ox:0,oy:0,sw:111,sh:89,ro:!1},"guideArrow.png":{x:111,y:96,w:51,h:14,ox:0,oy:0,sw:51,sh:14,ro:!0},"guideFinger.png":{x:455,y:96,w:53,h:78,ox:0,oy:0,sw:53,sh:78,ro:!1}}},{keys:"silverDraft.png,startBg.jpg,startBtn.png",name:"startScene",atlas:{"silverDraft.png":{x:110,y:2,w:112,h:132,ox:0,oy:0,sw:112,sh:132,ro:!0},"startBtn.png":{x:2,y:2,w:447,h:106,ox:0,oy:0,sw:447,sh:106,ro:!0}}},{keys:"light.png,unlock1024.png,unlock128.png,unlock16.png,unlock2.png,unlock2048.png,unlock256.png,unlock32.png,unlock512.png,unlock64.png,unlock8.png,unlockMsg.png,unlockPanelBg.png,zailaiyiju.png",name:"unlockPanel",atlas:{"light.png":{x:2,y:2,w:1158,h:1190,ox:0,oy:90,sw:1162,sh:1280,ro:!1},"unlock1024.png":{x:676,y:1425,w:227,h:191,ox:143,oy:93,sw:449,sh:363,ro:!0},"unlock128.png":{x:1026,y:1622,w:197,h:165,ox:142,oy:101,sw:449,sh:363,ro:!0},"unlock16.png":{x:676,y:1863,w:183,h:179,ox:150,oy:87,sw:449,sh:363,ro:!0},"unlock2.png":{x:1040,y:1421,w:185,h:163,ox:143,oy:96,sw:449,sh:363,ro:!0},"unlock2048.png":{x:676,y:1194,w:229,h:187,ox:127,oy:74,sw:449,sh:363,ro:!0},"unlock256.png":{x:869,y:1421,w:199,h:169,ox:137,oy:96,sw:449,sh:363,ro:!0},"unlock32.png":{x:849,y:1654,w:201,h:175,ox:139,oy:92,sw:449,sh:363,ro:!0},"unlock512.png":{x:676,y:1654,w:207,h:171,ox:127,oy:87,sw:449,sh:363,ro:!0},"unlock64.png":{x:857,y:1857,w:197,h:187,ox:134,oy:81,sw:449,sh:363,ro:!1},"unlock8.png":{x:865,y:1194,w:225,h:179,ox:101,oy:88,sw:449,sh:363,ro:!0},"unlockMsg.png":{x:237,y:1946,w:276,h:40,ox:0,oy:0,sw:276,sh:40,ro:!1},"unlockPanelBg.png":{x:2,y:1194,w:672,h:750,ox:30,oy:386,sw:750,sh:1624,ro:!1},"zailaiyiju.png":{x:2,y:1946,w:233,h:77,ox:0,oy:0,sw:233,sh:77,ro:!1}}}],path:"https://yun.duiba.com.cn/db_games/activity/anything/1590589018/resource/"}},function(t,e,n){"use strict";var o=this&&this.__awaiter||function(t,e,n,o){return new(n=n||Promise)((function(r,i){function s(t){try{u(o.next(t))}catch(t){i(t)}}function a(t){try{u(o.throw(t))}catch(t){i(t)}}function u(t){t.done?r(t.value):new n((function(e){e(t.value)})).then(s,a)}u((o=o.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s={next:a(0),throw:a(1),return:a(2)};return"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(r=2&s[0]?o.return:s[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,s[1])).done)return r;switch(o=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,o=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(r=0<(r=i.trys).length&&r[r.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){i.label=s[1];break}if(6===s[0]&&i.label<r[1]){i.label=r[1],r=s;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(s);break}r[2]&&i.ops.pop(),i.trys.pop();continue}s=e.call(t,i)}catch(t){s=[6,t],o=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(e,"__esModule",{value:!0});var i,s=n(4);(i=e.TbNetName||(e.TbNetName={})).aaa="aaa",i.getCredits="getCredits",i.startGame="startGame",i.submit="submit",i.getTools="getTools",i.getTaskList="getTaskList",i.getToolsByType="getToolsByType",i.useTools="useTools";var a,u={};e.sendTbNet=function(t,e,n,i){void 0===i&&(i=!1);var c=s.wait((function(){i||s.showToast("网络超时"),n(!1)}),5e3);my?(a=a||getApp().cloud.function).invoke("becheery",e,t).then((function(e){s.clearWait(c),u[t]=e,i||e.success||s.showToast(l[e.code]||e.message||"网络异常"),n(e.success,e)})):function(t){return o(this,void 0,void 0,(function(){return r(this,(function(e){switch(e.label){case 0:return[4,fetch(t)];case 1:return[4,e.sent().json()];case 2:return[2,e.sent()]}}))}))}("../../mock/miniTb/"+t+".json").then((function(t){s.clearWait(c),u[name]=t,i||t.success||s.showToast(t.message||"网络异常"),n(t.success,t)}),(function(){}))},e.getTbData=function(t){return u[t]||null},e.destroyNetData=function(){u={}};var l={210001:"服务器异常",210002:"用户不存在",210003:"邀请已达上限",210004:"无法邀请自己",210006:"该活动ID无效",210009:"该活动暂未开始",210010:"该分享ID不存在",210012:"该用户暂未获奖",210013:"领取失败",210015:"该活动已删除",210016:"该活动已经结束",210017:"该奖品已达领取上线",210018:"请先分享好友",210019:"暂有奖品未领取",210020:"暂有奖品未完成",210021:"请先玩一局游戏",210022:"请先选择奖品",210023:"领取失败,库存不足",210024:"请先成为会员",210025:"奖品已经过期",210026:"不能重复助力",210028:"请至我的奖品页重新领取"}}],t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:o})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var r in e)t.d(o,r,function(t){return e[t]}.bind(null,r));return o},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="",t(t.s=11);function t(o){if(n[o])return n[o].exports;var r=n[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var e,n}));
\ No newline at end of file
{
"skill": [
{
"command": "hello",
"voice": [
"你好"
]
},
{
"command": "test1",
"voice": [
"呼呼"
]
},
{
"command": "searchVideo",
"voice": [
"我要看@{title:String}",
"我要看@{artist:String}的@{title:String}"
],
"tips": [
"我要看无间道",
"我要看周星驰的大话西游"
]
},
{
"command": "music",
"voice": [
"给奶牛听个音乐",
"给小牛听个音乐",
"给牛牛听个音乐",
"给牛听个音乐",
"给奶牛听首音乐",
"给小牛听首音乐",
"给牛牛听首音乐",
"给牛听首音乐",
"给奶牛放个音乐",
"给小牛放个音乐",
"给牛牛放个音乐",
"给牛放个音乐",
"给奶牛放首音乐",
"给小牛放首音乐",
"给牛牛放首音乐",
"给牛放首音乐",
"给奶牛听音乐",
"给小牛听音乐",
"给牛牛听音乐",
"给牛听音乐",
"给奶牛放音乐",
"给小牛放音乐",
"给牛牛放音乐",
"给牛放音乐",
"给奶牛听个歌",
"给小牛听个歌",
"给牛牛听个歌",
"给牛听个歌",
"给奶牛听首歌",
"给小牛听首歌",
"给牛牛听首歌",
"给牛听首歌",
"给奶牛放个歌",
"给小牛放个歌",
"给牛牛放个歌",
"给牛放个歌",
"给奶牛放首歌",
"给小牛放首歌",
"给牛牛放首歌",
"给牛放首歌",
"给奶牛听歌",
"给小牛听歌",
"给牛牛听歌",
"给牛听歌",
"给奶牛放歌",
"给小牛放歌",
"给牛牛放歌",
"给牛放歌"
]
},
{
"command": "ball",
"voice": [
"给牛玩个球",
"陪奶牛玩球",
"陪小牛玩球",
"陪牛牛玩球",
"陪牛玩球",
"陪奶牛玩篮球",
"陪小牛玩篮球",
"陪牛牛玩篮球",
"陪牛玩篮球",
"陪奶牛玩个球",
"陪小牛玩个球",
"陪牛牛玩个球",
"陪牛玩个球",
"陪奶牛打球",
"陪小牛打球",
"陪牛牛打球",
"陪牛打球",
"陪奶牛打篮球",
"陪小牛打篮球",
"陪牛牛打篮球",
"陪牛打篮球",
"陪奶牛打个球",
"陪小牛打个球",
"陪牛牛打个球",
"陪牛打个球",
"玩球",
"玩篮球",
"玩个球",
"打球",
"打篮球",
"打个球"
]
},
{
"command": "touch",
"voice": [
"给牛摸个头",
"摸奶牛",
"摸小牛",
"摸牛牛",
"摸牛",
"摸摸奶牛",
"摸摸小牛",
"摸摸牛牛",
"摸摸牛",
"摸奶牛的头",
"摸小牛的头",
"摸牛牛的头",
"摸牛的头",
"摸摸奶牛的头",
"摸摸小牛的头",
"摸摸牛牛的头",
"摸摸牛的头",
"摸头",
"摸摸头",
"摸个头"
]
},
{
"command": "milk",
"voice": [
"给奶牛收奶",
"给小牛收奶",
"给牛牛收奶",
"给牛收奶",
"给奶牛收奶滴",
"给小牛收奶滴",
"给牛牛收奶滴",
"给牛收奶滴",
"给奶牛收牛奶",
"给小牛收牛奶",
"给牛牛收牛奶",
"给牛收牛奶",
"给奶牛收个奶",
"给小牛收个奶",
"给牛牛收个奶",
"给牛收个奶",
"给奶牛收个牛奶",
"给小牛收个牛奶",
"给牛牛收个牛奶",
"给牛收个牛奶",
"给奶牛收个奶滴",
"给小牛收个奶滴",
"给牛牛收个奶滴",
"给牛收个奶滴",
"帮奶牛收奶",
"帮小牛收奶",
"帮牛牛收奶",
"帮牛收奶",
"帮奶牛收奶滴",
"帮小牛收奶滴",
"帮牛牛收奶滴",
"帮牛收奶滴",
"帮奶牛收牛奶",
"帮小牛收牛奶",
"帮牛牛收牛奶",
"帮牛收牛奶",
"帮奶牛收个奶",
"帮小牛收个奶",
"帮牛牛收个奶",
"帮牛收个奶",
"帮奶牛收个牛奶",
"帮小牛收个牛奶",
"帮牛牛收个牛奶",
"帮牛收个牛奶",
"帮奶牛收个奶滴",
"帮小牛收个奶滴",
"帮牛牛收个奶滴",
"帮牛收个奶滴",
"收奶",
"收奶滴",
"收牛奶",
"收个奶",
"收个牛奶",
"收个奶滴"
]
},
{
"command": "feed",
"voice": [
"给奶牛喂草",
"给小牛喂草",
"给牛牛喂草",
"给牛喂草",
"给奶牛喂个草",
"给小牛喂个草",
"给牛牛喂个草",
"给牛喂个草",
"给奶牛喂牧草",
"给小牛喂牧草",
"给牛牛喂牧草",
"给牛喂牧草",
"给奶牛喂个牧草",
"给小牛喂个牧草",
"给牛牛喂个牧草",
"给牛喂个牧草",
"给奶牛喂点牧草",
"给小牛喂点牧草",
"给牛牛喂点牧草",
"给牛喂点牧草",
"给奶牛吃草",
"给小牛吃草",
"给牛牛吃草",
"给牛吃草",
"给奶牛吃个草",
"给小牛吃个草",
"给牛牛吃个草",
"给牛吃个草",
"给奶牛吃牧草",
"给小牛吃牧草",
"给牛牛吃牧草",
"给牛吃牧草",
"给奶牛吃个牧草",
"给小牛吃个牧草",
"给牛牛吃个牧草",
"给牛吃个牧草",
"给奶牛吃点牧草",
"给小牛吃点牧草",
"给牛牛吃点牧草",
"给牛吃点牧草",
"喂草",
"喂个草",
"喂牧草",
"喂个牧草",
"喂点牧草",
"吃草",
"吃个草",
"吃牧草",
"吃个牧草",
"吃点牧草"
]
},
{
"command": "grass",
"voice": [
"给奶牛收草",
"给小牛收草",
"给牛牛收草",
"给牛收草",
"给奶牛收个草",
"给小牛收个草",
"给牛牛收个草",
"给牛收个草",
"给奶牛收牧草",
"给小牛收牧草",
"给牛牛收牧草",
"给牛收牧草",
"给奶牛收个牧草",
"给小牛收个牧草",
"给牛牛收个牧草",
"给牛收个牧草",
"给奶牛收点牧草",
"给小牛收点牧草",
"给牛牛收点牧草",
"给牛收点牧草",
"给奶牛收割草",
"给小牛收割草",
"给牛牛收割草",
"给牛收割草",
"给奶牛收割个草",
"给小牛收割个草",
"给牛牛收割个草",
"给牛收割个草",
"给奶牛收割牧草",
"给小牛收割牧草",
"给牛牛收割牧草",
"给牛收割牧草",
"给奶牛收割个牧草",
"给小牛收割个牧草",
"给牛牛收割个牧草",
"给牛收割个牧草",
"给奶牛收割点牧草",
"给小牛收割点牧草",
"给牛牛收割点牧草",
"给牛收割点牧草",
"给奶牛割草",
"给小牛割草",
"给牛牛割草",
"给牛割草",
"给奶牛割个草",
"给小牛割个草",
"给牛牛割个草",
"给牛割个草",
"给奶牛割牧草",
"给小牛割牧草",
"给牛牛割牧草",
"给牛割牧草",
"给奶牛割个牧草",
"给小牛割个牧草",
"给牛牛割个牧草",
"给牛割个牧草",
"给奶牛割点牧草",
"给小牛割点牧草",
"给牛牛割点牧草",
"给牛割点牧草",
"收草",
"收个草",
"收牧草",
"收个牧草",
"收点牧草",
"收割草",
"收割个草",
"收割牧草",
"收割个牧草",
"收割点牧草"
]
}
]
}
\ No newline at end of file
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