react_hsbc_teller 1.2.4 → 1.2.7

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.2.4",
3
+ "version": "1.2.7",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -2,6 +2,26 @@ import Server from './server';
2
2
 
3
3
  class API extends Server{
4
4
 
5
+ async videoRecordCallback(params = {}){
6
+ // return this.axios('get', '/lang/select/2', params);
7
+ try{
8
+ let result = await this.axios('post', '/hsbc/video/record/callback', params);
9
+ console.log(result)
10
+ if(result && (result.data instanceof Object) && result.code === 200){
11
+ return result||[];
12
+ }else{
13
+ let err = {
14
+ tip: '服务异常',
15
+ response: result,
16
+ data: params,
17
+ // url: 'https://api.cangdu.org/shopro/data/products',
18
+ }
19
+ throw err;
20
+ }
21
+ }catch(err){
22
+ throw err;
23
+ }
24
+ }
5
25
  async retrieveCustomerInfoByActivityId(params = {}){
6
26
  // return this.axios('get', '/lang/select/2', params);
7
27
  try{
Binary file
@@ -248,6 +248,9 @@ function joinRoom(from, to) {
248
248
  x: {
249
249
  '-xmlns': 'http://jabber.org/protocol/muc',
250
250
  },
251
+ history: {
252
+ 'maxstanzas': '0'
253
+ }
251
254
  },
252
255
  };
253
256
  // 转化为xml
@@ -53,7 +53,7 @@ export default class foot extends Component {
53
53
  render() {
54
54
  const {clickedOcr,clickedFacial,img,isWhiteboard,cameraImg,isTranscribing ,screenName,suspendName,customerList,menus,voiceName} = this.props
55
55
  const content = (
56
- <div style={{display: 'inline-grid'}}>
56
+ <div>
57
57
  {customerList.map((item,index)=>{
58
58
  return <div key={index}className="customer" onClick={this.customerFaceClick.bind(this,item)}>
59
59
  <img className="imgClassFoot" alt="" src={require("../../assets/img/youke.png").default} />
@@ -66,16 +66,16 @@ export default class foot extends Component {
66
66
  );
67
67
  const defaultList = (
68
68
  <div className="total totalTwo">
69
- {
69
+ {/* {
70
70
  isWhiteboard&&<div className='footHover' onClick={this.switchExternal.bind(this)}>
71
71
  <div className="one">
72
- <img className="imgClass" src={require("../../assets/img/Projection_screen.png").default} alt="" />
72
+ <img className="imgClass" src={require("../../assets/img/switchExternal.png").default} alt="" />
73
73
  <div className="text">
74
74
  白板
75
75
  </div>
76
76
  </div>
77
77
  </div>
78
- }
78
+ } */}
79
79
 
80
80
  {
81
81
  menus.map((item,index)=>{
@@ -90,6 +90,16 @@ export default class foot extends Component {
90
90
  </div>
91
91
  } */}
92
92
  {
93
+ item == 'BOARD'&&<div className='footHover' onClick={this.switchExternal.bind(this)}>
94
+ <div className="one">
95
+ <img className="imgClass" src={require("../../assets/img/switchExternal.png").default} alt="" />
96
+ <div className="text">
97
+ 白板
98
+ </div>
99
+ </div>
100
+ </div>
101
+ }
102
+ {
93
103
  item == 'SHARE' && <div className="one" onClick={this.sharedScreen.bind(this)}>
94
104
  <img className="imgClass" src={require("../../assets/img/Projection_screen.png").default} alt="" />
95
105
  <div className="text">
@@ -67,6 +67,7 @@ color: #FFFFFF;
67
67
  .imgClassFoot{
68
68
  width: 25px;
69
69
  height: 25px;
70
+ margin-bottom: 3px;
70
71
  }
71
72
  .imgClass{
72
73
  width: 25px;
@@ -75,10 +76,6 @@ color: #FFFFFF;
75
76
  .listLi{
76
77
  margin-top: 4px;
77
78
  }
78
- .customer{
79
- width: 150px;
80
- height: 30px;
81
- }
82
79
  .customer:hover{
83
80
  background: #F3F3F3;
84
81
  border-radius: 8px;