diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..836bddf --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# 忽略 node_modules 文件夹及其内容 +/node_modules/ \ No newline at end of file diff --git a/.tea/entryFiles-development/config$.js b/.tea/entryFiles-development/config$.js new file mode 100644 index 0000000..184e1b5 --- /dev/null +++ b/.tea/entryFiles-development/config$.js @@ -0,0 +1,13 @@ + +const g = typeof global !== 'undefined' ? global : self; +g.appXAppJson = { + "app": { + "$homepage": "pages/index/index", + "plugins": { + "myPlugin": { + "version": "*", + "provider": "3000000091373235" + } + } + } +}; diff --git a/.tea/entryFiles-development/importScripts$.js b/.tea/entryFiles-development/importScripts$.js new file mode 100644 index 0000000..5e02d03 --- /dev/null +++ b/.tea/entryFiles-development/importScripts$.js @@ -0,0 +1,4 @@ +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 diff --git a/.tea/entryFiles-development/index$.web.js b/.tea/entryFiles-development/index$.web.js new file mode 100644 index 0000000..ab69cd1 --- /dev/null +++ b/.tea/entryFiles-development/index$.web.js @@ -0,0 +1,30 @@ +require('@alipay/appx-compiler/lib/sjsEnvInit'); +require('./config$'); +require('../../app'); +require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/myPay/myPay?hash=95d4e6a1d744881766987015bf4637f54936e766'); +require('../../node_modules/mini-antui/es/search-bar/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49'); +require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427'); +require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c'); +require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98'); +require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c'); +require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); +require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); +require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); +require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b'); +require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/videoAndroid/videoAndroid?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b'); diff --git a/.tea/entryFiles-development/index$.worker.js b/.tea/entryFiles-development/index$.worker.js new file mode 100644 index 0000000..36cdb4a --- /dev/null +++ b/.tea/entryFiles-development/index$.worker.js @@ -0,0 +1,67 @@ +if(!self.__appxInited) { +self.__appxInited = 1; +require('@alipay/appx-compiler/lib/sjsEnvInit'); + +require('./config$'); + + + function getUserAgentInPlatformWeb() { + return typeof navigator !== 'undefined' ? navigator.swuserAgent || navigator.userAgent || '' : ''; + } + if(getUserAgentInPlatformWeb() && (getUserAgentInPlatformWeb().indexOf('LyraVM') > 0 || getUserAgentInPlatformWeb().indexOf('AlipayIDE') > 0) ) { + var AFAppX = self.AFAppX.getAppContext ? self.AFAppX.getAppContext().AFAppX : self.AFAppX; + } else { + importScripts('https://appx/af-appx.worker.min.js'); + 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, + }); +} + +if(AFAppX.compilerConfig){ AFAppX.compilerConfig.component2 = true; } + +function success() { +require('../../app'); +require('../../node_modules/mini-antui/es/am-icon/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/myEmpty/myEmpty?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/pursueItem/pursueItem?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/myFooter/myFooter?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/list/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/list/list-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/popup/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/flex/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/flex/flex-item/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../components/myPay/myPay?hash=95d4e6a1d744881766987015bf4637f54936e766'); +require('../../node_modules/mini-antui/es/search-bar/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/modal/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/badge/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../node_modules/mini-antui/es/tabs/index?hash=b998354db5b64281090d8969355b2b3db41cda49'); +require('../../node_modules/mini-antui/es/tabs/tab-content/index?hash=05d2a9730dd6009bf9446182f9c985f40f8c0f43'); +require('../../pages/index/index?hash=4c436b8802cde3a53b8da3fd201d0c5d124d1427'); +require('../../pages/discover/discover?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/binge/binge?hash=6164953b5a1ef04f4f4f6e6561b545255541aa0c'); +require('../../pages/my/my?hash=75b5b8f1ecfabe3e2ac25d83ad8d5dac4aa47c98'); +require('../../pages/search/search?hash=aba215d007624a3ae18a69066f7987a8463d4c8c'); +require('../../pages/history/history?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); +require('../../pages/transaction/transaction?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); +require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); +require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b'); +require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/videoAndroid/videoAndroid?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b'); +} +self.bootstrapApp ? self.bootstrapApp({ success }) : success(); +} \ No newline at end of file diff --git a/.tea/entryFiles-production/index$.web.js b/.tea/entryFiles-production/index$.web.js index 62ea662..ab69cd1 100644 --- a/.tea/entryFiles-production/index$.web.js +++ b/.tea/entryFiles-production/index$.web.js @@ -27,3 +27,4 @@ require('../../pages/give/give?hash=496b52f9f456db6a9f22580be95fd2756db9e17d'); require('../../pages/purchaseNotes/purchaseNotes?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); require('../../pages/video/video?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b'); require('../../pages/recharge/recharge?hash=c38b953af6bdab8fe399141b33dd1ad1ceb7ea7f'); +require('../../pages/videoAndroid/videoAndroid?hash=ab3ed3fe15953ba710981e31c5a541336f6b549b'); diff --git a/.tea/entryFiles-production/index$.worker.js b/.tea/entryFiles-production/index$.worker.js index 964da0d..20885a7 100644 --- a/.tea/entryFiles-production/index$.worker.js +++ b/.tea/entryFiles-production/index$.worker.js @@ -1,6 +1,4 @@ -/**! __BUGME_START__ */ !function(){"use strict";var ERuntimeRemoteObjectType,ERuntimeRemoteObjectSubType;!function(e){e.Object="object",e.Function="function",e.Undefined="undefined",e.String="string",e.Number="number",e.Boolean="boolean",e.Symbol="Symbol",e.Bigint="bigint",e.Wasm="wasm"}(ERuntimeRemoteObjectType||(ERuntimeRemoteObjectType={})),function(e){e.Error="error",e.Array="array",e.Null="null"}(ERuntimeRemoteObjectSubType||(ERuntimeRemoteObjectSubType={}));var appxStackLine=/https:\/\/appx\/af-appx\.worker\.min\.js:\d+:\d+/,nativeScriptLine=/https:\/\/www\.alipay\.com\/?:\d+:\d+|\[native code\]/,pluginWorkerStackLine=/https:\/\/\d+\.hybrid\.\S+\.com\/__plugins__\/(\d+)\/index\.worker\.js:\d+:\d+/,appWorkerStackLine=/https:\/\/\d+\.hybrid\.\S+\.com\/index\.worker\.js:\d+:\d+/;function transformSourceUrl(e){try{return pluginWorkerStackLine.test(e)?e.replace(pluginWorkerStackLine,"Plugin-$1"):e.replace(appWorkerStackLine,"App")}catch(t){return e}}function formatStack(e){var t=e.split("\n"),n=t[0],s=t.slice(1).filter((function(e){return!appxStackLine.test(e)&&!nativeScriptLine.test(e)})).map(transformSourceUrl).map((function(e){return" "===e[0]?e:" "+e}));return s.unshift(n),s.join("\n")}function error2RemoteObject(e){var t=e.name,n=e.message,s=e.stack;"string"!=typeof s&&(s=e.toString()),-1===s.indexOf(t)&&(s=e.toString()+"\n"+s);try{s=formatStack(s)}catch(e){}return{className:t,description:s,preview:{description:s,overflow:!1,properties:[{name:"stack",type:ERuntimeRemoteObjectType.String,value:s},{name:"message",type:ERuntimeRemoteObjectType.String,value:n}],subtype:ERuntimeRemoteObjectSubType.Error,type:ERuntimeRemoteObjectType.Object},subtype:ERuntimeRemoteObjectSubType.Error,type:ERuntimeRemoteObjectType.Object}}function isError(e){try{return"[object Error]"===Object.prototype.toString.call(e)}catch(e){return!1}}function getStartupParams(){if("undefined"!=typeof __appxStartupParams&&__appxStartupParams&&__appxStartupParams.appId)return __appxStartupParams;if("undefined"!=typeof my)try{return my.callSync("getStartupParams")||{}}catch(e){}return{}}var serverConfig={default:{domain:"hpmweb.alipay.com"},1:{domain:"hpmweb.alipay.com"}},ResponseEvent,RequestMethod,BreakStepType,FingerType;function getServerConfig(){var e=getStartupParams().remoteCh;return e&&serverConfig[e]?serverConfig[e]:serverConfig.default}!function(e){e.ById="Tyro.byId",e.Sticky="Tyro.sticky",e.StickyNotSendPaused="Tyro.stickyNotSendPaused",e.StickyAsync="Tyro.stickyAsync",e.ScriptSource="Tyro.scriptSource",e.Resumed="Debugger.resumed",e.ConsoleAPICalled="Runtime.consoleAPICalled"}(ResponseEvent||(ResponseEvent={})),function(e){e.DiscardConsoleEntries="Tyro.discardConsoleEntries",e.Evaluate="Tyro.evaluate",e.EvaluateOnCallFrame="Tyro.evaluateOnCallFrame",e.CallFunctionOn="Tyro.callFunctionOn",e.CompileScript="Tyro.compileScript",e.SetBreakpointsActive="Tyro.setBreakpointsActive",e.SetSkipAllPauses="Tyro.setSkipAllPauses",e.Resume="Tyro.resume",e.StepInto="Tyro.stepInto",e.StepOver="Tyro.stepOver",e.StepOut="Tyro.stepOut",e.Pause="Tyro.pause",e.GetPossibleBreakpoints="Tyro.getPossibleBreakpoints",e.SetBreakpointByUrl="Tyro.setBreakpointByUrl",e.SetBreakpoint="Tyro.setBreakpoint",e.RemoveBreakpoint="Tyro.removeBreakpoint",e.REPL="Tyro.repl",e.GetVariableValue="Tyro.getVariableValue",e.SetPauseOnExceptions="Tyro.setPauseOnExceptions",e.SetAsyncCallStackDepth="Tyro.setAsyncCallStackDepth",e.GetProperties="Tyro.getProperties"}(RequestMethod||(RequestMethod={})),function(e){e[e.Non=0]="Non",e[e.NextSticky=1]="NextSticky",e[e.StepOver=2]="StepOver",e[e.StepOut=3]="StepOut"}(BreakStepType||(BreakStepType={})),function(e){e[e.Entry=0]="Entry",e[e.Exit=1]="Exit"}(FingerType||(FingerType={}));var TyroUtil=function(){function e(){}return e.throwsMessage=function(e){return"[Throws: "+(e?e.message:"?")+"]"},e.safeGetValueFromPropertyOnObject=function(t,n){if(Object.prototype.hasOwnProperty.call(t,n))try{return t[n]}catch(t){return e.throwsMessage(t)}return t[n]},e.ensureProperties=function(t){var n=[];return function t(s){if(null===s||"object"!=typeof s)return s;if(-1!==n.indexOf(s))return"[Circular]";if(n.push(s),"function"==typeof s.toJSON)try{var i=t(s.toJSON());return n.pop(),i}catch(t){return e.throwsMessage(t)}if(Array.isArray(s)){var r=s.map(t);return n.pop(),r}var o=Object.keys(s).reduce((function(n,i){return n[i]=t(e.safeGetValueFromPropertyOnObject(s,i)),n}),{});return n.pop(),o}(t)},e.safeJSONStringify=function(t,n,s){return JSON.stringify(e.ensureProperties(t),n,s)},e.isWebIDE=function(){return!("undefined"==typeof navigator||!navigator)&&(navigator.swuserAgent||navigator.userAgent||"").indexOf("AlipayIDE")>-1},e}(),StickyFinger=function(){function StickyFinger(e,t,n,s){var i=this;this.isWebIDE=!1,this.asyncRequestMethod="tyroRequest",this.host=t,this.contextMap={},this.contextUrlMap={},this.breakpointMap={},this.breakpointIdMap={},this.debuggerMap={},this.objectMap={},this.originConsoleAPI={},this.requestTaskId=0,this.stickyMsgQueue=[],this.wsMsgQueue=[],this.wsIsOpen=!1,this.instrumentId=n,this.stickyFlag=s.stickyFlag,this.fingerFlag=s.fingerFlag,this.hookConsole(),this.stickyFlag&&(setTimeout((function(){i.socketTask=my.connectSocket({url:"wss://"+getServerConfig().domain+"/tyro/agent/"+i.instrumentId,multiple:!0});var e=function(){if(!i.wsIsOpen){i.originConsoleAPI.log("[tyro-agent] WebSocket 连接成功"),i.wsIsOpen=!0;for(var e=0,t=i.wsMsgQueue;e0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"log",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.debug=function(){for(var t,n=[],s=0;s0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"debug",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.info=function(){for(var t,n=[],s=0;s0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"info",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.error=function(){for(var t,n=[],s=0;s0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"error",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}},console.warn=function(){for(var t,n=[],s=0;s0&&"string"==typeof n[0]&&(n[0].indexOf("[framework]")>=0||n[0].indexOf("dispatchEvent")>=0||n[0].indexOf("onMessage push")>=0))){var i={type:"warning",args:n.map((function(t){return e.objectToRemoteObject(t,null,"object"==typeof t)})),executionContextId:0,timestamp:(new Date).getTime()};e.xhrSend(ResponseEvent.ConsoleAPICalled,i,null,!1)}}},StickyFinger.prototype.inflateStickyParamsObject=function(e){if(0!==this.stickyParams.callFrames.length){this.generateObjectId+=1;var t=String(this.generateObjectId);this.objectMap[t]=e,this.stickyParams.callFrames[0].scopeChain.push({type:"local",name:this.stickyParams.callFrames[0].functionName,object:{className:"Object",description:"Object",objectId:t,type:"object"}})}},StickyFinger.prototype.processCallFrames=function(e,t,n,s){var i=this,r=[],o=s.slice(3,s.length).map((function(e){return e.substr(0,e.lastIndexOf(":")).replace(" at ","").replace(" (",":")})),a=0,c=!0;return o.map((function(t){var s=t.split(":"),o=s[0],p=i.contextMap[e].path,u=Number(s[s.length-1]),l=i.contextUrlMap[p]||"none",y=a+":"+u+":"+p;c&&(i.scopeVariables=void 0!==i.contextMap[e]?i.contextMap[e].scope[n]:[],c=!1);var h={callFrameId:y,functionName:o,location:{scriptId:l,lineNumber:u,columnNumber:0},url:p,scopeChain:[],this:{}};r.push(h),a+=1})),r},StickyFinger.prototype.processCallFramesPhone=function(e,t,n,s){var i=this,r=[],o=s.slice(2,s.length).map((function(e){return e.substr(0,e.lastIndexOf(":")).replace(" at ","").replace(" (",":").replace("@",":")})),a=0,c=!0;return o.map((function(s){var o=s.split(":"),p=o[0],u=i.contextMap[e].path,l=Number(o[o.length-1]),y=i.contextUrlMap[u]||"none",h=a+":"+l+":"+u;c&&(i.scopeVariables=void 0!==i.contextMap[e]?i.contextMap[e].scope[n]:[],i.originConsoleAPI.log("scopeVariables "+TyroUtil.safeJSONStringify(i.scopeVariables)),i.originConsoleAPI.log("scopeVariables "+TyroUtil.safeJSONStringify(i.contextMap[e])+" "+i.contextMap[e].scope+" "+n),c=!1);var d={callFrameId:h,functionName:p,location:{scriptId:y,lineNumber:t,columnNumber:0},url:u,scopeChain:[],this:{}};r.push(d),a+=1})),r},StickyFinger.prototype.stickyAsyncLoop=function(){this.xhrSend(ResponseEvent.StickyAsync,{})},StickyFinger.prototype.xhrSendJSAPI=function(e,t,n,s){var i,r=this;if(e===ResponseEvent.Sticky){var o;this.stickyMsgQueue.length>0?(this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),o=TyroUtil.safeJSONStringify(this.stickyMsgQueue),this.stickyMsgQueue=[]):o=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t}),my.call("showRemoteDebugMask",{text:" ",buttonTitle:"断点命中",hide:!1}),this.stickyNotSendPaused=!1;var a=Date.now(),c=my.callSync("tyroRequest",{url:this.host+"/tyro/agent",method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8","instrument-id":this.instrumentId},data:o,timeout:6e5,blockTimeout:6e5,dataType:"json",requestTaskId:this.requestTaskId++});return my.call("showRemoteDebugMask",{hide:!0}),c.error||null===c?(null===c?this.originConsoleAPI.error("[tyro-agent] xhrSend error result is "+c):this.originConsoleAPI.error("[tyro-agent] xhrSend error "+c.error+" "+c.errorMessage),Date.now()-a>=5e3?this.xhrSendJSAPI(e,t,n,s):TyroUtil.safeJSONStringify({method:"default"})):200!==c.status?(this.originConsoleAPI.error("[tyro-agent] xhrSend status fail "+e+" "+c.status),TyroUtil.safeJSONStringify({method:"default"})):c.data}if(e===ResponseEvent.StickyAsync){var p=TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t});this.originConsoleAPI.info("[tyro-agent] xhrSend async send "+p),my.call(this.asyncRequestMethod,{url:this.host+"/tyro/agent",method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8","instrument-id":this.instrumentId},data:p,timeout:6e5,dataType:"json",requestTaskId:this.requestTaskId++,success:function(e){r.lastStickyAsyncError=0,r.stickyAsyncLoop(),200===e.status?(r.originConsoleAPI.info("[tyro-agent] xhrSend async success "+e.status+" "+e.data),r.handleStickyAsync(JSON.parse(e.data))):r.originConsoleAPI.error("[tyro-agent] xhrSend async fail "+e.status+" "+e.data)},fail:function(e){r.lastStickyAsyncError>=3?setTimeout((function(){r.stickyAsyncLoop()}),3e3):(r.lastStickyAsyncError+=1,r.stickyAsyncLoop()),r.originConsoleAPI.error("[tyro-agent] xhrSend async error "+TyroUtil.safeJSONStringify(e))}})}switch(e){case ResponseEvent.ById:i={id:n,result:t};break;case ResponseEvent.ScriptSource:i={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:i={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:i={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}s?this.stickyMsgQueue.push(i):this.wsIsOpen?this.socketTask.send({data:TyroUtil.safeJSONStringify(i)}):this.wsMsgQueue.push(TyroUtil.safeJSONStringify(i))},StickyFinger.prototype.xhrSend=function(e,t,n,s){var i=this;if(Agent.isPhone)return this.xhrSendJSAPI(e,t,n,s);var r,o=new XMLHttpRequest;if(e===ResponseEvent.Sticky){var a;if(o.open("POST",this.host+"/tyro/agent",!1),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.setRequestHeader("instrument-id",this.instrumentId),this.stickyMsgQueue.length>0){this.stickyMsgQueue.push({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});try{a=TyroUtil.safeJSONStringify(this.stickyMsgQueue)}catch(e){this.originConsoleAPI.error(e),a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t})}finally{this.stickyMsgQueue=[]}}else a=TyroUtil.safeJSONStringify({method:this.stickyNotSendPaused?ResponseEvent.StickyNotSendPaused:ResponseEvent.Sticky,params:t});if(this.stickyNotSendPaused=!1,o.send(a),200===o.status)return o.responseText;throw new Error("[sticky-finger] xhrSend error "+e+" "+o.status)}if(e===ResponseEvent.StickyAsync)return o.open("POST",this.host+"/tyro/agent",!0),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.setRequestHeader("instrument-id",this.instrumentId),o.onload=function(){if(i.lastStickyAsyncError=0,i.stickyAsyncLoop(),4!==o.readyState||200!==o.status)throw new Error("[tyro-agent] xhrSend async fail "+e+" "+o.readyState+" "+o.status);i.handleStickyAsync(JSON.parse(o.responseText))},o.onerror=function(){throw i.lastStickyAsyncError>=3?setTimeout((function(){i.stickyAsyncLoop()}),3e3):(i.lastStickyAsyncError+=1,i.stickyAsyncLoop()),new Error("[tyro-agent] xhrSend async error "+e+" "+o.readyState+" "+o.status)},void o.send(TyroUtil.safeJSONStringify({method:ResponseEvent.StickyAsync,params:t}));switch(o.open("POST",this.host+"/tyro/agent",!0),o.setRequestHeader("Content-Type","application/json;charset=UTF-8"),o.setRequestHeader("instrument-id",this.instrumentId),o.onload=function(){if(4!==o.readyState||200!==o.status)throw new Error("[tyro-agent] xhrSend async fail "+e+" "+o.readyState+" "+o.status)},o.onerror=function(){throw new Error("[tyro-agent] xhrSend async error "+e+" "+o.readyState+" "+o.status)},e){case ResponseEvent.ById:r={id:n,result:t};break;case ResponseEvent.ScriptSource:r={method:ResponseEvent.ScriptSource,params:t};break;case ResponseEvent.Resumed:r={method:ResponseEvent.Resumed,params:t};break;case ResponseEvent.ConsoleAPICalled:r={method:ResponseEvent.ConsoleAPICalled,params:t};break;default:return}s?this.stickyMsgQueue.push(r):o.send(TyroUtil.safeJSONStringify(r))},StickyFinger.prototype.handleSticky=function(e){var t=e.id,n=e.method,s=e.params;switch(n){case RequestMethod.DiscardConsoleEntries:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log("[tyro-agent] DiscardConsoleEntries success"),"true";case RequestMethod.CallFunctionOn:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log("[tyro-agent] CallFunctionOn TODO sticky"),"true";case RequestMethod.CompileScript:return this.stickyNotSendPaused=!0,this.originConsoleAPI.log("[tyro-agent] CompileScript success, "+TyroUtil.safeJSONStringify(s)),"true";case RequestMethod.SetBreakpointsActive:return this.stickyNotSendPaused=!0,this.breakpointsActive=s.active,this.originConsoleAPI.log("[tyro-agent] SetBreakpointsActive success, breakpointsActive "+this.breakpointsActive),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetSkipAllPauses:return this.stickyNotSendPaused=!0,this.skipAllPauses=s.skip,this.originConsoleAPI.log("[tyro-agent] SetSkipAllPauses success, skipAllPauses "+this.skipAllPauses),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.Resume:return this.xhrSend(ResponseEvent.Resumed,{}),this.originConsoleAPI.log("[tyro-agent] Resume success"),"false";case RequestMethod.StepInto:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log("[tyro-agent] StepInto success"),"false";case RequestMethod.StepOver:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOver,this.originConsoleAPI.log("[tyro-agent] StepOver success"),"false";case RequestMethod.StepOut:return this.xhrSend(ResponseEvent.Resumed,{}),this.breakStepType=BreakStepType.StepOut,this.originConsoleAPI.log("[tyro-agent] StepOut success"),"false";case RequestMethod.GetPossibleBreakpoints:return this.stickyNotSendPaused=!0,this.getPossibleBreakpoints(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetBreakpointByUrl:return this.stickyNotSendPaused=!0,this.setBreakpointByUrl(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetBreakpoint:return this.stickyNotSendPaused=!0,this.setBreakpoint(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.RemoveBreakpoint:return this.stickyNotSendPaused=!0,this.removeBreakpoint(t,s),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.REPL:return this.stickyNotSendPaused=!0,this.breakStepType=BreakStepType.NextSticky,"(function(){(function(){"+s.statement+"})();return true})()";case RequestMethod.GetVariableValue:this.stickyNotSendPaused=!0;var i=e.params;return this.breakStepType=BreakStepType.NextSticky,"(function(){(function(){\n Agent.variableValue({"+i.map((function(e){return e+": (function(){try{return "+e+"}catch(e){return undefined}})()"})).join(",")+"})\n })();return true})()";case RequestMethod.SetPauseOnExceptions:return this.stickyNotSendPaused=!0,this.setPauseOnExceptions(t,s),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.SetAsyncCallStackDepth:return this.stickyNotSendPaused=!0,this.setAsyncCallStackDepth(t,s),this.breakStepType=BreakStepType.NextSticky,"true";case RequestMethod.EvaluateOnCallFrame:return this.stickyNotSendPaused=!0,this.evaluateOnCallFrameExpression=s.expression,this.breakStepType=BreakStepType.NextSticky,"(function(){\n var tyroRet,tyroErr;\n try{tyroRet=eval(Agent.getEvaluateOnCallFrameExpression())}\n catch(e){tyroErr=e}\n Agent.evaluateOnCallFrame("+t+",tyroRet,tyroErr,"+s.generatePreview+");\n return true;\n })()";case RequestMethod.GetProperties:return this.stickyNotSendPaused=!0,this.getProperties(t,s,!0),this.breakStepType=BreakStepType.NextSticky,"true";default:return this.breakStepType=BreakStepType.NextSticky,"true"}},StickyFinger.prototype.handleStickyAsync=function(e){var t=e.id,n=e.method,s=e.params;switch(this.originConsoleAPI.log("[tyro-agent] handleStickyAsync "+t+", "+n+", "+s),n){case RequestMethod.DiscardConsoleEntries:this.originConsoleAPI.log("[tyro-agent] DiscardConsoleEntries success");break;case RequestMethod.Evaluate:this.originConsoleAPI.log("[tyro-agent] Evaluate start, expression "+s.expression);var i=this.evaluate(this.globalExecutionContext,t,s);this.originConsoleAPI.log("[tyro-agent] Evaluate success, expression "+s.expression+", result "+TyroUtil.safeJSONStringify(i));break;case RequestMethod.CallFunctionOn:this.originConsoleAPI.log("[tyro-agent] CallFunctionOn TODO stickyAsync");break;case RequestMethod.CompileScript:this.originConsoleAPI.log("[tyro-agent] CompileScript success, params "+TyroUtil.safeJSONStringify(s));break;case RequestMethod.SetBreakpointsActive:this.breakpointsActive=s.active,this.originConsoleAPI.log("[tyro-agent] SetBreakpointsActive success, breakpointsActive "+this.breakpointsActive);break;case RequestMethod.SetSkipAllPauses:this.skipAllPauses=s.skip,this.originConsoleAPI.log("[tyro-agent] SetSkipAllPauses success, skipAllPauses "+this.skipAllPauses);break;case RequestMethod.Pause:this.breakStepType=BreakStepType.NextSticky,this.originConsoleAPI.log("[tyro-agent] Pause success");break;case RequestMethod.GetPossibleBreakpoints:this.getPossibleBreakpoints(t,s);break;case RequestMethod.SetBreakpointByUrl:this.setBreakpointByUrl(t,s);break;case RequestMethod.SetBreakpoint:this.setBreakpoint(t,s);break;case RequestMethod.RemoveBreakpoint:this.removeBreakpoint(t,s);break;case RequestMethod.SetPauseOnExceptions:this.setPauseOnExceptions(t,s);break;case RequestMethod.SetAsyncCallStackDepth:this.setAsyncCallStackDepth(t,s);break;case RequestMethod.GetProperties:this.getProperties(t,s)}},StickyFinger.prototype.objectToRemoteObject=function(e,t,n){var s={};if(isError(e)&&(t=e),t)return error2RemoteObject(t);switch(s.type=typeof e,s.type){case"undefined":break;case"object":if(null===e){s.subtype="null",s.value=null;break}if(void 0!==e.constructor&&(s.className=e.constructor.name),void 0!==e.toString)try{s.description=e.toString()}catch(e){s.description="[object Object]"}else s.description="[object Object]";if(this.generateObjectId+=1,s.objectId=String(this.generateObjectId),this.objectMap[String(this.generateObjectId)]=e,n)for(var i in s.preview={type:"object",description:"Object",overflow:!1,properties:[]},e){var r=typeof e[i];s.preview.properties.push({name:i,type:r,value:"object"===r?"Object":"function"===r?"":e[i]})}break;case"function":s.description=e.toString(),s.className="Function";break;default:s.value=e,s.description=e.toString()}return s},StickyFinger.prototype.evaluateOnCallFrame=function(e,t,n,s){var i=this.objectToRemoteObject(t,n,s);return this.xhrSend(ResponseEvent.ById,{result:i},e,!0),i},StickyFinger.prototype.evaluate=function(executionContext,id,params){var returnValue,error;try{returnValue=function(expression){return"function"==typeof eval?eval(expression):Agent.evalReference(expression)}.call(executionContext,params.expression)}catch(e){error=e}var result=this.objectToRemoteObject(returnValue,error,params.generatePreview);return this.xhrSend(ResponseEvent.ById,{result:result},id),result},StickyFinger.prototype.getPossibleBreakpoints=function(e,t,n){var s=t.scriptId,i=t.startLine,r=t.endLine===t.startLine?t.endLine+1:t.endLine,o={locations:[]};if(this.contextMap[s])for(var a=this.contextMap[s].stickyLine,c=i;c>>0)+u+++"__",e&&e.forEach&&e.forEach(this.add,this)}var g=l.prototype;g.add=function(e){var t=this.name;return e[t]||Object.defineProperty(e,t,{value:!0,writable:!0}),this},g.delete=function(e){return!!e[this.name]&&(e[this.name]=void 0,!0)},g.has=function(e){return!!e[this.name]};var f=l,d=self;var h="[DEBUG]";function _(){for(var e=[],t=0;t5e6||(this.opened?this.socket.send(t):this.messageBeforeSocketOpen.push(t))},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){var e=this;this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[])},t.prototype.onSocketClose=function(){this.opened=!1,console.log("[DEBUG] connection closed")},t.prototype.onSocketError=function(e){console.error("[DEBUG] connection onerror",e)},t}(D),R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.messageBeforeSocketOpen=[],t}return L(t,e),t.prototype.open=function(){var e=this;this.socketTask=AFAppX.bridge.connectSocket({url:this.url,multiple:!0,fail:function(t){e.onSocketError(t)}}),this.socketTask.onOpen((function(){e.handleSocketOpen()})),this.socketTask.onError((function(t){e.onSocketError(t.data)})),this.socketTask.onClose((function(){e.opened=!1,e.onSocketClose()})),this.socketTask.onMessage((function(t){e.opened||e.handleSocketOpen(),e.onSocketMessage(t.data.data)}))},t.prototype.sendSocketMessage=function(e){var t="string"==typeof e?e:JSON.stringify(e);t.length>5e6||(this.opened?this.socketTask.send({data:t,isBuffer:!1}):this.messageBeforeSocketOpen.push(t))},t.prototype.close=function(){this.opened&&this.socketTask.close()},t.prototype.onSocketMessage=function(e){},t.prototype.onSocketOpen=function(){},t.prototype.onSocketError=function(e){},t.prototype.onSocketClose=function(){},t.prototype.handleSocketOpen=function(){var e=this;this.opened||(this.opened=!0,this.messageBeforeSocketOpen.length&&(this.messageBeforeSocketOpen.forEach((function(t){e.sendSocketMessage(t)})),this.messageBeforeSocketOpen=[]),this.onSocketOpen())},t}(D),j=function(){this.channelConfigKey="0",this.silentMode=!1,this.userAgent="undefined"!=typeof navigator?navigator.swuserAgent||navigator.userAgent:"",this.isIOS=/iPhone|iPad|iOS/i.test(this.userAgent),this.isLyra=/LyraVM/i.test(this.userAgent),this.startupParams=b(),this.channelId=this.startupParams.channelId,"string"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__&&(this.channelId=__BUGME_EXTERNAL_CHANNEL__,this.silentMode=!0),this.isLyra&&(this.silentMode=!0),this.startupParams.remoteCh&&(this.channelConfigKey=String(this.startupParams.remoteCh))},N=function(){function e(){this.records=new Map}return e.prototype.setRequest=function(e,t){this.records.set(e,P(P({},this.records.get(e)||{}),t))},e.prototype.getRequest=function(e){return this.records.get(e)},e.prototype.removeRequest=function(e){this.records.has(e)&&this.records.delete(e)},e}(),B=function(){function e(e){void 0===e&&(e=[]),this._messageQueue=e,this._queueSize=0,this.isApplogEnabled=!1}return e.prototype.push=function(e){this._queueSize;var t=function(e){var t="string"==typeof e?e:JSON.stringify(e);return t.length>5e6?void console.warn("abort send websocket message due to size:",t.length):t}(e);null!=t&&(this._messageQueue.push(t),this._queueSize+=t.length)},e.prototype.sendQueuedMessages=function(){if(0!==this._messageQueue.length){var e=M().getWorkerSocket();e&&(this._messageQueue.forEach((function(t){return e.send(t)})),this._messageQueue=[],this._queueSize=0)}},e.prototype.setApplogEnabled=function(e){this.isApplogEnabled=e},e}(),T=function(){function e(){}return e.prototype.getAgentContext=function(){return this.agentContext||(this.agentContext=new j),this.agentContext},e.prototype.setWorkerSocket=function(e){this.workerSocket=e},e.prototype.getWorkerSocket=function(){return this.workerSocket},e.prototype.getNetworkRecorder=function(){return this.networkRecorder||(this.networkRecorder=new N),this.networkRecorder},e.prototype.getMessageQueue=function(){return null==this.messageQueue&&(this.messageQueue=new B),this.messageQueue},e}();function M(){return w||(w=new T),w}var I=function(e,t,n,o,r){var i,a,s=null,c=0;r||(r={});var p=function(){c=!1===r.leading?0:Date.now(),s=null,a=e.apply(null,i),i=null};return function(){for(var u=[],l=0;lt?(o(s),s=null,c=g,a=e.apply(null,i),i=null):s||!1===r.trailing||(s=n(p,f)),a}}((function(){var e=M().getWorkerSocket();e&&e.send({method:n.DataChanged,ext:{origin:p.Data}})}),300,setTimeout,clearTimeout);function X(e){if(d.__APPX_DEVTOOLS_GLOBAL_HOOK__&&d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]&&"function"==typeof d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e])return d.__APPX_DEVTOOLS_GLOBAL_HOOK__[e]}var G=console.error;function q(){null==d.__APPX_DEVTOOLS_GLOBAL_HOOK__&&(d.__APPX_DEVTOOLS_GLOBAL_HOOK__={});var e={onSetData:X("onSetData"),onSetDataCallback:X("onSetDataCallback"),onApiSyncCall:X("onApiSyncCall"),onApiSyncCallback:X("onApiSyncCallback"),onApiCall:X("onApiCall"),onApiCallback:X("onApiCallback"),onError:X("onError")};d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetData=function(t){try{if(e.onSetData)try{e.onSetData.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}I(),W({method:a.SetData,params:F(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onSetDataCallback=function(t){try{if(e.onSetDataCallback)try{e.onSetDataCallback.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}W({method:a.SetDataCallback,params:t,ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCall=function(t){try{if(e.onApiSyncCall)try{e.onApiSyncCall.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}W({method:a.ApiSyncCall,params:H(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiSyncCallback=function(t){try{if(e.onApiSyncCallback)try{e.onApiSyncCallback.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}W({method:a.ApiSyncCallback,params:H(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCall=function(t){try{if(e.onApiCall)try{e.onApiCall.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}W({method:a.ApiCall,params:H(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onApiCallback=function(t){try{if(e.onApiCallback)try{e.onApiCallback.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){y(e)}W({method:a.ApiCallback,params:H(t),ext:{origin:p.AppLog}})}catch(e){}},d.__APPX_DEVTOOLS_GLOBAL_HOOK__.onError=function(t){try{if(e.onError)try{e.onError.call(d.__APPX_DEVTOOLS_GLOBAL_HOOK__,t)}catch(e){}!function(e){var t=new Error(e.formatted.message);t.stack=e.formatted.stack,setTimeout(G.bind(console,t))}(t)}catch(e){}},function(e,t){for(var n=["onPageLoad","onPageShow","onPageHide","onPageReady","onPageUnload","onPageUpdate"],o=0,r=n;o5,properties:i.slice(0,5).map((function(e){return o.mapObjectProperty(e,r[e])})).filter(Boolean)}};return e instanceof Error?(t="error",n=e.stack):e instanceof Date?(t="date",n=e.toString()):e instanceof RegExp?(t="regexp",n=e.toString()):e instanceof Promise&&(t="promise",n="Promise"),t&&(c.subtype=t,c.preview&&(c.preview.subtype=t)),n&&(c.description=n,c.preview&&(c.preview.description=n)),c},e.prototype.mapArray=function(e){var t="Array("+e.length+")";return{type:"object",subtype:"array",className:"Array",description:t,objectId:this.objectStore.save(e),preview:{type:"object",subtype:"array",description:t,overflow:!1,properties:this.mapArrayProperties(e)}}},e.prototype.mapArrayProperties=function(e){return e.map((function(e,t){if("function"==typeof e)return{name:String(t),type:"function",value:""};var n={name:String(t),type:typeof e,value:"object"==typeof e&&e?e.constructor&&e.constructor.name||"Object":String(e)};return null===e?n.subtype="null":Array.isArray(e)&&(n.subtype="array"),n}))},e.prototype.mapObjectProperty=function(e,t){if(t.get)return{name:e,type:"accessor"};if(!t.set){var n=t.value;switch(typeof n){case"object":return Array.isArray(n)?{name:e,type:"object",subtype:"array",value:"Array("+n.length+")"}:null===n?{name:e,type:"object",subtype:"null",value:"null"}:{name:e,type:"object",value:n.constructor?n.constructor.name:"Object"};case"function":return{type:"function",value:"",name:e};default:return{name:e,type:typeof n,value:String(n)}}}},e}(),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return L(t,e),t.prototype.mapFrom=function(e){var t=this;return e.split("\n").slice(2).map((function(e,n){return t.testType1(e)?t.extractType1(e):t.testType2(e)?t.extractType2(e):void 0})).filter((function(e){return null!=e}))},t}(function(){function e(){this.e1=/\s*at\s(\S+)\s(\S+)\:(\d+)\:(\d+)\)/,this.e2=/\s*at\s(\S+)\:(\d+)\:(\d+)/}return e.prototype.testType1=function(e){return this.e1.test(e)},e.prototype.testType2=function(e){return this.e2.test(e)},e.prototype.extractType1=function(e){var t=e.match(this.e1);return null==t?null:{functionName:t[1],url:t[2].slice(1),lineNumber:Number(t[3]),columnNumber:Number(t[4])}},e.prototype.extractType2=function(e){var t=e.match(this.e2);return null==t?null:{functionName:"",url:t[1].slice(1),lineNumber:Number(t[2]),columnNumber:Number(t[3])}},e}()),Q=function(){function e(){this.id=0,this.id2Object=new Map,this.object2Id=new Map}return e.prototype.save=function(e){if(this.object2Id.has(e))return this.object2Id.get(e);var t=this.getNextObjectId();return this.id2Object.set(t,e),this.object2Id.set(e,t),t},e.prototype.query=function(e){return this.id2Object.get(e)},e.prototype.clear=function(e){var t=this.id2Object.get(e);t&&(this.id2Object.delete(e),this.object2Id.delete(t))},e.prototype.clearAll=function(){this.id2Object.clear(),this.object2Id.clear()},e.prototype.getNextObjectId=function(){return this.id++,'{"injectedScriptId":1,"id":'+this.id+"}"},e}(),J=function(){function e(e,t){this.objectStore=e,this.objectMapper=t}return e.prototype.handle=function(e){var t=this.objectStore.query(e.objectId);return t?{result:this.mapObject(t,Boolean(e.ownProperties),Boolean(e.accessorPropertiesOnly))}:{result:[]}},e.prototype.mapObject=function(e,t,n){var o=this;if(t){var r=Object.getOwnPropertyDescriptors(e),i=Object.keys(r).filter((function(e){return!(n&&!r[e].get&&!r[e].set)})).map((function(e){return o.mapResultOne(e,r[e],!0)}));return e.__proto__&&i.push(this.mapResultOne("__proto__",{configurable:!0,enumerable:!1,writable:!0,value:e.__proto__},!0)),i}for(var a=[],s={},c=e,p=!1,u=!0,l=function(){var e=Object.getOwnPropertyDescriptors(c);if(Object.keys(e).forEach((function(t){if(!s[t]){s[t]=!0;var r=e[t];(!n||r.get||r.set)&&a.push(o.mapResultOne(t,r,u))}})),!p){var t=Object.getOwnPropertyDescriptor(c,"__proto__");t&&(p=!0,a.push(g.mapResultOne("__proto__",t,u)))}c=c.__proto__,u=!1},g=this;c;)l();return a},e.prototype.mapResultOne=function(e,t,n){var o={writable:t.writable,configurable:Boolean(t.configurable),enumerable:Boolean(t.enumerable),isOwn:n,name:String(e)};return"value"in t&&(o.value=this.objectMapper.mapFromOne(t.value)),t.get&&(o.get=this.objectMapper.mapFromOne(t.get)),t.set&&(o.set=this.objectMapper.mapFromOne(t.set)),o},e}(),$=function(){function e(){this.objectStore=new Q,this.objectMapper=new U(this.objectStore),this.callFramesMapper=new z,this.getPropertiesHandler=new J(this.objectStore,this.objectMapper)}return e.prototype.parseObject=function(e){return this.objectMapper.mapFromOne(e)},e.prototype.getProperties=function(e){return this.getPropertiesHandler.handle(e)},e.prototype.getObjectById=function(e){return this.objectStore.query(e)},e.prototype.consoleAPICalled=function(e,t,n){var o=e;return"warn"===e&&(o="warning"),{method:"Runtime.consoleAPICalled",params:{type:o,args:this.objectMapper.mapFrom(n),executionContextId:1,timestamp:Date.now(),stackTrace:{callFrames:this.callFramesMapper.mapFrom(t)}}}},e}();function Y(){var e="string"==typeof __BUGME_EXTERNAL_CHANNEL__&&__BUGME_EXTERNAL_CHANNEL__||"boolean"==typeof __BUGME_CONSOLE_ENABLE__&&__BUGME_CONSOLE_ENABLE__;console.log("[tinybugme] override console",e),e&&(V=new te).overrideConsole()}function Z(){return V}var ee,te=function(){function e(){this.executionContextId=1,this.messageBeforeAgentInit=[],this.webSocketCheckingLoop=!1,this.parser=new $,this.createExecutionContext()}return e.prototype.createExecutionContext=function(){this.sendMesasge({method:s.executionContextsCleared,params:{}}),this.sendMesasge({method:s.executionContextCreated,params:{context:{id:this.executionContextId,origin:"app://",name:"app"}}})},e.prototype.overrideConsole=function(){var e=this,t=this;Object.defineProperties(console,["debug","log","info","warn","error"].reduce((function(n,o){var r=console[o].bind(console),i=e;return n[o]={value:function(){var e=arguments;try{var n=/^(\[framework\]|dispatchEvent|onMessage push|unsupported protocol)/;if(e.length&&"string"==typeof e[0]&&n.test(e[0]))return r.apply(null,e);var a=new Error;a.stack&&t.sendMesasge(i.parser.consoleAPICalled(o,a.stack,e))}catch(e){}return r.apply(null,e)}},n}),{}))},e.prototype.sendMesasge=function(e){var t=M().getWorkerSocket();t?(this.flushPendingMessasges(),t.sendAfterReceivingMessage(e)):(this.messageBeforeAgentInit.push(e),this.checkWebSocketReady())},e.prototype.flushPendingMessasges=function(){if(this.messageBeforeAgentInit.length){var e=M().getWorkerSocket();e&&(this.messageBeforeAgentInit.forEach((function(t){e.sendAfterReceivingMessage(t)})),this.messageBeforeAgentInit=[])}},e.prototype.checkWebSocketReady=function(){var e=this;if(!this.webSocketCheckingLoop){this.webSocketCheckingLoop=!0;var t=setInterval((function(){M().getWorkerSocket()&&(clearInterval(t),e.flushPendingMessasges())}),1e3)}},e}();function ne(e){if(M().getAgentContext().silentMode)return!1;var t="";switch(e){case ee.Connecting:t="准备中";break;case ee.Connected:t="已连接";break;case ee.Reconnecting:t="重试中";break;case ee.Disconnected:t="已断开"}e===ee.Reconnecting&&(e=ee.Connecting),AFAppX.bridge.call("showRemoteDebugPanel",{status:e,text:"真机调试"+t,buttonTitle:"退出"})}!function(e){e.Connecting="connecting",e.Connected="connected",e.Disconnected="disconnected",e.Reconnecting="reconnecting"}(ee||(ee={}));var oe=Object.freeze({__proto__:null,enable:function(e){M().getWorkerSocket().send({id:e.id,result:{}})},getResponseBody:function(e){var t=e.params.requestId,n=M(),o=n.getNetworkRecorder(),r=o.getRequest(t);r?n.getWorkerSocket().send({id:e.id,result:{base64Encoded:r.isBase64Body,body:r.responseBody}}):n.getWorkerSocket().send({id:e.id,result:{}}),o.removeRequest(t)}});var re="function"==typeof __eval?__eval:"function"==typeof eval?eval:function(){};var ie=Object.freeze({__proto__:null,enable:function(e){M().getWorkerSocket().send({id:e.id,result:{}});var t=Z();t&&t.createExecutionContext()},getProperties:function(e){var t=Z();t&&M().getWorkerSocket().send({id:e.id,result:t.parser.getProperties(e.params)})},compileScript:function(e){M().getWorkerSocket().send({id:e.id,result:{}})},evaluate:function(e){var t=Z();if(t){var n=t.parser;try{var o=re(e.params.expression);M().getWorkerSocket().send({id:e.id,result:{result:n.parseObject(o)}})}catch(t){t.stack=t.name+": "+t.message,M().getWorkerSocket().send({id:e.id,result:{exceptionDetails:{columnNumber:20,exception:n.parseObject(t),exceptionId:1,lineNumber:0,text:"Uncaught"},result:n.parseObject(t)}})}}}});var ae=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){function n(e,t){var n=[],o=[];return null==t&&(t=function(e,t){return n[0]===t?"[Circular ~]":"[Circular ~."+o.slice(0,n.indexOf(t)).join(".")+"]"}),function(r,i){if(n.length>0){var a=n.indexOf(this);~a?n.splice(a+1):n.push(this),~a?o.splice(a,1/0,r):o.push(r),~n.indexOf(i)&&(i=t.call(this,r,i))}else n.push(i);return null==e?i:e.call(this,r,i)}}(e.exports=function(e,t,o,r){return JSON.stringify(e,n(t,r),o)}).getSerialize=n}));ae.getSerialize;var se=Object.freeze({__proto__:null,getPagesData:function(e){var t=d.getCurrentPages().filter(Boolean).map((function(e){return{viewId:e.$viewId,data:ae(e.data),route:e.route}}));M().getWorkerSocket().send({id:e.id,ext:e.ext,result:{data:t}})},setPageData:function(e){var t=e.params,n=void 0===t?{}:t,o=n.viewId,r=n.data,i=d.getCurrentPages().filter((function(e){return e&&""+e.$viewId===o}))[0];i&&r&&i.setData(r)}});var ce=Object.freeze({__proto__:null,getStorageInfo:function(e){var t=AFAppX.bridge.getStorageInfoSync(),n=t.keys.map((function(e){var t=AFAppX.bridge.getStorageSync({key:e}).data;return{key:e,value:t,type:typeof t}}));M().getWorkerSocket().send({id:e.id,ext:e.ext,result:{currentSize:t.currentSize,limitSize:t.limitSize,data:n}})},clearStorage:function(e){AFAppX.bridge.clearStorageSync()},removeStorage:function(e){var t=e.params,n=void 0===t?{}:t;n.key&&AFAppX.bridge.removeStorageSync({key:n.key})},setStorage:function(e){var t=e.params,n=void 0===t?{}:t;n.key&&AFAppX.bridge.setStorageSync({key:n.key,data:n.value})}});var pe=Object.freeze({__proto__:null,enable:function(){var e=M().getMessageQueue();e.setApplogEnabled(!0),e.sendQueuedMessages()}});var ue=Object.freeze({__proto__:null,Data:se,Storage:ce,Applog:pe,ping:function(e){M().getWorkerSocket().send({id:e.id,result:{}})},getSystemInfo:function(e){var t=AFAppX.bridge.getSystemInfoSync(),n={userAgent:M().getAgentContext().userAgent,sdkVersion:AFAppX.bridge.SDKVersion,alipayVersion:t.version,model:t.model,system:t.system};M().getWorkerSocket().send({id:e.id,result:n})},getStartupParams:function(e){var t=b();M().getWorkerSocket().send({id:e.id,result:t})}});var le=Object.freeze({__proto__:null,getResourceTree:function(e){M().getWorkerSocket().send({id:e.id,result:{}})}}),ge=Object.freeze({__proto__:null,Network:oe,Runtime:ie,Tiny:ue,Page:le}),fe=!1;if("undefined"!=typeof WebSocket&&WebSocket.OPEN){fe=!0;try{delete d.WebSocket}catch(_){}}var de=function(e){function t(t){var n=e.call(this,t)||this;return n.isMessageReceived=!1,n.isSocketOpenedOnce=!1,n.messageBeforeReceived=[],n.isDebugExited=!1,ne(ee.Connecting),n}return L(t,e),t.prototype.send=function(e){return this.sendSocketMessage(e)},t.prototype.sendAfterReceivingMessage=function(e){this.isMessageReceived?this.send(e):this.messageBeforeReceived.push("string"==typeof e?e:JSON.stringify(e))},t.prototype.exitDebug=function(){this.isDebugExited=!0,ne(ee.Disconnected),this.close(),!fe&&M().getAgentContext().isIOS&&[1,2].forEach((function(e){AFAppX.bridge.call("closeSocket",{socketTaskId:e})}))},t.prototype.onSocketOpen=function(){e.prototype.onSocketOpen.call(this),this.isSocketOpenedOnce=!0,clearInterval(this.reconnectInterval),this.send({method:i.Enable,params:{},ext:{origin:p.AppLog}}),this.send({method:n.DataChanged,ext:{origin:p.Data}})},t.prototype.onSocketClose=function(){e.prototype.onSocketClose.call(this),this.isDebugExited||this.reconnect()},t.prototype.onSocketError=function(e){this.isSocketOpenedOnce||M().getAgentContext().silentMode||(ne(ee.Disconnected),AFAppX.bridge.showToast({content:"本次真机调试已结束,请重新生成调试版本",duration:2e3,success:function(){}}))},t.prototype.onSocketMessage=function(e){var t,n=this;this.isMessageReceived||(this.isMessageReceived=!0,this.messageBeforeReceived.forEach((function(e){n.send(e)})),this.messageBeforeReceived=[]);try{t=JSON.parse(e)}catch(t){return void("CLIENT:JOIN"===e?ne(ee.Connected):"CLIENT:LEAVE"===e&&this.exitDebug())}var o=function(e){if(!e)return;for(var t=e.split("."),n=ge,o=0,r=t;otext { + font-size: 26rpx; + color: #fff; +} + +._video_series { + padding-bottom: constant(safe-area-inset-bottom); + padding-bottom: env(safe-area-inset-bottom); +} + +._video_series_box { + display: flex; + justify-content: space-between; + align-items: center; + width: 100%; + height: 140rpx; + padding: 0 30rpx; +} + +._video_series_left { + display: flex; + align-items: center; +} + +._video_series_right { + display: flex; + align-items: center; +} + +._video_series_right_text { + font-size: 32rpx; + color: #fff; + margin-right: 10rpx; + line-height: 1; +} + +._vi_ser_le_img { + width: 88rpx; + height: 56rpx; +} + +._vi_ser_le_order { + font-size: 28rpx; + color: #fff; + margin-left: 16rpx; +} + +/* 加入追剧 */ +/* ._chasing_dramas_modal { + +} */ + +._chasing_dramas_mo_header { + +} + +._ch_dr_mp_he_title >text { + font-size: 34rpx; + color: #333; +} + +._ch_dr_mp_he_content >text { + color: #7F7F7F; + font-size: 28rpx; +} + +._ch_dr_mp_footer { + display: flex; + width: 100%; + height: 100%; +} + +._ch_mo_footer_close, +._ch_mo_footer_submit { + flex: 1; + display: flex; + justify-content: center; + align-items: center; + height: 100%; +} + +._ch_mo_footer_close> text { + font-size: 30rpx; + color: #e24848; + line-height: 1; +} + +._ch_mo_footer_submit { + background-color: #e24848; +} + +._ch_mo_footer_submit >text { + font-size: 30rpx; + color: #fff; + line-height: 1; +} + +._popup_order_content { + display: flex; + flex-direction: column; + width: 100%; + height: 740rpx; + background: linear-gradient(180deg, #ffe2e2 0%, #ffffff 50%); + border-radius: 24rpx 24rpx 0 0; +} + +._pop_order_con_header { + display: flex; + justify-content: space-between; + align-items: center; + height: 100rpx; + padding: 0 30rpx; +} + +._pop_order_con_tabs { + flex: 1; +} + +._pop_ord_hea_left { + display: flex; +} + +._pop_ord_hea_le_title { + max-width: 360rpx; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +._pop_ord_hea_le_title >text { + font-size: 36rpx; + color: #333; + font-weight: 700; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +._pop_ord_hea_le_all{ + margin-left: 8rpx; +} + +._pop_ord_hea_le_all>text { + font-size: 26rpx; + color: #999; +} + + +._video_html .am-popup { + z-index: 99; +} +/* ._pop_order_con_tabs { + padding: 0 30rpx; +} */ + +/* ._pop_order_con_warp { + padding-left:30rpx ; +} */ +._pop_order__tabs .am-tabs-bar-tab { + padding: 0 30rpx; + justify-content: flex-start; + width: auto !important; +} + +._pop_order__tabs .am-tabs-pane-wrap { + height: 100%; +} + +._pop_order__tabs .am-tabs-bar-tab, +._pop_order__tabs .am-tabs-bar{ + background-color: transparent !important; +} + +._pop_order__tabs .am-tabs-scroll-right{ + background: transparent !important; +} +._pop_order__tabs .am-tabs-scroll-left{ + background: transparent !important; +} + +._pop_order__tabs .am-tabs-content-wrap { + background: transparent !important; +} + +._pop_order__tabs .tab_c_list { + display: flex; + flex-wrap: wrap; + padding: 30rpx 10rpx 0 30rpx ; +} + +.tab_c_list_ul { + width: 16.66%; + padding-right: 20rpx; + margin-bottom: 20rpx; +} + +.tab_c_list_ul_li { + display: flex; + justify-content: center; + align-items: center; + position: relative; + width: 100%; + height: 80rpx; + background-color: #e1e1e1; + border-radius: 16rpx; +} + +.tab_c_list_ul_li.active { + background-color: #ff779e; +} + +.tab_c_list_ul_li.active text { + color: #fff; +} + +.tab_c_list_ul_li text { + font-size: 26rpx; + color: #333; + font-weight: 700; +} + +.tab_c__ul_li_lock { + position: absolute; + top: 0; + right: 0; + display: flex; + justify-content: center; + align-items: center; + width: 30rpx; + height: 30rpx; + background-color: #B5C0C7; + border-radius: 0 8rpx 0 8rpx ; +} + +._li_lock_image { + display: block; + width: 22rpx; + height: 22rpx; +} \ No newline at end of file diff --git a/pages/videoAndroid/videoAndroid.axml b/pages/videoAndroid/videoAndroid.axml new file mode 100644 index 0000000..30845c2 --- /dev/null +++ b/pages/videoAndroid/videoAndroid.axml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 第 {{videoInfoObj.order}} 集 + 此剧为付费内容,您的K币不足 + 支持创作作者,解锁后继续观看 + 立即充值 + + + + + + + + + + 此剧为付费内容,需要购全集 + 支持创作作者,解锁后继续观看 + 立即购买 ( {{videoInfoObj.allprice}}K币 ) + + + + + + + + + + 追剧 + + + + + + + + + + + + + + + 第 {{item.order}} 集 + + + + + 选集 + + + + + + + + + + + + + + + + + + + {{videoInfoObj.title}} + + + 全{{videoInfoObj.total}}集 + + + + + + + + + + + + + + + + + {{j.order}} + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pages/videoAndroid/videoAndroid.js b/pages/videoAndroid/videoAndroid.js new file mode 100644 index 0000000..c467057 --- /dev/null +++ b/pages/videoAndroid/videoAndroid.js @@ -0,0 +1,471 @@ +import { imageBasUrl } from '../../utils/config' +const { httpRequest } = getApp(); +// import { throttle } from 'lodash'; +// import { throttle } from '../../utils/throttle' +var _ = require('underscore'); + + +Page({ + data: { + imageBasUrl, + // swiperItemHeight: 0, + orderList: [], + videoInfoObj: {}, + posterCover: '', + activeTab: 0, + orderPopupShow: false, + systemInfo: {}, + userInfo: {}, + iosPayment: {}, + swiperList: [], + swiperCurrent: 0, + changeCuurent: 0, + swiperOrder: 0, + sid: '', + popupShow: false, + batchAllOrder: 0, + batchAllList: [], + isThrottle: null, + pageHideFlag: true + }, + // 获取其它信息 + isOtherFn() { + // my.createSelectorQuery().select('#_video_box').boundingClientRect().exec((r) => { + // this.setData({ + // swiperItemHeight: r[0].height + // }) + // }); + this.setData({ + userInfo: getApp().globalData.userInfo, + systemInfo: getApp().globalData.systemInfo + }) + }, + + // 处理弹框的集数 + handelOrder(isBatchlist) { + + const num = 30; + let remain = 0; + let temp = []; + const mlist = []; + let orderObj = {}; + if (Array.isArray(isBatchlist.data)) { + isBatchlist.data.forEach((m, idx) => { + if ((num * remain + num) < m.order) { + remain += 1; + temp = []; + } + temp.push(m); + orderObj[remain] = { + firstNum: num * remain + 1, + lastNum: m.order, + title: `${num * remain + 1}-${m.order}`, + temp: temp + } + }); + + Object.keys(orderObj).map((m) => { + mlist.push(orderObj[m]); + }) + return { + orderList: mlist, + batchAllOrder: isBatchlist.data.length, + batchAllList: isBatchlist.data, + } + } + + return { + orderList: [], + batchAllOrder: 0, + batchAllList: [] + } + }, + + handelOrderIsVip(resData) { + const orderList = this.data.orderList; + const batchAllList = this.data.batchAllList; + // swiperList.splice(current, 1, resData); + if (resData.chackpay == 1) { + const ols = []; + orderList.forEach((j) => { + let jb = { + ...j + } + const yus = []; + j.temp.forEach((y) => { + let yobj = { + ...y, + } + if (yobj.id == resData.id) { + yobj.isvip = 0; + } + yus.push(yobj); + }) + jb.temp = yus; + ols.push(jb); + }) + let newBatchAllList = [...batchAllList]; + newBatchAllList[resData.order - 1].isvip = 0; + this.setData({ + batchAllList: newBatchAllList + }) + + return ols; + } + return orderList; + }, + + // 获取 剧情 + async isVideoPaymentFn(sid) { + const paramVideo = { + path: '/videoread', + method: 'POST', + body: { + sid: sid + } + } + + const videoRead = await httpRequest(paramVideo); + + if (Array.isArray(videoRead.data)) { + + const videoInfoObj = videoRead.data[0]; + const paramenter = { + path: '/batchlist', + method: 'POST', + body: { + sid: videoInfoObj.sid, + start: 1, + end: videoInfoObj.total + } + } + const isBatchlist = await httpRequest(paramenter); + const selectOrderInfo = this.handelOrder(isBatchlist); + console.log(selectOrderInfo, "selectOrderInfo") + + this.setData({ + swiperOrder: videoInfoObj.order, + videoInfoObj: videoInfoObj, + swiperCurrent: videoInfoObj.order - 1, + changeCuurent: videoInfoObj.order - 1, + posterCover: videoInfoObj.videocover || videoInfoObj.cover, + orderList: selectOrderInfo.orderList, + batchAllOrder: selectOrderInfo.batchAllList, + batchAllList: selectOrderInfo.batchAllList, + }) + + my.setNavigationBar({ + title: videoInfoObj.title, + }); + + } + + }, + + toPathPlayAllOrder() { + + const videoInfoObj = this.data.videoInfoObj; + const sid = this.data.sid; + + const paramVideo = { + path: '/buyall', + method: 'POST', + body: { + sid: sid, + id: videoInfoObj.id, + allprice: videoInfoObj.allprice + }, + errObj: { + 2: { + showToastFlag: true + } + } + } + + httpRequest(paramVideo).then(res => { + if (res.status == 1) { + my.showToast({ + type: 'none', + content: res.msg || '购买成功', + duration: 1000, + }) + this.isVideoPaymentFn(sid); + } + }).catch(err => { + if (err.status == 2) { + my.confirm({ + title: '温馨提示', + content: err.msg, + confirmButtonText: '去充值', + cancelButtonText: '取消', + success: (result) => { + if (result.confirm) { + this.setData({ + popupShow: true, + }) + } + }, + }); + } + }) + }, + + handelswiperCurrent(ev) { + const current = ev.detail.current; + const isThrottle = this.data.isThrottle; + isThrottle(current); + }, + + videoErrorFn(e) { + console.log(e, "eee") + }, + + videoEndedFn() { + const videoInfoObj = this.data.videoInfoObj; + const sid = this.data.sid; + // const swiperList = this.data.swiperList; + const id = videoInfoObj.nextid; + // const current = videoInfoObj.order; + const paramVideo = { + path: '/videoread', + method: 'POST', + body: { + sid: sid, + id: id + } + } + + httpRequest(paramVideo).then(res => { + // swiperList.map() + const resData = res.data[0]; + const ols = this.handelOrderIsVip(resData); + // swiperList.splice(current, 1, resData); + this.setData({ + // swiperList: swiperList, + swiperCurrent: resData.order - 1, + changeCuurent: resData.order - 1, + videoInfoObj: resData, + orderList: ols, + // swiperOrder: resData.order + }) + }) + }, + + onTimeUpdate(ed) { + console.log(ed, "=========") + }, + + //显示 选择集数 + selectEpisodesFn() { + this.setData({ + orderPopupShow: true + }) + }, + + // 关闭 选择集数 + closeOrderPopup() { + this.setData({ + orderPopupShow: false + }) + }, + + // 切换 级数的 + handleTabClick(ev) { + // console.log(e, "handleTabClickhandleTabClick") + this.setData({ + activeTab: ev.index + }) + + }, + + handleOrderCurrent(ev) { + const item = ev.target.dataset.item; + // const orderList = this.data.orderList; + // const batchAllOrder = this.data.batchAllOrder; + const batchAllList = this.data.batchAllList; + if (item.order != 1) { + const nextVideoObj = batchAllList[item.order - 2]; + if (nextVideoObj.isvip == 1) { + my.showToast({ + type: 'info', + content: '为了保证剧情连贯,请按顺序观看' + }) + return; + } + } + // const current = item.order - 1; + const sid = this.data.sid; + // const swiperList = this.data.swiperList; + const paramVideo = { + path: '/videoread', + method: 'POST', + body: { + sid: sid, + id: item.id + } + } + + httpRequest(paramVideo).then(res => { + // swiperList.map() + const resData = res.data[0]; + const ols = this.handelOrderIsVip(resData); + this.setData({ + // swiperList: swiperList, + // swiperCurrent: current, + videoInfoObj: resData, + // swiperOrder: resData.order, + orderPopupShow: false, + orderList: ols, + swiperCurrent: resData.order - 1, + changeCuurent: resData.order - 1, + }) + }) + }, + + onLoad(query) { + const sid = query.sid; + this.setData({ + sid: sid + }) + }, + + onShow() { + const sid = this.data.sid; + this.isOtherFn(); + this.isVideoPaymentFn(sid); + // const lodash = require('lodash'); + const isThrottle = _.throttle((current) => { + let id = ''; + const changeCuurent = this.data.changeCuurent; + const videoInfoObj = this.data.videoInfoObj; + const sid = this.data.sid; + if (current > changeCuurent) { + id = videoInfoObj.nextid; + } else { + id = videoInfoObj.lastid; + } + const paramVideo = { + path: '/videoread', + method: 'POST', + body: { + sid: sid, + id: id + } + } + + httpRequest(paramVideo).then(res => { + // swiperList.map() + const resData = res.data[0] + // swiperList.splice(current, 1, resData); + const ols = this.handelOrderIsVip(resData); + this.setData({ + // swiperList: swiperList, + // swiperCurrent: current, + changeCuurent: current, + videoInfoObj: resData, + orderList: ols, + swiperOrder: resData.order + }) + }) + }, 300, { trailing: false }); + this.setData({ + isThrottle: isThrottle, + pageHideFlag: true + }) + }, + + toPathPlayPage() { + // my.navigateTo({ + // url: '/pages/recharge/recharge' + // }); + this.setData({ + popupShow: true, + }) + }, + + onClosePopup(mi) { + const videoInfoObj = this.data.videoInfoObj; + if (mi.resultCode == 9000 && videoInfoObj.chackpay == 2) { + const sid = this.data.sid; + const paramVideo = { + path: '/videoread', + method: 'POST', + body: { + sid: sid, + id: videoInfoObj.id + } + } + + httpRequest(paramVideo).then(res => { + const resData = res.data[0]; + const ols = this.handelOrderIsVip(resData); + this.setData({ + popupShow: false, + videoInfoObj: resData, + orderList: ols + }) + }) + + } else { + this.setData({ + popupShow: false, + }) + } + }, + // 添加追剧 + addChasingDramasFn() { + const videoInfoObj = this.data.videoInfoObj; + if (videoInfoObj.iskeep == 0) { + + const paramenter = { + path: '/addkeep', + method: 'POST', + body: { + sid: videoInfoObj.sid + } + } + httpRequest(paramenter).then(() => { + my.showToast({ + icon: 'none', + content: '追剧成功', + duration: 1000, + }); + this.setData({ + videoInfoObj: { + ...videoInfoObj, + iskeep: 1 + } + }) + }) + + } else { + const paramenter = { + path: '/chasingdramadel', + method: 'POST', + body: { + sid: videoInfoObj.sid + } + } + httpRequest(paramenter).then(() => { + my.showToast({ + type: 'none', + content: '取消成功', + duration: 1000, + }); + this.setData({ + videoInfoObj: { + ...videoInfoObj, + iskeep: 0 + } + }) + }) + + } + + }, + onHide() { + this.setData({ + pageHideFlag: false + }) + } +}) \ No newline at end of file diff --git a/pages/videoAndroid/videoAndroid.json b/pages/videoAndroid/videoAndroid.json new file mode 100644 index 0000000..b2fdd94 --- /dev/null +++ b/pages/videoAndroid/videoAndroid.json @@ -0,0 +1,14 @@ +{ + "pullRefresh": false, + "allowsBounceVertical": "NO", + "navigationBarTextStyle": "white", + "titleBarColor": "#000", + "usingComponents": { + "am-icon": "mini-antui/es/am-icon/index", + "modal": "mini-antui/es/modal/index", + "popup": "mini-antui/es/popup/index", + "tabs": "mini-antui/es/tabs/index", + "tab-content": "mini-antui/es/tabs/tab-content/index", + "my-pay": "/components/myPay/myPay" + } +} \ No newline at end of file diff --git a/static/fontIcon/demo.css b/static/fontIcon/demo.css new file mode 100644 index 0000000..a67054a --- /dev/null +++ b/static/fontIcon/demo.css @@ -0,0 +1,539 @@ +/* Logo 字体 */ +@font-face { + font-family: "iconfont logo"; + src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); + src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), + url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg'); +} + +.logo { + font-family: "iconfont logo"; + font-size: 160px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +/* tabs */ +.nav-tabs { + position: relative; +} + +.nav-tabs .nav-more { + position: absolute; + right: 0; + bottom: 0; + height: 42px; + line-height: 42px; + color: #666; +} + +#tabs { + border-bottom: 1px solid #eee; +} + +#tabs li { + cursor: pointer; + width: 100px; + height: 40px; + line-height: 40px; + text-align: center; + font-size: 16px; + border-bottom: 2px solid transparent; + position: relative; + z-index: 1; + margin-bottom: -1px; + color: #666; +} + + +#tabs .active { + border-bottom-color: #f00; + color: #222; +} + +.tab-container .content { + display: none; +} + +/* 页面布局 */ +.main { + padding: 30px 100px; + width: 960px; + margin: 0 auto; +} + +.main .logo { + color: #333; + text-align: left; + margin-bottom: 30px; + line-height: 1; + height: 110px; + margin-top: -50px; + overflow: hidden; + *zoom: 1; +} + +.main .logo a { + font-size: 160px; + color: #333; +} + +.helps { + margin-top: 40px; +} + +.helps pre { + padding: 20px; + margin: 10px 0; + border: solid 1px #e7e1cd; + background-color: #fffdef; + overflow: auto; +} + +.icon_lists { + width: 100% !important; + overflow: hidden; + *zoom: 1; +} + +.icon_lists li { + width: 100px; + margin-bottom: 10px; + margin-right: 20px; + text-align: center; + list-style: none !important; + cursor: default; +} + +.icon_lists li .code-name { + line-height: 1.2; +} + +.icon_lists .icon { + display: block; + height: 100px; + line-height: 100px; + font-size: 42px; + margin: 10px auto; + color: #333; + -webkit-transition: font-size 0.25s linear, width 0.25s linear; + -moz-transition: font-size 0.25s linear, width 0.25s linear; + transition: font-size 0.25s linear, width 0.25s linear; +} + +.icon_lists .icon:hover { + font-size: 100px; +} + +.icon_lists .svg-icon { + /* 通过设置 font-size 来改变图标大小 */ + width: 1em; + /* 图标和文字相邻时,垂直对齐 */ + vertical-align: -0.15em; + /* 通过设置 color 来改变 SVG 的颜色/fill */ + fill: currentColor; + /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示 + normalize.css 中也包含这行 */ + overflow: hidden; +} + +.icon_lists li .name, +.icon_lists li .code-name { + color: #666; +} + +/* markdown 样式 */ +.markdown { + color: #666; + font-size: 14px; + line-height: 1.8; +} + +.highlight { + line-height: 1.5; +} + +.markdown img { + vertical-align: middle; + max-width: 100%; +} + +.markdown h1 { + color: #404040; + font-weight: 500; + line-height: 40px; + margin-bottom: 24px; +} + +.markdown h2, +.markdown h3, +.markdown h4, +.markdown h5, +.markdown h6 { + color: #404040; + margin: 1.6em 0 0.6em 0; + font-weight: 500; + clear: both; +} + +.markdown h1 { + font-size: 28px; +} + +.markdown h2 { + font-size: 22px; +} + +.markdown h3 { + font-size: 16px; +} + +.markdown h4 { + font-size: 14px; +} + +.markdown h5 { + font-size: 12px; +} + +.markdown h6 { + font-size: 12px; +} + +.markdown hr { + height: 1px; + border: 0; + background: #e9e9e9; + margin: 16px 0; + clear: both; +} + +.markdown p { + margin: 1em 0; +} + +.markdown>p, +.markdown>blockquote, +.markdown>.highlight, +.markdown>ol, +.markdown>ul { + width: 80%; +} + +.markdown ul>li { + list-style: circle; +} + +.markdown>ul li, +.markdown blockquote ul>li { + margin-left: 20px; + padding-left: 4px; +} + +.markdown>ul li p, +.markdown>ol li p { + margin: 0.6em 0; +} + +.markdown ol>li { + list-style: decimal; +} + +.markdown>ol li, +.markdown blockquote ol>li { + margin-left: 20px; + padding-left: 4px; +} + +.markdown code { + margin: 0 3px; + padding: 0 5px; + background: #eee; + border-radius: 3px; +} + +.markdown strong, +.markdown b { + font-weight: 600; +} + +.markdown>table { + border-collapse: collapse; + border-spacing: 0px; + empty-cells: show; + border: 1px solid #e9e9e9; + width: 95%; + margin-bottom: 24px; +} + +.markdown>table th { + white-space: nowrap; + color: #333; + font-weight: 600; +} + +.markdown>table th, +.markdown>table td { + border: 1px solid #e9e9e9; + padding: 8px 16px; + text-align: left; +} + +.markdown>table th { + background: #F7F7F7; +} + +.markdown blockquote { + font-size: 90%; + color: #999; + border-left: 4px solid #e9e9e9; + padding-left: 0.8em; + margin: 1em 0; +} + +.markdown blockquote p { + margin: 0; +} + +.markdown .anchor { + opacity: 0; + transition: opacity 0.3s ease; + margin-left: 8px; +} + +.markdown .waiting { + color: #ccc; +} + +.markdown h1:hover .anchor, +.markdown h2:hover .anchor, +.markdown h3:hover .anchor, +.markdown h4:hover .anchor, +.markdown h5:hover .anchor, +.markdown h6:hover .anchor { + opacity: 1; + display: inline-block; +} + +.markdown>br, +.markdown>p>br { + clear: both; +} + + +.hljs { + display: block; + background: white; + padding: 0.5em; + color: #333333; + overflow-x: auto; +} + +.hljs-comment, +.hljs-meta { + color: #969896; +} + +.hljs-string, +.hljs-variable, +.hljs-template-variable, +.hljs-strong, +.hljs-emphasis, +.hljs-quote { + color: #df5000; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-type { + color: #a71d5d; +} + +.hljs-literal, +.hljs-symbol, +.hljs-bullet, +.hljs-attribute { + color: #0086b3; +} + +.hljs-section, +.hljs-name { + color: #63a35c; +} + +.hljs-tag { + color: #333333; +} + +.hljs-title, +.hljs-attr, +.hljs-selector-id, +.hljs-selector-class, +.hljs-selector-attr, +.hljs-selector-pseudo { + color: #795da3; +} + +.hljs-addition { + color: #55a532; + background-color: #eaffea; +} + +.hljs-deletion { + color: #bd2c00; + background-color: #ffecec; +} + +.hljs-link { + text-decoration: underline; +} + +/* 代码高亮 */ +/* PrismJS 1.15.0 +https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */ +/** + * prism.js default theme for JavaScript, CSS and HTML + * Based on dabblet (http://dabblet.com) + * @author Lea Verou + */ +code[class*="language-"], +pre[class*="language-"] { + color: black; + background: none; + text-shadow: 0 1px white; + font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + word-wrap: normal; + line-height: 1.5; + + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; +} + +pre[class*="language-"]::-moz-selection, +pre[class*="language-"] ::-moz-selection, +code[class*="language-"]::-moz-selection, +code[class*="language-"] ::-moz-selection { + text-shadow: none; + background: #b3d4fc; +} + +pre[class*="language-"]::selection, +pre[class*="language-"] ::selection, +code[class*="language-"]::selection, +code[class*="language-"] ::selection { + text-shadow: none; + background: #b3d4fc; +} + +@media print { + + code[class*="language-"], + pre[class*="language-"] { + text-shadow: none; + } +} + +/* Code blocks */ +pre[class*="language-"] { + padding: 1em; + margin: .5em 0; + overflow: auto; +} + +:not(pre)>code[class*="language-"], +pre[class*="language-"] { + background: #f5f2f0; +} + +/* Inline code */ +:not(pre)>code[class*="language-"] { + padding: .1em; + border-radius: .3em; + white-space: normal; +} + +.token.comment, +.token.prolog, +.token.doctype, +.token.cdata { + color: slategray; +} + +.token.punctuation { + color: #999; +} + +.namespace { + opacity: .7; +} + +.token.property, +.token.tag, +.token.boolean, +.token.number, +.token.constant, +.token.symbol, +.token.deleted { + color: #905; +} + +.token.selector, +.token.attr-name, +.token.string, +.token.char, +.token.builtin, +.token.inserted { + color: #690; +} + +.token.operator, +.token.entity, +.token.url, +.language-css .token.string, +.style .token.string { + color: #9a6e3a; + background: hsla(0, 0%, 100%, .5); +} + +.token.atrule, +.token.attr-value, +.token.keyword { + color: #07a; +} + +.token.function, +.token.class-name { + color: #DD4A68; +} + +.token.regex, +.token.important, +.token.variable { + color: #e90; +} + +.token.important, +.token.bold { + font-weight: bold; +} + +.token.italic { + font-style: italic; +} + +.token.entity { + cursor: help; +} diff --git a/static/fontIcon/demo_index.html b/static/fontIcon/demo_index.html new file mode 100644 index 0000000..2a596bf --- /dev/null +++ b/static/fontIcon/demo_index.html @@ -0,0 +1,372 @@ + + + + + iconfont Demo + + + + + + + + + + + + + +
+

+ + +

+ +
+
+
    + +
  • + +
    video_play
    +
    &#xe625;
    +
  • + +
  • + +
    video
    +
    &#xe7c8;
    +
  • + +
  • + +
    暂停
    +
    &#xe651;
    +
  • + +
  • + +
    暂停
    +
    &#xe668;
    +
  • + +
  • + +
    Play
    +
    &#xeab5;
    +
  • + +
  • + +
    双箭头,双角符,右
    +
    &#xea50;
    +
  • + +
  • + +
    微信
    +
    &#xe643;
    +
  • + +
  • + +
    支付宝
    +
    &#xe607;
    +
  • + +
+
+

Unicode 引用

+
+ +

Unicode 是字体在网页端最原始的应用方式,特点是:

+
    +
  • 支持按字体的方式去动态调整图标大小,颜色等等。
  • +
  • 默认情况下不支持多色,直接添加多色图标会自动去色。
  • +
+
+

注意:新版 iconfont 支持两种方式引用多色图标:SVG symbol 引用方式和彩色字体图标模式。(使用彩色字体图标需要在「编辑项目」中开启「彩色」选项后并重新生成。)

+
+

Unicode 使用步骤如下:

+

第一步:拷贝项目下面生成的 @font-face

+
@font-face {
+  font-family: 'iconfont';
+  src: url('iconfont.woff2?t=1709520057934') format('woff2'),
+       url('iconfont.woff?t=1709520057934') format('woff'),
+       url('iconfont.ttf?t=1709520057934') format('truetype');
+}
+
+

第二步:定义使用 iconfont 的样式

+
.iconfont {
+  font-family: "iconfont" !important;
+  font-size: 16px;
+  font-style: normal;
+  -webkit-font-smoothing: antialiased;
+  -moz-osx-font-smoothing: grayscale;
+}
+
+

第三步:挑选相应图标并获取字体编码,应用于页面

+
+<span class="iconfont">&#x33;</span>
+
+
+

"iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

+
+
+
+
+
    + +
  • + +
    + video_play +
    +
    .icon-videoplay +
    +
  • + +
  • + +
    + video +
    +
    .icon-video +
    +
  • + +
  • + +
    + 暂停 +
    +
    .icon-zanting +
    +
  • + +
  • + +
    + 暂停 +
    +
    .icon-zanting1 +
    +
  • + +
  • + +
    + Play +
    +
    .icon-Play +
    +
  • + +
  • + +
    + 双箭头,双角符,右 +
    +
    .icon-double-arrow-right-full +
    +
  • + +
  • + +
    + 微信 +
    +
    .icon-weixin +
    +
  • + +
  • + +
    + 支付宝 +
    +
    .icon-zhifubao +
    +
  • + +
+
+

font-class 引用

+
+ +

font-class 是 Unicode 使用方式的一种变种,主要是解决 Unicode 书写不直观,语意不明确的问题。

+

与 Unicode 使用方式相比,具有如下特点:

+
    +
  • 相比于 Unicode 语意明确,书写更直观。可以很容易分辨这个 icon 是什么。
  • +
  • 因为使用 class 来定义图标,所以当要替换图标时,只需要修改 class 里面的 Unicode 引用。
  • +
+

使用步骤如下:

+

第一步:引入项目下面生成的 fontclass 代码:

+
<link rel="stylesheet" href="./iconfont.css">
+
+

第二步:挑选相应图标并获取类名,应用于页面:

+
<span class="iconfont icon-xxx"></span>
+
+
+

" + iconfont" 是你项目下的 font-family。可以通过编辑项目查看,默认是 "iconfont"。

+
+
+
+
+
    + +
  • + +
    video_play
    +
    #icon-videoplay
    +
  • + +
  • + +
    video
    +
    #icon-video
    +
  • + +
  • + +
    暂停
    +
    #icon-zanting
    +
  • + +
  • + +
    暂停
    +
    #icon-zanting1
    +
  • + +
  • + +
    Play
    +
    #icon-Play
    +
  • + +
  • + +
    双箭头,双角符,右
    +
    #icon-double-arrow-right-full
    +
  • + +
  • + +
    微信
    +
    #icon-weixin
    +
  • + +
  • + +
    支付宝
    +
    #icon-zhifubao
    +
  • + +
+
+

Symbol 引用

+
+ +

这是一种全新的使用方式,应该说这才是未来的主流,也是平台目前推荐的用法。相关介绍可以参考这篇文章 + 这种用法其实是做了一个 SVG 的集合,与另外两种相比具有如下特点:

+
    +
  • 支持多色图标了,不再受单色限制。
  • +
  • 通过一些技巧,支持像字体那样,通过 font-size, color 来调整样式。
  • +
  • 兼容性较差,支持 IE9+,及现代浏览器。
  • +
  • 浏览器渲染 SVG 的性能一般,还不如 png。
  • +
+

使用步骤如下:

+

第一步:引入项目下面生成的 symbol 代码:

+
<script src="./iconfont.js"></script>
+
+

第二步:加入通用 CSS 代码(引入一次就行):

+
<style>
+.icon {
+  width: 1em;
+  height: 1em;
+  vertical-align: -0.15em;
+  fill: currentColor;
+  overflow: hidden;
+}
+</style>
+
+

第三步:挑选相应图标并获取类名,应用于页面:

+
<svg class="icon" aria-hidden="true">
+  <use xlink:href="#icon-xxx"></use>
+</svg>
+
+
+
+ +
+
+ + + diff --git a/static/fontIcon/iconfont.css b/static/fontIcon/iconfont.css new file mode 100644 index 0000000..d3776c7 --- /dev/null +++ b/static/fontIcon/iconfont.css @@ -0,0 +1,47 @@ +@font-face { + font-family: "iconfont"; /* Project id 4338427 */ + src: url('iconfont.woff2?t=1709520057934') format('woff2'), + url('iconfont.woff?t=1709520057934') format('woff'), + url('iconfont.ttf?t=1709520057934') format('truetype'); +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-videoplay:before { + content: "\e625"; +} + +.icon-video:before { + content: "\e7c8"; +} + +.icon-zanting:before { + content: "\e651"; +} + +.icon-zanting1:before { + content: "\e668"; +} + +.icon-Play:before { + content: "\eab5"; +} + +.icon-double-arrow-right-full:before { + content: "\ea50"; +} + +.icon-weixin:before { + content: "\e643"; +} + +.icon-zhifubao:before { + content: "\e607"; +} + diff --git a/static/fontIcon/iconfont.js b/static/fontIcon/iconfont.js new file mode 100644 index 0000000..64c3b89 --- /dev/null +++ b/static/fontIcon/iconfont.js @@ -0,0 +1 @@ +window._iconfont_svg_string_4338427='',function(c){var t=(t=document.getElementsByTagName("script"))[t.length-1],e=t.getAttribute("data-injectcss"),t=t.getAttribute("data-disable-injectsvg");if(!t){var i,l,o,n,a,d=function(t,e){e.parentNode.insertBefore(t,e)};if(e&&!c.__iconfont__svg__cssinject__){c.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(t){console&&console.log(t)}}i=function(){var t,e=document.createElement("div");e.innerHTML=c._iconfont_svg_string_4338427,(e=e.getElementsByTagName("svg")[0])&&(e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width=0,e.style.height=0,e.style.overflow="hidden",e=e,(t=document.body).firstChild?d(e,t.firstChild):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(i,0):(l=function(){document.removeEventListener("DOMContentLoaded",l,!1),i()},document.addEventListener("DOMContentLoaded",l,!1)):document.attachEvent&&(o=i,n=c.document,a=!1,h(),n.onreadystatechange=function(){"complete"==n.readyState&&(n.onreadystatechange=null,s())})}function s(){a||(a=!0,o())}function h(){try{n.documentElement.doScroll("left")}catch(t){return void setTimeout(h,50)}s()}}(window); \ No newline at end of file diff --git a/static/fontIcon/iconfont.json b/static/fontIcon/iconfont.json new file mode 100644 index 0000000..05f1ffd --- /dev/null +++ b/static/fontIcon/iconfont.json @@ -0,0 +1,65 @@ +{ + "id": "4338427", + "name": "淘宝—古言剧场", + "font_family": "iconfont", + "css_prefix_text": "icon-", + "description": "", + "glyphs": [ + { + "icon_id": "948002", + "name": "video_play", + "font_class": "videoplay", + "unicode": "e625", + "unicode_decimal": 58917 + }, + { + "icon_id": "1096519", + "name": "video", + "font_class": "video", + "unicode": "e7c8", + "unicode_decimal": 59336 + }, + { + "icon_id": "5831324", + "name": "暂停", + "font_class": "zanting", + "unicode": "e651", + "unicode_decimal": 58961 + }, + { + "icon_id": "9447889", + "name": "暂停", + "font_class": "zanting1", + "unicode": "e668", + "unicode_decimal": 58984 + }, + { + "icon_id": "12005047", + "name": "Play", + "font_class": "Play", + "unicode": "eab5", + "unicode_decimal": 60085 + }, + { + "icon_id": "18174963", + "name": "双箭头,双角符,右", + "font_class": "double-arrow-right-full", + "unicode": "ea50", + "unicode_decimal": 59984 + }, + { + "icon_id": "10621878", + "name": "微信", + "font_class": "weixin", + "unicode": "e643", + "unicode_decimal": 58947 + }, + { + "icon_id": "15933089", + "name": "支付宝", + "font_class": "zhifubao", + "unicode": "e607", + "unicode_decimal": 58887 + } + ] +} diff --git a/static/fontIcon/iconfont.ttf b/static/fontIcon/iconfont.ttf new file mode 100644 index 0000000..217344f Binary files /dev/null and b/static/fontIcon/iconfont.ttf differ diff --git a/static/fontIcon/iconfont.woff b/static/fontIcon/iconfont.woff new file mode 100644 index 0000000..c520399 Binary files /dev/null and b/static/fontIcon/iconfont.woff differ diff --git a/static/fontIcon/iconfont.woff2 b/static/fontIcon/iconfont.woff2 new file mode 100644 index 0000000..1c814d4 Binary files /dev/null and b/static/fontIcon/iconfont.woff2 differ diff --git a/static/fontIcon/iconfontStylesheet.acss b/static/fontIcon/iconfontStylesheet.acss new file mode 100644 index 0000000..e69de29