react_hsbc_teller 2.0.2 → 2.0.4-6.1

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.
Files changed (46) hide show
  1. package/lib/hsbc.js +1 -1
  2. package/lib/hsbc.js.LICENSE.txt +11 -0
  3. package/package.json +2 -1
  4. package/packages/api/api.js +267 -2
  5. package/packages/assets/img/icon_asr.png +0 -0
  6. package/packages/assets/img/icon_env.png +0 -0
  7. package/packages/assets/img/icon_fail.jpg +0 -0
  8. package/packages/assets/img/icon_paper.png +0 -0
  9. package/packages/assets/img/icon_success.jpg +0 -0
  10. package/packages/assets/mp3/ipad_join_meeting.mp3 +0 -0
  11. package/packages/assets/mp3/ipad_leave_error.mp3 +0 -0
  12. package/packages/assets/mp3/ipad_leave_meeting.mp3 +0 -0
  13. package/packages/assets/mp3/ipad_low_power.mp3 +0 -0
  14. package/packages/assets/mp3/networkweak.mp3 +0 -0
  15. package/packages/assets/mp3/pip_close.mp3 +0 -0
  16. package/packages/assets/mp3/record_error.mp3 +0 -0
  17. package/packages/demo/demo.js +52 -18
  18. package/packages/demo/pdf.js +16 -1
  19. package/packages/pages/foot/foot.jsx +29 -6
  20. package/packages/pages/foot/foot.less +1 -0
  21. package/packages/pages/header/header.jsx +1 -1
  22. package/packages/pages/multiModule/components/copy/agree.jsx +115 -0
  23. package/packages/pages/multiModule/components/copy/agree.less +105 -0
  24. package/packages/pages/multiModule/components/copy/copyTwo.jsx +666 -0
  25. package/packages/pages/multiModule/components/copy/copyTwo.less +180 -0
  26. package/packages/pages/multiModule/components/copy/copy_en.jsx +368 -0
  27. package/packages/pages/multiModule/components/copy/copy_en.less +145 -0
  28. package/packages/pages/multiModule/components/copy/copylist.jsx +291 -0
  29. package/packages/pages/multiModule/components/copy/copylist.less +83 -0
  30. package/packages/pages/multiModule/components/copy/risk.jsx +296 -0
  31. package/packages/pages/multiModule/components/copy/risk.less +123 -0
  32. package/packages/pages/multiModule/components/sign/signMy.jsx +308 -0
  33. package/packages/pages/multiModule/components/sign/signMy.less +128 -0
  34. package/packages/pages/multiModule/components/subscribe/subscribe.jsx +113 -0
  35. package/packages/pages/multiModule/components/subscribe/subscribe.less +82 -0
  36. package/packages/pages/multiModule/multiModule.jsx +26 -0
  37. package/packages/pages/multiModule/multiModule.less +20 -0
  38. package/packages/pages/sign/signMy.jsx +2 -0
  39. package/packages/pages/video/video.jsx +2431 -717
  40. package/packages/pages/video/video.less +92 -2
  41. package/packages/utils/asrController.js +246 -0
  42. package/packages/utils/utils.js +122 -0
  43. package/packages/common/JKL.js +0 -61
  44. package/packages/common/XML.js +0 -271
  45. package/packages/common/websocket.js +0 -267
  46. package/packages/utils/cell.js +0 -64
@@ -0,0 +1,115 @@
1
+ import React, { Component } from 'react';
2
+ import { Checkbox, message } from 'antd';
3
+ import { FormattedMessage, injectIntl } from 'react-intl';
4
+ import './agree.less'
5
+ import Modal from "antd/lib/modal";
6
+ import 'antd/lib/modal/style'
7
+ import { Button } from '../../../../../node_modules/antd/lib/index';
8
+ @injectIntl
9
+ class Agree extends Component {
10
+ state = {
11
+ isModalVisibleEnd: false,
12
+ // item: {
13
+ // "type":"1",
14
+ // "sequence":"2",
15
+ // "subContent":[
16
+ // {
17
+ // "desc":"描述1",
18
+ // "option":false
19
+ // },
20
+ // {
21
+ // "desc":"描述2",
22
+ // "option":false
23
+ // }
24
+ // ]
25
+ // },
26
+ list: []
27
+ };
28
+
29
+ componentDidMount() {
30
+ this.setState({
31
+ list: this.props.item.subContent
32
+ })
33
+ }
34
+
35
+ onChange = (e) => {
36
+ this.state.list[e.target.index].option = e.target.checked;
37
+ this.setState({
38
+ list: this.state.list
39
+ })
40
+ }
41
+
42
+ commit = () => {
43
+ if(!this.state.list.every((item)=> item.option)) {
44
+ message.warning(this.props.intl.formatMessage({id: 'plzCheckAgree'})); // 请先勾选同意
45
+ return;
46
+ }
47
+ this.props.next({
48
+ ...this.props.item,
49
+ subContent: this.state.list
50
+ })
51
+ }
52
+ exit = () => {
53
+ this.setState({
54
+ isModalVisibleEnd: true
55
+ })
56
+
57
+ }
58
+ handleCancelEnd = () => {
59
+ this.setState({
60
+ isModalVisibleEnd: false
61
+ })
62
+ }
63
+ handleOkEnd = () => {
64
+ this.setState({
65
+ isModalVisibleEnd: false
66
+ })
67
+ this.props.exit()
68
+ }
69
+ render() {
70
+ const { item } = this.props;
71
+ return (
72
+ <div className="agree">
73
+ <div className="thehead">
74
+ <div className="title">
75
+ <div className="title-color"></div>
76
+ <div className="title-text">{this.props.title}</div>
77
+ </div>
78
+ <div className='thehead'>
79
+ <div className="reset" onClick={this.exit}><FormattedMessage id="exit" /></div>
80
+ <div className="qianshu" onClick={this.commit}><FormattedMessage id="commit" /></div>
81
+ </div>
82
+ </div>
83
+ <div className="contents">
84
+ {
85
+ this.state.list.map((obj, index) => {
86
+ return (
87
+ <div key={index} className={`item-panel ${obj.option?'checked':''}`}>
88
+ <div>{obj.desc}</div>
89
+ <div><Checkbox index={index} checked={obj.option} onChange={this.onChange}> <FormattedMessage id="agree" /></Checkbox></div>
90
+ </div>
91
+ )
92
+ })
93
+ }
94
+ </div>
95
+ <Modal transitionName="" maskTransitionName="" getContainer={document.getElementById('multiModule')} destroyOnClose={true} closable={false} centered={true} visible={this.state.isModalVisibleEnd} footer={[<div key='end'>
96
+ <Button className="modelButtonCancel" onClick={this.handleCancelEnd}><FormattedMessage id="cancel" /></Button>
97
+ <Button className="modelButtonOk" type="primary" danger onClick={this.handleOkEnd}><FormattedMessage id="ok" /></Button>
98
+ </div>
99
+ ]}>
100
+ <div className='endModal'>
101
+ <div className='modalEndTitle'>
102
+ <FormattedMessage id="whether" />
103
+ </div>
104
+ <div className='modalEnd'>
105
+ <FormattedMessage id="progress" />
106
+ </div>
107
+ </div>
108
+ </Modal>
109
+ </div>
110
+ );
111
+ }
112
+
113
+ }
114
+
115
+ export default Agree;
@@ -0,0 +1,105 @@
1
+ .agree{
2
+ height: 100%;
3
+ background: #fff;
4
+ padding: 14px 24px;
5
+ overflow: hidden;
6
+ .thehead{
7
+ display: flex;
8
+ justify-content: space-between;
9
+ .title{
10
+ display: flex;
11
+ .title-color{
12
+ width: 2px;
13
+ height: 1.5rem;
14
+ background: #00847F;
15
+ margin-top: 0.25rem;
16
+ }
17
+ .title-text{
18
+ font-size: 1.5rem;
19
+ color: #323232;
20
+ margin-left: 8px;
21
+ }
22
+
23
+ }
24
+ .qianshu{
25
+ width: 96px;
26
+ height: 2rem;
27
+ background: #F9F2F3;
28
+ border-radius: 2px;
29
+ border: 1px solid #E5B2B5;
30
+ font-size: 14px;
31
+ color: #DB0011;
32
+ line-height: 32px;
33
+ text-align: center;
34
+ }
35
+ .reset{
36
+ width: 96px;
37
+ height: 2rem;
38
+ background: white;
39
+ border-radius: 2px;
40
+ border: 1px solid #DCDCDC;
41
+ font-size: 14px;
42
+ color: #646464;
43
+ line-height: 32px;
44
+ text-align: center;
45
+ margin-right: 8px;
46
+ }
47
+ }
48
+
49
+ .contents{
50
+ display: flex;
51
+ flex-direction: column;
52
+ height: 100%;
53
+ overflow: overlay;
54
+ padding-bottom: 2.5rem;
55
+ .item-panel{
56
+ width: 100%;
57
+ display: flex;
58
+ flex-direction: row;
59
+ flex-wrap: nowrap;
60
+ align-items: center;
61
+ font-size: 16px;
62
+ font-family: PingFangSC-Regular, PingFang SC;
63
+ font-weight: 400;
64
+ color: #666;
65
+ line-height: 24px;
66
+ margin-top: 20px;
67
+ // height: 80px;
68
+
69
+ >div:first-child{
70
+ display: flex;
71
+ align-items: center;
72
+ background: #F8F8F8;
73
+ border-radius: 8px 0px 0px 8px;
74
+ padding: 20px;
75
+ margin-right: 2px;
76
+ flex: 1;
77
+ height: 100%;
78
+ }
79
+ >div:last-child{
80
+ display: flex;
81
+ align-items: center;
82
+ justify-content: center;
83
+ background: #F8F8F8;
84
+ border-radius: 0px 8px 8px 0px;
85
+ color: #999 ;
86
+ padding: 14px;
87
+ width: 140px;
88
+ height: 100%;
89
+ }
90
+ &.checked{
91
+ >div:first-child{
92
+ color: #999;
93
+ }
94
+ >div:last-child{
95
+ color: #333;
96
+ }
97
+ }
98
+ .ant-checkbox-checked .ant-checkbox-inner {
99
+ background-color: #DE2228;
100
+ border-color: #DE2228;
101
+ }
102
+ }
103
+ }
104
+
105
+ }