react_hsbc_teller 1.4.9 → 1.4.21

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.4.9",
3
+ "version": "1.4.21",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -1,26 +1,6 @@
1
1
  import Server from './server';
2
2
 
3
3
  class API extends Server{
4
-
5
- async rateAll(params = {}){
6
- // return this.axios('get', '/lang/select/2', params);
7
- try{
8
- let result = await this.axios('get', '/hsbc/rate/all', params);
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
- }
24
4
  async getBase64Image(params = {}){
25
5
  // return this.axios('get', '/lang/select/2', params);
26
6
  try{
@@ -4,22 +4,17 @@ import Pdf from './pdf.js'
4
4
 
5
5
  class Demo extends Component {
6
6
  state = {
7
- shareMask: false,
8
- mtoken: "84d0410ab406",
9
-
10
- roomId: "651114052525526",
11
-
12
- imRoomId: "VPP0Ejwae@conference.openfire2.leimondata.cn",
13
-
14
- sessionId: "VPP0Ejwae",
15
- // roomId: '',
16
- // mtoken: '',
17
- // imRoomId: '',
18
- // sessionId: '',
7
+ // imRoomId: "9K9ea1vOM@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
8
+ // sessionId: "9K9ea1vOM",
9
+ // mtoken: "d4e648858b03",
10
+ // roomId: "645110140224386",
11
+ roomId: '',
12
+ mtoken: '',
13
+ imRoomId: '',
14
+ sessionId: '',
19
15
  isVideo: false,
20
16
  tellerAccount: '00000000',
21
17
  callbackUrl: 'http://182.92.184.31:8720/hsbc/callback',
22
- // callbackUrl: 'https://aag.wealth-platform.uat.ali.cloud.cn.hsbc/nosaml/api/appointment/wealth/api/v1/appointment/ali/createMeetingRoom',
23
18
  businessNumber: '',
24
19
  lang: 'zh',
25
20
  roomServerUrl: 'wss://mrtc.mpaas.cn-hangzhou.aliyuncs.com/ws',
@@ -116,25 +111,7 @@ handleResourcePath = (event) => {
116
111
  })
117
112
  }
118
113
  imgCallback=(file)=>{
119
- console.log('errorType',file)
120
- }
121
- shareMaskClick=()=>{
122
- console.log(this.state.shareMask)
123
-
124
- if(this.state.shareMask) {
125
- this.setState({
126
- shareMask: false
127
- }, ()=>{
128
- console.log(this.state.shareMask)
129
- })
130
- } else {
131
- this.setState({
132
- shareMask: true
133
- }, ()=>{
134
- console.log(this.state.shareMask)
135
- })
136
- }
137
-
114
+ console.log(file)
138
115
  }
139
116
  createRoomCallback=(data)=>{
140
117
  console.log('createRoomCallback', data)
@@ -166,9 +143,7 @@ joinRoomCallback=(data)=>{
166
143
  <div className="test">
167
144
  {
168
145
  this.state.isVideo ?
169
- <div>
170
146
  <HSBC
171
- shareMask={this.state.shareMask}
172
147
  roomId={this.state.roomId}
173
148
  mtoken={this.state.mtoken}
174
149
  sessionId={this.state.sessionId}
@@ -196,8 +171,6 @@ joinRoomCallback=(data)=>{
196
171
 
197
172
  <Pdf></Pdf>
198
173
  </HSBC>
199
- <button onClick={this.shareMaskClick.bind(this)}>遮罩层</button>
200
- </div>
201
174
  :
202
175
  <div>
203
176
  坐席账号:<input placeholder="请输入坐席账号" value={this.state.tellerAccount} onChange={e => this.handleChangeTeller(e)}></input>