react_hsbc_teller 0.0.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 (58) hide show
  1. package/.babelrc +4 -0
  2. package/README.en.md +36 -0
  3. package/README.md +57 -0
  4. package/config/webpack.config.js +114 -0
  5. package/config/webpack.dev.js +108 -0
  6. package/config/webpack.prod.js +113 -0
  7. package/package.json +94 -0
  8. package/packages/api/api.js +135 -0
  9. package/packages/api/server.js +48 -0
  10. package/packages/assets/img/Face_recognition.png +0 -0
  11. package/packages/assets/img/Projection_screen.png +0 -0
  12. package/packages/assets/img/huazhonghua.png +0 -0
  13. package/packages/assets/img/icon_Graffiti.png +0 -0
  14. package/packages/assets/img/icon_Mute.png +0 -0
  15. package/packages/assets/img/icon_MuteOne.png +0 -0
  16. package/packages/assets/img/icon_camera.png +0 -0
  17. package/packages/assets/img/icon_cameraOne.png +0 -0
  18. package/packages/assets/img/icon_copy.png +0 -0
  19. package/packages/assets/img/icon_invitation.png +0 -0
  20. package/packages/assets/img/icon_ocr.png +0 -0
  21. package/packages/assets/img/icon_suspend.png +0 -0
  22. package/packages/assets/img/sign_out.png +0 -0
  23. package/packages/assets/img/yingpin.png +0 -0
  24. package/packages/assets/img/zanTing.png +0 -0
  25. package/packages/assets/pdf/1.png +0 -0
  26. package/packages/assets/pdf/2.png +0 -0
  27. package/packages/assets/pdf/3.png +0 -0
  28. package/packages/assets/pdf/4.png +0 -0
  29. package/packages/assets/pdf/5.png +0 -0
  30. package/packages/assets/pdf/6.png +0 -0
  31. package/packages/common/JKL.js +61 -0
  32. package/packages/common/XML.js +271 -0
  33. package/packages/common/websocket.js +246 -0
  34. package/packages/demo/demo.js +27 -0
  35. package/packages/demo/index.js +3 -0
  36. package/packages/envconfig/envconfig.js +13 -0
  37. package/packages/index.js +2 -0
  38. package/packages/pages/foot/foot.jsx +101 -0
  39. package/packages/pages/foot/foot.less +49 -0
  40. package/packages/pages/header/header.jsx +25 -0
  41. package/packages/pages/header/header.less +52 -0
  42. package/packages/pages/pdf/pdf.jsx +72 -0
  43. package/packages/pages/pdf/pdf.less +18 -0
  44. package/packages/pages/video/video.jsx +1317 -0
  45. package/packages/pages/video/video.less +97 -0
  46. package/packages/style/index.less +1 -0
  47. package/packages/style/reset.less +345 -0
  48. package/packages/utils/asyncComponent.jsx +27 -0
  49. package/packages/utils/cell.js +64 -0
  50. package/packages/utils/mixin.js +27 -0
  51. package/packages/utils/setRem.js +11 -0
  52. package/public/favicon.ico +0 -0
  53. package/public/index.html +40 -0
  54. package/public/snowman.svg +1 -0
  55. package/script.js +0 -0
  56. package/src/index.js +10 -0
  57. package/src/index.less +1 -0
  58. package/tsconfig.json +11 -0
package/.babelrc ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "presets": ["@babel/preset-react"],
3
+ "plugins": ["@babel/plugin-syntax-jsx", "@babel/plugin-proposal-class-properties"]
4
+ }
package/README.en.md ADDED
@@ -0,0 +1,36 @@
1
+ # react-hsbc
2
+
3
+ #### Description
4
+ react-hsbc
5
+
6
+ #### Software Architecture
7
+ Software architecture description
8
+
9
+ #### Installation
10
+
11
+ 1. xxxx
12
+ 2. xxxx
13
+ 3. xxxx
14
+
15
+ #### Instructions
16
+
17
+ 1. xxxx
18
+ 2. xxxx
19
+ 3. xxxx
20
+
21
+ #### Contribution
22
+
23
+ 1. Fork the repository
24
+ 2. Create Feat_xxx branch
25
+ 3. Commit your code
26
+ 4. Create Pull Request
27
+
28
+
29
+ #### Gitee Feature
30
+
31
+ 1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
32
+ 2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
33
+ 3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
34
+ 4. The most valuable open source project [GVP](https://gitee.com/gvp)
35
+ 5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
36
+ 6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ <p align="center">
2
+ <a href="https://winyh.github.io/react-hsbc/">
3
+ <img width="200" src="https://github.com/react-hsbc">
4
+ </a>
5
+ </p>
6
+
7
+ <h1 align="center">react-hsbc</h1>
8
+
9
+ <p align="center">React</p>
10
+
11
+ ### 安装
12
+
13
+ ```
14
+ npm install react-hsbc
15
+ ```
16
+
17
+ ### 引入样式
18
+
19
+ ```
20
+ import "react-hsbc/lib/hsbc.css"
21
+ ```
22
+
23
+ ### 打包发布
24
+
25
+ ```
26
+ npm run lib
27
+
28
+ npm login
29
+
30
+ npm publish
31
+ ```
32
+
33
+ ### 引用示例
34
+
35
+ ```
36
+ import React, { Component } from 'react';
37
+ import HSBC from "react-hsbc";
38
+
39
+ class App extends Component {
40
+ render(){
41
+ return (
42
+ <div className="main">
43
+ <HSBC></HSBC>
44
+ </div>
45
+ );
46
+ }
47
+ }
48
+
49
+ export default App;
50
+ ```
51
+
52
+ ### demo(文档待完善)
53
+
54
+ ### 贡献代码
55
+
56
+ 组件都在 packages 目录下,单个组件用单个目录存放,在 packages 目录下的 index.js 文件中集中对外抛出
57
+
@@ -0,0 +1,114 @@
1
+ const path = require("path");
2
+ const webpack = require("webpack");
3
+ const HtmlWebpackPlugin = require("html-webpack-plugin");
4
+ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
5
+ const WebpackBar = require("webpackbar");
6
+ const autoprefixer = require("autoprefixer");
7
+ const px2rem = require("postcss-px2rem");
8
+
9
+ module.exports = {
10
+ entry: path.join(__dirname, "../packages/index.js"),
11
+ output: {
12
+ path: path.resolve(__dirname, "../lib"),
13
+ filename: "hsbc.js",
14
+ library: "hsbc",
15
+ libraryTarget: "umd",
16
+ },
17
+ resolve: {
18
+ extensions: [".tsx", ".ts", ".js", ".jsx"],
19
+ alias: {
20
+ "@":path.resolve("packages"),
21
+ "@src":path.resolve("src"),
22
+ "@component":path.resolve("packages/component"),
23
+ "@public":path.resolve("public"),
24
+ },
25
+ },
26
+ module: {
27
+ rules: [
28
+ {
29
+ test: /\.(css|less)$/,
30
+ use: [
31
+ require.resolve('style-loader'),
32
+ {
33
+ loader: require.resolve('css-loader'),
34
+ options: {
35
+ importLoaders: 1,
36
+ },
37
+ },
38
+ {
39
+ loader: require.resolve('postcss-loader'),
40
+ options: {
41
+ ident: 'postcss',
42
+ plugins: () => [
43
+ require('postcss-flexbugs-fixes'),
44
+ autoprefixer({
45
+ browsers: [
46
+ '>1%',
47
+ 'last 4 versions',
48
+ 'Firefox ESR',
49
+ 'not ie < 9', // React doesn't support IE8 anyway
50
+ ],
51
+ flexbox: 'no-2009',
52
+ }),
53
+ px2rem({
54
+ remUnit: 19.20,
55
+ exclude: /node-modules/i,
56
+ }),
57
+ ],
58
+ },
59
+ },
60
+ {
61
+ loader: require.resolve('less-loader')
62
+ },
63
+ ],
64
+ },
65
+ {
66
+ test: /\.(png|svg|jpg|gif)$/,
67
+ use: [
68
+ {
69
+ loader: 'url-loader',
70
+ options: {
71
+ limit: 8192,
72
+ },
73
+ }
74
+ ],
75
+ },
76
+ {
77
+ test: /\.(woff|woff2|eot|ttf|otf)$/,
78
+ use: ["file-loader"],
79
+ },
80
+ {
81
+ test: /\.tsx?$/,
82
+ exclude: /node_modules/,
83
+ use: "ts-loader",
84
+ },
85
+ {
86
+ test: /\.(js|jsx)$/,
87
+ exclude: /node_modules/,
88
+ use: "babel-loader",
89
+ },
90
+ ],
91
+ },
92
+ plugins: [
93
+ new WebpackBar(),
94
+ new CleanWebpackPlugin(),
95
+ new HtmlWebpackPlugin({
96
+ title: "lib 创建 library",
97
+ template: path.resolve(__dirname, "../public/index.html"),
98
+ }),
99
+ ],
100
+ externals: {
101
+ react: {
102
+ commonjs: 'react',
103
+ commonjs2: 'react',
104
+ amd: 'react',
105
+ root: 'React',
106
+ },
107
+ 'react-dom': {
108
+ commonjs: 'react-dom',
109
+ commonjs2: 'react-dom',
110
+ amd: 'react-dom',
111
+ root: 'ReactDOM',
112
+ },
113
+ }
114
+ };
@@ -0,0 +1,108 @@
1
+ const path = require("path");
2
+ const webpack = require("webpack");
3
+ const HtmlWebpackPlugin = require("html-webpack-plugin");
4
+ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
5
+ const WebpackBar = require("webpackbar");
6
+ const autoprefixer = require('autoprefixer');
7
+ const px2rem = require('postcss-px2rem');
8
+ module.exports = {
9
+ entry: "./src/index.js",
10
+ output: {
11
+ publicPath: "/",
12
+ path: path.resolve(__dirname, "../dist"),
13
+ filename: "index.js",
14
+ },
15
+ devtool: "inline-source-map",
16
+ resolve: {
17
+ extensions: [".tsx", ".ts", ".js", ".jsx"],
18
+ alias: {
19
+ "@":path.resolve("packages"),
20
+ "@src":path.resolve("src"),
21
+ "@component":path.resolve("packages/component"),
22
+ "@public":path.resolve("public"),
23
+ },
24
+ },
25
+ module: {
26
+ rules: [
27
+ {
28
+ test: /\.(css|less)$/,
29
+ use: [
30
+ require.resolve('style-loader'),
31
+ {
32
+ loader: require.resolve('css-loader'),
33
+ options: {
34
+ importLoaders: 1,
35
+ },
36
+ },
37
+ {
38
+ loader: require.resolve('postcss-loader'),
39
+ options: {
40
+ ident: 'postcss',
41
+ plugins: () => [
42
+ require('postcss-flexbugs-fixes'),
43
+ autoprefixer({
44
+ browsers: [
45
+ '>1%',
46
+ 'last 4 versions',
47
+ 'Firefox ESR',
48
+ 'not ie < 9', // React doesn't support IE8 anyway
49
+ ],
50
+ flexbox: 'no-2009',
51
+ }),
52
+ px2rem({
53
+ remUnit: 19.20,
54
+ exclude: /node-modules/i,
55
+ }),
56
+ ],
57
+ },
58
+ },
59
+ {
60
+ loader: require.resolve('less-loader'),
61
+ options: { javascriptEnabled: true }
62
+ },
63
+ ],
64
+ },
65
+ {
66
+ test: /\.(png|svg|jpg|gif)$/,
67
+ use: [
68
+ {
69
+ loader: 'url-loader',
70
+ options: {
71
+ limit: 8192,
72
+ },
73
+ }
74
+ ],
75
+ },
76
+ {
77
+ test: /\.(woff|woff2|eot|ttf|otf)$/,
78
+ use: ["file-loader"],
79
+ },
80
+ {
81
+ test: /\.tsx?$/,
82
+ exclude: /node_modules/,
83
+ use: "ts-loader",
84
+ },
85
+ {
86
+ test: /\.(js|jsx)$/,
87
+ exclude: /node_modules/,
88
+ use: "babel-loader",
89
+ },
90
+ ],
91
+ },
92
+ plugins: [
93
+ new WebpackBar(),
94
+ new CleanWebpackPlugin(),
95
+ new HtmlWebpackPlugin({
96
+ title: "dev 开发环境",
97
+ template: path.resolve(__dirname, "../public/index.html"),
98
+ }),
99
+ new webpack.HotModuleReplacementPlugin(),
100
+ ],
101
+ devServer: {
102
+ contentBase: path.resolve(__dirname, "../dist"),
103
+ compress: true,
104
+ port: 9000,
105
+ open: true,
106
+ hot: true,
107
+ },
108
+ };
@@ -0,0 +1,113 @@
1
+ const path = require("path");
2
+ const webpack = require("webpack");
3
+ const WebpackBar = require("webpackbar");
4
+ const HtmlWebpackPlugin = require("html-webpack-plugin");
5
+ const { CleanWebpackPlugin } = require("clean-webpack-plugin");
6
+ const autoprefixer = require("autoprefixer");
7
+ const px2rem = require("postcss-px2rem");
8
+
9
+ module.exports = {
10
+ mode: "production",
11
+ entry: "./src/index.js",
12
+ output: {
13
+ path: path.resolve(__dirname, "../dist"),
14
+ filename: "index.js",
15
+ },
16
+ resolve: {
17
+ extensions: [".tsx", ".ts", ".js", ".jsx"],
18
+ alias: {
19
+ "@":path.resolve("packages"),
20
+ "@src":path.resolve("src"),
21
+ "@component":path.resolve("packages/component"),
22
+ "@public":path.resolve("public"),
23
+ },
24
+ },
25
+ module: {
26
+ rules: [
27
+ {
28
+ test: /\.(css|less)$/,
29
+ use: [
30
+ require.resolve('style-loader'),
31
+ {
32
+ loader: require.resolve('css-loader'),
33
+ options: {
34
+ importLoaders: 1,
35
+ },
36
+ },
37
+ {
38
+ loader: require.resolve('postcss-loader'),
39
+ options: {
40
+ ident: 'postcss',
41
+ plugins: () => [
42
+ require('postcss-flexbugs-fixes'),
43
+ autoprefixer({
44
+ browsers: [
45
+ '>1%',
46
+ 'last 4 versions',
47
+ 'Firefox ESR',
48
+ 'not ie < 9', // React doesn't support IE8 anyway
49
+ ],
50
+ flexbox: 'no-2009',
51
+ }),
52
+ px2rem({
53
+ remUnit: 19.20,
54
+ exclude: /node-modules/i,
55
+ }),
56
+ ],
57
+ },
58
+ },
59
+ {
60
+ loader: require.resolve('less-loader')
61
+ },
62
+ ],
63
+ },
64
+ {
65
+ test: /\.(png|svg|jpg|gif)$/,
66
+ use: [
67
+ {
68
+ loader: 'url-loader',
69
+ options: {
70
+ limit: 8192,
71
+ },
72
+ }
73
+ ],
74
+ },
75
+ {
76
+ test: /\.(woff|woff2|eot|ttf|otf|html)$/,
77
+ use: ["file-loader"],
78
+ },
79
+ {
80
+ test: /\.tsx?$/,
81
+ exclude: /node_modules/,
82
+ use: "ts-loader",
83
+ },
84
+ {
85
+ test: /\.(js|jsx)$/,
86
+ exclude: /node_modules/,
87
+ use: "babel-loader",
88
+ },
89
+ ],
90
+ },
91
+ plugins: [
92
+ new WebpackBar(),
93
+ new CleanWebpackPlugin(),
94
+ new HtmlWebpackPlugin({
95
+ title: "prod 生产环境",
96
+ template: path.resolve(__dirname, "../public/index.html"),
97
+ }),
98
+ ],
99
+ externals: {
100
+ react: {
101
+ commonjs: 'react',
102
+ commonjs2: 'react',
103
+ amd: 'react',
104
+ root: 'React',
105
+ },
106
+ 'react-dom': {
107
+ commonjs: 'react-dom',
108
+ commonjs2: 'react-dom',
109
+ amd: 'react-dom',
110
+ root: 'ReactDOM',
111
+ },
112
+ }
113
+ };
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "react_hsbc_teller",
3
+ "version": "0.0.1",
4
+ "description": "React",
5
+ "private": false,
6
+ "main": "lib/hsbc.js",
7
+ "scripts": {
8
+ "start": "webpack serve --config ./config/webpack.dev.js",
9
+ "build": "webpack --config ./config/webpack.prod.js",
10
+ "lib": "webpack --config ./config/webpack.config.js",
11
+ "deploy": "npm run build && gh-pages -d dist"
12
+ },
13
+ "directories": {
14
+ "lib": "lib"
15
+ },
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+"
19
+ },
20
+ "keywords": [
21
+ "React",
22
+ "UI",
23
+ "NPM"
24
+ ],
25
+ "author": "grantITman 2811744265@qq.com",
26
+ "license": "MIT",
27
+ "bugs": {
28
+ "url": ""
29
+ },
30
+ "homepage": "#readme",
31
+ "devDependencies": {
32
+ "@babel/core": "^7.12.3",
33
+ "@babel/plugin-proposal-class-properties": "^7.12.1",
34
+ "@babel/plugin-syntax-jsx": "^7.12.1",
35
+ "@babel/preset-react": "^7.12.1",
36
+ "babel-core": "6.26.0",
37
+ "babel-eslint": "7.2.3",
38
+ "babel-jest": "20.0.3",
39
+ "babel-loader": "^8.1.0",
40
+ "babel-plugin-syntax-dynamic-import": "^6.18.0",
41
+ "babel-plugin-transform-decorators-legacy": "^1.3.4",
42
+ "babel-polyfill": "^6.26.0",
43
+ "babel-preset-env": "^1.6.1",
44
+ "babel-preset-react-app": "^3.1.0",
45
+ "babel-runtime": "6.26.0",
46
+ "autoprefixer": "7.1.6",
47
+ "classnames": "^2.2.6",
48
+ "clean-webpack-plugin": "^3.0.0",
49
+ "css-loader": "^5.0.0",
50
+ "extract-text-webpack-plugin": "^4.0.0-beta.0",
51
+ "file-loader": "^6.2.0",
52
+ "gh-pages": "^3.1.0",
53
+ "html-webpack-plugin": "^5.0.0-alpha.7",
54
+ "less": "^2.7.2",
55
+ "less-loader": "4.1.0",
56
+ "lib-flexible": "^0.3.2",
57
+ "mini-css-extract-plugin": "^1.2.1",
58
+ "postcss-flexbugs-fixes": "3.2.0",
59
+ "postcss-loader": "2.0.8",
60
+ "postcss-px2rem": "^0.3.0",
61
+ "prop-types": "^15.7.2",
62
+ "style-loader": "^2.0.0",
63
+ "ts-loader": "^8.0.7",
64
+ "typescript": "^4.0.5",
65
+ "web-vitals": "^0.2.4",
66
+ "webpack": "^5.3.2",
67
+ "webpack-cli": "^4.1.0",
68
+ "webpack-dev-server": "^3.11.0",
69
+ "webpackbar": "^4.0.0",
70
+ "babel-plugin-import": "^1.13.3",
71
+ "eslint": "4.10.0",
72
+ "eslint-config-react-app": "^2.0.1",
73
+ "eslint-loader": "1.9.0",
74
+ "eslint-plugin-flowtype": "2.39.1",
75
+ "eslint-plugin-import": "2.8.0",
76
+ "eslint-plugin-jsx-a11y": "5.1.1",
77
+ "eslint-plugin-react": "7.4.0"
78
+ },
79
+ "dependencies": {
80
+ "antd": "^4.16.13",
81
+ "axios": "0.19.0",
82
+ "react": "^17.0.1",
83
+ "react-dom": "^17.0.1",
84
+ "url-loader": "^4.1.1"
85
+ },
86
+ "peerDependencies": {
87
+ "react": "^17.0.1",
88
+ "react-dom": "^17.0.1"
89
+ },
90
+ "sideEffects": [
91
+ "*.css",
92
+ "*.less"
93
+ ]
94
+ }
@@ -0,0 +1,135 @@
1
+ import Server from './server';
2
+
3
+ class API extends Server{
4
+ /**
5
+ * 用途:获取mpass签名
6
+ * @url https://api.cangdu.org/shopro/data/products
7
+ * 返回http_code为200表示成功
8
+ * @method post
9
+ * @return {promise}
10
+ */
11
+ async mpaasSig(params = {}){
12
+ console.log(params)
13
+ try{
14
+ let result = await this.axios('post', '/hsbc/sig', params);
15
+ if(result && (result.data instanceof Object) && result.code === 200){
16
+ return result.data||[];
17
+ }else{
18
+ let err = {
19
+ tip: '获取签名失败',
20
+ response: result,
21
+ data: params,
22
+ // url: 'https://api.cangdu.org/shopro/data/products',
23
+ }
24
+ throw err;
25
+ }
26
+ }catch(err){
27
+ throw err;
28
+ }
29
+ }
30
+ // /**
31
+ // * 用途:上传图片
32
+ // * @url https://elm.cangdu.org/v1/addimg/shop
33
+ // * 返回status为1表示成功
34
+ // * @method post
35
+ // * @return {promise}
36
+ // */
37
+ // async uploadImg(params = {}){
38
+ // try{
39
+ // let result = await this.axios('post', '//elm.cangdu.org/v1/addimg/shop', params);
40
+ // if(result && result.status === 1){
41
+ // return result;
42
+ // }else{
43
+ // let err = {
44
+ // tip: '上传图片失败',
45
+ // response: result,
46
+ // data: params,
47
+ // url: '//elm.cangdu.org/v1/addimg/shop',
48
+ // }
49
+ // throw err;
50
+ // }
51
+ // }catch(err){
52
+ // throw err;
53
+ // }
54
+ // }
55
+
56
+ // /**
57
+ // * 用途:获取记录数据
58
+ // * @url https://api.cangdu.org/shopro/data/record
59
+ // * 返回http_code为200表示成功
60
+ // * @method get
61
+ // * @return {promise}
62
+ // */
63
+ // async getRecord(params = {}){
64
+ // try{
65
+ // let result = await this.axios('get', `/shopro/data/record/${params.type}`);
66
+ // if(result && (result.data instanceof Object) && result.http_code === 200){
67
+ // return result.data;
68
+ // }else{
69
+ // let err = {
70
+ // tip: '获取记录数据失败',
71
+ // response: result,
72
+ // data: params,
73
+ // url: 'https://api.cangdu.org/shopro/data/record',
74
+ // }
75
+ // throw err;
76
+ // }
77
+ // }catch(err){
78
+ // throw err;
79
+ // }
80
+ // }
81
+
82
+ // /**
83
+ // * 用途:获取商品数据
84
+ // * @url https://api.cangdu.org/shopro/data/products
85
+ // * 返回http_code为200表示成功
86
+ // * @method get
87
+ // * @return {promise}
88
+ // */
89
+ // async getProduction(params = {}){
90
+ // try{
91
+ // let result = await this.axios('get', '/shopro/data/products', params);
92
+ // if(result && (result.data instanceof Object) && result.http_code === 200){
93
+ // return result.data.data||[];
94
+ // }else{
95
+ // let err = {
96
+ // tip: '获取商品数据失败',
97
+ // response: result,
98
+ // data: params,
99
+ // url: 'https://api.cangdu.org/shopro/data/products',
100
+ // }
101
+ // throw err;
102
+ // }
103
+ // }catch(err){
104
+ // throw err;
105
+ // }
106
+ // }
107
+
108
+ // /**
109
+ // * 用途:获取佣金数据
110
+ // * @url https://api.cangdu.org/shopro/data/balance
111
+ // * 返回http_code为200表示成功
112
+ // * @method get
113
+ // * @return {promise}
114
+ // */
115
+ // async getBalance(params = {}){
116
+ // try{
117
+ // let result = await this.axios('get', '/shopro/data/balance', params);
118
+ // if(result && (result.data instanceof Object) && result.http_code === 200){
119
+ // return result.data.data||{};
120
+ // }else{
121
+ // let err = {
122
+ // tip: '获取佣金数据失败',
123
+ // response: result,
124
+ // data: params,
125
+ // url: 'https://api.cangdu.org/shopro/data/balance',
126
+ // }
127
+ // throw err;
128
+ // }
129
+ // }catch(err){
130
+ // throw err;
131
+ // }
132
+ // }
133
+ }
134
+
135
+ export default new API();