tplus-portaltouch 1.24.4 → 1.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/ModifyPassApi.js.map +1 -1
- package/dist/components/dutyandsettle/dutysettlebill.js.map +1 -1
- package/dist/components/dutyandsettle/dutysettlehistory.js +16 -72
- package/dist/components/dutyandsettle/dutysettlehistory.js.map +1 -1
- package/dist/components/dutyandsettle/index.js.map +1 -1
- package/dist/components/dutyandsettle/tipContent.js.map +1 -1
- package/dist/components/header/customUse.js.map +1 -1
- package/dist/components/header/headContent.js.map +1 -1
- package/dist/components/header/index.js +13 -13
- package/dist/components/header/index.js.map +1 -1
- package/dist/components/header/style.less +331 -331
- package/dist/components/header/vertical-touch.js.map +1 -1
- package/dist/components/header/vertical-touch.less +212 -212
- package/dist/containers/Main/index.js +6 -2
- package/dist/containers/Main/index.js.map +1 -1
- package/dist/dutyService/index.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/middleWare/index.js.map +1 -1
- package/dist/modalRouter/StaticRouter.js.map +1 -1
- package/dist/pages/Modal/style.less +5 -5
- package/dist/pages/Portal/PortalPage.less +661 -655
- package/dist/pages/Portal/data.js +11 -8
- package/dist/pages/Portal/data.js.map +1 -1
- package/dist/pages/Portal/horizontalPadPortal.js +9 -18
- package/dist/pages/Portal/horizontalPadPortal.js.map +1 -1
- package/dist/pages/Portal/horizontalSunMiPortal.js.map +1 -1
- package/dist/pages/Portal/index.js +6 -6
- package/dist/pages/Portal/index.js.map +1 -1
- package/dist/pages/Portal/verticalPortal.js.map +1 -1
- package/dist/pages/dutyandsettle/AuthProcess.js.map +1 -1
- package/dist/pages/dutyandsettle/index.js.map +1 -1
- package/dist/pages/dutyandsettle/index.less +575 -575
- package/dist/pages/dutyandsettle/offDuty.js +55 -106
- package/dist/pages/dutyandsettle/offDuty.js.map +1 -1
- package/dist/pages/dutyandsettle/onDialy.js.map +1 -1
- package/dist/pages/dutyandsettle/onDuty.js.map +1 -1
- package/dist/pages/dutyandsettle/onUnDaily.js.map +1 -1
- package/dist/pages/dutyandsettle/settleDialy.js.map +1 -1
- package/dist/pages/index.js.map +1 -1
- package/dist/pages/modifyPass/index.js.map +1 -1
- package/dist/pages/modifyPass/style.less +75 -75
- package/dist/pages/notFound/index.js.map +1 -1
- package/dist/pages/notFound/style.less +4 -4
- package/dist/stores/ModalRouter.js.map +1 -1
- package/dist/stores/ModifyPassStore.js +0 -0
- package/dist/stores/ModifyPassStore.js.map +1 -1
- package/dist/stores/PortalStore.js +5 -5
- package/dist/stores/PortalStore.js.map +1 -1
- package/dist/stores/PosLoginStore.js.map +1 -1
- package/dist/stores/billHistoryStore.js.map +1 -1
- package/dist/stores/dutySettleStore.js.map +1 -1
- package/dist/stores/index.js.map +1 -1
- package/dist/utils/PrintProcess.js +10 -10
- package/dist/utils/PrintProcess.js.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/networkCheck.js.map +1 -1
- package/package.json +4 -4
- package/tsconfig.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["tplus-portaltouch/components/header/vertical-touch.js"],"names":["verticalHeadTime","verticalHeadContent","Item","date_HMS","memberHeaderClick","stores","voucherStore","voucherVM","controllerEvent","justifyPathname","pathname","document","getElementsByClassName","getElementById","style","display","mouseUp","releaseVersion","releaseDate","time","dateFormat","logo","HeadTime","headControlNode","location","history","renderNode","dropContent","selectMemberInfo","selectMemberStore","memberName","undefined","value","canRouteChange","includes","longPress","isMouseUp","push","setLongPressTime","pressStart","Date","longPressTime","setTimeout","localStore","get","username","password","pass","passRef","React","createRef","modal","ModalWraper","confirm","vertical","className","title","icon","wrapperControl","onCancel","Keyboard","close","onOk","trim","Message","toast","loading","User","pwdEncrypt","destroy","resolve","clearData","rx$","memberNameSubject","next","Math","random","content","e","target","open","getNewValue","v","querySelector","click","current","blur","focus","user","options","posCode","width","height"],"mappings":";;;;;;;;;;;;;;;;;;;;;;QAQg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AFJ;AAGN,sBAAiBG,cAAjB,SAAmCC;AAH7B;AAKN;AAAA;AAAA,QAAK,WAAU,mBAAf;AACG,OAAC,CAACG,IAAF,IAAU;AAAA;AAAA;AACT,qBAAU,eADD;AAET,wBAAc;AAAA,mBAAMc,WAAN;AAAA,WAFL;AAGT,sBAAY;AAAA,mBAAMA,UAAU,IAAV,CAAN;AAAA;AAHH;AAITd;AAJS,OADb;AAMGqE,iBAAW;AAAA;AAAA,UAAK,WAAU,UAAf;AAA2BA;AAA3B;AANd,KALM;AAaL,KAAC,GAAD,EAAM,QAAN,EAAgBxD,QAAhB,CAAyBxB,QAAzB,KAAsCa,eAbjC;AAcN;AAAA;AAAA,QAAK,WAAU,oBAAf;AACGO,gBADH;AAEGJ;AAFH;AAdM,GAAR;AAmBD","file":"vertical-touch.js","sourcesContent":["import React from 'react';\nimport { ModalWraper, Input, Message, Keyboard, Ticon } from 'tplus-components-touch';\nimport { localStore, stores } from 'mutants-microfx';\nimport { User } from 'tplus-api';\nimport { Dropdown, Menu } from 'tinper-bee'\nimport { useRender, useMemberName } from './customUse';\nconst { Item } = Menu\n\nexport function verticalHeadTime({ date_HMS }) {\n return <span>{date_HMS}</span>;\n}\nfunction memberHeaderClick() {\n stores.voucherStore.voucherVM.controllerEvent('changeMember', {})\n}\n\nfunction justifyPathname (pathname) {\n if (pathname !== \"/RE/RE01\") {\n if (document.getElementsByClassName('member-name')[0] && document.getElementById('header-triangle-down')){\n document.getElementById('header-triangle-down').style.display = 'none'\n } \n } else {\n if (document.getElementsByClassName('member-name')[0] && document.getElementById('header-triangle-down')){\n document.getElementById('header-triangle-down').style.display = 'inline'\n } \n }\n}\n\nlet mouseUp = false;\nexport function verticalHeadContent({ style, releaseVersion, releaseDate, time, dateFormat, logo, HeadTime, headControlNode, location, history }) {\n const renderNode = useRender();\n const dropContent = function () {\n const { selectMemberInfo } = stores.selectMemberStore; //selectMemberInfo 用作触发mobox render\n return (<Dropdown overlayClassName='verticalTouchDropdownClass' trigger={['click']}\n overlay={\n <Menu onClick={memberHeaderClick}>\n <Item key=\"1\">\n <Ticon icon='zhuxiao' />\n <span>退出会员</span>\n </Item>\n </Menu>\n }\n animation=\"slide-up\">\n <i id='header-triangle-down' className='header-triangle-down'></i>\n </Dropdown>\n )\n }();\n const { pathname } = location || {};\n justifyPathname(pathname)\n const memberName = useMemberName(undefined, value => !value || <div className='member-name'>欢迎您 <span className='memberWord'>{value}</span>{dropContent}</div>)\n const canRouteChange = ['/portsetting', '/'].includes(pathname);\n function longPress(isMouseUp) {\n if (canRouteChange) return history.push('/');\n mouseUp = false;\n if (isMouseUp) return mouseUp = true;\n\n const setLongPressTime = 1000;\n const pressStart = +new Date();\n\n (function longPressTime() {\n if (mouseUp) return;\n setTimeout(() => {\n if (+new Date() - pressStart < setLongPressTime) {\n longPressTime();\n } else {\n const { username, password } = localStore.get('AuthKey') || {};\n let pass = '';\n let passRef = React.createRef();\n\n const modal = ModalWraper.confirm({\n vertical: true,\n className: 'tplus-confirm-modal router-change-confirm',\n title: '返回首页',\n icon: false,\n wrapperControl: true,\n onCancel() {\n Keyboard.close();\n },\n onOk() {\n if (!pass.trim()) {\n Message.toast('您输入密码格式不正确');\n return false;\n }\n Message.loading('身份校验中,请稍后...');\n return new Promise(resolve => {\n setTimeout(() => {\n if (User.pwdEncrypt(pass) === password) {\n Message.loading('校验成功,即将跳转到首页');\n setTimeout(() => {\n Message.destroy();\n resolve('closeModal');\n stores.voucherStore.clearData();\n history.push('/');\n rx$.memberNameSubject.next('');\n Keyboard.close();\n }, 1000);\n } else {\n Message.toast('您输入密码不正确');\n }\n }, Math.random() * 500 + 500);\n })\n },\n content: <div className='inputs-content'>\n <Input\n vertical\n title='账号'\n tplusInput\n placeholder='请输入账号'\n type='native'\n suffix='zhanghu'\n value={username}\n disabled\n />\n <Input\n vertical\n title='密码'\n tplusInput\n placeholder='请输入密码'\n htmlType='password'\n type='native'\n suffix='xiugaimima1'\n onChange={e => pass = e.target.value}\n inputRef={passRef}\n onFocus={({ target }) => {\n Keyboard.open(v => {\n const value = Keyboard.getNewValue(target, target.value, v);\n target.value = pass = value;\n }, () => {\n document.querySelector('.router-change-confirm .u-button-primary').click();\n }, () => {\n passRef.current.blur();\n Keyboard.close();\n })();\n }}\n />\n </div>\n });\n\n setTimeout(() => passRef.current.focus(), 100);\n }\n }, 100);\n })();\n }\n const { posCode } = stores.user.options.get('store') || {};\n\n return (<div\n style={{ display: 'inline-block', width: '100%', height: '100%', ...style }}\n className='head-content'\n data-release={`${releaseVersion} ${releaseDate}`}\n >\n <div className=\"head-content-left\">\n {!!logo && <div\n className='business-logo'\n onTouchStart={() => longPress()}\n onTouchEnd={() => longPress(true)}\n >{logo}</div>}\n {posCode && <div className='pos-code'>{posCode}</div>}\n </div>\n {['/', '/login'].includes(pathname) && headControlNode}\n <div className=\"head-content-right\">\n {memberName}\n {renderNode}\n </div>\n </div>);\n}"]}
|
|
1
|
+
{"version":3,"sources":["tplus-portaltouch/components/header/vertical-touch.js"],"names":["verticalHeadTime","verticalHeadContent","Item","date_HMS","memberHeaderClick","stores","voucherStore","voucherVM","controllerEvent","justifyPathname","pathname","document","getElementsByClassName","getElementById","style","display","mouseUp","releaseVersion","releaseDate","time","dateFormat","logo","HeadTime","headControlNode","location","history","renderNode","dropContent","selectMemberInfo","selectMemberStore","memberName","undefined","value","canRouteChange","includes","longPress","isMouseUp","push","setLongPressTime","pressStart","Date","longPressTime","setTimeout","localStore","get","username","password","pass","passRef","React","createRef","modal","ModalWraper","confirm","vertical","className","title","icon","wrapperControl","onCancel","Keyboard","close","onOk","trim","Message","toast","loading","User","pwdEncrypt","destroy","resolve","clearData","rx$","memberNameSubject","next","Math","random","content","e","target","open","getNewValue","v","querySelector","click","current","blur","focus","user","options","posCode","width","height"],"mappings":";;;;;;;;;;;;;;;;;;;;;;QAQgBA,gB,GAAAA,gB;QAoBAC,mB,GAAAA,mB;;;;;;AA5BhB;;;;AACA;;AACA;;AACA;;AAEA;;;;IACQC,I,k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G,IAAF,IAAU;AAAA;AAAA;AACT,qBAAU,eADD;AAET,wBAAc;AAAA,mBAAMc,WAAN;AAAA,WAFL;AAGT,sBAAY;AAAA,mBAAMA,UAAU,IAAV,CAAN;AAAA;AAHH;AAITd;AAJS,OADb;AAMGqE,iBAAW;AAAA;AAAA,UAAK,WAAU,UAAf;AAA2BA;AAA3B;AANd,KALM;AAaL,KAAC,GAAD,EAAM,QAAN,EAAgBxD,QAAhB,CAAyBxB,QAAzB,KAAsCa,eAbjC;AAcN;AAAA;AAAA,QAAK,WAAU,oBAAf;AACGO,gBADH;AAEGJ;AAFH;AAdM,GAAR;AAmBD","file":"vertical-touch.js","sourcesContent":["import React from 'react';\r\nimport { ModalWraper, Input, Message, Keyboard, Ticon } from 'tplus-components-touch';\r\nimport { localStore, stores } from 'mutants-microfx';\r\nimport { User } from 'tplus-api';\r\nimport { Dropdown, Menu } from 'tinper-bee'\r\nimport { useRender, useMemberName } from './customUse';\r\nconst { Item } = Menu\r\n\r\nexport function verticalHeadTime({ date_HMS }) {\r\n return <span>{date_HMS}</span>;\r\n}\r\nfunction memberHeaderClick() {\r\n stores.voucherStore.voucherVM.controllerEvent('changeMember', {})\r\n}\r\n\r\nfunction justifyPathname (pathname) {\r\n if (pathname !== \"/RE/RE01\") {\r\n if (document.getElementsByClassName('member-name')[0] && document.getElementById('header-triangle-down')){\r\n document.getElementById('header-triangle-down').style.display = 'none'\r\n } \r\n } else {\r\n if (document.getElementsByClassName('member-name')[0] && document.getElementById('header-triangle-down')){\r\n document.getElementById('header-triangle-down').style.display = 'inline'\r\n } \r\n }\r\n}\r\n\r\nlet mouseUp = false;\r\nexport function verticalHeadContent({ style, releaseVersion, releaseDate, time, dateFormat, logo, HeadTime, headControlNode, location, history }) {\r\n const renderNode = useRender();\r\n const dropContent = function () {\r\n const { selectMemberInfo } = stores.selectMemberStore; //selectMemberInfo 用作触发mobox render\r\n return (<Dropdown overlayClassName='verticalTouchDropdownClass' trigger={['click']}\r\n overlay={\r\n <Menu onClick={memberHeaderClick}>\r\n <Item key=\"1\">\r\n <Ticon icon='zhuxiao' />\r\n <span>退出会员</span>\r\n </Item>\r\n </Menu>\r\n }\r\n animation=\"slide-up\">\r\n <i id='header-triangle-down' className='header-triangle-down'></i>\r\n </Dropdown>\r\n )\r\n }();\r\n const { pathname } = location || {};\r\n justifyPathname(pathname)\r\n const memberName = useMemberName(undefined, value => !value || <div className='member-name'>欢迎您 <span className='memberWord'>{value}</span>{dropContent}</div>)\r\n const canRouteChange = ['/portsetting', '/'].includes(pathname);\r\n function longPress(isMouseUp) {\r\n if (canRouteChange) return history.push('/');\r\n mouseUp = false;\r\n if (isMouseUp) return mouseUp = true;\r\n\r\n const setLongPressTime = 1000;\r\n const pressStart = +new Date();\r\n\r\n (function longPressTime() {\r\n if (mouseUp) return;\r\n setTimeout(() => {\r\n if (+new Date() - pressStart < setLongPressTime) {\r\n longPressTime();\r\n } else {\r\n const { username, password } = localStore.get('AuthKey') || {};\r\n let pass = '';\r\n let passRef = React.createRef();\r\n\r\n const modal = ModalWraper.confirm({\r\n vertical: true,\r\n className: 'tplus-confirm-modal router-change-confirm',\r\n title: '返回首页',\r\n icon: false,\r\n wrapperControl: true,\r\n onCancel() {\r\n Keyboard.close();\r\n },\r\n onOk() {\r\n if (!pass.trim()) {\r\n Message.toast('您输入密码格式不正确');\r\n return false;\r\n }\r\n Message.loading('身份校验中,请稍后...');\r\n return new Promise(resolve => {\r\n setTimeout(() => {\r\n if (User.pwdEncrypt(pass) === password) {\r\n Message.loading('校验成功,即将跳转到首页');\r\n setTimeout(() => {\r\n Message.destroy();\r\n resolve('closeModal');\r\n stores.voucherStore.clearData();\r\n history.push('/');\r\n rx$.memberNameSubject.next('');\r\n Keyboard.close();\r\n }, 1000);\r\n } else {\r\n Message.toast('您输入密码不正确');\r\n }\r\n }, Math.random() * 500 + 500);\r\n })\r\n },\r\n content: <div className='inputs-content'>\r\n <Input\r\n vertical\r\n title='账号'\r\n tplusInput\r\n placeholder='请输入账号'\r\n type='native'\r\n suffix='zhanghu'\r\n value={username}\r\n disabled\r\n />\r\n <Input\r\n vertical\r\n title='密码'\r\n tplusInput\r\n placeholder='请输入密码'\r\n htmlType='password'\r\n type='native'\r\n suffix='xiugaimima1'\r\n onChange={e => pass = e.target.value}\r\n inputRef={passRef}\r\n onFocus={({ target }) => {\r\n Keyboard.open(v => {\r\n const value = Keyboard.getNewValue(target, target.value, v);\r\n target.value = pass = value;\r\n }, () => {\r\n document.querySelector('.router-change-confirm .u-button-primary').click();\r\n }, () => {\r\n passRef.current.blur();\r\n Keyboard.close();\r\n })();\r\n }}\r\n />\r\n </div>\r\n });\r\n\r\n setTimeout(() => passRef.current.focus(), 100);\r\n }\r\n }, 100);\r\n })();\r\n }\r\n const { posCode } = stores.user.options.get('store') || {};\r\n\r\n return (<div\r\n style={{ display: 'inline-block', width: '100%', height: '100%', ...style }}\r\n className='head-content'\r\n data-release={`${releaseVersion} ${releaseDate}`}\r\n >\r\n <div className=\"head-content-left\">\r\n {!!logo && <div\r\n className='business-logo'\r\n onTouchStart={() => longPress()}\r\n onTouchEnd={() => longPress(true)}\r\n >{logo}</div>}\r\n {posCode && <div className='pos-code'>{posCode}</div>}\r\n </div>\r\n {['/', '/login'].includes(pathname) && headControlNode}\r\n <div className=\"head-content-right\">\r\n {memberName}\r\n {renderNode}\r\n </div>\r\n </div>);\r\n}"]}
|
|
@@ -1,213 +1,213 @@
|
|
|
1
|
-
.vertical-touch-platform {
|
|
2
|
-
.pos-header {
|
|
3
|
-
height: 120px;
|
|
4
|
-
|
|
5
|
-
&.isPortal-head {
|
|
6
|
-
.head-content-right {
|
|
7
|
-
span {
|
|
8
|
-
color: #fff;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.head-content-right {
|
|
15
|
-
span {
|
|
16
|
-
height : 100%;
|
|
17
|
-
display : block;
|
|
18
|
-
line-height: 120px;
|
|
19
|
-
font-size : 22px;
|
|
20
|
-
width : 130px;
|
|
21
|
-
float : right;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&>div {
|
|
25
|
-
float: right;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.memberHeaderDowndown {
|
|
29
|
-
background: red;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.member-name {
|
|
33
|
-
font-size : 28px;
|
|
34
|
-
color : #151515;
|
|
35
|
-
height: 120px;
|
|
36
|
-
line-height: 120px;
|
|
37
|
-
position: relative;
|
|
38
|
-
right: 20px;
|
|
39
|
-
padding-left: 20px;
|
|
40
|
-
|
|
41
|
-
.header-triangle-down {
|
|
42
|
-
top: 50%;
|
|
43
|
-
border-width: 10px 8px 0px 8px;
|
|
44
|
-
right: -16px;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.memberWord {
|
|
48
|
-
font-size : 28px;
|
|
49
|
-
color : #FF8C25;
|
|
50
|
-
padding-left: 12px;
|
|
51
|
-
padding-right: 5px;
|
|
52
|
-
width : auto !important;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.head-content-left {
|
|
58
|
-
.business-logo {
|
|
59
|
-
padding-left: 30px;
|
|
60
|
-
|
|
61
|
-
&>img.example-logo {
|
|
62
|
-
margin: 0px;
|
|
63
|
-
height: 48px;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.pos-code {
|
|
68
|
-
float : left;
|
|
69
|
-
font-size : 24px;
|
|
70
|
-
color : #333333;
|
|
71
|
-
height : 100%;
|
|
72
|
-
line-height: 120px;
|
|
73
|
-
margin-left: 10px;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.isPortal-layout {
|
|
78
|
-
.pos-code {
|
|
79
|
-
color: #fff !important;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.head-content-control {
|
|
84
|
-
padding-top: 28px;
|
|
85
|
-
|
|
86
|
-
.iconfont {
|
|
87
|
-
font-size: 34px;
|
|
88
|
-
padding : 0 15px;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.portal-content {
|
|
93
|
-
.portal-center-content {
|
|
94
|
-
transform: translate3d(0, 50%, 0);
|
|
95
|
-
top : 20%;
|
|
96
|
-
|
|
97
|
-
&>div {
|
|
98
|
-
display: inline-block;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
width: 840px;
|
|
102
|
-
|
|
103
|
-
.worktop-item {
|
|
104
|
-
border-radius: 20px;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.worktop-container-left {
|
|
108
|
-
width : 540px;
|
|
109
|
-
margin-right: 30px;
|
|
110
|
-
|
|
111
|
-
.worktop-item-cashier {
|
|
112
|
-
height: 360px;
|
|
113
|
-
|
|
114
|
-
h1 {
|
|
115
|
-
font-size: 76px;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.iconfont {
|
|
119
|
-
font-size : 140px;
|
|
120
|
-
width : 140px;
|
|
121
|
-
height : 140px;
|
|
122
|
-
margin-left: -62px;
|
|
123
|
-
margin-top : -20px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.worktop-container-right {
|
|
129
|
-
width: 270px;
|
|
130
|
-
|
|
131
|
-
.worktop-item-hardware {
|
|
132
|
-
height : 360px;
|
|
133
|
-
background-color: #F5A623;
|
|
134
|
-
padding : 28px;
|
|
135
|
-
|
|
136
|
-
h1 {
|
|
137
|
-
font-size: 34px;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.iconfont {
|
|
141
|
-
font-size: 82px;
|
|
142
|
-
bottom : 70px;
|
|
143
|
-
right : 30px;
|
|
144
|
-
width : 80px;
|
|
145
|
-
height : 80px;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.router-change-confirm {
|
|
154
|
-
.u-modal-body {
|
|
155
|
-
.u-modal-confirm-content {
|
|
156
|
-
.content1 {
|
|
157
|
-
padding: 60px 10px 10px 10px !important;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.inputs-content {
|
|
161
|
-
.tplus-input-container {
|
|
162
|
-
&:first-child {
|
|
163
|
-
margin-bottom: 30px;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.verticalTouchDropdownClass {
|
|
172
|
-
z-index: 99999999;
|
|
173
|
-
border-top-left-radius: 10px;
|
|
174
|
-
border-bottom-left-radius: 10px;
|
|
175
|
-
|
|
176
|
-
.u-dropdown-menu {
|
|
177
|
-
width : 174px;
|
|
178
|
-
margin : 5px 0 0;
|
|
179
|
-
height : 74.5px;
|
|
180
|
-
background-color: rgba(0, 0, 0, 0.65) !important;
|
|
181
|
-
|
|
182
|
-
.u-dropdown-menu-item {
|
|
183
|
-
i {
|
|
184
|
-
font-size : 25px;
|
|
185
|
-
position : absolute;
|
|
186
|
-
left : 10px;
|
|
187
|
-
top : 0px;
|
|
188
|
-
line-height: 74.5px;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
height : 74.5px !important;
|
|
192
|
-
line-height: 74.5px !important;
|
|
193
|
-
|
|
194
|
-
i,
|
|
195
|
-
span {
|
|
196
|
-
color: #fff;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
span {
|
|
200
|
-
font-size : 24px;
|
|
201
|
-
margin-left: 36px;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
&.u-dropdown-menu-item-selected {
|
|
205
|
-
background-color: rgba(0, 0, 0, .3);
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.u-dropdown-menu-item-active {
|
|
210
|
-
background-color: rgba(0, 0, 0, .3);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
1
|
+
.vertical-touch-platform {
|
|
2
|
+
.pos-header {
|
|
3
|
+
height: 120px;
|
|
4
|
+
|
|
5
|
+
&.isPortal-head {
|
|
6
|
+
.head-content-right {
|
|
7
|
+
span {
|
|
8
|
+
color: #fff;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.head-content-right {
|
|
15
|
+
span {
|
|
16
|
+
height : 100%;
|
|
17
|
+
display : block;
|
|
18
|
+
line-height: 120px;
|
|
19
|
+
font-size : 22px;
|
|
20
|
+
width : 130px;
|
|
21
|
+
float : right;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&>div {
|
|
25
|
+
float: right;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.memberHeaderDowndown {
|
|
29
|
+
background: red;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.member-name {
|
|
33
|
+
font-size : 28px;
|
|
34
|
+
color : #151515;
|
|
35
|
+
height: 120px;
|
|
36
|
+
line-height: 120px;
|
|
37
|
+
position: relative;
|
|
38
|
+
right: 20px;
|
|
39
|
+
padding-left: 20px;
|
|
40
|
+
|
|
41
|
+
.header-triangle-down {
|
|
42
|
+
top: 50%;
|
|
43
|
+
border-width: 10px 8px 0px 8px;
|
|
44
|
+
right: -16px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.memberWord {
|
|
48
|
+
font-size : 28px;
|
|
49
|
+
color : #FF8C25;
|
|
50
|
+
padding-left: 12px;
|
|
51
|
+
padding-right: 5px;
|
|
52
|
+
width : auto !important;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.head-content-left {
|
|
58
|
+
.business-logo {
|
|
59
|
+
padding-left: 30px;
|
|
60
|
+
|
|
61
|
+
&>img.example-logo {
|
|
62
|
+
margin: 0px;
|
|
63
|
+
height: 48px;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.pos-code {
|
|
68
|
+
float : left;
|
|
69
|
+
font-size : 24px;
|
|
70
|
+
color : #333333;
|
|
71
|
+
height : 100%;
|
|
72
|
+
line-height: 120px;
|
|
73
|
+
margin-left: 10px;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.isPortal-layout {
|
|
78
|
+
.pos-code {
|
|
79
|
+
color: #fff !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.head-content-control {
|
|
84
|
+
padding-top: 28px;
|
|
85
|
+
|
|
86
|
+
.iconfont {
|
|
87
|
+
font-size: 34px;
|
|
88
|
+
padding : 0 15px;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.portal-content {
|
|
93
|
+
.portal-center-content {
|
|
94
|
+
transform: translate3d(0, 50%, 0);
|
|
95
|
+
top : 20%;
|
|
96
|
+
|
|
97
|
+
&>div {
|
|
98
|
+
display: inline-block;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
width: 840px;
|
|
102
|
+
|
|
103
|
+
.worktop-item {
|
|
104
|
+
border-radius: 20px;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.worktop-container-left {
|
|
108
|
+
width : 540px;
|
|
109
|
+
margin-right: 30px;
|
|
110
|
+
|
|
111
|
+
.worktop-item-cashier {
|
|
112
|
+
height: 360px;
|
|
113
|
+
|
|
114
|
+
h1 {
|
|
115
|
+
font-size: 76px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.iconfont {
|
|
119
|
+
font-size : 140px;
|
|
120
|
+
width : 140px;
|
|
121
|
+
height : 140px;
|
|
122
|
+
margin-left: -62px;
|
|
123
|
+
margin-top : -20px;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.worktop-container-right {
|
|
129
|
+
width: 270px;
|
|
130
|
+
|
|
131
|
+
.worktop-item-hardware {
|
|
132
|
+
height : 360px;
|
|
133
|
+
background-color: #F5A623;
|
|
134
|
+
padding : 28px;
|
|
135
|
+
|
|
136
|
+
h1 {
|
|
137
|
+
font-size: 34px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.iconfont {
|
|
141
|
+
font-size: 82px;
|
|
142
|
+
bottom : 70px;
|
|
143
|
+
right : 30px;
|
|
144
|
+
width : 80px;
|
|
145
|
+
height : 80px;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.router-change-confirm {
|
|
154
|
+
.u-modal-body {
|
|
155
|
+
.u-modal-confirm-content {
|
|
156
|
+
.content1 {
|
|
157
|
+
padding: 60px 10px 10px 10px !important;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.inputs-content {
|
|
161
|
+
.tplus-input-container {
|
|
162
|
+
&:first-child {
|
|
163
|
+
margin-bottom: 30px;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.verticalTouchDropdownClass {
|
|
172
|
+
z-index: 99999999;
|
|
173
|
+
border-top-left-radius: 10px;
|
|
174
|
+
border-bottom-left-radius: 10px;
|
|
175
|
+
|
|
176
|
+
.u-dropdown-menu {
|
|
177
|
+
width : 174px;
|
|
178
|
+
margin : 5px 0 0;
|
|
179
|
+
height : 74.5px;
|
|
180
|
+
background-color: rgba(0, 0, 0, 0.65) !important;
|
|
181
|
+
|
|
182
|
+
.u-dropdown-menu-item {
|
|
183
|
+
i {
|
|
184
|
+
font-size : 25px;
|
|
185
|
+
position : absolute;
|
|
186
|
+
left : 10px;
|
|
187
|
+
top : 0px;
|
|
188
|
+
line-height: 74.5px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
height : 74.5px !important;
|
|
192
|
+
line-height: 74.5px !important;
|
|
193
|
+
|
|
194
|
+
i,
|
|
195
|
+
span {
|
|
196
|
+
color: #fff;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
span {
|
|
200
|
+
font-size : 24px;
|
|
201
|
+
margin-left: 36px;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
&.u-dropdown-menu-item-selected {
|
|
205
|
+
background-color: rgba(0, 0, 0, .3);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.u-dropdown-menu-item-active {
|
|
210
|
+
background-color: rgba(0, 0, 0, .3);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
213
|
}
|
|
@@ -196,8 +196,12 @@ var MainContainer = (0, _mobxReact.observer)(_class = (_temp = _class2 = functio
|
|
|
196
196
|
}, {
|
|
197
197
|
key: 'componentDidMount',
|
|
198
198
|
value: function componentDidMount() {
|
|
199
|
-
|
|
200
|
-
|
|
199
|
+
try {
|
|
200
|
+
this.registerHotKey();
|
|
201
|
+
this.addHotKeyChangeLister();
|
|
202
|
+
} catch (error) {
|
|
203
|
+
console.log("捕获到快捷键异常,快捷键不可用", error);
|
|
204
|
+
}
|
|
201
205
|
rx$.changeLogo.next();
|
|
202
206
|
document.body.addEventListener('focus', this.blurButton, true);
|
|
203
207
|
this.doDeeplinkingUrl();
|