react_hsbc_teller 0.2.0 → 0.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": "0.2.0",
3
+ "version": "0.2.4",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -24,7 +24,7 @@ export default class Server {
24
24
  _option = {
25
25
  method,
26
26
  url,
27
- baseURL: envconfig.baseURL,
27
+ baseURL: window.sessionStorage.getItem('baseURL'),
28
28
  timeout: 30000,
29
29
  params: null,
30
30
  data: params,
@@ -50,6 +50,9 @@ export default class foot extends Component {
50
50
  })
51
51
  this.props.customerFaceClick(item)
52
52
  }
53
+ switchExternal=()=>{
54
+ this.props.switchExternal()
55
+ }
53
56
  render() {
54
57
  const {isTranscribing,img,cameraImg,screenName,suspendName,customerList} = this.props
55
58
  const content = (
@@ -81,6 +84,12 @@ export default class foot extends Component {
81
84
  </div>
82
85
  </div>
83
86
  <div className="total totalTwo">
87
+ <div className="one" onClick={this.switchExternal.bind(this)}>
88
+ <img src={require("../../assets/img/huazhonghua.png").default} alt="" />
89
+ <div className="text">
90
+ 切换到RM白板
91
+ </div>
92
+ </div>
84
93
  {
85
94
  isTranscribing &&
86
95
  <div className="one" onClick={this.transcribingClick.bind(this)}>
@@ -132,6 +141,7 @@ export default class foot extends Component {
132
141
  画中画
133
142
  </div>
134
143
  </div>
144
+
135
145
  </div>
136
146
  <div className="total totalThree">
137
147
  <button className="buttonClass" onClick={this.endSession.bind(this)}>
@@ -24,6 +24,7 @@ class Main extends Component {
24
24
  window.localStorage.setItem("langData", JSON.stringify(Object.assign(res)));
25
25
  }
26
26
  componentWillMount() {
27
+ window.sessionStorage.setItem('baseURL',this.props.baseURL)
27
28
  localStorage.setItem("a_lang", this.props.lang)
28
29
  if (localStorage.getItem("langData")){
29
30
  this.setState({langPackage: JSON.parse(localStorage.getItem("langData"))})
@@ -34,6 +35,7 @@ class Main extends Component {
34
35
 
35
36
  render() {
36
37
  const lang = this.props.lang
38
+
37
39
  // console.log(this.state.langPackage[lang])
38
40
  return (
39
41
  <IntlProvider locale={lang} messages={this.state.langPackage[lang]}>
@@ -42,5 +44,9 @@ class Main extends Component {
42
44
  );
43
45
  }
44
46
  }
47
+ Main.defaultProps = {
48
+ lang: 'zh',
49
+ baseURL:'https://counter-web.leimondata.cn:18082/api/leimon-counter-api',
45
50
 
51
+ }
46
52
  export default Main