react_hsbc_teller 2.0.54 → 2.0.56

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 (54) hide show
  1. package/.babelrc +39 -39
  2. package/README.en.md +36 -36
  3. package/README.md +329 -323
  4. package/config/webpack.config.js +119 -119
  5. package/config/webpack.dev.js +108 -108
  6. package/config/webpack.prod.js +104 -104
  7. package/lib/hsbc.js +1 -1
  8. package/lib/hsbc.js.LICENSE.txt +13 -16
  9. package/package.json +110 -110
  10. package/packages/api/api.js +818 -818
  11. package/packages/api/server.js +50 -50
  12. package/packages/common/index.esm.js +374 -374
  13. package/packages/demo/demo.js +306 -306
  14. package/packages/demo/index.js +3 -3
  15. package/packages/demo/pdf.js +94 -94
  16. package/packages/envconfig/envconfig.js +12 -12
  17. package/packages/index.js +2 -2
  18. package/packages/pages/components/step/step.jsx +32 -31
  19. package/packages/pages/foot/foot.jsx +235 -235
  20. package/packages/pages/foot/foot.less +85 -85
  21. package/packages/pages/header/header.jsx +15 -15
  22. package/packages/pages/header/header.less +51 -51
  23. package/packages/pages/index.jsx +52 -52
  24. package/packages/pages/multiModule/components/copy/agree.jsx +115 -115
  25. package/packages/pages/multiModule/components/copy/agree.less +105 -105
  26. package/packages/pages/multiModule/components/copy/copyTwo.jsx +682 -682
  27. package/packages/pages/multiModule/components/copy/copyTwo.less +180 -180
  28. package/packages/pages/multiModule/components/copy/copy_en.jsx +368 -368
  29. package/packages/pages/multiModule/components/copy/copy_en.less +145 -145
  30. package/packages/pages/multiModule/components/copy/copylist.jsx +291 -291
  31. package/packages/pages/multiModule/components/copy/copylist.less +83 -83
  32. package/packages/pages/multiModule/components/copy/risk.jsx +296 -296
  33. package/packages/pages/multiModule/components/copy/risk.less +123 -123
  34. package/packages/pages/multiModule/components/sign/signMy.jsx +308 -308
  35. package/packages/pages/multiModule/components/sign/signMy.less +127 -127
  36. package/packages/pages/multiModule/components/subscribe/subscribe.jsx +113 -113
  37. package/packages/pages/multiModule/components/subscribe/subscribe.less +82 -82
  38. package/packages/pages/multiModule/multiModule.jsx +26 -26
  39. package/packages/pages/multiModule/multiModule.less +19 -19
  40. package/packages/pages/sign/signMy.jsx +223 -223
  41. package/packages/pages/sign/signMy.less +129 -129
  42. package/packages/pages/video/video.jsx +7746 -7745
  43. package/packages/pages/video/video.less +715 -715
  44. package/packages/style/index.less +1 -1
  45. package/packages/style/reset.less +345 -345
  46. package/packages/utils/asrController.js +259 -259
  47. package/packages/utils/asyncComponent.jsx +26 -26
  48. package/packages/utils/mixin.js +27 -27
  49. package/packages/utils/setRem.js +10 -10
  50. package/packages/utils/utils.js +199 -199
  51. package/public/index.html +77 -77
  52. package/src/index.js +11 -11
  53. package/src/index.less +5 -5
  54. package/tsconfig.json +11 -11
@@ -1,50 +1,50 @@
1
- import axios from 'axios';
2
- import envconfig from '../envconfig/envconfig';
3
- /**
4
- * 主要params参数
5
- * @params method {string} 方法名
6
- * @params url {string} 请求地址 例如:/login 配合baseURL组成完整请求地址
7
- * @params baseURL {string} 请求地址统一前缀 ***需要提前指定*** 例如:http://cangdu.org
8
- * @params timeout {number} 请求超时时间 默认 30000
9
- * @params params {object} get方式传参key值
10
- * @params headers {string} 指定请求头信息
11
- * @params withCredentials {boolean} 请求是否携带本地cookies信息默认开启
12
- * @params validateStatus {func} 默认判断请求成功的范围 200 - 300
13
- * @return {Promise}
14
- * 其他更多拓展参看axios文档后 自行拓展
15
- * 注意:params中的数据会覆盖method url 参数,所以如果指定了这2个参数则不需要在params中带入
16
- */
17
-
18
- export default class Server {
19
- axios(method, url, params){
20
- console.log(params)
21
- return new Promise((resolve, reject) => {
22
- if(typeof params !== 'object') params = {};
23
- let _option = params;
24
- _option = {
25
- method,
26
- url,
27
- baseURL: window.sessionStorage.getItem('baseURL'),
28
- timeout: 30000,
29
- params: null,
30
- data: params,
31
- // headers: {
32
- // Authorization: window.sessionStorage.getItem('authTokenHSBC') ? window.sessionStorage.getItem('authTokenHSBC') : '',
33
- // },
34
- withCredentials: true, //是否携带cookies发起请求
35
- validateStatus:(status)=>{
36
- return status >= 200 && status < 300;
37
- },
38
- }
39
- axios.request(_option).then(res => {
40
- resolve(typeof res.data === 'object' ? res.data : JSON.parse(res.data))
41
- },error => {
42
- if(error.response){
43
- reject(error.response.data)
44
- }else{
45
- reject(error)
46
- }
47
- })
48
- })
49
- }
50
- }
1
+ import axios from 'axios';
2
+ import envconfig from '../envconfig/envconfig';
3
+ /**
4
+ * 主要params参数
5
+ * @params method {string} 方法名
6
+ * @params url {string} 请求地址 例如:/login 配合baseURL组成完整请求地址
7
+ * @params baseURL {string} 请求地址统一前缀 ***需要提前指定*** 例如:http://cangdu.org
8
+ * @params timeout {number} 请求超时时间 默认 30000
9
+ * @params params {object} get方式传参key值
10
+ * @params headers {string} 指定请求头信息
11
+ * @params withCredentials {boolean} 请求是否携带本地cookies信息默认开启
12
+ * @params validateStatus {func} 默认判断请求成功的范围 200 - 300
13
+ * @return {Promise}
14
+ * 其他更多拓展参看axios文档后 自行拓展
15
+ * 注意:params中的数据会覆盖method url 参数,所以如果指定了这2个参数则不需要在params中带入
16
+ */
17
+
18
+ export default class Server {
19
+ axios(method, url, params){
20
+ console.log(params)
21
+ return new Promise((resolve, reject) => {
22
+ if(typeof params !== 'object') params = {};
23
+ let _option = params;
24
+ _option = {
25
+ method,
26
+ url,
27
+ baseURL: window.sessionStorage.getItem('baseURL'),
28
+ timeout: 30000,
29
+ params: null,
30
+ data: params,
31
+ // headers: {
32
+ // Authorization: window.sessionStorage.getItem('authTokenHSBC') ? window.sessionStorage.getItem('authTokenHSBC') : '',
33
+ // },
34
+ withCredentials: true, //是否携带cookies发起请求
35
+ validateStatus:(status)=>{
36
+ return status >= 200 && status < 300;
37
+ },
38
+ }
39
+ axios.request(_option).then(res => {
40
+ resolve(typeof res.data === 'object' ? res.data : JSON.parse(res.data))
41
+ },error => {
42
+ if(error.response){
43
+ reject(error.response.data)
44
+ }else{
45
+ reject(error)
46
+ }
47
+ })
48
+ })
49
+ }
50
+ }