react_hsbc_teller 2.0.6 → 2.0.8-5.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.
Files changed (74) hide show
  1. package/.babelrc +39 -39
  2. package/README.en.md +36 -36
  3. package/README.md +404 -52
  4. package/config/webpack.config.js +119 -119
  5. package/config/webpack.dev.js +108 -108
  6. package/config/webpack.prod.js +104 -104
  7. package/lib/hsbc.js +1 -1
  8. package/lib/hsbc.js.LICENSE.txt +24 -16
  9. package/package.json +110 -109
  10. package/packages/api/api.js +818 -570
  11. package/packages/api/server.js +50 -50
  12. package/packages/assets/img/icon_fail.jpg +0 -0
  13. package/packages/assets/img/icon_success.jpg +0 -0
  14. package/packages/assets/mp3/connect_error.mp3 +0 -0
  15. package/packages/assets/mp3/ipad_join_meeting.mp3 +0 -0
  16. package/packages/assets/mp3/ipad_leave_error.mp3 +0 -0
  17. package/packages/assets/mp3/ipad_leave_meeting.mp3 +0 -0
  18. package/packages/assets/mp3/ipad_low_power.mp3 +0 -0
  19. package/packages/assets/mp3/ipad_media_close.mp3 +0 -0
  20. package/packages/assets/mp3/media_error.mp3 +0 -0
  21. package/packages/assets/mp3/networkweak.mp3 +0 -0
  22. package/packages/assets/mp3/pip_close.mp3 +0 -0
  23. package/packages/assets/mp3/record_error.mp3 +0 -0
  24. package/packages/assets/mp3/share_stop_audio.mp3 +0 -0
  25. package/packages/assets/mp3/startMedia_error.mp3 +0 -0
  26. package/packages/assets/mp3/volume_error.mp3 +0 -0
  27. package/packages/common/index.esm.js +374 -374
  28. package/packages/demo/demo.js +325 -279
  29. package/packages/demo/index.js +3 -3
  30. package/packages/demo/pdf.js +94 -79
  31. package/packages/envconfig/envconfig.js +12 -12
  32. package/packages/index.js +2 -2
  33. package/packages/pages/components/step/step.jsx +25 -31
  34. package/packages/pages/foot/foot.jsx +235 -246
  35. package/packages/pages/foot/foot.less +85 -85
  36. package/packages/pages/header/header.jsx +15 -15
  37. package/packages/pages/header/header.less +51 -51
  38. package/packages/pages/index.jsx +52 -52
  39. package/packages/pages/multiModule/components/copy/agree.jsx +115 -0
  40. package/packages/pages/multiModule/components/copy/agree.less +105 -0
  41. package/packages/pages/multiModule/components/copy/copyTwo.jsx +682 -0
  42. package/packages/pages/multiModule/components/copy/copyTwo.less +180 -0
  43. package/packages/pages/multiModule/components/copy/copy_en.jsx +368 -0
  44. package/packages/pages/multiModule/components/copy/copy_en.less +145 -0
  45. package/packages/pages/multiModule/components/copy/copylist.jsx +291 -0
  46. package/packages/pages/multiModule/components/copy/copylist.less +83 -0
  47. package/packages/pages/multiModule/components/copy/risk.jsx +296 -0
  48. package/packages/pages/multiModule/components/copy/risk.less +123 -0
  49. package/packages/pages/multiModule/components/sign/signMy.jsx +308 -0
  50. package/packages/pages/multiModule/components/sign/signMy.less +128 -0
  51. package/packages/pages/multiModule/components/subscribe/subscribe.jsx +113 -0
  52. package/packages/pages/multiModule/components/subscribe/subscribe.less +82 -0
  53. package/packages/pages/multiModule/multiModule.jsx +26 -0
  54. package/packages/pages/multiModule/multiModule.less +20 -0
  55. package/packages/pages/sign/signMy.jsx +223 -221
  56. package/packages/pages/sign/signMy.less +129 -129
  57. package/packages/pages/video/video.css +667 -0
  58. package/packages/pages/video/video.jsx +8352 -6178
  59. package/packages/pages/video/video.less +724 -634
  60. package/packages/style/index.less +1 -1
  61. package/packages/style/reset.less +345 -345
  62. package/packages/utils/asrController.js +259 -0
  63. package/packages/utils/asyncComponent.jsx +26 -26
  64. package/packages/utils/mixin.js +27 -27
  65. package/packages/utils/setRem.js +10 -10
  66. package/packages/utils/utils.js +210 -0
  67. package/public/index.html +77 -77
  68. package/src/index.js +11 -11
  69. package/src/index.less +5 -5
  70. package/tsconfig.json +11 -11
  71. package/packages/common/JKL.js +0 -61
  72. package/packages/common/XML.js +0 -271
  73. package/packages/common/websocket.js +0 -267
  74. package/packages/utils/cell.js +0 -64
@@ -1,279 +1,325 @@
1
- import React, { Component } from "react";
2
- import HSBC from "../pages/index";
3
- import Pdf from './pdf.js'
4
-
5
- class Demo extends Component {
6
- state = {
7
- shareMask: false,
8
- imRoomId
9
- :
10
- "IZLZMoTxj@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
11
- sessionId
12
- :
13
- "IZLZMoTxj",
14
- mtoken
15
- :
16
- "bc084d8a922f",
17
- roomId
18
- :
19
- "663912632731275",
20
- // roomId: '',
21
- // mtoken: '',
22
- // imRoomId: '',
23
- // sessionId: '',
24
- isVideo: false,
25
- tellerAccount: 'wmzTeller',
26
- // callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
27
- callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
28
- businessNumber: '123',
29
- lang: 'zh',
30
- // roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
31
- // baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
32
- // resourcePath: 'https://counter-web.leimondata.cn:7199',
33
- roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
34
- baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
35
- resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
36
- prohibitPrompt: '无客户',
37
- titleBackground: '#40a9ff',
38
- titleColor: '#faad14',
39
- microphoneSize: 50,
40
- fontSize: 14,
41
- fontFamily: 'auto',
42
- isTranscribing: false,
43
- userSide: 2
44
- }
45
- componentWillMount() {
46
- // if(window.localStorage.getItem('roomId')) {
47
- // this.setState({roomId: window.localStorage.getItem('roomId')});
48
- // }
49
- // if(window.localStorage.getItem('mtoken')) {
50
- // this.setState({mtoken: window.localStorage.getItem('mtoken')});
51
- // }
52
- // if(window.localStorage.getItem('sessionId')) {
53
- // this.setState({sessionId: window.localStorage.getItem('sessionId')});
54
- // }
55
- // if(window.localStorage.getItem('imRoomId')) {
56
- // this.setState({imRoomId: window.localStorage.getItem('imRoomId')});
57
- // this.startVideo()
58
- // }
59
-
60
- }
61
- handleChangeRoomId = (event) => {
62
- this.setState({roomId: event.target.value});
63
- window.localStorage.setItem('roomId', event.target.value)
64
- }
65
- handleChangeRToken = (event) => {
66
- this.setState({mtoken: event.target.value});
67
- window.localStorage.setItem('mtoken', event.target.value)
68
- }
69
- handleChangeSessionId = (event) => {
70
- this.setState({sessionId: event.target.value});
71
- window.localStorage.setItem('sessionId', event.target.value)
72
- }
73
- handleChangeImRoomId = (event) => {
74
- this.setState({imRoomId: event.target.value});
75
- window.localStorage.setItem('imRoomId', event.target.value)
76
- }
77
- startVideo = () => {
78
- this.setState({
79
- isVideo: true
80
- })
81
- }
82
- onLeaveRoom = (val) => {
83
- console.log(val)
84
- this.setState({
85
- isVideo: false
86
- })
87
- }
88
- handleChangeTeller = (event) => {
89
- this.setState({
90
- tellerAccount: event.target.value
91
- })
92
- }
93
- handleChangeCall = (event) => {
94
- this.setState({
95
- callbackUrl: event.target.value
96
- })
97
- }
98
- handleChangeBysiness = (event) => {
99
- this.setState({
100
- businessNumber: event.target.value
101
- })
102
- }
103
-
104
- handleRoomServerUrl = (event) => {
105
- this.setState({
106
- roomServerUrl: event.target.value
107
- })
108
- }
109
- handleBaseURL = (event) => {
110
- this.setState({
111
- baseURL: event.target.value
112
- })
113
- }
114
- handleChangeisTranscribing = (event) => {
115
- this.setState({
116
- isTranscribing: event.target.value
117
- })
118
- }
119
- handleResourcePath = (event) => {
120
- this.setState({
121
- resourcePath: event.target.value
122
- })
123
- }
124
- imgCallback=(file)=>{
125
- console.log('errorType',file)
126
- }
127
- shareMaskClick=()=>{
128
- console.log(this.state.shareMask)
129
-
130
- if(this.state.shareMask) {
131
- this.setState({
132
- shareMask: false
133
- }, ()=>{
134
- console.log(this.state.shareMask)
135
- })
136
- } else {
137
- this.setState({
138
- shareMask: true
139
- }, ()=>{
140
- console.log(this.state.shareMask)
141
- })
142
- }
143
-
144
- }
145
- createRoomCallback=(data)=>{
146
- console.log('createRoomCallback', data)
147
- this.setState({roomId: data.data.roomId});
148
- window.localStorage.setItem('roomId', data.data.roomId)
149
- this.setState({mtoken: data.data.mtoken});
150
- window.localStorage.setItem('mtoken', data.data.mtoken)
151
- this.setState({sessionId:data.data.sessionId});
152
- window.localStorage.setItem('sessionId',data.data.sessionId)
153
- this.setState({imRoomId: data.data.imRoomId});
154
- window.localStorage.setItem('imRoomId', data.data.imRoomId)
155
- // setInterval(
156
- // () => {
157
- // console.log('isTranscribing',this.state.isTranscribing)
158
- // this.state.isTranscribing = !this.state.isTranscribing
159
- // this.setState({
160
- // isTranscribing: this.state.isTranscribing
161
- // })
162
- // console.log('isTranscribing',this.state.isTranscribing)
163
- // },
164
- // 5000
165
- // );
166
- }
167
- joinRoomCallback=(data)=>{
168
- console.log('joinRoomCallback', data)
169
- }
170
- handleChangeUserSide = (event) => {
171
- this.setState({
172
- userSide: event.target.value
173
- })
174
- }
175
- userExit =(val)=>{
176
-     console.log(val)
177
- }
178
- staffPermission=(val)=>{
179
- return new Promise((resolve, reject) => {
180
- setTimeout(() => { // 定时器
181
- if(val.staffId && val.password) {
182
- resolve('成功')
183
- } else {
184
- reject('失败')
185
- }
186
- }, 2000)
187
-
188
- })
189
- }
190
- render() {
191
- return (
192
- <div className="test">
193
- {
194
- this.state.isVideo ?
195
- <div>
196
- <HSBC
197
- shareMask={this.state.shareMask}
198
- roomId={this.state.roomId}
199
- mtoken={this.state.mtoken}
200
- sessionId={this.state.sessionId}
201
- imRoomId={this.state.imRoomId}
202
- userSide={this.state.userSide}
203
- prohibitPrompt={this.state.prohibitPrompt}
204
- voiceColor={this.state.voiceColor}
205
- titleBackground={this.state.titleBackground}
206
- titleColor={this.state.titleColor}
207
- microphoneSize={this.state.microphoneSize}
208
- fontSize={this.state.fontSize}
209
- fontFamily={this.state.fontFamily}
210
- tellerAccount={this.state.tellerAccount}
211
- callbackUrl={this.state.callbackUrl}
212
- businessNumber={this.state.businessNumber}
213
- lang={this.state.lang}
214
- roomServerUrl={this.state.roomServerUrl}
215
- baseURL={this.state.baseURL}
216
- resourcePath={this.state.resourcePath}
217
- isTranscribing={this.state.isTranscribing}
218
- onLeaveRoom={this.onLeaveRoom}
219
- createRoomCallback={this.createRoomCallback}
220
- joinRoomCallback={this.joinRoomCallback}
221
- imgCallback={this.imgCallback}
222
- userExit={this.userExit}
223
- staffPermission={this.staffPermission}
224
- >
225
-
226
- <Pdf></Pdf>
227
- </HSBC>
228
- <button onClick={this.shareMaskClick.bind(this)}>遮罩层</button>
229
- </div>
230
- :
231
- <div>
232
- 坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>
233
- 回调地址:<input placeholder="请输入回调地址" value={this.state.callbackUrl} onChange={e => this.handleChangeCall(e)}></input>
234
- 全局流水号:<input placeholder="请输入全局流水号" value={this.state.businessNumber} onChange={e => this.handleChangeBysiness(e)}></input>
235
- 阿里服务器地址:<input placeholder="请输入阿里服务器地址" value={this.state.roomServerUrl} onChange={e => this.handleRoomServerUrl(e)}></input>
236
- 接口地址:<input placeholder="请输入接口地址" value={this.state.baseURL} onChange={e => this.handleBaseURL(e)}></input>
237
- 阿里资源服务地址:<input placeholder="请输入阿里资源服务地址" value={this.state.resourcePath} onChange={e => this.handleResourcePath(e)}></input>
238
-
239
-
240
- <div>roomId: <input type="text" value={this.state.roomId} onChange={this.handleChangeRoomId} /></div>
241
- <div>rtoken: <input type="text" value={this.state.mtoken} onChange={this.handleChangeRToken} /></div>
242
- <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
243
- <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
244
- <div>isTranscribing: <input type="text" value={this.state.isTranscribing} onChange={this.handleChangeisTranscribing} /></div>
245
- <div>userSide: <input type="text" value={this.state.userSide} onChange={this.handleChangeUserSide} /></div>
246
-
247
- <button className="button" onClick={this.startVideo.bind(this)}>开启视频</button>
248
- </div>
249
- }
250
- </div>
251
- // <div>
252
- // { this.state.isPlay?
253
- // <HSBC
254
- // tellerAccount={this.state.tellerAccount}
255
- // roomId={this.state.roomId}
256
- // mtoken={this.state.mtoken}
257
- // sessionId={this.state.sessionId}
258
- // imRoomId={this.state.imRoomId}
259
- // name={this.state.name}
260
- // lang={this.state.lang}
261
- // onLeaveRoom={this.exitRoom}
262
- // />
263
- // :
264
- // <div style={{padding: '20px'}}>
265
- // <div>账号: <input type="text" value={this.state.tellerAccount} onChange={this.handleChangeAccount} /></div>
266
- // <div>roomId: <input type="text" value={this.state.roomId} onChange={this.handleChangeRoomId} /></div>
267
- // <div>rtoken: <input type="text" value={this.state.mtoken} onChange={this.handleChangeRToken} /></div>
268
- // <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
269
- // <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
270
- // <div>姓名(非必填): <input type="text" value={this.state.name} onChange={this.handleChangeName} /></div>
271
- // <div>系统语言: <input type="text" value={this.state.lang} onChange={this.handleChangeLang} /></div>
272
- // <div><button onClick={this.joinRoom} >加入房间</button></div>
273
- // </div>}
274
- // </div>
275
- );
276
- }
277
- }
278
-
279
- export default Demo;
1
+ import React, { Component } from "react";
2
+ import HSBC from "../pages/index";
3
+ import Pdf from './pdf.js'
4
+
5
+ class Demo extends Component {
6
+ state = {
7
+ shareMask: false,
8
+ imRoomId: "",
9
+ sessionId: "",
10
+ mtoken: "",
11
+ roomId: "",
12
+ // roomId: '',
13
+ // mtoken: '',
14
+ // imRoomId: '',
15
+ // sessionId: '',
16
+ pdfRendering: false,
17
+ isVideo: false,
18
+ tellerAccount: '20250528',
19
+ // callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
20
+ callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
21
+ businessNumber: '123',
22
+ lang: 'zh',
23
+ // roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
24
+ // baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
25
+ // resourcePath: 'https://counter-web.leimondata.cn:7199',
26
+ // resourcePath:'http://121.196.19.70:8027/',
27
+ roomServerUrl: 'wss://uat.mpaas.investments.hsbc.com.hk:31000/mpaas/mrtc/ws',
28
+ // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
29
+ baseURL:'https://uat.mpaas.investments.hsbc.com.hk:31000/wealth/zuul/api/leimon-counter-api',
30
+ resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
31
+ prohibitPrompt: '无客户',
32
+ titleBackground: '#40a9ff',
33
+ titleColor: '#faad14',
34
+ microphoneSize: 50,
35
+ fontSize: 14,
36
+ fontFamily: 'auto',
37
+ isTranscribing: false,
38
+ userSide: 2,
39
+ meetingDuration: 1, // 会议时长,单位小时
40
+ recordMode: 1, // 录制模式 1远程录制 2网点录制
41
+ defaultBranchCode: "BranchCode",// 员工网点缩写
42
+ customerId: "testCustomerId", //客户号
43
+ salesBranchCode: 'salesBranchCode', //网点编号(分行号)
44
+ financialOffice: "defaultOfficeId", // 理财室
45
+ audioinputNameList: ['默认值 - 外部麦克风 (Realtek(R) Audio)'],
46
+ needPreSale: true
47
+ }
48
+ componentWillMount() {
49
+ // if(window.localStorage.getItem('sessionId') && window.localStorage.getItem('sessionId') != 'null' && window.localStorage.getItem('sessionId') != 'undefined') {
50
+ // this.setState({roomId: window.localStorage.getItem('roomId')});
51
+ // this.setState({mtoken: window.localStorage.getItem('mtoken')});
52
+ // this.setState({sessionId:window.localStorage.getItem('sessionId')});
53
+ // this.setState({imRoomId: window.localStorage.getItem('imRoomId')});
54
+ // this.setState({
55
+ // isVideo: true
56
+ // })
57
+ // }
58
+
59
+ }
60
+ handleChangeRoomId = (event) => {
61
+ this.setState({roomId: event.target.value});
62
+ window.localStorage.setItem('roomId', event.target.value)
63
+ }
64
+ handleChangeRToken = (event) => {
65
+ this.setState({mtoken: event.target.value});
66
+ window.localStorage.setItem('mtoken', event.target.value)
67
+ }
68
+ handleChangeSessionId = (event) => {
69
+ this.setState({sessionId: event.target.value});
70
+ window.localStorage.setItem('sessionId', event.target.value)
71
+ }
72
+ handleChangeImRoomId = (event) => {
73
+ this.setState({imRoomId: event.target.value});
74
+ window.localStorage.setItem('imRoomId', event.target.value)
75
+ }
76
+ startVideo = () => {
77
+ this.setState({
78
+ isVideo: true
79
+ })
80
+ }
81
+ onLeaveRoom = (val) => {
82
+ console.log(val)
83
+ if (val.code == 1) {
84
+ this.setState({
85
+ isVideo: false
86
+ })
87
+ this.setState({roomId: ''});
88
+ this.setState({mtoken: ''});
89
+ this.setState({sessionId: ''});
90
+ this.setState({imRoomId: ''});
91
+ }
92
+ }
93
+ handleChangeTeller = (event) => {
94
+ this.setState({
95
+ tellerAccount: event.target.value
96
+ })
97
+ }
98
+ handleChangeCall = (event) => {
99
+ this.setState({
100
+ callbackUrl: event.target.value
101
+ })
102
+ }
103
+ handleChangeBysiness = (event) => {
104
+ this.setState({
105
+ businessNumber: event.target.value
106
+ })
107
+ }
108
+
109
+ handleRoomServerUrl = (event) => {
110
+ this.setState({
111
+ roomServerUrl: event.target.value
112
+ })
113
+ }
114
+ handleBaseURL = (event) => {
115
+ this.setState({
116
+ baseURL: event.target.value
117
+ })
118
+ }
119
+ handleChangeisTranscribing = (event) => {
120
+ this.setState({
121
+ isTranscribing: event.target.value
122
+ })
123
+ }
124
+ handleResourcePath = (event) => {
125
+ this.setState({
126
+ resourcePath: event.target.value
127
+ })
128
+ }
129
+ imgCallback=(file)=>{
130
+ console.log('errorType',file)
131
+ }
132
+ shareMaskClick=()=>{
133
+ console.log(this.state.shareMask)
134
+
135
+ if(this.state.shareMask) {
136
+ this.setState({
137
+ shareMask: false
138
+ }, ()=>{
139
+ console.log(this.state.shareMask)
140
+ })
141
+ } else {
142
+ this.setState({
143
+ shareMask: true
144
+ }, ()=>{
145
+ console.log(this.state.shareMask)
146
+ })
147
+ }
148
+
149
+ }
150
+ pdfRenderingClick=()=>{
151
+ if(this.state.pdfRendering) {
152
+ this.setState({
153
+ pdfRendering: false
154
+ })
155
+ } else {
156
+ this.setState({
157
+ pdfRendering: true
158
+ })
159
+ }
160
+ }
161
+ createRoomCallback=(data)=>{
162
+ console.log('createRoomCallback', data)
163
+ this.setState({roomId: data.data.roomId});
164
+ window.localStorage.setItem('roomId', data.data.roomId)
165
+ this.setState({mtoken: data.data.mtoken});
166
+ window.localStorage.setItem('mtoken', data.data.mtoken)
167
+ this.setState({sessionId:data.data.sessionId});
168
+ window.localStorage.setItem('sessionId',data.data.sessionId)
169
+ this.setState({imRoomId: data.data.imRoomId});
170
+ window.localStorage.setItem('imRoomId', data.data.imRoomId)
171
+ // setInterval(
172
+ // () => {
173
+ // console.log('isTranscribing',this.state.isTranscribing)
174
+ // this.state.isTranscribing = !this.state.isTranscribing
175
+ // this.setState({
176
+ // isTranscribing: this.state.isTranscribing
177
+ // })
178
+ // console.log('isTranscribing',this.state.isTranscribing)
179
+ // },
180
+ // 5000
181
+ // );
182
+ }
183
+ joinRoomCallback=(data)=>{
184
+ console.log('joinRoomCallback', data)
185
+ }
186
+ handleChangeUserSide = (event) => {
187
+ this.setState({
188
+ userSide: event.target.value
189
+ })
190
+ }
191
+ userExit =(val)=>{
192
+     console.log(val)
193
+ }
194
+ staffPermission=(val)=>{
195
+ return new Promise((resolve, reject) => {
196
+ setTimeout(() => { // 定时器
197
+ if(val.staffId && val.password) {
198
+ resolve('成功')
199
+ } else {
200
+ reject('失败')
201
+ }
202
+ }, 2000)
203
+
204
+ })
205
+ }
206
+ componentDidCatch(error, info) {
207
+ console.log('componentDidCatch')
208
+ console.error(error, info)
209
+ }
210
+ render() {
211
+ return (
212
+ <div className="test">
213
+ {
214
+ this.state.isVideo ?
215
+ <div>
216
+ <HSBC
217
+ needPreSale={this.state.needPreSale}
218
+ isOpenSound={true}
219
+ shareMask={this.state.shareMask}
220
+ pdfRendering={this.state.pdfRendering}
221
+ roomId={this.state.roomId}
222
+ mtoken={this.state.mtoken}
223
+ sessionId={this.state.sessionId}
224
+ imRoomId={this.state.imRoomId}
225
+ userSide={this.state.userSide}
226
+ whetherDetectFace={true}
227
+ whetherDetectLight={true}
228
+ whetherNeedAsr={true}
229
+ screenSharedInterval={6}
230
+ prohibitPrompt={this.state.prohibitPrompt}
231
+ voiceColor={this.state.voiceColor}
232
+ titleBackground={this.state.titleBackground}
233
+ titleColor={this.state.titleColor}
234
+ microphoneSize={this.state.microphoneSize}
235
+ fontSize={this.state.fontSize}
236
+ fontFamily={this.state.fontFamily}
237
+ tellerAccount={this.state.tellerAccount}
238
+ callbackUrl={this.state.callbackUrl}
239
+ businessNumber={this.state.businessNumber}
240
+ lang={this.state.lang}
241
+ isWeakSound={true}
242
+ roomServerUrl={this.state.roomServerUrl}
243
+ baseURL={this.state.baseURL}
244
+ resourcePath={this.state.resourcePath}
245
+ isTranscribing={this.state.isTranscribing}
246
+ meetingDuration={this.state.meetingDuration}
247
+ recordMode={this.state.recordMode}
248
+ defaultBranchCode={this.state.defaultBranchCode}
249
+ customerId={this.state.customerId}
250
+ salesBranchCode={this.state.salesBranchCode}
251
+ financialOffice={this.state.financialOffice}
252
+ audioinputNameList={this.state.audioinputNameList}
253
+ onLeaveRoom={this.onLeaveRoom}
254
+ getBusinessData={() => { return { businessList: [], businessType: 'REC' } }}
255
+ createRoomCallback={this.createRoomCallback}
256
+ joinRoomCallback={this.joinRoomCallback}
257
+ imgCallback={this.imgCallback}
258
+ sfpCallback={()=>{console.log('sfpCallback success')}}
259
+ signatureCallback={(msg)=>{console.log('signatureCallback', msg)}}
260
+ OnNetworkWeak={(a, b, c)=>{console.log('OnNetworkWeak', a,b,c)}}
261
+ userExit={this.userExit}
262
+ staffPermission={this.staffPermission}
263
+ >
264
+
265
+ <Pdf></Pdf>
266
+ </HSBC>
267
+ <button onClick={this.shareMaskClick.bind(this)}>遮罩层</button>
268
+ <button onClick={this.pdfRenderingClick.bind(this)}>{this.state.pdfRendering?'继续':'暂停'}渲染</button>
269
+ </div>
270
+ :
271
+ <div>
272
+ 坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>
273
+ 回调地址:<input placeholder="请输入回调地址" value={this.state.callbackUrl} onChange={e => this.handleChangeCall(e)}></input>
274
+ 全局流水号:<input placeholder="请输入全局流水号" value={this.state.businessNumber} onChange={e => this.handleChangeBysiness(e)}></input>
275
+ 阿里服务器地址:<input placeholder="请输入阿里服务器地址" value={this.state.roomServerUrl} onChange={e => this.handleRoomServerUrl(e)}></input>
276
+ 接口地址:<input placeholder="请输入接口地址" value={this.state.baseURL} onChange={e => this.handleBaseURL(e)}></input>
277
+ 阿里资源服务地址:<input placeholder="请输入阿里资源服务地址" value={this.state.resourcePath} onChange={e => this.handleResourcePath(e)}></input>
278
+
279
+
280
+ <div>roomId: <input type="text" value={this.state.roomId} onChange={this.handleChangeRoomId} /></div>
281
+ <div>rtoken: <input type="text" value={this.state.mtoken} onChange={this.handleChangeRToken} /></div>
282
+ <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
283
+ <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
284
+ <div>isTranscribing: <input type="text" value={this.state.isTranscribing} onChange={this.handleChangeisTranscribing} /></div>
285
+ <div>userSide: <input type="text" value={this.state.userSide} onChange={this.handleChangeUserSide} /></div>
286
+ <div>meetingDuration: <input type="text" value={this.state.meetingDuration} onChange={(e)=>{this.setState({ meetingDuration: e.target.value })}} /></div>
287
+ <div>recordMode: <input type="text" value={this.state.recordMode} onChange={(e)=>{this.setState({ recordMode: e.target.value })}} /></div>
288
+ <div>defaultBranchCode: <input type="text" value={this.state.defaultBranchCode} onChange={(e)=>{this.setState({ defaultBranchCode: e.target.value })}} /></div>
289
+ <div>customerId: <input type="text" value={this.state.customerId} onChange={(e)=>{this.setState({ customerId: e.target.value })}} /></div>
290
+ <div>salesBranchCode: <input type="text" value={this.state.salesBranchCode} onChange={(e)=>{this.setState({ salesBranchCode: e.target.value })}} /></div>
291
+ <div>financialOffice: <input type="text" value={this.state.financialOffice} onChange={(e)=>{this.setState({ financialOffice: e.target.value })}} /></div>
292
+
293
+ <button className="button" onClick={this.startVideo.bind(this)}>开启视频</button>
294
+ </div>
295
+ }
296
+ </div>
297
+ // <div>
298
+ // { this.state.isPlay?
299
+ // <HSBC
300
+ // tellerAccount={this.state.tellerAccount}
301
+ // roomId={this.state.roomId}
302
+ // mtoken={this.state.mtoken}
303
+ // sessionId={this.state.sessionId}
304
+ // imRoomId={this.state.imRoomId}
305
+ // name={this.state.name}
306
+ // lang={this.state.lang}
307
+ // onLeaveRoom={this.exitRoom}
308
+ // />
309
+ // :
310
+ // <div style={{padding: '20px'}}>
311
+ // <div>账号: <input type="text" value={this.state.tellerAccount} onChange={this.handleChangeAccount} /></div>
312
+ // <div>roomId: <input type="text" value={this.state.roomId} onChange={this.handleChangeRoomId} /></div>
313
+ // <div>rtoken: <input type="text" value={this.state.mtoken} onChange={this.handleChangeRToken} /></div>
314
+ // <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
315
+ // <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
316
+ // <div>姓名(非必填): <input type="text" value={this.state.name} onChange={this.handleChangeName} /></div>
317
+ // <div>系统语言: <input type="text" value={this.state.lang} onChange={this.handleChangeLang} /></div>
318
+ // <div><button onClick={this.joinRoom} >加入房间</button></div>
319
+ // </div>}
320
+ // </div>
321
+ );
322
+ }
323
+ }
324
+
325
+ export default Demo;
@@ -1,3 +1,3 @@
1
- import Demo from "./demo";
2
-
3
- export default Demo;
1
+ import Demo from "./demo";
2
+
3
+ export default Demo;