react_hsbc_teller 1.2.1 → 1.2.4

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.1",
3
+ "version": "1.2.4",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -1,6 +1,27 @@
1
1
  import Server from './server';
2
2
 
3
3
  class API extends Server{
4
+
5
+ async retrieveCustomerInfoByActivityId(params = {}){
6
+ // return this.axios('get', '/lang/select/2', params);
7
+ try{
8
+ let result = await this.axios('post', '/hsbc/retrieveCustomerInfoByActivityId', 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
+ }
4
25
  async ocrCallback(params = {}){
5
26
  // return this.axios('get', '/lang/select/2', params);
6
27
  try{
@@ -53,11 +53,11 @@ 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>
56
+ <div style={{display: 'inline-grid'}}>
57
57
  {customerList.map((item,index)=>{
58
58
  return <div key={index}className="customer" onClick={this.customerFaceClick.bind(this,item)}>
59
- <img className="imgClass" alt="" src={require("../../assets/img/youke.png").default} />
60
- <li className="listLi" key={item.customerId}>{item.name}</li>
59
+ <img className="imgClassFoot" alt="" src={require("../../assets/img/youke.png").default} />
60
+ <span className="listLi" key={item.customerId}>{item.name}</span>
61
61
  </div>
62
62
  }
63
63
  )
@@ -64,6 +64,10 @@ line-height: 11px;
64
64
  font-size: 16px;
65
65
  color: #FFFFFF;
66
66
  }
67
+ .imgClassFoot{
68
+ width: 25px;
69
+ height: 25px;
70
+ }
67
71
  .imgClass{
68
72
  width: 25px;
69
73
  height: 25px;
@@ -72,5 +76,10 @@ color: #FFFFFF;
72
76
  margin-top: 4px;
73
77
  }
74
78
  .customer{
75
- display: inline-flex
79
+ width: 150px;
80
+ height: 30px;
81
+ }
82
+ .customer:hover{
83
+ background: #F3F3F3;
84
+ border-radius: 8px;
76
85
  }