react_hsbc_teller 0.6.7 → 0.6.8

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": "0.6.7",
3
+ "version": "0.6.8",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -1,6 +1,26 @@
1
1
  import Server from './server';
2
2
 
3
3
  class API extends Server{
4
+ async sendEmail(params = {}){
5
+ // return this.axios('get', '/lang/select/2', params);
6
+ try{
7
+ let result = await this.axios('post', '/hsbc/sendEmail', params);
8
+ console.log(result)
9
+ if(result && (result.data instanceof Object) && result.code === 200){
10
+ return result||[];
11
+ }else{
12
+ let err = {
13
+ tip: '服务异常',
14
+ response: result,
15
+ data: params,
16
+ // url: 'https://api.cangdu.org/shopro/data/products',
17
+ }
18
+ throw err;
19
+ }
20
+ }catch(err){
21
+ throw err;
22
+ }
23
+ }
4
24
  async appGetUsername(params = {}){
5
25
  // return this.axios('get', '/lang/select/2', params);
6
26
  try{
@@ -46,8 +46,8 @@ class Main extends Component {
46
46
  }
47
47
  Main.defaultProps = {
48
48
  lang: 'zh',
49
- // baseURL: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
50
- baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
49
+ baseURL: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/zuul/api/leimon-counter-api',
50
+ // baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
51
51
 
52
52
  }
53
53
  export default Main
@@ -2496,7 +2496,10 @@ class Video extends Component {
2496
2496
  };
2497
2497
  invitationClick = () => {
2498
2498
  this.setState({
2499
- isModalVisibleInvitation: true
2499
+ isModalVisibleInvitation: true,
2500
+ employeeNumber: '',
2501
+ employeeName: '',
2502
+ employeeError: ''
2500
2503
  })
2501
2504
 
2502
2505
  }
@@ -2506,9 +2509,9 @@ class Video extends Component {
2506
2509
  return
2507
2510
  }
2508
2511
  try {
2509
- let result = await API.sendLink({
2510
- sessionId: this.state.sessionId,
2511
- userId: this.state.employeeNumber
2512
+ let result = await API.sendEmail({
2513
+ staffId: this.state.employeeNumber,
2514
+ activityId: this.props.businessNumber
2512
2515
  });
2513
2516
  if (result.code == 200) {
2514
2517
  this.messageClick('发送成功','success')
@@ -2690,8 +2693,8 @@ class Video extends Component {
2690
2693
  console.log(result)
2691
2694
  if (result.code == 200) {
2692
2695
  this.setState({
2693
- employeeName: result.data.username,
2694
- employeeError: '',
2696
+ employeeName: result.data.staffName,
2697
+ employeeError: result.data.staffName ? '' : '查无此人',
2695
2698
  })
2696
2699
  } else {
2697
2700
  this.messageClick('查询失败','error')
@@ -2699,7 +2702,7 @@ class Video extends Component {
2699
2702
  } catch (err) {
2700
2703
  console.log(err)
2701
2704
  this.setState({
2702
- employeeError: '未搜索到相关信息'
2705
+ employeeError: '查无此人'
2703
2706
  })
2704
2707
  }
2705
2708
  }
@@ -3367,7 +3370,7 @@ class Video extends Component {
3367
3370
  switchExternal={this.switchExternal}
3368
3371
  inspection={this.inspection}
3369
3372
  ></Foot>
3370
- <Modal key={Math.random()} cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
3373
+ <Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
3371
3374
  onCancel={this.handleCancel}>
3372
3375
  {
3373
3376
  this.state.isSuspend && <span>确定是否恢复会话?</span>
@@ -3376,15 +3379,19 @@ class Video extends Component {
3376
3379
  !this.state.isSuspend && <span>确定是否暂停会话?</span>
3377
3380
  }
3378
3381
  </Modal>
3379
- <Modal key={Math.random()} closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
3380
- <Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>,
3382
+ <Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
3383
+ <div key='end'>
3384
+ <Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>
3381
3385
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkEnd}>确定</Button>
3386
+ </div>
3382
3387
  ]}>
3383
3388
  <div className='endModal'>确定是否结束会话?</div>
3384
3389
  </Modal>
3385
- <Modal key={Math.random()} title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
3386
- <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>,
3390
+ <Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
3391
+ <div key='facial'>
3392
+ <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>
3387
3393
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
3394
+ </div>
3388
3395
  ]}>
3389
3396
  <div className="faceBody">
3390
3397
  <img className="faceImg" src={this.state.facialImg} alt=""></img>
@@ -3397,9 +3404,11 @@ class Video extends Component {
3397
3404
  </div>
3398
3405
 
3399
3406
  </Modal> */}
3400
- <Modal key={Math.random()} className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
3401
- <Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>,
3407
+ <Modal className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
3408
+ <div key='invitation'>
3409
+ <Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>
3402
3410
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInvitation}>确定</Button>
3411
+ </div>
3403
3412
  ]}>
3404
3413
  <div>
3405
3414
  <div className="invitationDiv">
@@ -3419,9 +3428,11 @@ class Video extends Component {
3419
3428
  }
3420
3429
 
3421
3430
  </Modal>
3422
- <Modal key={Math.random()} title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3431
+ <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3423
3432
  [
3433
+ <div key='okSign'>
3424
3434
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
3435
+ </div>
3425
3436
  ]
3426
3437
  }>
3427
3438
  <div className="content">
@@ -3436,9 +3447,11 @@ class Video extends Component {
3436
3447
  ></CanvasDraw>
3437
3448
  </div>
3438
3449
  </Modal>
3439
- <Modal key={Math.random()} title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
3440
- <Button className="modelButtonCancel" onClick={this.handleCancelInspection}>取消</Button>,
3450
+ <Modal title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
3451
+ <div key='inspection'>
3452
+ <Button className="modelButtonCancel" onClick={this.handleCancelInspection}>取消</Button>
3441
3453
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInspection}>确定</Button>
3454
+ </div>
3442
3455
  ]}>
3443
3456
  <div className="inspection">
3444
3457
  <div>摄像头设备:</div>
@@ -3458,11 +3471,11 @@ Video.defaultProps = {
3458
3471
  tellerAccount: 't001',
3459
3472
  businessNumber: '123',
3460
3473
  callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
3461
- // roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3462
- roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3474
+ roomServerUrl: 'wss://app.uat.dsp.hsbcfts.com.cn/mpaas/mrtc/ws',
3475
+ // roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
3463
3476
 
3464
- resourcePath: 'https://counter-web.leimondata.cn:7199',
3465
- // resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3477
+ // resourcePath: 'https://counter-web.leimondata.cn:7199',
3478
+ resourcePath: 'https://zuul.uat.dsp.hsbcfts.com.cn/wealth/js/',
3466
3479
  prohbiitPrompt: '当前无客户',
3467
3480
  voiceColor: '#0AE544',
3468
3481
  titleBackground: 'rgba(0,0,0,0.65)',