react_hsbc_teller 0.6.2 → 0.6.6

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.2",
3
+ "version": "0.6.6",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -54,8 +54,8 @@ export default class foot extends Component {
54
54
  const {clickedOcr,clickedFacial,isTranscribing,img,cameraImg,screenName,suspendName,customerList,menus} = this.props
55
55
  const content = (
56
56
  <div>
57
- {customerList.map((item)=>{
58
- return <div className="customer" onClick={this.customerFaceClick.bind(this,item)}>
57
+ {customerList.map((item,index)=>{
58
+ return <div key={index}className="customer" onClick={this.customerFaceClick.bind(this,item)}>
59
59
  <img className="imgClass" alt="" src={require("../../assets/img/youke.png").default} />
60
60
  <li className="listLi" key={item.customerId}>{item.name}</li>
61
61
  </div>
@@ -67,8 +67,8 @@ export default class foot extends Component {
67
67
  const defaultList = (
68
68
  <div className="total totalTwo">
69
69
  {
70
- menus.map((item)=>{
71
- return <div className='footHover'>
70
+ menus.map((item,index)=>{
71
+ return <div key={index}className='footHover'>
72
72
  {
73
73
  isTranscribing &&
74
74
  <div className="one" onClick={this.transcribingClick.bind(this)}>
@@ -1,6 +1,6 @@
1
1
  .foot{
2
2
  background: #fff;
3
- height: 60px;
3
+ height: 4rem;
4
4
  display: inline-flex;
5
5
  width: 100%;
6
6
  // margin: 10px 0;
@@ -13,9 +13,10 @@ width: 100%;
13
13
  width: 33%;
14
14
  height: 100%;
15
15
  align-items: center;
16
- margin: 10px 0;
16
+ // margin: 10px 0;
17
17
  .one{
18
- padding-top: 5px;
18
+ // padding-top: 5px;
19
+ padding: 5px 0;
19
20
  display: flex;
20
21
  line-height: 32px;
21
22
  flex-direction: column;
@@ -27,7 +28,7 @@ width: 100%;
27
28
  border-radius: 8px;
28
29
  }
29
30
  .text{
30
- margin-top: 10px;
31
+ margin-top: 8px;
31
32
  padding-bottom: 10px;
32
33
  text-align: center;
33
34
  width: 80px;
@@ -43,7 +44,7 @@ line-height: 11px;
43
44
  justify-content: center;
44
45
  }
45
46
  .totalThree{
46
- margin-top: 10px;
47
+ // margin-top: 10px;
47
48
  justify-content: flex-end;
48
49
  }
49
50
  .buttonClass{
@@ -2821,7 +2821,7 @@ class Video extends Component {
2821
2821
  <span className='labelClass'>
2822
2822
  {
2823
2823
  meetingInfo.customers.map((item, index) => {
2824
- return <label>
2824
+ return <label key={index}>
2825
2825
  {item}
2826
2826
  {
2827
2827
  meetingInfo.customers.length > 0 && index != meetingInfo.customers.length - 1 && <label>,</label>
@@ -2835,8 +2835,8 @@ class Video extends Component {
2835
2835
  const tabTitleList = (
2836
2836
  <div className="button">
2837
2837
  {
2838
- this.state.tabTitles.map((item) => {
2839
- return <div className={`${this.state.isSelect == item.value ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this, item.value)}>
2838
+ this.state.tabTitles.map((item,index) => {
2839
+ return <div key={index} className={`${this.state.isSelect == item.value ? 'selectSee' : "noSelest"}`} onClick={this.switchSelect.bind(this, item.value)}>
2840
2840
  {item.name}
2841
2841
  </div>
2842
2842
  })
@@ -2844,7 +2844,7 @@ class Video extends Component {
2844
2844
  </div>
2845
2845
  )
2846
2846
  const camera = (
2847
- <div class="cameraAnMicrophone">
2847
+ <div className="cameraAnMicrophone">
2848
2848
  {
2849
2849
  this.state.cameraList.map((item,index) => {
2850
2850
  return <div key={index}>
@@ -2863,7 +2863,7 @@ class Video extends Component {
2863
2863
  <div>
2864
2864
  {
2865
2865
  this.state.microphoneList.map((item,index) => {
2866
- return <div key={index} class="cameraAnMicrophone">
2866
+ return <div key={index} className="cameraAnMicrophone">
2867
2867
  <label className="radio">
2868
2868
  <input type="radio" name="microphone" value={item.actionid} style={{float: 'left'}} checked={this.state.microphoneValue == item.actionid} onChange={(e) => this.getMicrophoneValue(e)} /><i></i>
2869
2869
  {item.actionname}
@@ -2878,7 +2878,7 @@ class Video extends Component {
2878
2878
  <div>
2879
2879
  {
2880
2880
  this.state.speakerList.map((item,index) => {
2881
- return <div key={index} class="cameraAnMicrophone">
2881
+ return <div key={index} className="cameraAnMicrophone">
2882
2882
  {item.actionname}<br />
2883
2883
  </div>
2884
2884
  })
@@ -3368,7 +3368,7 @@ class Video extends Component {
3368
3368
  switchExternal={this.switchExternal}
3369
3369
  inspection={this.inspection}
3370
3370
  ></Foot>
3371
- <Modal cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
3371
+ <Modal key={Math.random()} cancelText="取消" okText="确定" visible={this.state.isModalVisible} onOk={this.handleOk}
3372
3372
  onCancel={this.handleCancel}>
3373
3373
  {
3374
3374
  this.state.isSuspend && <span>确定是否恢复会话?</span>
@@ -3377,13 +3377,13 @@ class Video extends Component {
3377
3377
  !this.state.isSuspend && <span>确定是否暂停会话?</span>
3378
3378
  }
3379
3379
  </Modal>
3380
- <Modal closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
3380
+ <Modal key={Math.random()} closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[
3381
3381
  <Button className="modelButtonCancel" onClick={this.handleCancelEnd}>取消</Button>,
3382
3382
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkEnd}>确定</Button>
3383
3383
  ]}>
3384
3384
  <div className='endModal'>确定是否结束会话?</div>
3385
3385
  </Modal>
3386
- <Modal title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
3386
+ <Modal key={Math.random()} title={this.state.titleModal} closable={false} centered={true} visible={this.state.isModalVisibleFacial} footer={[
3387
3387
  <Button className="modelButtonCancel" onClick={this.handleCancelFacial}>取消</Button>,
3388
3388
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkFacial}>确定</Button>
3389
3389
  ]}>
@@ -3398,18 +3398,18 @@ class Video extends Component {
3398
3398
  </div>
3399
3399
 
3400
3400
  </Modal> */}
3401
- <Modal className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
3401
+ <Modal key={Math.random()} className="modelClass" title="新增预约" closable={false} centered={true} visible={this.state.isModalVisibleInvitation} footer={[
3402
3402
  <Button className="modelButtonCancel" onClick={this.handleCancelInvitation}>取消</Button>,
3403
3403
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInvitation}>确定</Button>
3404
3404
  ]}>
3405
3405
  <div>
3406
3406
  <div className="invitationDiv">
3407
- <span class="modalSpan">员工号:</span><input type="number"className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
3407
+ <span className="modalSpan">员工号:</span><input type="number"className="inputClick" placeholder="请输入员工号" value={this.state.employeeNumber} onChange={e => this.handleChange(e)}></input>
3408
3408
  {/* <span className="invitationSpan" onClick={this.queryStaff}>查 询</span> */}
3409
3409
  <Button className="invitationSpan" type="primary" danger onClick={this.queryStaff}>查 询</Button>
3410
3410
  </div>
3411
3411
  <div className="invitationDiv">
3412
- <span class="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3412
+ <span className="modalSpan">&nbsp;&nbsp;&nbsp;姓名:</span><span>{this.state.employeeName}</span>
3413
3413
  </div>
3414
3414
  </div>
3415
3415
  {
@@ -3420,7 +3420,7 @@ class Video extends Component {
3420
3420
  }
3421
3421
 
3422
3422
  </Modal>
3423
- <Modal title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3423
+ <Modal key={Math.random()} title="签字白板" closable={false} centered={true} visible={this.state.isModalVisibleSign} footer={
3424
3424
  [
3425
3425
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkSign}>确定</Button>
3426
3426
  ]
@@ -3437,11 +3437,11 @@ class Video extends Component {
3437
3437
  ></CanvasDraw>
3438
3438
  </div>
3439
3439
  </Modal>
3440
- <Modal title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
3440
+ <Modal key={Math.random()} title="设备检测" closable={false} centered={true} visible={this.state.isModalVisibleInspection} footer={[
3441
3441
  <Button className="modelButtonCancel" onClick={this.handleCancelInspection}>取消</Button>,
3442
3442
  <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkInspection}>确定</Button>
3443
3443
  ]}>
3444
- <div class="inspection">
3444
+ <div className="inspection">
3445
3445
  <div>摄像头设备:</div>
3446
3446
  {camera}
3447
3447
  <div>麦克风设备:</div>
@@ -42,7 +42,7 @@
42
42
  font-weight: bold;
43
43
  height: 170px;
44
44
  position: relative;
45
- background: #333;
45
+ background: rgba(0, 0, 0, 0.65);
46
46
  margin-bottom: 20px;
47
47
  border-radius: 6px;
48
48
  }
@@ -166,7 +166,7 @@
166
166
  .video{
167
167
  width: 100%;
168
168
  height: 100%;
169
- background: #333;
169
+ background: rgba(0, 0, 0, 0.65);
170
170
  }
171
171
  }
172
172
  }