react_hsbc_teller 1.0.7 → 1.1.0

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.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from "react";
2
2
  import HSBC from "../pages/index";
3
+ import Pdf from './pdf.js'
3
4
 
4
5
  class Demo extends Component {
5
6
  state = {
@@ -169,7 +170,7 @@ joinRoomCallback=(data)=>{
169
170
  imgCallback={this.imgCallback}
170
171
  >
171
172
 
172
- {/* <Pdf></Pdf> */}
173
+ <Pdf></Pdf>
173
174
  </HSBC>
174
175
  :
175
176
  <div>
@@ -0,0 +1,78 @@
1
+ import React, { Component } from "react";
2
+
3
+ class pdf extends Component {
4
+ state = {
5
+ isVideo: false,
6
+ tellerAccount: '',
7
+ callbackUrl: 'http://47.102.126.132:8720/hsbc/callback',
8
+ businessNumber: '',
9
+ lang: 'zh',
10
+ roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
11
+ baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
12
+ resourcePath:'https://counter-web.leimondata.cn:7199',
13
+ }
14
+ startVideo = () => {
15
+ this.setState({
16
+ isVideo: true
17
+ })
18
+ }
19
+ onLeaveRoom = (val) => {
20
+ console.log(val)
21
+ this.setState({
22
+ isVideo: false
23
+ })
24
+ }
25
+ handleChangeTeller = (event) => {
26
+ this.setState({
27
+ tellerAccount: event.target.value
28
+ })
29
+ }
30
+ handleChangeCall = (event) => {
31
+ this.setState({
32
+ callbackUrl: event.target.value
33
+ })
34
+ }
35
+ handleChangeBysiness = (event) => {
36
+ this.setState({
37
+ businessNumber: event.target.value
38
+ })
39
+ }
40
+
41
+ handleRoomServerUrl = (event) => {
42
+ this.setState({
43
+ roomServerUrl: event.target.value
44
+ })
45
+ }
46
+ handleBaseURL = (event) => {
47
+ this.setState({
48
+ baseURL: event.target.value
49
+ })
50
+ }
51
+ handleResourcePath = (event) => {
52
+ this.setState({
53
+ resourcePath: event.target.value
54
+ })
55
+ }
56
+
57
+ render() {
58
+ return (
59
+ <div className="test">
60
+ {
61
+ <div>
62
+ 坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>
63
+ 回调地址:<input placeholder="请输入回调地址" value={this.state.callbackUrl} onChange={e => this.handleChangeCall(e)}></input>
64
+ 全局流水号:<input placeholder="请输入全局流水号" value={this.state.businessNumber} onChange={e => this.handleChangeBysiness(e)}></input>
65
+ 阿里服务器地址:<input placeholder="请输入阿里服务器地址" value={this.state.roomServerUrl} onChange={e => this.handleRoomServerUrl(e)}></input>
66
+ 接口地址:<input placeholder="请输入接口地址" value={this.state.baseURL} onChange={e => this.handleBaseURL(e)}></input>
67
+ 阿里资源服务地址:<input placeholder="请输入阿里资源服务地址" value={this.state.resourcePath} onChange={e => this.handleResourcePath(e)}></input>
68
+
69
+ <button className="button" onClick={this.startVideo.bind(this)}>开启视频</button>
70
+ </div>
71
+ }
72
+ </div>
73
+ );
74
+ }
75
+ }
76
+
77
+
78
+ export default pdf;
@@ -113,7 +113,7 @@ export default class foot extends Component {
113
113
  item == 'INVITE' && <div className="one" onClick={this.invitationClick.bind(this)}>
114
114
  <img className="imgClass" src={require("../../assets/img/icon_invitation.png").default} alt="" />
115
115
  <div className="text">
116
- 会议邀请
116
+ 邀请参会者
117
117
  </div>
118
118
  </div>
119
119
  }
@@ -123,7 +123,7 @@ export default class foot extends Component {
123
123
  item == 'PIP' && <div className="one" onClick={this.pictureInPicture.bind(this)}>
124
124
  <img className="imgClass" src={require("../../assets/img/huazhonghua.png").default} alt="" />
125
125
  <div className="text">
126
- 画中画
126
+ 开启视频画中画
127
127
  </div>
128
128
  </div>
129
129
  }
@@ -149,7 +149,7 @@ export default class foot extends Component {
149
149
  <div className="one">
150
150
  <img className="imgClass" src={require("../../assets/img/inspection.png").default} alt="" />
151
151
  <div className="text">
152
- 设备检测
152
+ 设置视频设备
153
153
  </div>
154
154
  </div>
155
155
  </div>
@@ -166,7 +166,7 @@ export default class foot extends Component {
166
166
 
167
167
  <div className="total totalThree">
168
168
  <button className="buttonClass" onClick={this.endSession.bind(this)}>
169
- <span className="spanClass">结束</span>
169
+ <span className="spanClass">结束会议</span>
170
170
  </button>
171
171
  </div>
172
172
  </div>
@@ -23,6 +23,9 @@ width: 100%;
23
23
  align-items: center;
24
24
  flex-wrap: nowrap;
25
25
  }
26
+ .footHover{
27
+ margin: 0 5px;
28
+ }
26
29
  .footHover :hover{
27
30
  background: #F3F3F3;
28
31
  border-radius: 8px;
@@ -31,7 +34,8 @@ width: 100%;
31
34
  margin-top: 8px;
32
35
  padding-bottom: 10px;
33
36
  text-align: center;
34
- width: 80px;
37
+ max-width: 110px;
38
+ min-width: 80px;
35
39
  height: 11px;
36
40
  font-size: 14px;
37
41
  font-family: PingFangSC-Regular, PingFang SC;
@@ -50,7 +54,7 @@ line-height: 11px;
50
54
  .buttonClass{
51
55
  font-size: 16px;
52
56
  color: #ffffff;
53
- width: 70px;
57
+ width: 90px;
54
58
  height: 32px;
55
59
  background: #B70000;
56
60
  border-radius: 6px;
@@ -8,7 +8,7 @@ export default class header extends Component {
8
8
  return(
9
9
  <div className="Hamburger">
10
10
  <div className="left-header">
11
- <div className="title">汇丰银行营业厅</div>
11
+ <div className="title">汇丰银行远程会议</div>
12
12
  </div>
13
13
  </div>
14
14
  )