react_hsbc_teller 0.3.5 → 0.3.9

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.
@@ -11,6 +11,27 @@
11
11
  * @license MIT
12
12
  */
13
13
 
14
+ /*!
15
+ * html2canvas 1.4.0 <https://html2canvas.hertzen.com>
16
+ * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
17
+ * Released under MIT License
18
+ */
19
+
20
+ /*! *****************************************************************************
21
+ Copyright (c) Microsoft Corporation.
22
+
23
+ Permission to use, copy, modify, and/or distribute this software for any
24
+ purpose with or without fee is hereby granted.
25
+
26
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
27
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
28
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
29
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
30
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
31
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
32
+ PERFORMANCE OF THIS SOFTWARE.
33
+ ***************************************************************************** */
34
+
14
35
  /*! *****************************************************************************
15
36
  Copyright (c) Microsoft Corporation.
16
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "0.3.5",
3
+ "version": "0.3.9",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -87,6 +87,7 @@
87
87
  "@babel/plugin-proposal-decorators": "^7.16.4",
88
88
  "antd": "^4.16.13",
89
89
  "axios": "0.19.0",
90
+ "html2canvas": "^1.4.0",
90
91
  "react": "^17.0.1",
91
92
  "react-canvas-draw": "^1.1.1",
92
93
  "react-dom": "^17.0.1",
@@ -1,6 +1,26 @@
1
1
  import Server from './server';
2
2
 
3
3
  class API extends Server{
4
+ async appGetUsername(params = {}){
5
+ // return this.axios('get', '/lang/select/2', params);
6
+ try{
7
+ let result = await this.axios('get', '/app/getUsername?userId=' + params.userId, params);
8
+ console.log(result)
9
+ if(result && (result.data instanceof Object) && result.code === 200){
10
+ return result||[];
11
+ }else{
12
+ let err = {
13
+ tip: '服务异常',
14
+ response: result,
15
+ data: params,
16
+ // url: 'https://api.cangdu.org/shopro/data/products',
17
+ }
18
+ throw err;
19
+ }
20
+ }catch(err){
21
+ throw err;
22
+ }
23
+ }
4
24
  /**
5
25
  * 用途:获取语言
6
26
  * 返回http_code为200表示成功
@@ -48,7 +48,7 @@ export default class foot extends Component {
48
48
  this.props.ocrHandleVisibleChange(visible)
49
49
  };
50
50
  render() {
51
- const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList} = this.props
51
+ const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus} = this.props
52
52
  const content = (
53
53
  <div>
54
54
  {customerList.map((item)=>{
@@ -61,6 +61,72 @@ export default class foot extends Component {
61
61
  }
62
62
  </div>
63
63
  );
64
+ const defaultList = (
65
+ <div className="total totalTwo">
66
+ {
67
+ menus.map((item)=>{
68
+ return <span>
69
+ {
70
+ isTranscribing &&
71
+ <div className="one" onClick={this.transcribingClick.bind(this)}>
72
+ <img className="imgClass"src={require("../../assets/img/icon_copy.png").default} alt="" />
73
+ <div className="text">
74
+ 签字
75
+ </div>
76
+ </div>
77
+ }
78
+ {
79
+ item == 'SHARE' && <div className="one" onClick={this.sharedScreen.bind(this)}>
80
+ <img className="imgClass" src={require("../../assets/img/Projection_screen.png").default} alt="" />
81
+ <div className="text">
82
+ {screenName}
83
+ </div>
84
+ </div>
85
+ }
86
+ {
87
+ item == 'FRIES' && <Popover content={content} trigger="click" visible={clickedFacial} onVisibleChange={this.facialHandleVisibleChange}>
88
+ <div className="one" onClick={this.facialRecognition.bind(this)}>
89
+ <img className="imgClass" src={require("../../assets/img/Face_recognition.png").default} alt="" />
90
+ <div className="text">
91
+ 人脸识别
92
+ </div>
93
+ </div>
94
+ </Popover>
95
+ }
96
+ {
97
+ item == 'OCR' && <Popover content={content} trigger="click" visible={clickedOcr} onVisibleChange={this.ocrHandleVisibleChange}>
98
+ <div className="one" onClick={this.ocrClick.bind(this)}>
99
+ <img className="imgClass" src={require("../../assets/img/icon_ocr.png").default} alt="" />
100
+ <div className="text">
101
+ OCR识别
102
+ </div>
103
+ </div>
104
+ </Popover>
105
+ }
106
+ {
107
+ item == 'INVITE' && <div className="one" onClick={this.invitationClick.bind(this)}>
108
+ <img className="imgClass" src={require("../../assets/img/icon_invitation.png").default} alt="" />
109
+ <div className="text">
110
+ 邀请
111
+ </div>
112
+ </div>
113
+ }
114
+
115
+
116
+ {
117
+ item == 'PIP' && <div className="one" onClick={this.pictureInPicture.bind(this)}>
118
+ <img className="imgClass" src={require("../../assets/img/huazhonghua.png").default} alt="" />
119
+ <div className="text">
120
+ 画中画
121
+ </div>
122
+ </div>
123
+ }
124
+ </span>
125
+
126
+ })
127
+ }
128
+ </div>
129
+ );
64
130
  return (
65
131
  <div className="foot">
66
132
  <div className="total">
@@ -70,73 +136,15 @@ export default class foot extends Component {
70
136
  静音
71
137
  </div>
72
138
  </div>
73
- <div className="one" onClick={this.cameraClick.bind(this)}>
139
+ {/* <div className="one" onClick={this.cameraClick.bind(this)}>
74
140
  <img className="imgClass" src={cameraImg} alt="" />
75
141
  <div className="text">
76
142
  摄像头
77
143
  </div>
78
- </div>
79
- </div>
80
- <div className="total totalTwo">
81
- {/* <div className="one" onClick={this.switchExternal.bind(this)}>
82
- <img src={require("../../assets/img/huazhonghua.png").default} alt="" />
83
- <div className="text">
84
- 切换到RM白板
85
- </div>
86
- </div> */}
87
- {
88
- isTranscribing &&
89
- <div className="one" onClick={this.transcribingClick.bind(this)}>
90
- <img className="imgClass"src={require("../../assets/img/icon_copy.png").default} alt="" />
91
- <div className="text">
92
- 签字
93
- </div>
94
- </div>
95
- }
96
- <div className="one" onClick={this.sharedScreen.bind(this)}>
97
- <img className="imgClass" src={require("../../assets/img/Projection_screen.png").default} alt="" />
98
- <div className="text">
99
- {screenName}
100
- </div>
101
- </div>
102
- {/* <div className="one" onClick={this.suspend.bind(this)}>
103
- <img className="imgClass" src={require("../../assets/img/icon_suspend.png").default} alt="" />
104
- <div className="text">
105
- {suspendName}
106
- </div>
107
144
  </div> */}
108
- <Popover content={content} trigger="click" visible={clickedFacial} onVisibleChange={this.facialHandleVisibleChange}>
109
- <div className="one" onClick={this.facialRecognition.bind(this)}>
110
- <img className="imgClass" src={require("../../assets/img/Face_recognition.png").default} alt="" />
111
- <div className="text">
112
- 人脸识别
113
- </div>
114
- </div>
115
- </Popover>
116
-
117
- <div className="one" onClick={this.invitationClick.bind(this)}>
118
- <img className="imgClass" src={require("../../assets/img/icon_invitation.png").default} alt="" />
119
- <div className="text">
120
- 邀请
121
- </div>
122
- </div>
123
- <Popover content={content} trigger="click" visible={clickedOcr} onVisibleChange={this.ocrHandleVisibleChange}>
124
- <div className="one" onClick={this.ocrClick.bind(this)}>
125
- <img className="imgClass" src={require("../../assets/img/icon_ocr.png").default} alt="" />
126
- <div className="text">
127
- OCR识别
128
- </div>
129
- </div>
130
- </Popover>
131
-
132
- <div className="one" onClick={this.pictureInPicture.bind(this)}>
133
- <img className="imgClass" src={require("../../assets/img/huazhonghua.png").default} alt="" />
134
- <div className="text">
135
- 画中画
136
- </div>
137
- </div>
138
-
139
145
  </div>
146
+ {defaultList}
147
+
140
148
  <div className="total totalThree">
141
149
  <button className="buttonClass" onClick={this.endSession.bind(this)}>
142
150
  <span className="spanClass">结束</span>
@@ -1,6 +1,6 @@
1
1
  .foot{
2
2
  background: #fff;
3
- height: 78px;
3
+ height: 58px;
4
4
  display: inline-flex;
5
5
  width: 100%;
6
6
  // position: absolute;