react_hsbc_teller 1.1.6 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "1.1.6",
3
+ "version": "1.1.9",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -47,7 +47,9 @@ function websocketonopen() { // 连接建立之后执行send方法发送数据
47
47
  websocketsend(json2xml(steam));
48
48
  }
49
49
  function websocketonerror() { // 连接建立失败重连
50
- window.IMOpenfire('false');
50
+ window.IMOpenfire({
51
+ status: 'error'
52
+ });
51
53
  console.log('失败');
52
54
  // initWebSocket()
53
55
  }
@@ -99,11 +101,15 @@ function websocketonmessage(e) {
99
101
  } else if (undefined != jsondata.failure) {
100
102
  islogin = false;
101
103
  console.log('登录失败,用户名或者密码错误');
102
- window.IMOpenfire('false');
104
+ window.IMOpenfire({
105
+ status: 'error'
106
+ });
103
107
  } else if (undefined != jsondata.success) {
104
108
  islogin = true;
105
109
  console.log('登录成功!');
106
- window.IMOpenfire('true');
110
+ window.IMOpenfire({
111
+ status: 'success'
112
+ });
107
113
  // 发起新的流
108
114
  newopen();
109
115
  } else if (undefined != jsondata.iq) {
@@ -203,7 +209,10 @@ function websocketsend(Data) { // 数据发送
203
209
  }
204
210
  function websocketclose(e) { // 关闭
205
211
  console.log('断开连接', e);
206
- // window.IMOpenfire('false')
212
+ islogin = false;
213
+ window.IMOpenfire({
214
+ status: 'close'
215
+ })
207
216
  }
208
217
  // 发消息
209
218
  // // 发送消息 to---接收者id,from---发送者id,type---消息类型(chat--单聊,groupchat--群聊)。message--发送的消息
@@ -24,7 +24,6 @@ class Demo extends Component {
24
24
  // baseURL:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
25
25
  // resourcePath:'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
26
26
  prohibitPrompt: '无客户',
27
- voiceColor: '#333',
28
27
  titleBackground: '#40a9ff',
29
28
  titleColor: '#faad14',
30
29
  microphoneSize: 50,
@@ -47,9 +47,6 @@ export default class foot extends Component {
47
47
  inspection = ()=>{
48
48
  this.props.inspection()
49
49
  }
50
- screenSwitching =()=>{
51
- this.props.screenSwitching()
52
- }
53
50
  switchExternal=()=>{
54
51
  this.props.switchExternal()
55
52
  }
@@ -164,14 +161,6 @@ export default class foot extends Component {
164
161
  </div>
165
162
  </div>
166
163
  </div>
167
- {/* <div className='footHover' onClick={this.screenSwitching.bind(this)}>
168
- <div className="one">
169
- <img className="imgClass" src={require("../../assets/img/inspection.png").default} alt="" />
170
- <div className="text">
171
- 切换投屏
172
- </div>
173
- </div>
174
- </div> */}
175
164
  </div>
176
165
  {defaultList}
177
166