mcrm-mobile 1.6.6 → 1.6.7
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/README.md +42 -42
- package/es/data-process/index.js +54 -54
- package/es/http/index.js +150 -142
- package/es/index.js +1 -1
- package/es/menu-jump/index.js +66 -66
- package/lib/data-process/index.js +54 -54
- package/lib/http/index.js +150 -142
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +271 -263
- package/lib/mcrm-mobile.min.js +1 -1
- package/lib/menu-jump/index.js +66 -66
- package/package.json +1 -1
- package/vetur/attributes.json +432 -432
- package/vetur/tags.json +120 -120
- package/vetur/web-types.json +1190 -1190
package/README.md
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
<div class="card">
|
|
2
|
-
<div class="van-doc-intro">
|
|
3
|
-
<h2 style="margin: 0; font-size: 36px; line-height: 60px;">McrmMobile</h2>
|
|
4
|
-
<p>生意宝专用组件库</p>
|
|
5
|
-
</div>
|
|
6
|
-
</div>
|
|
7
|
-
<p align="center">
|
|
8
|
-
🔥 <a href="http://20.26.222.74/downvue/mcrm-docs-new">文档网站</a>
|
|
9
|
-
</p>
|
|
10
|
-
|
|
11
|
-
### 特性
|
|
12
|
-
|
|
13
|
-
- 完善的文档和示例
|
|
14
|
-
- 支持按需引入
|
|
15
|
-
- 支持 TS
|
|
16
|
-
|
|
17
|
-
### 安装
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
# 通过 npm 安装
|
|
21
|
-
npm i mcrm-mobile -S
|
|
22
|
-
|
|
23
|
-
# 通过 yarn 安装
|
|
24
|
-
yarn add mcrm-mobile
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
### 快速上手
|
|
28
|
-
|
|
29
|
-
```js
|
|
30
|
-
import Vue from "vue";
|
|
31
|
-
import { Button } from "mcrm-mobile";
|
|
32
|
-
|
|
33
|
-
Vue.use(Button);
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### 浏览器支持
|
|
37
|
-
|
|
38
|
-
现代浏览器以及 Android 4.0+, iOS 7+
|
|
39
|
-
|
|
40
|
-
### 开源协议
|
|
41
|
-
|
|
42
|
-
本项目基于 [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89) 协议,请自由地享受和参与开源
|
|
1
|
+
<div class="card">
|
|
2
|
+
<div class="van-doc-intro">
|
|
3
|
+
<h2 style="margin: 0; font-size: 36px; line-height: 60px;">McrmMobile</h2>
|
|
4
|
+
<p>生意宝专用组件库</p>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
<p align="center">
|
|
8
|
+
🔥 <a href="http://20.26.222.74/downvue/mcrm-docs-new">文档网站</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
### 特性
|
|
12
|
+
|
|
13
|
+
- 完善的文档和示例
|
|
14
|
+
- 支持按需引入
|
|
15
|
+
- 支持 TS
|
|
16
|
+
|
|
17
|
+
### 安装
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
# 通过 npm 安装
|
|
21
|
+
npm i mcrm-mobile -S
|
|
22
|
+
|
|
23
|
+
# 通过 yarn 安装
|
|
24
|
+
yarn add mcrm-mobile
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 快速上手
|
|
28
|
+
|
|
29
|
+
```js
|
|
30
|
+
import Vue from "vue";
|
|
31
|
+
import { Button } from "mcrm-mobile";
|
|
32
|
+
|
|
33
|
+
Vue.use(Button);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 浏览器支持
|
|
37
|
+
|
|
38
|
+
现代浏览器以及 Android 4.0+, iOS 7+
|
|
39
|
+
|
|
40
|
+
### 开源协议
|
|
41
|
+
|
|
42
|
+
本项目基于 [MIT](https://zh.wikipedia.org/wiki/MIT%E8%A8%B1%E5%8F%AF%E8%AD%89) 协议,请自由地享受和参与开源
|
package/es/data-process/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @author Wuner
|
|
3
|
-
* @date 2021/9/28
|
|
4
|
-
* @Description: 数据加解密
|
|
1
|
+
/**
|
|
2
|
+
* @author Wuner
|
|
3
|
+
* @date 2021/9/28
|
|
4
|
+
* @Description: 数据加解密
|
|
5
5
|
*/
|
|
6
6
|
import Vue from "vue";
|
|
7
7
|
import { strEnc, strDec } from "./des.js";
|
|
@@ -16,11 +16,11 @@ var KEY1 = "TWFrV29d0R3JlYXRBKZ2Fpbg==";
|
|
|
16
16
|
var IV1 = "VWVuY1xhta1EyMmYyRcXNwcA==";
|
|
17
17
|
var KEY = "TUNSTWQ1jcm1BQkNEIRUZHSA==";
|
|
18
18
|
var IV = "VGRtYlmdsalAxMWUxBcHJraw==";
|
|
19
|
-
/**
|
|
20
|
-
* AES加密
|
|
21
|
-
* @param content 需加密的文本
|
|
22
|
-
* @param key 密钥
|
|
23
|
-
* @param iv 偏移量
|
|
19
|
+
/**
|
|
20
|
+
* AES加密
|
|
21
|
+
* @param content 需加密的文本
|
|
22
|
+
* @param key 密钥
|
|
23
|
+
* @param iv 偏移量
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
26
|
var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
@@ -36,11 +36,11 @@ var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
|
36
36
|
});
|
|
37
37
|
return encrypted.toString(); //返回的是base64格式的密文
|
|
38
38
|
};
|
|
39
|
-
/**
|
|
40
|
-
* AES加密(拦截器)
|
|
41
|
-
* @param content 需加密的文本
|
|
42
|
-
* @param key 密钥
|
|
43
|
-
* @param iv 偏移量
|
|
39
|
+
/**
|
|
40
|
+
* AES加密(拦截器)
|
|
41
|
+
* @param content 需加密的文本
|
|
42
|
+
* @param key 密钥
|
|
43
|
+
* @param iv 偏移量
|
|
44
44
|
*/
|
|
45
45
|
|
|
46
46
|
|
|
@@ -57,10 +57,10 @@ var aesEncryptHttp = function aesEncryptHttp(content, key, iv) {
|
|
|
57
57
|
});
|
|
58
58
|
return encrypted.toString(); //返回的是base64格式的密文
|
|
59
59
|
};
|
|
60
|
-
/**
|
|
61
|
-
* 菜单跳转加密函数
|
|
62
|
-
* @param {string} data - 需要加密的数据, 传过来前先进行 JSON.stringify(data);
|
|
63
|
-
* @param {string} key - 加密使用的 key
|
|
60
|
+
/**
|
|
61
|
+
* 菜单跳转加密函数
|
|
62
|
+
* @param {string} data - 需要加密的数据, 传过来前先进行 JSON.stringify(data);
|
|
63
|
+
* @param {string} key - 加密使用的 key
|
|
64
64
|
*/
|
|
65
65
|
|
|
66
66
|
|
|
@@ -77,10 +77,10 @@ var aesEncryptBusiness = function aesEncryptBusiness(data, key) {
|
|
|
77
77
|
|
|
78
78
|
return hexStr;
|
|
79
79
|
};
|
|
80
|
-
/**
|
|
81
|
-
* 菜单跳转加密函数
|
|
82
|
-
* @param {string} encrypted - 加密的数据;
|
|
83
|
-
* @param {string} key - 加密使用的 key
|
|
80
|
+
/**
|
|
81
|
+
* 菜单跳转加密函数
|
|
82
|
+
* @param {string} encrypted - 加密的数据;
|
|
83
|
+
* @param {string} key - 加密使用的 key
|
|
84
84
|
*/
|
|
85
85
|
|
|
86
86
|
|
|
@@ -94,11 +94,11 @@ var aesDecryptBusiness = function aesDecryptBusiness(encrypted, key) {
|
|
|
94
94
|
});
|
|
95
95
|
return CryptoJS.enc.Utf8.stringify(decrypt);
|
|
96
96
|
};
|
|
97
|
-
/**
|
|
98
|
-
* AES解密
|
|
99
|
-
* @param content 密文
|
|
100
|
-
* @param key 密钥
|
|
101
|
-
* @param iv 偏移量
|
|
97
|
+
/**
|
|
98
|
+
* AES解密
|
|
99
|
+
* @param content 密文
|
|
100
|
+
* @param key 密钥
|
|
101
|
+
* @param iv 偏移量
|
|
102
102
|
*/
|
|
103
103
|
|
|
104
104
|
|
|
@@ -116,11 +116,11 @@ var aesDecrypt = function aesDecrypt(content, key, iv) {
|
|
|
116
116
|
});
|
|
117
117
|
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
118
118
|
};
|
|
119
|
-
/**
|
|
120
|
-
* AES解密(拦截器)
|
|
121
|
-
* @param content 需加密的文本
|
|
122
|
-
* @param key 密钥
|
|
123
|
-
* @param iv 偏移量
|
|
119
|
+
/**
|
|
120
|
+
* AES解密(拦截器)
|
|
121
|
+
* @param content 需加密的文本
|
|
122
|
+
* @param key 密钥
|
|
123
|
+
* @param iv 偏移量
|
|
124
124
|
*/
|
|
125
125
|
|
|
126
126
|
|
|
@@ -138,30 +138,30 @@ var aesDecryptHttp = function aesDecryptHttp(content, key, iv) {
|
|
|
138
138
|
});
|
|
139
139
|
return decrypted.toString(CryptoJS.enc.Utf8);
|
|
140
140
|
};
|
|
141
|
-
/**
|
|
142
|
-
* DES解密
|
|
143
|
-
* @param content 密文
|
|
144
|
-
* @param keys 密钥
|
|
141
|
+
/**
|
|
142
|
+
* DES解密
|
|
143
|
+
* @param content 密文
|
|
144
|
+
* @param keys 密钥
|
|
145
145
|
*/
|
|
146
146
|
|
|
147
147
|
|
|
148
148
|
var desDecrypt = function desDecrypt(content, keys) {
|
|
149
149
|
return strDec(content, keys[0], keys[1], keys[2]);
|
|
150
150
|
};
|
|
151
|
-
/**
|
|
152
|
-
* DES加密
|
|
153
|
-
* @param content 需加密的文本
|
|
154
|
-
* @param keys 密钥
|
|
151
|
+
/**
|
|
152
|
+
* DES加密
|
|
153
|
+
* @param content 需加密的文本
|
|
154
|
+
* @param keys 密钥
|
|
155
155
|
*/
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
var desEncrypt = function desEncrypt(content, keys) {
|
|
159
159
|
return strEnc(content, keys[0], keys[1], keys[2]);
|
|
160
160
|
};
|
|
161
|
-
/**
|
|
162
|
-
* base64加密
|
|
163
|
-
* @param content
|
|
164
|
-
* @returns {*}
|
|
161
|
+
/**
|
|
162
|
+
* base64加密
|
|
163
|
+
* @param content
|
|
164
|
+
* @returns {*}
|
|
165
165
|
*/
|
|
166
166
|
|
|
167
167
|
|
|
@@ -169,10 +169,10 @@ var base64Encrypt = function base64Encrypt(content) {
|
|
|
169
169
|
var words = CryptoJS.enc.Utf8.parse(content);
|
|
170
170
|
return CryptoJS.enc.Base64.stringify(words);
|
|
171
171
|
};
|
|
172
|
-
/**
|
|
173
|
-
* base64解密
|
|
174
|
-
* @param content
|
|
175
|
-
* @returns {*}
|
|
172
|
+
/**
|
|
173
|
+
* base64解密
|
|
174
|
+
* @param content
|
|
175
|
+
* @returns {*}
|
|
176
176
|
*/
|
|
177
177
|
|
|
178
178
|
|
|
@@ -180,18 +180,18 @@ var base64Decrypt = function base64Decrypt(content) {
|
|
|
180
180
|
var words = CryptoJS.enc.Base64.parse(content);
|
|
181
181
|
return CryptoJS.enc.Utf8.stringify(words);
|
|
182
182
|
};
|
|
183
|
-
/**
|
|
184
|
-
* 方舟加密
|
|
185
|
-
* @param content 需要加密对文本
|
|
183
|
+
/**
|
|
184
|
+
* 方舟加密
|
|
185
|
+
* @param content 需要加密对文本
|
|
186
186
|
*/
|
|
187
187
|
|
|
188
188
|
|
|
189
189
|
export var arkEncrypt = function arkEncrypt(content) {
|
|
190
190
|
return encodeBase64ForSec(content);
|
|
191
191
|
};
|
|
192
|
-
/**
|
|
193
|
-
* 方舟解密
|
|
194
|
-
* @param content 需要解密对文本
|
|
192
|
+
/**
|
|
193
|
+
* 方舟解密
|
|
194
|
+
* @param content 需要解密对文本
|
|
195
195
|
*/
|
|
196
196
|
|
|
197
197
|
var arkDecrypt = function arkDecrypt(content) {
|