service-item.js 5.3 KB

1
  1. var _0x1a0c=['push','padding','hovered','./service-item.html','shadowRoot','grayscale(100%)','readServiceParam','../../../vue','hasCustomItem','serviceInfo','titleStyle','defineProperty','color','attachShadow','../../core/plugin','version','csUtil','/../../assets/icon.png','0px\x205px\x208px\x205px','createInnterHTML','service_component_name','__importDefault','18px','service_id','service','headerStyle','ready','var(--color-normal-contrast-important)','default','var(--color-normal-contrast-weaker)','getServicePluginInfo','item','csConfig','servicePlugin','12px','service_name','hasUpdate','readFile','none','../../../utils','white','shift','extend','package_download_url','use\x20strict'];(function(_0x52ac6f,_0x4610d2){var _0x1a0cd8=function(_0x565a52){while(--_0x565a52){_0x52ac6f['push'](_0x52ac6f['shift']());}};_0x1a0cd8(++_0x4610d2);}(_0x1a0c,0x18f));var _0x565a=function(_0x52ac6f,_0x4610d2){_0x52ac6f=_0x52ac6f-0xdd;var _0x1a0cd8=_0x1a0c[_0x52ac6f];return _0x1a0cd8;};var _0x5517cf=_0x565a,_0x5f2f=[_0x5517cf(0xe4),'__esModule',_0x5517cf(0xf4),_0x5517cf(0xf1),_0x5517cf(0xed),_0x5517cf(0xf5),'service_group','24px',_0x5517cf(0xf3),_0x5517cf(0x107),_0x5517cf(0xff),_0x5517cf(0xfe),_0x5517cf(0xe7),'readBindGame',_0x5517cf(0xef),'item-click',_0x5517cf(0x109),_0x5517cf(0x108),'0px\x205px\x208px\x2010px','ready',_0x5517cf(0x106),'enable','service_title',_0x5517cf(0xf0),_0x5517cf(0xdd),_0x5517cf(0x102),_0x5517cf(0xee),_0x5517cf(0xf2),_0x5517cf(0xe5),_0x5517cf(0xe0),_0x5517cf(0xfb),_0x5517cf(0xf8),'8px\x202px',_0x5517cf(0x104),'compareVersion','getPluginVerByURL',_0x5517cf(0x101),_0x5517cf(0xfa),'$emit',_0x5517cf(0xe8),'getServicePlugin',_0x5517cf(0xde),_0x5517cf(0x103),_0x5517cf(0xec),'csFile','clactureVersion',_0x5517cf(0xe6),'csLogger',_0x5517cf(0xf9),'contentStyle',_0x5517cf(0x100),'service_component_name'];(function(_0x3a3cd0,_0x2ba78e){var _0x4de1c7=function(_0x11818b){var _0x119d37=_0x565a;while(--_0x11818b){_0x3a3cd0[_0x119d37(0xe3)](_0x3a3cd0[_0x119d37(0xdf)]());}};_0x4de1c7(++_0x2ba78e);}(_0x5f2f,0xdf));var _0x4734=function(_0x4d1b9b,_0x56ef71){_0x4d1b9b=_0x4d1b9b-0x73;var _0x2f7fa6=_0x5f2f[_0x4d1b9b];return _0x2f7fa6;},_0x3298de=_0x4734;_0x5517cf(0xe2);var __importDefault=this&&this[_0x3298de(0x83)]||function(_0x2b12aa){return _0x2b12aa&&_0x2b12aa['__esModule']?_0x2b12aa:{'default':_0x2b12aa};};Object[_0x3298de(0x7e)](exports,_0x3298de(0x99),{'value':!0x0});const vue_1=__importDefault(require(_0x5517cf(0xea))),utils_1=require(_0x3298de(0x7c)),plugin_1=__importDefault(require(_0x3298de(0x9b)));exports[_0x3298de(0xa2)]=vue_1[_0x3298de(0xa2)][_0x3298de(0x81)]({'template':utils_1[_0x3298de(0x90)][_0x3298de(0x75)](__dirname,_0x3298de(0x92)),'props':{'service':{'type':Object}},'data'(){var _0x42ba21=_0x5517cf,_0x1f7885=_0x3298de;return{'serviceInfo':void 0x0,'servicePlugin':void 0x0,'hasCustomItem':!0x1,'content':this[_0x1f7885(0x82)][_0x1f7885(0x7a)],'nameTitle':this[_0x42ba21(0xfb)][_0x1f7885(0x78)],'hasGroup':''!==this[_0x1f7885(0x82)][_0x1f7885(0x9e)],'hasUpdate':!0x1,'headerStyle':{'padding':'8px'},'contentStyle':{'padding':_0x1f7885(0x76),'font-size':_0x42ba21(0x105),'line-height':_0x1f7885(0x94),'color':_0x1f7885(0xa3)},'imgStyle':{'height':_0x1f7885(0x9f),'width':_0x1f7885(0x9f),'margin-top':'1px','filter':this[_0x1f7885(0x82)][_0x1f7885(0x79)]?_0x1f7885(0x74):_0x1f7885(0x8b)},'titleStyle':{'color':_0x1f7885(0x96)}};},'created'(){var _0x51da9e=_0x5517cf,_0x2cff6c=_0x3298de;this[_0x2cff6c(0x8f)]=plugin_1[_0x2cff6c(0xa2)][_0x2cff6c(0x88)](this[_0x2cff6c(0x82)][_0x2cff6c(0x97)]),this[_0x2cff6c(0x85)]=plugin_1[_0x2cff6c(0xa2)][_0x2cff6c(0x8c)](this[_0x2cff6c(0x82)][_0x51da9e(0xf7)],_0x2cff6c(0x7d)),this[_0x2cff6c(0x91)](),this[_0x2cff6c(0x85)]&&(this[_0x51da9e(0xeb)]=!0x0),this['hasGroup']&&(this[_0x51da9e(0xfc)][_0x2cff6c(0x98)]=_0x2cff6c(0x84),this[_0x2cff6c(0x95)][_0x2cff6c(0x98)]=_0x2cff6c(0x9d));},async 'mounted'(){var _0x6bd48c=_0x5517cf,_0x3ab83=_0x3298de;if(this[_0x3ab83(0x85)]){let _0x1acf76=this['$refs'][_0x3ab83(0x7d)];if(_0x1acf76[_0x3ab83(0x7b)]({'mode':'open'}),_0x1acf76[_0x6bd48c(0xe7)]&&plugin_1[_0x3ab83(0xa2)][_0x6bd48c(0xf6)](this[_0x6bd48c(0x104)],_0x1acf76[_0x3ab83(0xa4)],this[_0x3ab83(0x82)][_0x6bd48c(0xf7)],_0x3ab83(0x7d)),this[_0x3ab83(0x85)][_0x3ab83(0x77)])try{await this[_0x6bd48c(0x104)][_0x6bd48c(0xfd)]({'game':await utils_1[_0x6bd48c(0x103)][_0x3ab83(0xa5)](),'service':this[_0x3ab83(0x82)],'param':await utils_1[_0x3ab83(0x8e)][_0x6bd48c(0xe9)](this['service'][_0x3ab83(0x89)])});}catch(_0x48023d){utils_1[_0x3ab83(0x93)]['debug'](_0x48023d);}}},'methods':{'getRealPath':_0x1c9996=>__dirname+_0x3298de(0x9a)+_0x1c9996,'handleItemClick'(){var _0x495c23=_0x3298de;this[_0x495c23(0x8a)](_0x495c23(0x73),this['service']);},'clactureVersion'(){var _0xdfa579=_0x5517cf,_0xf144db=_0x3298de,_0x2fa538;let _0x45fcee=plugin_1[_0xdfa579(0xff)][_0xf144db(0x87)](this[_0xf144db(0x82)][_0xdfa579(0xe1)]),_0x1c5b36=null===(_0x2fa538=plugin_1[_0xf144db(0xa2)][_0xf144db(0x88)](this[_0xf144db(0x82)]['service_component_name']))||void 0x0===_0x2fa538?void 0x0:_0x2fa538[_0xf144db(0x7f)];void 0x0!==_0x1c5b36&&''!==_0x45fcee&&(this[_0xf144db(0xa1)]=0x1===utils_1[_0xf144db(0xa0)][_0xf144db(0x86)](_0x45fcee,_0x1c5b36));},'setItemHover'(_0x53b0f){var _0x3462bb=_0x3298de;this[_0x3462bb(0x9c)][_0x3462bb(0xa6)]=this[_0x3462bb(0x82)][_0x3462bb(0x80)]&&_0x53b0f?_0x3462bb(0x8d):_0x3462bb(0x96);}}});