react_hsbc_teller 2.0.4 → 2.0.6-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 (73) hide show
  1. package/.babelrc +39 -39
  2. package/README.en.md +36 -36
  3. package/README.md +352 -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 -553
  11. package/packages/api/server.js +50 -50
  12. package/packages/assets/img/icon_asr.png +0 -0
  13. package/packages/assets/img/icon_env.png +0 -0
  14. package/packages/assets/img/icon_fail.jpg +0 -0
  15. package/packages/assets/img/icon_paper.png +0 -0
  16. package/packages/assets/img/icon_success.jpg +0 -0
  17. package/packages/assets/mp3/ipad_join_meeting.mp3 +0 -0
  18. package/packages/assets/mp3/ipad_leave_error.mp3 +0 -0
  19. package/packages/assets/mp3/ipad_leave_meeting.mp3 +0 -0
  20. package/packages/assets/mp3/ipad_low_power.mp3 +0 -0
  21. package/packages/assets/mp3/ipad_media_close.mp3 +0 -0
  22. package/packages/assets/mp3/media_error.mp3 +0 -0
  23. package/packages/assets/mp3/networkweak.mp3 +0 -0
  24. package/packages/assets/mp3/pip_close.mp3 +0 -0
  25. package/packages/assets/mp3/record_error.mp3 +0 -0
  26. package/packages/assets/mp3/share_stop_audio.mp3 +0 -0
  27. package/packages/common/index.esm.js +374 -374
  28. package/packages/demo/demo.js +307 -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 -212
  35. package/packages/pages/foot/foot.less +85 -84
  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.jsx +7751 -5834
  58. package/packages/pages/video/video.less +718 -625
  59. package/packages/style/index.less +1 -1
  60. package/packages/style/reset.less +345 -345
  61. package/packages/utils/asrController.js +259 -0
  62. package/packages/utils/asyncComponent.jsx +26 -26
  63. package/packages/utils/mixin.js +27 -27
  64. package/packages/utils/setRem.js +10 -10
  65. package/packages/utils/utils.js +199 -0
  66. package/public/index.html +77 -77
  67. package/src/index.js +11 -11
  68. package/src/index.less +5 -5
  69. package/tsconfig.json +11 -11
  70. package/packages/common/JKL.js +0 -61
  71. package/packages/common/XML.js +0 -271
  72. package/packages/common/websocket.js +0 -267
  73. package/packages/utils/cell.js +0 -64
@@ -1,279 +1,307 @@
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: 'wmzTeller',
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://zuul.uat.dsp.hsbcfts.com.cn/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
+ }
46
+ componentWillMount() {
47
+ }
48
+ handleChangeRoomId = (event) => {
49
+ this.setState({roomId: event.target.value});
50
+ window.localStorage.setItem('roomId', event.target.value)
51
+ }
52
+ handleChangeRToken = (event) => {
53
+ this.setState({mtoken: event.target.value});
54
+ window.localStorage.setItem('mtoken', event.target.value)
55
+ }
56
+ handleChangeSessionId = (event) => {
57
+ this.setState({sessionId: event.target.value});
58
+ window.localStorage.setItem('sessionId', event.target.value)
59
+ }
60
+ handleChangeImRoomId = (event) => {
61
+ this.setState({imRoomId: event.target.value});
62
+ window.localStorage.setItem('imRoomId', event.target.value)
63
+ }
64
+ startVideo = () => {
65
+ this.setState({
66
+ isVideo: true
67
+ })
68
+ }
69
+ onLeaveRoom = (val) => {
70
+ console.log(val)
71
+ if (val.code == 1) {
72
+ this.setState({
73
+ isVideo: false
74
+ })
75
+ }
76
+ }
77
+ handleChangeTeller = (event) => {
78
+ this.setState({
79
+ tellerAccount: event.target.value
80
+ })
81
+ }
82
+ handleChangeCall = (event) => {
83
+ this.setState({
84
+ callbackUrl: event.target.value
85
+ })
86
+ }
87
+ handleChangeBysiness = (event) => {
88
+ this.setState({
89
+ businessNumber: event.target.value
90
+ })
91
+ }
92
+
93
+ handleRoomServerUrl = (event) => {
94
+ this.setState({
95
+ roomServerUrl: event.target.value
96
+ })
97
+ }
98
+ handleBaseURL = (event) => {
99
+ this.setState({
100
+ baseURL: event.target.value
101
+ })
102
+ }
103
+ handleChangeisTranscribing = (event) => {
104
+ this.setState({
105
+ isTranscribing: event.target.value
106
+ })
107
+ }
108
+ handleResourcePath = (event) => {
109
+ this.setState({
110
+ resourcePath: event.target.value
111
+ })
112
+ }
113
+ imgCallback=(file)=>{
114
+ console.log('errorType',file)
115
+ }
116
+ shareMaskClick=()=>{
117
+ console.log(this.state.shareMask)
118
+
119
+ if(this.state.shareMask) {
120
+ this.setState({
121
+ shareMask: false
122
+ }, ()=>{
123
+ console.log(this.state.shareMask)
124
+ })
125
+ } else {
126
+ this.setState({
127
+ shareMask: true
128
+ }, ()=>{
129
+ console.log(this.state.shareMask)
130
+ })
131
+ }
132
+
133
+ }
134
+ pdfRenderingClick=()=>{
135
+ if(this.state.pdfRendering) {
136
+ this.setState({
137
+ pdfRendering: false
138
+ })
139
+ } else {
140
+ this.setState({
141
+ pdfRendering: true
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
+ componentDidCatch(error, info) {
191
+ console.log('componentDidCatch')
192
+ console.error(error, info)
193
+ }
194
+ render() {
195
+ return (
196
+ <div className="test">
197
+ {
198
+ this.state.isVideo ?
199
+ <div>
200
+ <HSBC
201
+ isOpenSound={true}
202
+ shareMask={this.state.shareMask}
203
+ pdfRendering={this.state.pdfRendering}
204
+ roomId={this.state.roomId}
205
+ mtoken={this.state.mtoken}
206
+ sessionId={this.state.sessionId}
207
+ imRoomId={this.state.imRoomId}
208
+ userSide={this.state.userSide}
209
+ whetherDetectFace={true}
210
+ whetherDetectLight={true}
211
+ whetherNeedAsr={true}
212
+ screenSharedInterval={6}
213
+ prohibitPrompt={this.state.prohibitPrompt}
214
+ voiceColor={this.state.voiceColor}
215
+ titleBackground={this.state.titleBackground}
216
+ titleColor={this.state.titleColor}
217
+ microphoneSize={this.state.microphoneSize}
218
+ fontSize={this.state.fontSize}
219
+ fontFamily={this.state.fontFamily}
220
+ tellerAccount={this.state.tellerAccount}
221
+ callbackUrl={this.state.callbackUrl}
222
+ businessNumber={this.state.businessNumber}
223
+ lang={this.state.lang}
224
+ isWeakSound={true}
225
+ roomServerUrl={this.state.roomServerUrl}
226
+ baseURL={this.state.baseURL}
227
+ resourcePath={this.state.resourcePath}
228
+ isTranscribing={this.state.isTranscribing}
229
+ meetingDuration={this.state.meetingDuration}
230
+ recordMode={this.state.recordMode}
231
+ defaultBranchCode={this.state.defaultBranchCode}
232
+ customerId={this.state.customerId}
233
+ salesBranchCode={this.state.salesBranchCode}
234
+ financialOffice={this.state.financialOffice}
235
+ onLeaveRoom={this.onLeaveRoom}
236
+ getBusinessData={() => { return { businessList: [], businessType: 'REC' } }}
237
+ createRoomCallback={this.createRoomCallback}
238
+ joinRoomCallback={this.joinRoomCallback}
239
+ imgCallback={this.imgCallback}
240
+ sfpCallback={()=>{console.log('sfpCallback success')}}
241
+ signatureCallback={(msg)=>{console.log('signatureCallback', msg)}}
242
+ OnNetworkWeak={(a, b, c)=>{console.log('OnNetworkWeak', a,b,c)}}
243
+ userExit={this.userExit}
244
+ staffPermission={this.staffPermission}
245
+ >
246
+
247
+ <Pdf></Pdf>
248
+ </HSBC>
249
+ <button onClick={this.shareMaskClick.bind(this)}>遮罩层</button>
250
+ <button onClick={this.pdfRenderingClick.bind(this)}>{this.state.pdfRendering?'继续':'暂停'}渲染</button>
251
+ </div>
252
+ :
253
+ <div>
254
+ 坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>
255
+ 回调地址:<input placeholder="请输入回调地址" value={this.state.callbackUrl} onChange={e => this.handleChangeCall(e)}></input>
256
+ 全局流水号:<input placeholder="请输入全局流水号" value={this.state.businessNumber} onChange={e => this.handleChangeBysiness(e)}></input>
257
+ 阿里服务器地址:<input placeholder="请输入阿里服务器地址" value={this.state.roomServerUrl} onChange={e => this.handleRoomServerUrl(e)}></input>
258
+ 接口地址:<input placeholder="请输入接口地址" value={this.state.baseURL} onChange={e => this.handleBaseURL(e)}></input>
259
+ 阿里资源服务地址:<input placeholder="请输入阿里资源服务地址" value={this.state.resourcePath} onChange={e => this.handleResourcePath(e)}></input>
260
+
261
+
262
+ <div>roomId: <input type="text" value={this.state.roomId} onChange={this.handleChangeRoomId} /></div>
263
+ <div>rtoken: <input type="text" value={this.state.mtoken} onChange={this.handleChangeRToken} /></div>
264
+ <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
265
+ <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
266
+ <div>isTranscribing: <input type="text" value={this.state.isTranscribing} onChange={this.handleChangeisTranscribing} /></div>
267
+ <div>userSide: <input type="text" value={this.state.userSide} onChange={this.handleChangeUserSide} /></div>
268
+ <div>meetingDuration: <input type="text" value={this.state.meetingDuration} onChange={(e)=>{this.setState({ meetingDuration: e.target.value })}} /></div>
269
+ <div>recordMode: <input type="text" value={this.state.recordMode} onChange={(e)=>{this.setState({ recordMode: e.target.value })}} /></div>
270
+ <div>defaultBranchCode: <input type="text" value={this.state.defaultBranchCode} onChange={(e)=>{this.setState({ defaultBranchCode: e.target.value })}} /></div>
271
+ <div>customerId: <input type="text" value={this.state.customerId} onChange={(e)=>{this.setState({ customerId: e.target.value })}} /></div>
272
+ <div>salesBranchCode: <input type="text" value={this.state.salesBranchCode} onChange={(e)=>{this.setState({ salesBranchCode: e.target.value })}} /></div>
273
+ <div>financialOffice: <input type="text" value={this.state.financialOffice} onChange={(e)=>{this.setState({ financialOffice: e.target.value })}} /></div>
274
+
275
+ <button className="button" onClick={this.startVideo.bind(this)}>开启视频</button>
276
+ </div>
277
+ }
278
+ </div>
279
+ // <div>
280
+ // { this.state.isPlay?
281
+ // <HSBC
282
+ // tellerAccount={this.state.tellerAccount}
283
+ // roomId={this.state.roomId}
284
+ // mtoken={this.state.mtoken}
285
+ // sessionId={this.state.sessionId}
286
+ // imRoomId={this.state.imRoomId}
287
+ // name={this.state.name}
288
+ // lang={this.state.lang}
289
+ // onLeaveRoom={this.exitRoom}
290
+ // />
291
+ // :
292
+ // <div style={{padding: '20px'}}>
293
+ // <div>账号: <input type="text" value={this.state.tellerAccount} onChange={this.handleChangeAccount} /></div>
294
+ // <div>roomId: <input type="text" value={this.state.roomId} onChange={this.handleChangeRoomId} /></div>
295
+ // <div>rtoken: <input type="text" value={this.state.mtoken} onChange={this.handleChangeRToken} /></div>
296
+ // <div>sessionId: <input type="text" value={this.state.sessionId} onChange={this.handleChangeSessionId} /></div>
297
+ // <div>imRoomId: <input type="text" value={this.state.imRoomId} onChange={this.handleChangeImRoomId} /></div>
298
+ // <div>姓名(非必填): <input type="text" value={this.state.name} onChange={this.handleChangeName} /></div>
299
+ // <div>系统语言: <input type="text" value={this.state.lang} onChange={this.handleChangeLang} /></div>
300
+ // <div><button onClick={this.joinRoom} >加入房间</button></div>
301
+ // </div>}
302
+ // </div>
303
+ );
304
+ }
305
+ }
306
+
307
+ 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;