react_hsbc_teller 1.9.8 → 1.9.81

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 (38) hide show
  1. package/.babelrc +39 -39
  2. package/README.en.md +36 -36
  3. package/README.md +52 -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/package.json +108 -108
  9. package/packages/api/api.js +553 -553
  10. package/packages/api/server.js +50 -50
  11. package/packages/common/JKL.js +61 -61
  12. package/packages/common/XML.js +271 -271
  13. package/packages/common/index.esm.js +374 -374
  14. package/packages/common/websocket.js +267 -267
  15. package/packages/demo/demo.js +279 -279
  16. package/packages/demo/index.js +3 -3
  17. package/packages/demo/pdf.js +79 -79
  18. package/packages/envconfig/envconfig.js +12 -12
  19. package/packages/index.js +2 -2
  20. package/packages/pages/foot/foot.jsx +212 -212
  21. package/packages/pages/foot/foot.less +84 -84
  22. package/packages/pages/header/header.jsx +15 -15
  23. package/packages/pages/header/header.less +51 -51
  24. package/packages/pages/index.jsx +52 -52
  25. package/packages/pages/sign/signMy.jsx +221 -221
  26. package/packages/pages/sign/signMy.less +129 -129
  27. package/packages/pages/video/video.jsx +6768 -6756
  28. package/packages/pages/video/video.less +616 -616
  29. package/packages/style/index.less +1 -1
  30. package/packages/style/reset.less +345 -345
  31. package/packages/utils/asyncComponent.jsx +26 -26
  32. package/packages/utils/cell.js +64 -64
  33. package/packages/utils/mixin.js +27 -27
  34. package/packages/utils/setRem.js +10 -10
  35. package/public/index.html +77 -77
  36. package/src/index.js +11 -11
  37. package/src/index.less +5 -5
  38. package/tsconfig.json +11 -11
@@ -1,279 +1,279 @@
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
- "zuQwaI8vq@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
11
- sessionId
12
- :
13
- "zuQwaI8vq",
14
- mtoken
15
- :
16
- "56f7485985f4",
17
- roomId
18
- :
19
- "665293795986281",
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
+ :
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,3 +1,3 @@
1
- import Demo from "./demo";
2
-
3
- export default Demo;
1
+ import Demo from "./demo";
2
+
3
+ export default Demo;