tplus-portaltouch 3.50.2 → 3.50.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"sources":["tplus-portaltouch/containers/Main/index.js"],"names":["Main","hasElectron","env","platform","constant","electron","window","rx$","MainContainer","observer","props","currentFocus","sys_parms","tinified_logo_bc","ossAliyuncsFileURL","protal_chanjet_logo_bc","chanjet_logo_bc","initWebFrameZoom","webFrame","value","localStore","get","setZoomFactor","parseFloat","doDeeplinkingUrl","ipcRenderer","on","event","ret","params","console","log","stores","user","orgId","userId","param","split","reduce","accumulator","current","key","cloudUserId","User","logout","changeLogoSubject","subject","Subject","changeLogo","subscribe","next","v","setLogo","changeHsySubject","changeHsy","setHsy","addHotKeyChangeLister","document","addEventListener","registerHotKey","removeHotKeyChangeLister","removeEventListener","back","fn","setState","hsy_s","hsy_f","store","logoUrl","logo","logoNode","url","isPortal","isLogin","state","isVerticalTouch","theme","portalStore","themeStore","defualtImage","hotKeyInjectOrEject","type","hotKeyAction","registerKeys","allKeys","hotKey","hotKeyConfig","forEach","keyboard","index","nativeMs","onIpcRendererGlobalShortcut","hotKeyActionHandle","blurButton","target","nodeName","blur","isSetHotKey","hotKeyCreate","observerCallback","observerDom","pressed","clickBefore","activeElement","filter","srcElement","tagName","className","indexOf","undefined","attributes","childList","subtree","attributeFilter","register","operationKeys","esc","enter","modals","querySelectorAll","modal","style","display","drawers","modalsAndDrawers","sort","dom1","dom2","style1","getComputedStyle","style2","zIndex","visibleDom","length","$","clearFocus","setFocus","getFocusId","querySelector","find","handle","toggleKeyCode","message","bind","keys","i","unbind","Message","info","action","handleInfoRender","solt","onCollapse","collapsed","menuOnClick","selectedKeys","handleClose","Keyboard","close","handleOk","count","modifyPassStore","modifyPassWord","headMenuSelect","footer","text","closable","map","btn","loading","modalRouter","hide","offlineSys","shouldInOffline","show","title","width","modalType","onHide","destroyOnClose","history","push","portalStores","posLoginStore","savePosCode","isAutoTest","location","search","isShowFourTab","screen","isHorizontalPad","storeUtil","isHorizontalSunMi","isHorizontalSunMi_FuPing","isMobileEnvironment","infoRender","headHook","addClass","id","removeClass","currentId","actionHook","actionFrom","actionChange","body","classList","add","ModalWraper","confirm","content","cancelable","onOk","onCancel","unsubscribe","portalHead","loginHead","retailOrder","pathname","storeInfo","options","isRetailOrder","headProps","businessName","storeName","dateFormat","menu","icon","onClick","orgName","posCode","posIsLogin","hideAll","classNames","layoutClassName","join","height","match","isExact","routes","Component","childContextTypes","PropTypes","func","object","React","cloneElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAmawBA,I;;AAnaxB;;;;AACA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AAEA,IAAMC,cAAeC,oBAAIC,QAAJ,KAAiBD,oBAAIE,QAAJ,CAAaD,QAAb,CAAsBE,QAA5D;AACAC,OAAOC,GAAP,GAAa,EAAb;;IAGMC,a,OADLC,mB;;;AAWC,yBAAYC,KAAZ,EAAmB;AAAA;;AAAA,oJACXA,KADW;;AAAA,UARnBC,YAQmB,GARJ,IAQI;AAAA,UANnBC,SAMmB,GANP;AACVC,wBAAqBP,OAAOQ,kBAA5B,0BADU;AAEVC,8BAA2BT,OAAOQ,kBAAlC,gCAFU;AAGVE,uBAAoBV,OAAOQ,kBAA3B;AAHU,KAMO;;AAAA,UA2BnBG,gBA3BmB,GA2BA,YAAM;AACvB,UAAIC,WAAW,MAAKb,QAAL,GAAgB,MAAKA,QAAL,CAAca,QAA9B,GAAyC,IAAxD;AACA,UAAIC,QAAQC,2BAAWC,GAAX,CAAe,mBAAf,KAAuC,KAAnD;AACA,UAAIH,QAAJ,EAAcA,SAASI,aAAT,CAAuBC,WAAWJ,KAAX,CAAvB;AACf,KA/BkB;;AAAA,UA4DnBK,gBA5DmB,GA4DA,YAAM;AACvB,UAAI,MAAKvB,WAAL,KAAqB,KAAzB,EAAgC;;AADT,iBAED,MAAKI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C,oCAAD;AAAA;AAAS,mBAAKnO,KAAL,CAAWoO;AAApB;AADnD;AAVF;AAJF,OADF;AAqBD;;;EA7YyBC,gB,WA+BnBC,iB,GAAoB;AACzB7C,cAAY8C,oBAAUC,IADG;AAEzB9C,YAAU6C,oBAAUE,MAFK;AAGzB1C,cAAYwC,oBAAUE;AAHG,C;;AAiXd,SAASnP,IAAT,CAAcU,KAAd,EAAqB;AAAA,MAC1BoO,MAD0B,GACFpO,KADE,CAC1BoO,MAD0B;AAAA,MAClBpE,WADkB,GACFhK,KADE,CAClBgK,WADkB;;;AAGlC,MAAIA,WAAJ,EAAiB;AACf,WAAO;AAAC,4BAAD;AAAA;AAASoE;AAAT,KAAP;AACD;;AAED,SAAOM,gBAAMC,YAAN,CAAmB,8BAAC,aAAD,OAAnB,EAAsC3O,KAAtC,CAAP;AACD","file":"index.js","sourcesContent":["import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { observer } from 'mobx-react';\nimport { Button } from 'antd';\nimport { history, Switch, stores, env, nativeMs, localStore } from 'mutants-microfx';\nimport { Ticon, Layout, Keyboard, ModalWraper, Message, hotKey } from 'tplus-components-touch';\nimport { platform, localStore as storeUtil } from 'mutants-util';\nimport { User } from 'tplus-api';\nimport { Subject } from 'rxjs';\nimport { Redirect } from 'react-router';\nimport Header from '../../components/header';\nimport PortalPageBC from '../../pages/Portalbc';\nimport portalStores from '../../stores';\nimport { closeWebPage, getQueryString, operationKeys } from '../../utils/index';\n\nconst hasElectron = (env.platform === env.constant.platform.electron);\nwindow.rx$ = {};\n\n@observer\nclass MainContainer extends Component {\n\n currentFocus = null;\n\n sys_parms = {\n tinified_logo_bc: `${window.ossAliyuncsFileURL}/tinified/logo-bc.png`,\n protal_chanjet_logo_bc: `${window.ossAliyuncsFileURL}/protal-chanjet-logo-bc.png`,\n chanjet_logo_bc: `${window.ossAliyuncsFileURL}/chanjet-logo-bc.png`,\n }\n\n constructor(props) {\n super(props);\n this.hasElectron = hasElectron;\n this.state = {\n hsy_s: false,\n hsy_f: null\n };\n portalStores.posLoginStore.savePosCode();\n this.electron = nativeMs && nativeMs.get('electron');\n this.isAutoTest = getQueryString(location.search, 'at');\n this.isShowFourTab = this.hasElectron && window.screen.width < 1024 ? true : false;\n //针对800*600分辨率下,页面显示不全的做一下处理。\n if (this.isShowFourTab == true) this.initWebFrameZoom();\n\n const isHorizontalPad = storeUtil.get('isHorizontalPad')// 是否在PAD\n const isHorizontalSunMi = storeUtil.get('isHorizontalSunMi'); //是否在商米(SunMi)\n const isHorizontalSunMi_FuPing = storeUtil.get('isHorizontalSunMi_FuPing'); //是否在商米(SunMi)\n\n this.isHorizontalSunMi_FuPing = !!isHorizontalSunMi_FuPing;\n this.isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi || !!isHorizontalSunMi_FuPing;\n }\n static childContextTypes = {\n infoRender: PropTypes.func,\n headHook: PropTypes.object,\n actionHook: PropTypes.object,\n }\n\n initWebFrameZoom = () => {\n let webFrame = this.electron ? this.electron.webFrame : null;\n let value = localStore.get('webFrameZoomValue') || '0.7';\n if (webFrame) webFrame.setZoomFactor(parseFloat(value));\n }\n getChildContext() {\n return {\n infoRender: this.handleInfoRender,\n headHook: {\n addClass: (id, key) => {\n this.setState(state => ({\n [key]: [...(state[key] || []), id],\n }));\n },\n removeClass: (id, key) => {\n this.setState(state => ({\n [key]: state[key].filter(currentId => currentId !== id),\n }));\n }\n },\n actionHook: {\n actionFrom: this.actionFrom,\n actionChange: (value) => {\n this.actionFrom = value;\n }\n },\n };\n }\n\n // 内置默认\n // keys = ['esc', 'enter', 'ctrl+f1', ...Object.keys(hotKey.hotKeyConfig)];\n\n // 解决从url地址唤醒exe,不同账号的处理问题。\n doDeeplinkingUrl = () => {\n if (this.hasElectron === false) return;\n let { ipcRenderer } = this.electron || {ipcRenderer:null};\n ipcRenderer && ipcRenderer.on(\"asynchronous-deeplinkingUrl\", (event, ret, params) => {\n if (ret) {\n console.log('deeplinkingUrl:' + ret)\n const {orgId, userId} = stores.user || {};\n if (!orgId || !userId) return;\n const param = ret.split('&').reduce((accumulator, current) => {\n if (!current) return accumulator;\n const [key, value] = current.split('=') || [];\n accumulator[key] = value;\n return accumulator;\n }, {});\n console.log(orgId, userId, param)\n if (param.orgId !== orgId || param.cloudUserId !== userId) {\n User.logout();\n }\n }\n })\n }\n\n componentWillMount() {\n this.changeLogoSubject();\n this.changeHsySubject();\n const { isVerticalTouch } = platform || {};\n if (isVerticalTouch === true) {\n document.body.classList.add('vertical-touch-platform');\n }\n }\n\n changeLogoSubject = () => {\n const subject = new Subject();\n rx$.changeLogo = subject;\n\n subject\n .subscribe({\n next: (v) => this.setLogo(v)\n });\n }\n\n changeHsySubject = () => {\n const subject = new Subject();\n rx$.changeHsy = subject;\n\n subject\n .subscribe({\n next: (v) => this.setHsy(v)\n });\n }\n\n componentDidMount() {\n this.registerHotKey();\n this.addHotKeyChangeLister();\n rx$.changeLogo.next();\n document.body.addEventListener('focus', this.blurButton, true)\n this.doDeeplinkingUrl();\n\n if (this.hasElectron === true) {\n document.body.classList.add('electron-env');\n } else {\n if (this.isAutoTest || this.isMobileEnvironment) return; //自动化测试不弹窗\n ModalWraper.confirm({\n className: 'tplus-confirm-modal',\n title: \"温馨提示\",\n content: '智+新零售POS端不允许浏览器直接访问,请从智+产品中下载安装客户端程序使用!',\n cancelable:false,\n onOk() {\n closeWebPage();\n },\n onCancel(){\n closeWebPage();\n }\n });\n }\n }\n addHotKeyChangeLister = () => {\n document.addEventListener(\"RESET_USER_STORE\",this.registerHotKey);\n }\n removeHotKeyChangeLister = () => {\n document.removeEventListener(\"RESET_USER_STORE\",this.registerHotKey);\n }\n\n componentWillUnmount() {\n rx$.changeLogo.unsubscribe();\n rx$.changeHsy.unsubscribe();\n document.body.removeEventListener('focus', this.blurButton, true)\n // clearInterval(this.addObserverDomTimer);\n }\n\n setHsy = (v) => {\n const { back, fn } = v || {};\n if (back === true) {\n this.setState({ hsy_s: true, hsy_f: fn })\n } else {\n this.setState({ hsy_s: false, hsy_f: null })\n }\n }\n\n setLogo = (v) => {\n const store = localStore.get('StoreKey') || {};\n const { logo: logoUrl } = store;\n logoUrl && this.setState({ logoUrl });\n }\n\n logoNode = (url, isPortal, isLogin) => {\n const { hsy_s, hsy_f } = this.state;\n const { isVerticalTouch } = platform || {};\n const theme = stores.portalStore.themeStore;\n const defualtImage = (isVerticalTouch === true) ? this.sys_parms.tinified_logo_bc : ((!hsy_s && isPortal) || (theme === 'dark' && !isLogin) ? this.sys_parms.protal_chanjet_logo_bc : this.sys_parms.chanjet_logo_bc);\n if (hsy_s === true) {\n return (<div className='business-logo-container'>\n <Ticon type='zhiPOS-fanhuishouye2' className='back_i' onClick={() => { hsy_f && hsy_f() }} />\n <img src={url || defualtImage} className=\"example-logo\" />\n </div>);\n }\n return <img src={url || defualtImage} className=\"example-logo\" />\n }\n\n //未使用?\n hotKeyInjectOrEject = (type, hotKeyAction) => {\n const registerKeys = ['esc', 'enter'];\n const allKeys = [...registerKeys, ...Object.keys(hotKey.hotKeyConfig)];\n allKeys.forEach((keyboard, index) => {\n nativeMs.onIpcRendererGlobalShortcut({ type, keyboard }, hotKeyActionHandle);\n });\n }\n\n blurButton = ({ target }) => { // 焦点为 button 时 移除焦点,防止触发 bee 组件enter快捷键\n if (target && target.nodeName === 'BUTTON') {\n target.blur();\n }\n }\n\n registerHotKey = () => {\n this.isSetHotKey = true;\n\n this.hotKeyCreate = hotKey({\n observerCallback: this.observerDom,\n log: true,\n pressed: this.hotKeyAction,\n clickBefore: () => {\n const { activeElement } = document;\n activeElement && activeElement.blur();\n },\n filter: event => {\n const { tagName, className } = event.target || event.srcElement || {};\n\n return !(event.key === 'Enter' && tagName === 'INPUT' && !~className.indexOf('hot-key-not-filter'));\n }\n });\n\n this.hotKeyCreate.observer(undefined, { attributes: true, childList: true, subtree: true ,attributeFilter: ['class', 'style'], });\n this.hotKeyCreate.register('esc')('.hot-key-focus-container')(operationKeys.esc);\n this.hotKeyCreate.register('enter')('.hot-key-focus-container')(operationKeys.enter);\n }\n\n observerDom = () => {\n\n const modals = [...document.querySelectorAll('.ant-modal-wrap')].filter((modal) => modal.style && modal.style.display !== 'none'); //ant-module\n const drawers = [...document.querySelectorAll('.ant-drawer-open')] //ant-drawer\n let modalsAndDrawers = [...modals, ...drawers].sort((dom1, dom2) => {\n let style1 = window.getComputedStyle(dom1);\n let style2 = window.getComputedStyle(dom2);\n return style2.zIndex - style1.zIndex\n });\n\n let visibleDom = modalsAndDrawers.length > 0 ? modalsAndDrawers[0] : null\n\n if (visibleDom) {\n if (this.currentFocus !== visibleDom) {\n $.clearFocus();\n this.currentFocus = visibleDom\n return $.setFocus(visibleDom);\n }\n return;\n }\n\n if ($.getFocusId() !== '1') {\n if (this.currentFocus !== 'App' || !document.querySelector(\".hot-key-focus-container\")) {\n $.clearFocus();\n this.currentFocus = 'App';\n $.find('.app', true).setFocus();\n }\n return;\n }\n }\n\n hotKeyAction = (event, handle) => {\n const { key } = handle || {};\n const toggleKeyCode = 'ctrl+f1';\n if (key === toggleKeyCode) {\n const isSetHotKey = this.isSetHotKey = !this.isSetHotKey;\n const message = isSetHotKey ? '设置' : '取消';\n if (isSetHotKey) {\n $.bind(this.keys.filter(i => i !== toggleKeyCode), this.hotKeyAction);\n } else {\n $.unbind(this.keys.filter(i => i !== toggleKeyCode));\n }\n return Message.info(`已${message}快捷键`);\n }\n\n $.action(key);\n }\n\n handleInfoRender = (solt) => {\n this.setState({solt})\n }\n onCollapse = () => {\n const {collapsed} = this.state;\n this.setState({collapsed: !collapsed});\n }\n menuOnClick = ({key}) => {\n console.log(key)\n this.setState({selectedKeys: key});\n }\n\n handleClose = () => {\n Keyboard.close();\n }\n\n handleOk = (type, count) => {\n stores.modifyPassStore.modifyPassWord();\n }\n\n headMenuSelect = ({key}) => {\n var footer = [\n {text: '取消', className: 'modifypass-cancal-button', closable: true, action: this.handleClose},\n {text: '确定', className: 'modifypass-ok-button', action: this.handleOk, type: 'primary'}\n ];\n footer = !!footer.length && <div>\n {footer.map((btn, i) =>\n <Button\n className={btn.className || ''}\n key={i}\n type={btn.type}\n loading={btn.loading}\n onClick={() => {\n const {action} = btn || {};\n if (typeof action === 'function') action();\n if (btn.closable) {\n stores.modalRouter.hide('/modifypass');\n }\n }}\n >\n {btn.text}\n </Button>)}\n </div>\n switch (key) {\n case 'logout':\n User.logout();\n break;\n case 'modifypass':\n {\n if(!stores.offlineSys.shouldInOffline()) return;\n stores.modalRouter.show({\n url: '/modifypass',\n title: '修改密码',\n className: 'modify-password',\n width: 402,\n footer,modalType:'mid',\n onHide: () => stores.modalRouter.hide('/modifypass'),\n destroyOnClose: true,\n });\n }\n break;\n default:\n history.push(`/${key}`);\n break;\n }\n }\n render() {\n const { collapsed, selectedKeys, solt, portalHead = [], loginHead = [], retailOrder = [], logoUrl, hsy_s } = this.state;\n const pathname = history.location.pathname;\n const storeInfo = stores.user.options.get('store');\n const isPortal = !!portalHead.length;\n const isLogin = !!loginHead.length;\n const isRetailOrder = !!retailOrder.length;\n const headProps = {\n logo: this.logoNode(logoUrl, isPortal, isLogin),\n businessName: '',\n storeName: '',\n dateFormat: 'yyyy年MM月dd日 hh:mm:ss',\n menu: [\n { title: '注销', key: 'logout', icon: 'zhuxiao' },\n { title: '修改密码', key: 'modifypass', icon: 'suoping' }\n ],\n onClick: this.headMenuSelect\n };\n if (storeInfo) {\n headProps.businessName = storeInfo.orgName;\n headProps.storeName = storeInfo.storeName;\n headProps.posCode = storeInfo.posCode;\n }\n\n // 如果存在商米副屏则优先加载商米副屏\n if (this.isHorizontalSunMi_FuPing) {\n return <Redirect to={'/vicescreen'} />\n }\n console.log('!stores.posLoginStore.posIsLogin=============', !stores.posLoginStore.posIsLogin);\n if (!stores.posLoginStore.posIsLogin && !~pathname.indexOf('login')) {\n stores.modalRouter.hideAll && stores.modalRouter.hideAll();\n return <Redirect to={'/login'} />\n }\n const classNames = ['isPortal-layout', 'isRetailOrder-layout'];\n const layoutClassName = [isPortal, isRetailOrder].map((v, i) => (v ? classNames[i] : '')).join(' ');\n return (\n <Layout\n style={{ height: '100%' }}\n className={layoutClassName}\n >\n <Layout>\n <Header\n {...headProps}\n solt={solt}\n isPortal={isPortal}\n className={`${(!hsy_s && isPortal) ? 'isPortal-head' : ''} ${isLogin ? 'isLogin-head' : ''}`}\n isLogin={isLogin}\n location={this.props.location}\n history={this.props.history}\n />\n <Layout.Content>\n {this.props.match.isExact ? (<PortalPageBC />) : <Switch>{this.props.routes}</Switch>}\n </Layout.Content>\n </Layout>\n </Layout>\n )\n }\n}\n\nexport default function Main(props) {\n const { routes, modalRouter } = props;\n\n if (modalRouter) {\n return <Switch>{routes}</Switch>;\n }\n\n return React.cloneElement(<MainContainer />, props);\n}\n"]}
1
+ {"version":3,"sources":["tplus-portaltouch/containers/Main/index.js"],"names":["Main","hasElectron","env","platform","constant","electron","window","rx$","MainContainer","observer","props","currentFocus","sys_parms","tinified_logo_bc","ossAliyuncsFileURL","protal_chanjet_logo_bc","chanjet_logo_bc","initWebFrameZoom","webFrame","value","localStore","get","setZoomFactor","parseFloat","doDeeplinkingUrl","ipcRenderer","on","event","ret","params","console","log","stores","user","orgId","userId","param","split","reduce","accumulator","current","key","cloudUserId","User","logout","changeLogoSubject","subject","Subject","changeLogo","subscribe","next","v","setLogo","changeHsySubject","changeHsy","setHsy","addHotKeyChangeLister","document","addEventListener","registerHotKey","removeHotKeyChangeLister","removeEventListener","back","fn","setState","hsy_s","hsy_f","store","logoUrl","logo","logoNode","url","isPortal","isLogin","state","isVerticalTouch","theme","portalStore","themeStore","defualtImage","hotKeyInjectOrEject","type","hotKeyAction","registerKeys","allKeys","hotKey","hotKeyConfig","forEach","keyboard","index","nativeMs","onIpcRendererGlobalShortcut","hotKeyActionHandle","blurButton","target","nodeName","blur","isSetHotKey","hotKeyCreate","observerCallback","observerDom","pressed","clickBefore","activeElement","filter","srcElement","tagName","className","indexOf","undefined","attributes","childList","subtree","attributeFilter","register","operationKeys","esc","enter","modals","querySelectorAll","modal","style","display","drawers","modalsAndDrawers","sort","dom1","dom2","style1","getComputedStyle","style2","zIndex","visibleDom","length","$","clearFocus","setFocus","getFocusId","querySelector","find","handle","toggleKeyCode","message","bind","keys","i","unbind","Message","info","action","handleInfoRender","solt","onCollapse","collapsed","menuOnClick","selectedKeys","handleClose","Keyboard","close","handleOk","count","modifyPassStore","modifyPassWord","headMenuSelect","footer","text","closable","map","btn","loading","modalRouter","hide","offlineSys","shouldInOffline","show","title","width","modalType","onHide","destroyOnClose","history","push","portalStores","posLoginStore","savePosCode","isAutoTest","location","search","isShowFourTab","screen","isHorizontalPad","storeUtil","isHorizontalSunMi","isHorizontalSunMi_FuPing","isMobileEnvironment","infoRender","headHook","addClass","id","removeClass","currentId","actionHook","actionFrom","actionChange","body","classList","add","ModalWraper","confirm","content","cancelable","onOk","onCancel","unsubscribe","portalHead","loginHead","retailOrder","pathname","storeInfo","options","isRetailOrder","headMenus","icon","vistorValidate","isNormal","headProps","businessName","storeName","dateFormat","menu","onClick","orgName","posCode","posIsLogin","hideAll","classNames","layoutClassName","join","height","match","isExact","routes","Component","childContextTypes","PropTypes","func","object","React","cloneElement"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuawBA,I;;AAvaxB;;;;AACA;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AACA;;;;AACA;;;;AACA;;AACA;;;;AACA,IAAMC,cAAeC,oBAAIC,QAAJ,KAAiBD,oBAAIE,QAAJ,CAAaD,QAAb,CAAsBE,QAA5D;AACAC,OAAOC,GAAP,GAAa,EAAb;;IAEMC,a,OADLC,mB;;;AAWC,yBAAYC,KAAZ,EAAmB;AAAA;;AAAA,oJACXA,KADW;;AAAA,UARnBC,YAQmB,GARJ,IAQI;AAAA,UANnBC,SAMmB,GANP;AACVC,wBAAqBP,OAAOQ,kBAA5B,0BADU;AAEVC,8BAA2BT,OAAOQ,kBAAlC,gCAFU;AA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A;AACE,iBAAO,EAAEC,QAAQ,MAAV,EADT;AAEE,qBAAWF;AAFb;AAIE;AAAC,sCAAD;AAAA;AACE,wCAAC,gBAAD,6BACMX,SADN;AAEE,kBAAM1E,IAFR;AAGE,sBAAU/E,QAHZ;AAIE,wBAAe,CAACP,KAAD,IAAUO,QAAX,GAAuB,eAAvB,GAAyC,EAAvD,WAA6DC,UAAU,cAAV,GAA2B,EAAxF,CAJF;AAKE,qBAASA,OALX;AAME,sBAAU,KAAK/D,KAAL,CAAWgL,QANvB;AAOE,qBAAS,KAAKhL,KAAL,CAAW0K;AAPtB,aADF;AAUE;AAAC,wCAAD,CAAQ,OAAR;AAAA;AACG,iBAAK1K,KAAL,CAAWqO,KAAX,CAAiBC,OAAjB,GAA4B,8BAAC,kBAAD,OAA5B,GAAgD;AAAC,oCAAD;AAAA;AAAS,mBAAKtO,KAAL,CAAWuO;AAApB;AADnD;AAVF;AAJF,OADF;AAqBD;;;EAlZyBC,gB,WA+BnBC,iB,GAAoB;AACzBhD,cAAYiD,oBAAUC,IADG;AAEzBjD,YAAUgD,oBAAUE,MAFK;AAGzB7C,cAAY2C,oBAAUE;AAHG,C;;AAsXd,SAAStP,IAAT,CAAcU,KAAd,EAAqB;AAAA,MAC1BuO,MAD0B,GACFvO,KADE,CAC1BuO,MAD0B;AAAA,MAClBvE,WADkB,GACFhK,KADE,CAClBgK,WADkB;;;AAGlC,MAAIA,WAAJ,EAAiB;AACf,WAAO;AAAC,4BAAD;AAAA;AAASuE;AAAT,KAAP;AACD;;AAED,SAAOM,gBAAMC,YAAN,CAAmB,8BAAC,aAAD,OAAnB,EAAsC9O,KAAtC,CAAP;AACD","file":"index.js","sourcesContent":["import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport { observer } from 'mobx-react';\nimport { Button } from 'antd';\nimport { history, Switch, stores, env, nativeMs, localStore } from 'mutants-microfx';\nimport { Ticon, Layout, Keyboard, ModalWraper, Message, hotKey } from 'tplus-components-touch';\nimport { platform, localStore as storeUtil } from 'mutants-util';\nimport { User } from 'tplus-api';\nimport { Subject } from 'rxjs';\nimport { Redirect } from 'react-router';\nimport Header from '../../components/header';\nimport PortalPageBC from '../../pages/Portalbc';\nimport portalStores from '../../stores';\nimport { closeWebPage, getQueryString, operationKeys } from '../../utils/index';\nimport { vistorValidate } from 'tplus-poslogin';\nconst hasElectron = (env.platform === env.constant.platform.electron);\nwindow.rx$ = {};\n@observer\nclass MainContainer extends Component {\n\n currentFocus = null;\n\n sys_parms = {\n tinified_logo_bc: `${window.ossAliyuncsFileURL}/tinified/logo-bc.png`,\n protal_chanjet_logo_bc: `${window.ossAliyuncsFileURL}/protal-chanjet-logo-bc.png`,\n chanjet_logo_bc: `${window.ossAliyuncsFileURL}/chanjet-logo-bc.png`,\n }\n\n constructor(props) {\n super(props);\n this.hasElectron = hasElectron;\n this.state = {\n hsy_s: false,\n hsy_f: null\n };\n portalStores.posLoginStore.savePosCode();\n this.electron = nativeMs && nativeMs.get('electron');\n this.isAutoTest = getQueryString(location.search, 'at');\n this.isShowFourTab = this.hasElectron && window.screen.width < 1024 ? true : false;\n //针对800*600分辨率下,页面显示不全的做一下处理。\n if (this.isShowFourTab == true) this.initWebFrameZoom();\n\n const isHorizontalPad = storeUtil.get('isHorizontalPad')// 是否在PAD\n const isHorizontalSunMi = storeUtil.get('isHorizontalSunMi'); //是否在商米(SunMi)\n const isHorizontalSunMi_FuPing = storeUtil.get('isHorizontalSunMi_FuPing'); //是否在商米(SunMi)\n\n this.isHorizontalSunMi_FuPing = !!isHorizontalSunMi_FuPing;\n this.isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi || !!isHorizontalSunMi_FuPing;\n }\n static childContextTypes = {\n infoRender: PropTypes.func,\n headHook: PropTypes.object,\n actionHook: PropTypes.object,\n }\n\n initWebFrameZoom = () => {\n let webFrame = this.electron ? this.electron.webFrame : null;\n let value = localStore.get('webFrameZoomValue') || '0.7';\n if (webFrame) webFrame.setZoomFactor(parseFloat(value));\n }\n getChildContext() {\n return {\n infoRender: this.handleInfoRender,\n headHook: {\n addClass: (id, key) => {\n this.setState(state => ({\n [key]: [...(state[key] || []), id],\n }));\n },\n removeClass: (id, key) => {\n this.setState(state => ({\n [key]: state[key].filter(currentId => currentId !== id),\n }));\n }\n },\n actionHook: {\n actionFrom: this.actionFrom,\n actionChange: (value) => {\n this.actionFrom = value;\n }\n },\n };\n }\n\n // 内置默认\n // keys = ['esc', 'enter', 'ctrl+f1', ...Object.keys(hotKey.hotKeyConfig)];\n\n // 解决从url地址唤醒exe,不同账号的处理问题。\n doDeeplinkingUrl = () => {\n if (this.hasElectron === false) return;\n let { ipcRenderer } = this.electron || {ipcRenderer:null};\n ipcRenderer && ipcRenderer.on(\"asynchronous-deeplinkingUrl\", (event, ret, params) => {\n if (ret) {\n console.log('deeplinkingUrl:' + ret)\n const {orgId, userId} = stores.user || {};\n if (!orgId || !userId) return;\n const param = ret.split('&').reduce((accumulator, current) => {\n if (!current) return accumulator;\n const [key, value] = current.split('=') || [];\n accumulator[key] = value;\n return accumulator;\n }, {});\n console.log(orgId, userId, param)\n if (param.orgId !== orgId || param.cloudUserId !== userId) {\n User.logout();\n }\n }\n })\n }\n\n componentWillMount() {\n this.changeLogoSubject();\n this.changeHsySubject();\n const { isVerticalTouch } = platform || {};\n if (isVerticalTouch === true) {\n document.body.classList.add('vertical-touch-platform');\n }\n }\n\n changeLogoSubject = () => {\n const subject = new Subject();\n rx$.changeLogo = subject;\n\n subject\n .subscribe({\n next: (v) => this.setLogo(v)\n });\n }\n\n changeHsySubject = () => {\n const subject = new Subject();\n rx$.changeHsy = subject;\n\n subject\n .subscribe({\n next: (v) => this.setHsy(v)\n });\n }\n\n componentDidMount() {\n this.registerHotKey();\n this.addHotKeyChangeLister();\n rx$.changeLogo.next();\n document.body.addEventListener('focus', this.blurButton, true)\n this.doDeeplinkingUrl();\n\n if (this.hasElectron === true) {\n document.body.classList.add('electron-env');\n } else {\n if (this.isAutoTest || this.isMobileEnvironment) return; //自动化测试不弹窗\n ModalWraper.confirm({\n className: 'tplus-confirm-modal',\n title: \"温馨提示\",\n content: '智+新零售POS端不允许浏览器直接访问,请从智+产品中下载安装客户端程序使用!',\n cancelable:false,\n onOk() {\n closeWebPage();\n },\n onCancel(){\n closeWebPage();\n }\n });\n }\n }\n addHotKeyChangeLister = () => {\n document.addEventListener(\"RESET_USER_STORE\",this.registerHotKey);\n }\n removeHotKeyChangeLister = () => {\n document.removeEventListener(\"RESET_USER_STORE\",this.registerHotKey);\n }\n\n componentWillUnmount() {\n rx$.changeLogo.unsubscribe();\n rx$.changeHsy.unsubscribe();\n document.body.removeEventListener('focus', this.blurButton, true)\n // clearInterval(this.addObserverDomTimer);\n }\n\n setHsy = (v) => {\n const { back, fn } = v || {};\n if (back === true) {\n this.setState({ hsy_s: true, hsy_f: fn })\n } else {\n this.setState({ hsy_s: false, hsy_f: null })\n }\n }\n\n setLogo = (v) => {\n const store = localStore.get('StoreKey') || {};\n const { logo: logoUrl } = store;\n logoUrl && this.setState({ logoUrl });\n }\n\n logoNode = (url, isPortal, isLogin) => {\n const { hsy_s, hsy_f } = this.state;\n const { isVerticalTouch } = platform || {};\n const theme = stores.portalStore.themeStore;\n const defualtImage = (isVerticalTouch === true) ? this.sys_parms.tinified_logo_bc : ((!hsy_s && isPortal) || (theme === 'dark' && !isLogin) ? this.sys_parms.protal_chanjet_logo_bc : this.sys_parms.chanjet_logo_bc);\n if (hsy_s === true) {\n return (<div className='business-logo-container'>\n <Ticon type='zhiPOS-fanhuishouye2' className='back_i' onClick={() => { hsy_f && hsy_f() }} />\n <img src={url || defualtImage} className=\"example-logo\" />\n </div>);\n }\n return <img src={url || defualtImage} className=\"example-logo\" />\n }\n\n //未使用?\n hotKeyInjectOrEject = (type, hotKeyAction) => {\n const registerKeys = ['esc', 'enter'];\n const allKeys = [...registerKeys, ...Object.keys(hotKey.hotKeyConfig)];\n allKeys.forEach((keyboard, index) => {\n nativeMs.onIpcRendererGlobalShortcut({ type, keyboard }, hotKeyActionHandle);\n });\n }\n\n blurButton = ({ target }) => { // 焦点为 button 时 移除焦点,防止触发 bee 组件enter快捷键\n if (target && target.nodeName === 'BUTTON') {\n target.blur();\n }\n }\n\n registerHotKey = () => {\n this.isSetHotKey = true;\n\n this.hotKeyCreate = hotKey({\n observerCallback: this.observerDom,\n log: true,\n pressed: this.hotKeyAction,\n clickBefore: () => {\n const { activeElement } = document;\n activeElement && activeElement.blur();\n },\n filter: event => {\n const { tagName, className } = event.target || event.srcElement || {};\n\n return !(event.key === 'Enter' && tagName === 'INPUT' && !~className.indexOf('hot-key-not-filter'));\n }\n });\n\n this.hotKeyCreate.observer(undefined, { attributes: true, childList: true, subtree: true ,attributeFilter: ['class', 'style'], });\n this.hotKeyCreate.register('esc')('.hot-key-focus-container')(operationKeys.esc);\n this.hotKeyCreate.register('enter')('.hot-key-focus-container')(operationKeys.enter);\n }\n\n observerDom = () => {\n\n const modals = [...document.querySelectorAll('.ant-modal-wrap')].filter((modal) => modal.style && modal.style.display !== 'none'); //ant-module\n const drawers = [...document.querySelectorAll('.ant-drawer-open')] //ant-drawer\n let modalsAndDrawers = [...modals, ...drawers].sort((dom1, dom2) => {\n let style1 = window.getComputedStyle(dom1);\n let style2 = window.getComputedStyle(dom2);\n return style2.zIndex - style1.zIndex\n });\n\n let visibleDom = modalsAndDrawers.length > 0 ? modalsAndDrawers[0] : null\n\n if (visibleDom) {\n if (this.currentFocus !== visibleDom) {\n $.clearFocus();\n this.currentFocus = visibleDom\n return $.setFocus(visibleDom);\n }\n return;\n }\n\n if ($.getFocusId() !== '1') {\n if (this.currentFocus !== 'App' || !document.querySelector(\".hot-key-focus-container\")) {\n $.clearFocus();\n this.currentFocus = 'App';\n $.find('.app', true).setFocus();\n }\n return;\n }\n }\n\n hotKeyAction = (event, handle) => {\n const { key } = handle || {};\n const toggleKeyCode = 'ctrl+f1';\n if (key === toggleKeyCode) {\n const isSetHotKey = this.isSetHotKey = !this.isSetHotKey;\n const message = isSetHotKey ? '设置' : '取消';\n if (isSetHotKey) {\n $.bind(this.keys.filter(i => i !== toggleKeyCode), this.hotKeyAction);\n } else {\n $.unbind(this.keys.filter(i => i !== toggleKeyCode));\n }\n return Message.info(`已${message}快捷键`);\n }\n\n $.action(key);\n }\n\n handleInfoRender = (solt) => {\n this.setState({solt})\n }\n onCollapse = () => {\n const {collapsed} = this.state;\n this.setState({collapsed: !collapsed});\n }\n menuOnClick = ({key}) => {\n console.log(key)\n this.setState({selectedKeys: key});\n }\n\n handleClose = () => {\n Keyboard.close();\n }\n\n handleOk = (type, count) => {\n stores.modifyPassStore.modifyPassWord();\n }\n\n headMenuSelect = ({key}) => {\n var footer = [\n {text: '取消', className: 'modifypass-cancal-button', closable: true, action: this.handleClose},\n {text: '确定', className: 'modifypass-ok-button', action: this.handleOk, type: 'primary'}\n ];\n footer = !!footer.length && <div>\n {footer.map((btn, i) =>\n <Button\n className={btn.className || ''}\n key={i}\n type={btn.type}\n loading={btn.loading}\n onClick={() => {\n const {action} = btn || {};\n if (typeof action === 'function') action();\n if (btn.closable) {\n stores.modalRouter.hide('/modifypass');\n }\n }}\n >\n {btn.text}\n </Button>)}\n </div>\n switch (key) {\n case 'logout':\n User.logout();\n break;\n case 'modifypass':\n {\n if(!stores.offlineSys.shouldInOffline()) return;\n stores.modalRouter.show({\n url: '/modifypass',\n title: '修改密码',\n className: 'modify-password',\n width: 402,\n footer,modalType:'mid',\n onHide: () => stores.modalRouter.hide('/modifypass'),\n destroyOnClose: true,\n });\n }\n break;\n default:\n history.push(`/${key}`);\n break;\n }\n }\n render() {\n const { collapsed, selectedKeys, solt, portalHead = [], loginHead = [], retailOrder = [], logoUrl, hsy_s } = this.state;\n const pathname = history.location.pathname;\n const storeInfo = stores.user.options.get('store');\n const isPortal = !!portalHead.length;\n const isLogin = !!loginHead.length;\n const isRetailOrder = !!retailOrder.length;\n const headMenus = [\n { title: '注销', key: 'logout', icon: 'zhuxiao' }\n ];\n if (vistorValidate.isNormal()) {\n headMenus.push(\n { title: '修改密码', key: 'modifypass', icon: 'suoping' }\n )\n }\n const headProps = {\n logo: this.logoNode(logoUrl, isPortal, isLogin),\n businessName: '',\n storeName: '',\n dateFormat: 'yyyy年MM月dd日 hh:mm:ss',\n menu: headMenus,\n onClick: this.headMenuSelect\n };\n if (storeInfo) {\n headProps.businessName = storeInfo.orgName;\n headProps.storeName = storeInfo.storeName;\n headProps.posCode = storeInfo.posCode;\n }\n\n // 如果存在商米副屏则优先加载商米副屏\n if (this.isHorizontalSunMi_FuPing) {\n return <Redirect to={'/vicescreen'} />\n }\n console.log('!stores.posLoginStore.posIsLogin=============', !stores.posLoginStore.posIsLogin);\n if (!stores.posLoginStore.posIsLogin && !~pathname.indexOf('login')) {\n stores.modalRouter.hideAll && stores.modalRouter.hideAll();\n return <Redirect to={'/login'} />\n }\n const classNames = ['isPortal-layout', 'isRetailOrder-layout'];\n const layoutClassName = [isPortal, isRetailOrder].map((v, i) => (v ? classNames[i] : '')).join(' ');\n return (\n <Layout\n style={{ height: '100%' }}\n className={layoutClassName}\n >\n <Layout>\n <Header\n {...headProps}\n solt={solt}\n isPortal={isPortal}\n className={`${(!hsy_s && isPortal) ? 'isPortal-head' : ''} ${isLogin ? 'isLogin-head' : ''}`}\n isLogin={isLogin}\n location={this.props.location}\n history={this.props.history}\n />\n <Layout.Content>\n {this.props.match.isExact ? (<PortalPageBC />) : <Switch>{this.props.routes}</Switch>}\n </Layout.Content>\n </Layout>\n </Layout>\n )\n }\n}\n\nexport default function Main(props) {\n const { routes, modalRouter } = props;\n\n if (modalRouter) {\n return <Switch>{routes}</Switch>;\n }\n\n return React.cloneElement(<MainContainer />, props);\n}\n"]}
@@ -52,7 +52,7 @@ var _inherits3 = _interopRequireDefault(_inherits2);
52
52
  var _class, _class2, _temp; /*
53
53
  * @Description:
54
54
  * @Date: 2019-08-13 08:42:18
55
- * @LastEditTime: 2022-04-21 15:16:36
55
+ * @LastEditTime: 2022-05-17 20:45:11
56
56
  * @LastEditors: chenlongad
57
57
  * @modify:修改跳转到T+的查询方案方式
58
58
  */
@@ -124,7 +124,7 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
124
124
 
125
125
  _this2.ccFrameStore = {};
126
126
  _this2.catchOfflineData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
127
- var offlineSys, isLoginAfter, downloadCatcherDay, currentDay, downProgress, result;
127
+ var offlineSys, isLoginAfter, downloadCatcherDay, dataIsOffline, currentDay, downProgress, result;
128
128
  return _regenerator2.default.wrap(function _callee$(_context) {
129
129
  while (1) {
130
130
  switch (_context.prev = _context.next) {
@@ -132,19 +132,20 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
132
132
  offlineSys = _this2.context.stores.offlineSys;
133
133
  isLoginAfter = _mutantsMicrofx.localStore.get("isLoginAfter");
134
134
  downloadCatcherDay = _mutantsMicrofx.localStore.get("downloadCatcherDay");
135
+ dataIsOffline = _mutantsMicrofx.localStore.get("dataIsOffline");
135
136
  currentDay = Math.ceil(new Date() / 1000 / 60 / 60 / 24);
136
137
 
137
138
  if (!(isLoginAfter == 1)) {
138
- _context.next = 24;
139
+ _context.next = 25;
139
140
  break;
140
141
  }
141
142
 
142
143
  if (!(!downloadCatcherDay || currentDay > downloadCatcherDay)) {
143
- _context.next = 23;
144
+ _context.next = 24;
144
145
  break;
145
146
  }
146
147
 
147
- _context.prev = 6;
148
+ _context.prev = 7;
148
149
 
149
150
  downProgress = function downProgress(params) {
150
151
  _tplusComponentsTouch.Loading.transfer(params);
@@ -155,39 +156,39 @@ var _default = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_C
155
156
  delay: 0,
156
157
  showProgress: true
157
158
  });
158
- _context.next = 11;
159
- return offlineSys.downloadCatcherData(downProgress);
159
+ _context.next = 12;
160
+ return offlineSys.downloadCatcherData(downProgress, !dataIsOffline);
160
161
 
161
- case 11:
162
+ case 12:
162
163
  result = _context.sent;
163
164
 
164
165
  if (result) _mutantsMicrofx.localStore.set("downloadCatcherDay", currentDay);
165
166
  _tplusComponentsTouch.Loading.hide();
166
- _context.next = 20;
167
+ _context.next = 21;
167
168
  break;
168
169
 
169
- case 16:
170
- _context.prev = 16;
171
- _context.t0 = _context['catch'](6);
170
+ case 17:
171
+ _context.prev = 17;
172
+ _context.t0 = _context['catch'](7);
172
173
 
173
174
  console.log('downloadCatcherData下载离线数据', _context.t0);
174
175
  _tplusComponentsTouch.Loading.hide();
175
176
 
176
- case 20:
177
- _context.prev = 20;
177
+ case 21:
178
+ _context.prev = 21;
178
179
 
179
180
  _tplusComponentsTouch.Loading.hide();
180
- return _context.finish(20);
181
+ return _context.finish(21);
181
182
 
182
- case 23:
183
+ case 24:
183
184
  _mutantsMicrofx.localStore.set("isLoginAfter", 0);
184
185
 
185
- case 24:
186
+ case 25:
186
187
  case 'end':
187
188
  return _context.stop();
188
189
  }
189
190
  }
190
- }, _callee, _this3, [[6, 16, 20, 23]]);
191
+ }, _callee, _this3, [[7, 17, 21, 24]]);
191
192
  }));
192
193
 
193
194
  _this2.getOperation = function () {