mcrm-mobile 1.3.7 → 1.3.9-bata.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.
- package/es/common-utils/index.js +31 -0
- package/es/data-process/index.js +7 -1
- package/es/field/index.js +14 -2
- package/es/http/index.js +12 -8
- package/es/index.css +25 -0
- package/es/index.js +1 -1
- package/es/nav-bar/index.css +25 -0
- package/es/nav-bar/index.js +30 -1
- package/es/nav-bar/index.less +23 -0
- package/es/style/css/iconfont.css +4 -4
- package/es/style/fonts/iconfont.ttf +0 -0
- package/es/style/fonts/iconfont.woff +0 -0
- package/es/style/fonts/iconfont.woff2 +0 -0
- package/es/utils/create-request-body/json.js +6 -3
- package/es/utils/http.js +5 -7
- package/es/utils/index.js +2 -4
- package/lib/common-utils/index.js +31 -0
- package/lib/data-process/index.js +7 -1
- package/lib/field/index.js +14 -2
- package/lib/http/index.js +12 -8
- package/lib/index.css +25 -0
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +104 -23
- package/lib/mcrm-mobile.min.css +1 -1
- package/lib/mcrm-mobile.min.js +2 -2
- package/lib/nav-bar/index.css +25 -0
- package/lib/nav-bar/index.js +30 -1
- package/lib/nav-bar/index.less +23 -0
- package/lib/style/css/iconfont.css +4 -4
- package/lib/style/fonts/iconfont.ttf +0 -0
- package/lib/style/fonts/iconfont.woff +0 -0
- package/lib/style/fonts/iconfont.woff2 +0 -0
- package/lib/utils/create-request-body/json.js +6 -3
- package/lib/utils/http.js +2 -6
- package/lib/utils/index.js +2 -6
- package/package.json +1 -1
- package/types/common.d.ts +28 -0
- package/types/data-process.d.ts +2 -2
- package/vetur/attributes.json +130 -114
- package/vetur/tags.json +30 -26
- package/vetur/web-types.json +240 -204
package/es/common-utils/index.js
CHANGED
|
@@ -255,5 +255,36 @@ CommonUtils.zeroPadding = function (fn, num, digits, type) {
|
|
|
255
255
|
return result;
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
+
CommonUtils.getMonthFirstDay = function (date, format) {
|
|
259
|
+
if (format === void 0) {
|
|
260
|
+
format = "yyyy-MM-dd";
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if (date) {
|
|
264
|
+
date = CommonUtils.formattingTime(date, format);
|
|
265
|
+
} else {
|
|
266
|
+
date = CommonUtils.getSysDateTime(format);
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
date.day = "01";
|
|
270
|
+
date.desc = date.desc.substring(0, date.desc.length - 2) + "01";
|
|
271
|
+
return date;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
CommonUtils.getMonthLastDay = function (date, format) {
|
|
275
|
+
if (format === void 0) {
|
|
276
|
+
format = "yyyy-MM-dd";
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (date) {
|
|
280
|
+
date = CommonUtils.formattingTime(date, format);
|
|
281
|
+
} else {
|
|
282
|
+
date = CommonUtils.getSysDateTime(format);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
date = CommonUtils.formattingTime(new Date(date.year, date.month, 0), format);
|
|
286
|
+
return date;
|
|
287
|
+
};
|
|
288
|
+
|
|
258
289
|
Vue.prototype.$CommonUtils = CommonUtils;
|
|
259
290
|
export default CommonUtils;
|
package/es/data-process/index.js
CHANGED
|
@@ -11,6 +11,9 @@ var _require = require("./ark.js"),
|
|
|
11
11
|
decodeBase64ForSec = _require.decodeBase64ForSec;
|
|
12
12
|
|
|
13
13
|
var CryptoJS = require("crypto-js");
|
|
14
|
+
|
|
15
|
+
var KEY = "TUNSTWQ1jcm1BQkNEIRUZHSA==";
|
|
16
|
+
var IV = "VGRtYlmdsalAxMWUxBcHJraw==";
|
|
14
17
|
/**
|
|
15
18
|
* AES加密
|
|
16
19
|
* @param content 需加密的文本
|
|
@@ -18,8 +21,9 @@ var CryptoJS = require("crypto-js");
|
|
|
18
21
|
* @param iv 偏移量
|
|
19
22
|
*/
|
|
20
23
|
|
|
21
|
-
|
|
22
24
|
var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
25
|
+
if (!key) key = arkDecrypt(KEY);
|
|
26
|
+
if (!iv) iv = arkDecrypt(IV);
|
|
23
27
|
key = CryptoJS.enc.Utf8.parse(key); //十六位十六进制数作为密钥
|
|
24
28
|
|
|
25
29
|
iv = CryptoJS.enc.Utf8.parse(iv); //十六位十六进制数作为密钥偏移量
|
|
@@ -39,6 +43,8 @@ var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
|
39
43
|
|
|
40
44
|
|
|
41
45
|
var aesDecrypt = function aesDecrypt(content, key, iv) {
|
|
46
|
+
if (!key) key = arkDecrypt(KEY);
|
|
47
|
+
if (!iv) iv = arkDecrypt(IV);
|
|
42
48
|
key = CryptoJS.enc.Utf8.parse(key); //十六位十六进制数作为密钥
|
|
43
49
|
|
|
44
50
|
iv = CryptoJS.enc.Utf8.parse(iv); //十六位十六进制数作为密钥偏移量
|
package/es/field/index.js
CHANGED
|
@@ -107,7 +107,9 @@ export default create({
|
|
|
107
107
|
type: String,
|
|
108
108
|
default: "text"
|
|
109
109
|
},
|
|
110
|
-
autoFocus: Boolean
|
|
110
|
+
autoFocus: Boolean,
|
|
111
|
+
isTrim: Boolean,
|
|
112
|
+
regular: RegExp
|
|
111
113
|
},
|
|
112
114
|
data: function data() {
|
|
113
115
|
return {
|
|
@@ -115,7 +117,7 @@ export default create({
|
|
|
115
117
|
};
|
|
116
118
|
},
|
|
117
119
|
watch: {
|
|
118
|
-
value: function value() {
|
|
120
|
+
value: function value(newVal) {
|
|
119
121
|
this.$nextTick(this.adjustSize);
|
|
120
122
|
}
|
|
121
123
|
},
|
|
@@ -166,6 +168,16 @@ export default create({
|
|
|
166
168
|
target.value = value;
|
|
167
169
|
}
|
|
168
170
|
|
|
171
|
+
if (this.isTrim) {
|
|
172
|
+
value = value.replace(/ /g, "");
|
|
173
|
+
target.value = value;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
if (this.regular) {
|
|
177
|
+
value = value.replace(this.regular, "");
|
|
178
|
+
target.value = value;
|
|
179
|
+
}
|
|
180
|
+
|
|
169
181
|
return value;
|
|
170
182
|
},
|
|
171
183
|
onInput: function onInput(event) {
|
package/es/http/index.js
CHANGED
|
@@ -158,14 +158,18 @@ var authMenuPageQuery = /*#__PURE__*/function () {
|
|
|
158
158
|
while (1) {
|
|
159
159
|
switch (_context4.prev = _context4.next) {
|
|
160
160
|
case 0:
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
case
|
|
161
|
+
_context4.t0 = post;
|
|
162
|
+
_context4.next = 3;
|
|
163
|
+
return json({
|
|
164
|
+
pageCode: pageCode,
|
|
165
|
+
pageType: pageType
|
|
166
|
+
}, []);
|
|
167
|
+
|
|
168
|
+
case 3:
|
|
169
|
+
_context4.t1 = _context4.sent;
|
|
170
|
+
return _context4.abrupt("return", (0, _context4.t0)("/auth/menu/page/query", _context4.t1));
|
|
171
|
+
|
|
172
|
+
case 5:
|
|
169
173
|
case "end":
|
|
170
174
|
return _context4.stop();
|
|
171
175
|
}
|
package/es/index.css
CHANGED
|
@@ -3106,6 +3106,31 @@ textarea {
|
|
|
3106
3106
|
color: #0095fd;
|
|
3107
3107
|
font-size: 22px;
|
|
3108
3108
|
}
|
|
3109
|
+
.mm-nav-bar-action-chat {
|
|
3110
|
+
display: -webkit-box;
|
|
3111
|
+
display: -ms-flexbox;
|
|
3112
|
+
display: flex;
|
|
3113
|
+
padding: 0 8px;
|
|
3114
|
+
height: 22px;
|
|
3115
|
+
border-radius: 11px;
|
|
3116
|
+
border: 1px solid #0085cf;
|
|
3117
|
+
}
|
|
3118
|
+
.mm-nav-bar-action-chat div {
|
|
3119
|
+
display: -webkit-box;
|
|
3120
|
+
display: -ms-flexbox;
|
|
3121
|
+
display: flex;
|
|
3122
|
+
-webkit-box-align: center;
|
|
3123
|
+
-ms-flex-align: center;
|
|
3124
|
+
align-items: center;
|
|
3125
|
+
height: 100%;
|
|
3126
|
+
}
|
|
3127
|
+
.mm-nav-bar-action-chat-left {
|
|
3128
|
+
border-right: 1px solid #0085cf;
|
|
3129
|
+
padding-right: 8px;
|
|
3130
|
+
}
|
|
3131
|
+
.mm-nav-bar-action-chat-right {
|
|
3132
|
+
padding-left: 8px;
|
|
3133
|
+
}
|
|
3109
3134
|
.mm-nav-bar-title {
|
|
3110
3135
|
position: absolute;
|
|
3111
3136
|
text-align: center;
|
package/es/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import Tag from './tag';
|
|
|
91
91
|
import Toast from './toast';
|
|
92
92
|
import TreeSelect from './tree-select';
|
|
93
93
|
import Uploader from './uploader';
|
|
94
|
-
var version = '1.3.
|
|
94
|
+
var version = '1.3.9-bata.1';
|
|
95
95
|
var components = [ActionSheet, AddressPicker, Api, Badge, Biz, Button, Calendar, Card, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, CommonUtils, CountDown, DataProcess, DatePicker, DatetimePicker, Dialog, Directive, Divider, Drag, DropdownItem, DropdownMenu, Empty, Field, GoodsAction, GoodsActionButton, GoodsActionIcon, Grid, GridItem, Http, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, List, Loading, Local, Menu, MenuIcon, MenuJump, Menus, NavBar, NoticeBar, Notify, Overlay, Pagination, Panel, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rank, Rate, Row, SafeKeyboard, Search, Session, ShareSheet, Sidebar, SidebarItem, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, TableColumn, Tabs, Tag, Toast, TreeSelect, Uploader];
|
|
96
96
|
|
|
97
97
|
var install = function install(Vue) {
|
package/es/nav-bar/index.css
CHANGED
|
@@ -310,6 +310,31 @@
|
|
|
310
310
|
color: #0095fd;
|
|
311
311
|
font-size: 22px;
|
|
312
312
|
}
|
|
313
|
+
.mm-nav-bar-action-chat {
|
|
314
|
+
display: -webkit-box;
|
|
315
|
+
display: -ms-flexbox;
|
|
316
|
+
display: flex;
|
|
317
|
+
padding: 0 8px;
|
|
318
|
+
height: 22px;
|
|
319
|
+
border-radius: 11px;
|
|
320
|
+
border: 1px solid #0085cf;
|
|
321
|
+
}
|
|
322
|
+
.mm-nav-bar-action-chat div {
|
|
323
|
+
display: -webkit-box;
|
|
324
|
+
display: -ms-flexbox;
|
|
325
|
+
display: flex;
|
|
326
|
+
-webkit-box-align: center;
|
|
327
|
+
-ms-flex-align: center;
|
|
328
|
+
align-items: center;
|
|
329
|
+
height: 100%;
|
|
330
|
+
}
|
|
331
|
+
.mm-nav-bar-action-chat-left {
|
|
332
|
+
border-right: 1px solid #0085cf;
|
|
333
|
+
padding-right: 8px;
|
|
334
|
+
}
|
|
335
|
+
.mm-nav-bar-action-chat-right {
|
|
336
|
+
padding-left: 8px;
|
|
337
|
+
}
|
|
313
338
|
.mm-nav-bar-title {
|
|
314
339
|
position: absolute;
|
|
315
340
|
text-align: center;
|
package/es/nav-bar/index.js
CHANGED
|
@@ -85,7 +85,35 @@ export default create({
|
|
|
85
85
|
"name": "nav-close"
|
|
86
86
|
}
|
|
87
87
|
})];
|
|
88
|
-
})], 2) : _vm._e()
|
|
88
|
+
})], 2) : _vm._e(), _vm.showChatCrm ? _c('div', {
|
|
89
|
+
class: _vm.b('action-chat')
|
|
90
|
+
}, [_c('div', {
|
|
91
|
+
class: _vm.b('action-chat-left'),
|
|
92
|
+
on: {
|
|
93
|
+
"click": function click($event) {
|
|
94
|
+
return _vm.$emit('chat');
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}, [_c('icon', {
|
|
98
|
+
attrs: {
|
|
99
|
+
"size": "12",
|
|
100
|
+
"color": "#0085cf",
|
|
101
|
+
"name": "ellipsis-h"
|
|
102
|
+
}
|
|
103
|
+
})], 1), _c('div', {
|
|
104
|
+
class: _vm.b('action-chat-right'),
|
|
105
|
+
on: {
|
|
106
|
+
"click": function click($event) {
|
|
107
|
+
return _vm.$emit('close');
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}, [_c('icon', {
|
|
111
|
+
attrs: {
|
|
112
|
+
"size": "10",
|
|
113
|
+
"color": "#0085cf",
|
|
114
|
+
"name": "close"
|
|
115
|
+
}
|
|
116
|
+
})], 1)]) : _vm._e()])])]);
|
|
89
117
|
},
|
|
90
118
|
name: "nav-bar",
|
|
91
119
|
props: {
|
|
@@ -95,6 +123,7 @@ export default create({
|
|
|
95
123
|
rightText: String,
|
|
96
124
|
leftArrow: Boolean,
|
|
97
125
|
showClose: Boolean,
|
|
126
|
+
showChatCrm: Boolean,
|
|
98
127
|
closeIconPosition: {
|
|
99
128
|
type: String,
|
|
100
129
|
default: "left"
|
package/es/nav-bar/index.less
CHANGED
|
@@ -46,6 +46,29 @@
|
|
|
46
46
|
color: @blue;
|
|
47
47
|
font-size: @nav-bar-close-font-size;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
&-chat {
|
|
51
|
+
display: flex;
|
|
52
|
+
padding: 0 8px;
|
|
53
|
+
height: 22px;
|
|
54
|
+
border-radius: 11px;
|
|
55
|
+
border: 1px solid #0085cf;
|
|
56
|
+
|
|
57
|
+
div {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
height: 100%;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-left {
|
|
64
|
+
border-right: 1px solid #0085cf;
|
|
65
|
+
padding-right: 8px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&-right {
|
|
69
|
+
padding-left: 8px;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
49
72
|
}
|
|
50
73
|
|
|
51
74
|
&-title {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.mm-icon-close:before {
|
|
17
|
+
content: "\e760";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.mm-icon-chevron-circle-right-o:before {
|
|
17
21
|
content: "\ec63";
|
|
18
22
|
}
|
|
@@ -365,10 +369,6 @@
|
|
|
365
369
|
content: "\eb50";
|
|
366
370
|
}
|
|
367
371
|
|
|
368
|
-
.mm-icon-close:before {
|
|
369
|
-
content: "\e760";
|
|
370
|
-
}
|
|
371
|
-
|
|
372
372
|
.mm-icon-biking:before {
|
|
373
373
|
content: "\e64e";
|
|
374
374
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -9,7 +9,7 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
|
9
9
|
import { getExpInfo } from "../index";
|
|
10
10
|
export var json = /*#__PURE__*/function () {
|
|
11
11
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(body, headerList) {
|
|
12
|
-
var expInfo, header;
|
|
12
|
+
var expInfo, appVersion, header;
|
|
13
13
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
14
14
|
while (1) {
|
|
15
15
|
switch (_context.prev = _context.next) {
|
|
@@ -23,7 +23,10 @@ export var json = /*#__PURE__*/function () {
|
|
|
23
23
|
|
|
24
24
|
case 3:
|
|
25
25
|
expInfo = _context.sent;
|
|
26
|
-
|
|
26
|
+
appVersion = expInfo.appVersion;
|
|
27
|
+
header = {
|
|
28
|
+
appVersion: appVersion
|
|
29
|
+
};
|
|
27
30
|
headerList.forEach(function (value) {
|
|
28
31
|
return header[value] = expInfo[value];
|
|
29
32
|
});
|
|
@@ -32,7 +35,7 @@ export var json = /*#__PURE__*/function () {
|
|
|
32
35
|
body: body
|
|
33
36
|
});
|
|
34
37
|
|
|
35
|
-
case
|
|
38
|
+
case 8:
|
|
36
39
|
case "end":
|
|
37
40
|
return _context.stop();
|
|
38
41
|
}
|
package/es/utils/http.js
CHANGED
|
@@ -3,11 +3,9 @@ import Session from "../session";
|
|
|
3
3
|
import Dialog from "../dialog";
|
|
4
4
|
import mcrm from "mcrm-jsapi";
|
|
5
5
|
import Message from "./message.json";
|
|
6
|
-
import
|
|
6
|
+
import DataProcess from "../data-process";
|
|
7
7
|
import Http from "../http";
|
|
8
8
|
import CommonUtils from "../common-utils";
|
|
9
|
-
var key = dataProcess.arkDecrypt(process.env.KEY);
|
|
10
|
-
var iv = dataProcess.arkDecrypt(process.env.IV);
|
|
11
9
|
var instanceJson = axios.create({
|
|
12
10
|
method: "post",
|
|
13
11
|
headers: {
|
|
@@ -27,8 +25,8 @@ instanceJson.interceptors.request.use(function (config) {
|
|
|
27
25
|
orgId = _ref.orgId;
|
|
28
26
|
|
|
29
27
|
if (opId && orgId) {
|
|
30
|
-
var AIPortal_Oper_OpId =
|
|
31
|
-
var AIPortal_Oper_OrgId =
|
|
28
|
+
var AIPortal_Oper_OpId = DataProcess.base64Encrypt(opId);
|
|
29
|
+
var AIPortal_Oper_OrgId = DataProcess.base64Encrypt(orgId);
|
|
32
30
|
config.headers && (config.headers["Cookie"] = "AIPortal_Oper_OpId=" + AIPortal_Oper_OpId + ";AIPortal_Oper_OrgId=" + AIPortal_Oper_OrgId + ";");
|
|
33
31
|
}
|
|
34
32
|
|
|
@@ -37,7 +35,7 @@ instanceJson.interceptors.request.use(function (config) {
|
|
|
37
35
|
config && (config["responseType"] = "text");
|
|
38
36
|
var data = config.data;
|
|
39
37
|
typeof data === "object" && (data = JSON.stringify(data));
|
|
40
|
-
config.data =
|
|
38
|
+
config.data = DataProcess.aesEncrypt(data);
|
|
41
39
|
}
|
|
42
40
|
|
|
43
41
|
if (SESSIONNEED && SESSIONNEED !== "null") {
|
|
@@ -55,7 +53,7 @@ instanceJson.interceptors.response.use(function (response) {
|
|
|
55
53
|
|
|
56
54
|
if (response.headers["Secure-Version"] || response.config && response.config.headers && response.config.headers["Secure-Version"]) {
|
|
57
55
|
try {
|
|
58
|
-
resData =
|
|
56
|
+
resData = DataProcess.aesDecrypt(resData);
|
|
59
57
|
|
|
60
58
|
if (typeof resData === "string") {
|
|
61
59
|
resData = JSON.parse(resData);
|
package/es/utils/index.js
CHANGED
|
@@ -4,8 +4,6 @@ import Vue from "vue";
|
|
|
4
4
|
import Session from "../session";
|
|
5
5
|
import mcrm from "mcrm-jsapi";
|
|
6
6
|
import DataProcess from "../data-process";
|
|
7
|
-
var key = DataProcess.arkDecrypt(process.env.KEY);
|
|
8
|
-
var iv = DataProcess.arkDecrypt(process.env.IV);
|
|
9
7
|
var isServer = Vue.prototype.$isServer;
|
|
10
8
|
var inBrowser = typeof window !== "undefined";
|
|
11
9
|
|
|
@@ -103,7 +101,7 @@ var cacheEncrypt = function cacheEncrypt(value) {
|
|
|
103
101
|
data: value,
|
|
104
102
|
type: typeof value
|
|
105
103
|
});
|
|
106
|
-
return
|
|
104
|
+
return DataProcess.aesEncrypt(data);
|
|
107
105
|
};
|
|
108
106
|
|
|
109
107
|
var cacheDecrypt = function cacheDecrypt(data) {
|
|
@@ -125,7 +123,7 @@ var cacheDecrypt = function cacheDecrypt(data) {
|
|
|
125
123
|
|
|
126
124
|
try {
|
|
127
125
|
if (isDef(data)) {
|
|
128
|
-
var decryptData =
|
|
126
|
+
var decryptData = DataProcess.aesDecrypt(data);
|
|
129
127
|
|
|
130
128
|
if (decryptData) {
|
|
131
129
|
var objData = JSON.parse(decryptData);
|
|
@@ -263,6 +263,37 @@ CommonUtils.zeroPadding = function (fn, num, digits, type) {
|
|
|
263
263
|
return result;
|
|
264
264
|
};
|
|
265
265
|
|
|
266
|
+
CommonUtils.getMonthFirstDay = function (date, format) {
|
|
267
|
+
if (format === void 0) {
|
|
268
|
+
format = "yyyy-MM-dd";
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
if (date) {
|
|
272
|
+
date = CommonUtils.formattingTime(date, format);
|
|
273
|
+
} else {
|
|
274
|
+
date = CommonUtils.getSysDateTime(format);
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
date.day = "01";
|
|
278
|
+
date.desc = date.desc.substring(0, date.desc.length - 2) + "01";
|
|
279
|
+
return date;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
CommonUtils.getMonthLastDay = function (date, format) {
|
|
283
|
+
if (format === void 0) {
|
|
284
|
+
format = "yyyy-MM-dd";
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (date) {
|
|
288
|
+
date = CommonUtils.formattingTime(date, format);
|
|
289
|
+
} else {
|
|
290
|
+
date = CommonUtils.getSysDateTime(format);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
date = CommonUtils.formattingTime(new Date(date.year, date.month, 0), format);
|
|
294
|
+
return date;
|
|
295
|
+
};
|
|
296
|
+
|
|
266
297
|
_vue.default.prototype.$CommonUtils = CommonUtils;
|
|
267
298
|
var _default = CommonUtils;
|
|
268
299
|
exports.default = _default;
|
|
@@ -19,6 +19,9 @@ var _require = require("./ark.js"),
|
|
|
19
19
|
decodeBase64ForSec = _require.decodeBase64ForSec;
|
|
20
20
|
|
|
21
21
|
var CryptoJS = require("crypto-js");
|
|
22
|
+
|
|
23
|
+
var KEY = "TUNSTWQ1jcm1BQkNEIRUZHSA==";
|
|
24
|
+
var IV = "VGRtYlmdsalAxMWUxBcHJraw==";
|
|
22
25
|
/**
|
|
23
26
|
* AES加密
|
|
24
27
|
* @param content 需加密的文本
|
|
@@ -26,8 +29,9 @@ var CryptoJS = require("crypto-js");
|
|
|
26
29
|
* @param iv 偏移量
|
|
27
30
|
*/
|
|
28
31
|
|
|
29
|
-
|
|
30
32
|
var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
33
|
+
if (!key) key = arkDecrypt(KEY);
|
|
34
|
+
if (!iv) iv = arkDecrypt(IV);
|
|
31
35
|
key = CryptoJS.enc.Utf8.parse(key); //十六位十六进制数作为密钥
|
|
32
36
|
|
|
33
37
|
iv = CryptoJS.enc.Utf8.parse(iv); //十六位十六进制数作为密钥偏移量
|
|
@@ -47,6 +51,8 @@ var aesEncrypt = function aesEncrypt(content, key, iv) {
|
|
|
47
51
|
|
|
48
52
|
|
|
49
53
|
var aesDecrypt = function aesDecrypt(content, key, iv) {
|
|
54
|
+
if (!key) key = arkDecrypt(KEY);
|
|
55
|
+
if (!iv) iv = arkDecrypt(IV);
|
|
50
56
|
key = CryptoJS.enc.Utf8.parse(key); //十六位十六进制数作为密钥
|
|
51
57
|
|
|
52
58
|
iv = CryptoJS.enc.Utf8.parse(iv); //十六位十六进制数作为密钥偏移量
|
package/lib/field/index.js
CHANGED
|
@@ -119,7 +119,9 @@ var _default = (0, _create.default)({
|
|
|
119
119
|
type: String,
|
|
120
120
|
default: "text"
|
|
121
121
|
},
|
|
122
|
-
autoFocus: Boolean
|
|
122
|
+
autoFocus: Boolean,
|
|
123
|
+
isTrim: Boolean,
|
|
124
|
+
regular: RegExp
|
|
123
125
|
},
|
|
124
126
|
data: function data() {
|
|
125
127
|
return {
|
|
@@ -127,7 +129,7 @@ var _default = (0, _create.default)({
|
|
|
127
129
|
};
|
|
128
130
|
},
|
|
129
131
|
watch: {
|
|
130
|
-
value: function value() {
|
|
132
|
+
value: function value(newVal) {
|
|
131
133
|
this.$nextTick(this.adjustSize);
|
|
132
134
|
}
|
|
133
135
|
},
|
|
@@ -178,6 +180,16 @@ var _default = (0, _create.default)({
|
|
|
178
180
|
target.value = value;
|
|
179
181
|
}
|
|
180
182
|
|
|
183
|
+
if (this.isTrim) {
|
|
184
|
+
value = value.replace(/ /g, "");
|
|
185
|
+
target.value = value;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
if (this.regular) {
|
|
189
|
+
value = value.replace(this.regular, "");
|
|
190
|
+
target.value = value;
|
|
191
|
+
}
|
|
192
|
+
|
|
181
193
|
return value;
|
|
182
194
|
},
|
|
183
195
|
onInput: function onInput(event) {
|
package/lib/http/index.js
CHANGED
|
@@ -169,14 +169,18 @@ var authMenuPageQuery = /*#__PURE__*/function () {
|
|
|
169
169
|
while (1) {
|
|
170
170
|
switch (_context4.prev = _context4.next) {
|
|
171
171
|
case 0:
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
case
|
|
172
|
+
_context4.t0 = _http.post;
|
|
173
|
+
_context4.next = 3;
|
|
174
|
+
return (0, _json.json)({
|
|
175
|
+
pageCode: pageCode,
|
|
176
|
+
pageType: pageType
|
|
177
|
+
}, []);
|
|
178
|
+
|
|
179
|
+
case 3:
|
|
180
|
+
_context4.t1 = _context4.sent;
|
|
181
|
+
return _context4.abrupt("return", (0, _context4.t0)("/auth/menu/page/query", _context4.t1));
|
|
182
|
+
|
|
183
|
+
case 5:
|
|
180
184
|
case "end":
|
|
181
185
|
return _context4.stop();
|
|
182
186
|
}
|
package/lib/index.css
CHANGED
|
@@ -3106,6 +3106,31 @@ textarea {
|
|
|
3106
3106
|
color: #0095fd;
|
|
3107
3107
|
font-size: 22px;
|
|
3108
3108
|
}
|
|
3109
|
+
.mm-nav-bar-action-chat {
|
|
3110
|
+
display: -webkit-box;
|
|
3111
|
+
display: -ms-flexbox;
|
|
3112
|
+
display: flex;
|
|
3113
|
+
padding: 0 8px;
|
|
3114
|
+
height: 22px;
|
|
3115
|
+
border-radius: 11px;
|
|
3116
|
+
border: 1px solid #0085cf;
|
|
3117
|
+
}
|
|
3118
|
+
.mm-nav-bar-action-chat div {
|
|
3119
|
+
display: -webkit-box;
|
|
3120
|
+
display: -ms-flexbox;
|
|
3121
|
+
display: flex;
|
|
3122
|
+
-webkit-box-align: center;
|
|
3123
|
+
-ms-flex-align: center;
|
|
3124
|
+
align-items: center;
|
|
3125
|
+
height: 100%;
|
|
3126
|
+
}
|
|
3127
|
+
.mm-nav-bar-action-chat-left {
|
|
3128
|
+
border-right: 1px solid #0085cf;
|
|
3129
|
+
padding-right: 8px;
|
|
3130
|
+
}
|
|
3131
|
+
.mm-nav-bar-action-chat-right {
|
|
3132
|
+
padding-left: 8px;
|
|
3133
|
+
}
|
|
3109
3134
|
.mm-nav-bar-title {
|
|
3110
3135
|
position: absolute;
|
|
3111
3136
|
text-align: center;
|
package/lib/index.js
CHANGED
|
@@ -373,7 +373,7 @@ var _uploader = _interopRequireDefault(require("./uploader"));
|
|
|
373
373
|
|
|
374
374
|
exports.Uploader = _uploader.default;
|
|
375
375
|
// This file is auto generated by build/build-entry.js
|
|
376
|
-
var version = '1.3.
|
|
376
|
+
var version = '1.3.9-bata.1';
|
|
377
377
|
exports.version = version;
|
|
378
378
|
var components = [_actionSheet.default, _addressPicker.default, _api.default, _badge.default, _biz.default, _button.default, _calendar.default, _card.default, _cell.default, _cellGroup.default, _checkbox.default, _checkboxGroup.default, _circle.default, _col.default, _collapse.default, _collapseItem.default, _commonUtils.default, _countDown.default, _dataProcess.default, _datePicker.default, _datetimePicker.default, _dialog.default, _directive.default, _divider.default, _drag.default, _dropdownItem.default, _dropdownMenu.default, _empty.default, _field.default, _goodsAction.default, _goodsActionButton.default, _goodsActionIcon.default, _grid.default, _gridItem.default, _http.default, _icon.default, _image.default, _imagePreview.default, _indexAnchor.default, _indexBar.default, _info.default, _list.default, _loading.default, _local.default, _menu.default, _menuIcon.default, _menuJump.default, _menus.default, _navBar.default, _noticeBar.default, _notify.default, _overlay.default, _pagination.default, _panel.default, _passwordInput.default, _picker.default, _popover.default, _popup.default, _progress.default, _pullRefresh.default, _radio.default, _radioGroup.default, _rank.default, _rate.default, _row.default, _safeKeyboard.default, _search.default, _session.default, _shareSheet.default, _sidebar.default, _sidebarItem.default, _slider.default, _step.default, _stepper.default, _steps.default, _sticky.default, _swipe.default, _swipeCell.default, _swipeItem.default, _switch.default, _switchCell.default, _tab.default, _tabbar.default, _tabbarItem.default, _table.default, _tableColumn.default, _tabs.default, _tag.default, _toast.default, _treeSelect.default, _uploader.default];
|
|
379
379
|
|