mcrm-mobile 1.3.9 → 1.4.0-bata.0
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/http/index.js +58 -23
- package/es/index.css +28 -0
- package/es/index.js +1 -1
- package/es/menu-jump/index.js +112 -45
- package/es/style/base.css +28 -0
- package/es/style/theme.less +5 -0
- package/es/tabs/index.css +28 -0
- package/es/tabs/index.js +7 -1
- package/es/tabs/index.less +32 -0
- package/es/utils/http.js +3 -1
- package/es/utils/index.js +3 -2
- package/lib/http/index.js +58 -23
- package/lib/index.css +28 -0
- package/lib/index.js +1 -1
- package/lib/mcrm-mobile.js +184 -73
- package/lib/mcrm-mobile.min.css +1 -1
- package/lib/mcrm-mobile.min.js +3 -3
- package/lib/menu-jump/index.js +112 -45
- package/lib/style/base.css +28 -0
- package/lib/style/theme.less +5 -0
- package/lib/tabs/index.css +28 -0
- package/lib/tabs/index.js +7 -1
- package/lib/tabs/index.less +32 -0
- package/lib/utils/http.js +3 -1
- package/lib/utils/index.js +3 -2
- package/package.json +1 -1
- package/vetur/attributes.json +41 -37
- package/vetur/tags.json +18 -17
- package/vetur/web-types.json +124 -114
- package/es/.DS_Store +0 -0
- package/es/data-process/.DS_Store +0 -0
- package/lib/.DS_Store +0 -0
- package/lib/data-process/.DS_Store +0 -0
package/es/http/index.js
CHANGED
|
@@ -227,6 +227,40 @@ var menuPageVerify = /*#__PURE__*/function () {
|
|
|
227
227
|
return _ref5.apply(this, arguments);
|
|
228
228
|
};
|
|
229
229
|
}();
|
|
230
|
+
/**
|
|
231
|
+
* 引流菜单校验接口
|
|
232
|
+
* @param {string} menuCode 菜单编号
|
|
233
|
+
*/
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
var menuCanaryRedirect = /*#__PURE__*/function () {
|
|
237
|
+
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(menuCode) {
|
|
238
|
+
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
239
|
+
while (1) {
|
|
240
|
+
switch (_context6.prev = _context6.next) {
|
|
241
|
+
case 0:
|
|
242
|
+
_context6.t0 = post;
|
|
243
|
+
_context6.next = 3;
|
|
244
|
+
return json({
|
|
245
|
+
menuCode: menuCode
|
|
246
|
+
}, ["opId"]);
|
|
247
|
+
|
|
248
|
+
case 3:
|
|
249
|
+
_context6.t1 = _context6.sent;
|
|
250
|
+
return _context6.abrupt("return", (0, _context6.t0)("/core/menu/redirect", _context6.t1));
|
|
251
|
+
|
|
252
|
+
case 5:
|
|
253
|
+
case "end":
|
|
254
|
+
return _context6.stop();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}, _callee6);
|
|
258
|
+
}));
|
|
259
|
+
|
|
260
|
+
return function menuCanaryRedirect(_x8) {
|
|
261
|
+
return _ref6.apply(this, arguments);
|
|
262
|
+
};
|
|
263
|
+
}();
|
|
230
264
|
/**
|
|
231
265
|
* 引流地址查询接口
|
|
232
266
|
* @param {string} envTag 环境标识
|
|
@@ -236,13 +270,13 @@ var menuPageVerify = /*#__PURE__*/function () {
|
|
|
236
270
|
|
|
237
271
|
|
|
238
272
|
var coreCanaryRedirect = /*#__PURE__*/function () {
|
|
239
|
-
var
|
|
240
|
-
return _regeneratorRuntime.wrap(function
|
|
273
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7(envTag, opSys, appVersion) {
|
|
274
|
+
return _regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
241
275
|
while (1) {
|
|
242
|
-
switch (
|
|
276
|
+
switch (_context7.prev = _context7.next) {
|
|
243
277
|
case 0:
|
|
244
|
-
|
|
245
|
-
|
|
278
|
+
_context7.t0 = post;
|
|
279
|
+
_context7.next = 3;
|
|
246
280
|
return json({
|
|
247
281
|
envTag: envTag,
|
|
248
282
|
opSys: opSys,
|
|
@@ -250,19 +284,19 @@ var coreCanaryRedirect = /*#__PURE__*/function () {
|
|
|
250
284
|
}, ["opId", "orgId", "cityCode"]);
|
|
251
285
|
|
|
252
286
|
case 3:
|
|
253
|
-
|
|
254
|
-
return
|
|
287
|
+
_context7.t1 = _context7.sent;
|
|
288
|
+
return _context7.abrupt("return", (0, _context7.t0)("/core/canary/redirect", _context7.t1));
|
|
255
289
|
|
|
256
290
|
case 5:
|
|
257
291
|
case "end":
|
|
258
|
-
return
|
|
292
|
+
return _context7.stop();
|
|
259
293
|
}
|
|
260
294
|
}
|
|
261
|
-
},
|
|
295
|
+
}, _callee7);
|
|
262
296
|
}));
|
|
263
297
|
|
|
264
|
-
return function coreCanaryRedirect(
|
|
265
|
-
return
|
|
298
|
+
return function coreCanaryRedirect(_x9, _x10, _x11) {
|
|
299
|
+
return _ref7.apply(this, arguments);
|
|
266
300
|
};
|
|
267
301
|
}();
|
|
268
302
|
/**
|
|
@@ -297,29 +331,29 @@ var coreCanaryRedirect = /*#__PURE__*/function () {
|
|
|
297
331
|
|
|
298
332
|
|
|
299
333
|
var buryingSaveLog = /*#__PURE__*/function () {
|
|
300
|
-
var
|
|
301
|
-
return _regeneratorRuntime.wrap(function
|
|
334
|
+
var _ref8 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(body) {
|
|
335
|
+
return _regeneratorRuntime.wrap(function _callee8$(_context8) {
|
|
302
336
|
while (1) {
|
|
303
|
-
switch (
|
|
337
|
+
switch (_context8.prev = _context8.next) {
|
|
304
338
|
case 0:
|
|
305
|
-
|
|
306
|
-
|
|
339
|
+
_context8.t0 = post;
|
|
340
|
+
_context8.next = 3;
|
|
307
341
|
return json(body, ["opId", "orgId"]);
|
|
308
342
|
|
|
309
343
|
case 3:
|
|
310
|
-
|
|
311
|
-
return
|
|
344
|
+
_context8.t1 = _context8.sent;
|
|
345
|
+
return _context8.abrupt("return", (0, _context8.t0)("/logstash/burying/saveLog", _context8.t1));
|
|
312
346
|
|
|
313
347
|
case 5:
|
|
314
348
|
case "end":
|
|
315
|
-
return
|
|
349
|
+
return _context8.stop();
|
|
316
350
|
}
|
|
317
351
|
}
|
|
318
|
-
},
|
|
352
|
+
}, _callee8);
|
|
319
353
|
}));
|
|
320
354
|
|
|
321
|
-
return function buryingSaveLog(
|
|
322
|
-
return
|
|
355
|
+
return function buryingSaveLog(_x12) {
|
|
356
|
+
return _ref8.apply(this, arguments);
|
|
323
357
|
};
|
|
324
358
|
}();
|
|
325
359
|
|
|
@@ -330,7 +364,8 @@ var Http = {
|
|
|
330
364
|
menuPageVerify: menuPageVerify,
|
|
331
365
|
coreCanaryRedirect: coreCanaryRedirect,
|
|
332
366
|
buryingSaveLog: buryingSaveLog,
|
|
333
|
-
authMenuPageQuery: authMenuPageQuery
|
|
367
|
+
authMenuPageQuery: authMenuPageQuery,
|
|
368
|
+
menuCanaryRedirect: menuCanaryRedirect
|
|
334
369
|
};
|
|
335
370
|
Vue.prototype.$Http = Http;
|
|
336
371
|
export default Http;
|
package/es/index.css
CHANGED
|
@@ -5522,6 +5522,23 @@ textarea {
|
|
|
5522
5522
|
.mm-tabs-nav-bevel .mm-tab:last-child .mm-tab-text {
|
|
5523
5523
|
padding: 0;
|
|
5524
5524
|
}
|
|
5525
|
+
.mm-tabs-nav-block {
|
|
5526
|
+
background-color: transparent;
|
|
5527
|
+
padding-bottom: 16px;
|
|
5528
|
+
}
|
|
5529
|
+
.mm-tabs-nav-block .mm-tab {
|
|
5530
|
+
background: #fff;
|
|
5531
|
+
-webkit-box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
5532
|
+
box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
5533
|
+
border-radius: 12px;
|
|
5534
|
+
border: 2px solid #fff;
|
|
5535
|
+
}
|
|
5536
|
+
.mm-tabs-nav-block .mm-tab.mm-tab-active {
|
|
5537
|
+
border: 2px solid #0095fd;
|
|
5538
|
+
}
|
|
5539
|
+
.mm-tabs-nav-block .mm-tab + .mm-tab {
|
|
5540
|
+
margin-left: 16px;
|
|
5541
|
+
}
|
|
5525
5542
|
.mm-tabs-nav-button .mm-tab {
|
|
5526
5543
|
background-color: #e5f1ff;
|
|
5527
5544
|
margin-left: 6px;
|
|
@@ -5546,6 +5563,17 @@ textarea {
|
|
|
5546
5563
|
background-color: #0095fd;
|
|
5547
5564
|
border-radius: 3px;
|
|
5548
5565
|
}
|
|
5566
|
+
.mm-tabs--triangle {
|
|
5567
|
+
position: absolute;
|
|
5568
|
+
bottom: 0;
|
|
5569
|
+
left: 0;
|
|
5570
|
+
z-index: 1;
|
|
5571
|
+
width: 0;
|
|
5572
|
+
height: 0;
|
|
5573
|
+
border-top: 10px solid #0095fd;
|
|
5574
|
+
border-right: 10px solid transparent;
|
|
5575
|
+
border-left: 10px solid transparent;
|
|
5576
|
+
}
|
|
5549
5577
|
.mm-tabs-track {
|
|
5550
5578
|
position: relative;
|
|
5551
5579
|
display: -webkit-box;
|
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.
|
|
94
|
+
var version = '1.4.0-bata.0';
|
|
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/menu-jump/index.js
CHANGED
|
@@ -1488,7 +1488,7 @@ var getPageType = function getPageType(menuType) {
|
|
|
1488
1488
|
|
|
1489
1489
|
var open = /*#__PURE__*/function () {
|
|
1490
1490
|
var _ref14 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee13(menu, sybInfo, extraParams, openParams, onClose, onSuccess, onFail) {
|
|
1491
|
-
var _yield$getExpInfo5, cityCode,
|
|
1491
|
+
var newMenu, _Session$get, _Session$get$switchNa, switchNames, _yield$getExpInfo5, cityCode, _newMenu$menuPageCode, pageCode, menuType, notAuth, customEvent, isRoute, _newMenu$menuCode, menuCode, pageUrl, _newMenu$isLogin, isLogin, hideHeader, pageType, isToOpenPage, data;
|
|
1492
1492
|
|
|
1493
1493
|
return _regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
1494
1494
|
while (1) {
|
|
@@ -1518,77 +1518,144 @@ var open = /*#__PURE__*/function () {
|
|
|
1518
1518
|
onFail = null;
|
|
1519
1519
|
}
|
|
1520
1520
|
|
|
1521
|
+
newMenu = _extends({}, menu);
|
|
1522
|
+
_Session$get = Session.get("mmExpInfo"), _Session$get$switchNa = _Session$get.switchNames, switchNames = _Session$get$switchNa === void 0 ? {} : _Session$get$switchNa;
|
|
1523
|
+
|
|
1521
1524
|
if (!sybInfo.billId && extraParams.billId) {
|
|
1522
1525
|
sybInfo.billId = extraParams.billId;
|
|
1523
1526
|
}
|
|
1524
1527
|
|
|
1525
|
-
if (!(
|
|
1526
|
-
_context13.next =
|
|
1528
|
+
if (!(newMenu.menuType === "8")) {
|
|
1529
|
+
_context13.next = 16;
|
|
1527
1530
|
break;
|
|
1528
1531
|
}
|
|
1529
1532
|
|
|
1530
|
-
_context13.next =
|
|
1533
|
+
_context13.next = 12;
|
|
1531
1534
|
return getExpInfo();
|
|
1532
1535
|
|
|
1533
|
-
case
|
|
1536
|
+
case 12:
|
|
1534
1537
|
_yield$getExpInfo5 = _context13.sent;
|
|
1535
1538
|
cityCode = _yield$getExpInfo5.cityCode;
|
|
1536
|
-
|
|
1537
|
-
|
|
1539
|
+
newMenu.menuPageCode = newMenu.menuPageCode.replace("{{cityCode}}", cityCode);
|
|
1540
|
+
newMenu.menuPageCode = newMenu.menuPageCode.replace("cityZone", cityCode);
|
|
1538
1541
|
|
|
1539
|
-
case
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
+
case 16:
|
|
1543
|
+
_newMenu$menuPageCode = newMenu.menuPageCode, pageCode = _newMenu$menuPageCode === void 0 ? "" : _newMenu$menuPageCode;
|
|
1544
|
+
menuType = newMenu.menuType, notAuth = newMenu.notAuth, customEvent = newMenu.customEvent, isRoute = newMenu.isRoute;
|
|
1545
|
+
_newMenu$menuCode = newMenu.menuCode, menuCode = _newMenu$menuCode === void 0 ? "" : _newMenu$menuCode, pageUrl = newMenu.pageUrl, _newMenu$isLogin = newMenu.isLogin, isLogin = _newMenu$isLogin === void 0 ? false : _newMenu$isLogin, hideHeader = newMenu.hideHeader;
|
|
1542
1546
|
pageType = getPageType(menuType);
|
|
1543
1547
|
|
|
1548
|
+
if (!switchNames.MENU_CANARY_REDIRECT) {
|
|
1549
|
+
_context13.next = 38;
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1552
|
+
|
|
1553
|
+
_context13.prev = 21;
|
|
1554
|
+
_context13.next = 24;
|
|
1555
|
+
return Http.menuCanaryRedirect(menuCode);
|
|
1556
|
+
|
|
1557
|
+
case 24:
|
|
1558
|
+
data = _context13.sent;
|
|
1559
|
+
|
|
1560
|
+
if (!data.isForce) {
|
|
1561
|
+
_context13.next = 33;
|
|
1562
|
+
break;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
if (!(data.isForce === "1")) {
|
|
1566
|
+
_context13.next = 31;
|
|
1567
|
+
break;
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
_context13.next = 29;
|
|
1571
|
+
return Dialog.alert({
|
|
1572
|
+
title: data.jumpMessage || "即将进入新菜单"
|
|
1573
|
+
}).then(function () {
|
|
1574
|
+
data.jumpMenuCode && (newMenu.menuCode = data.jumpMenuCode);
|
|
1575
|
+
data.jumpType && (newMenu.menuType = data.jumpType);
|
|
1576
|
+
|
|
1577
|
+
if (data.jumpPageCode) {
|
|
1578
|
+
newMenu.menuPageCode = data.jumpPageCode;
|
|
1579
|
+
pageCode = data.jumpPageCode;
|
|
1580
|
+
}
|
|
1581
|
+
});
|
|
1582
|
+
|
|
1583
|
+
case 29:
|
|
1584
|
+
_context13.next = 33;
|
|
1585
|
+
break;
|
|
1586
|
+
|
|
1587
|
+
case 31:
|
|
1588
|
+
_context13.next = 33;
|
|
1589
|
+
return Dialog.confirm({
|
|
1590
|
+
title: data.jumpMessage || "是否进入新菜单?"
|
|
1591
|
+
}).then(function () {
|
|
1592
|
+
data.jumpMenuCode && (newMenu.menuCode = data.jumpMenuCode);
|
|
1593
|
+
data.jumpType && (newMenu.menuType = data.jumpType);
|
|
1594
|
+
|
|
1595
|
+
if (data.jumpPageCode) {
|
|
1596
|
+
newMenu.menuPageCode = data.jumpPageCode;
|
|
1597
|
+
pageCode = data.jumpPageCode;
|
|
1598
|
+
}
|
|
1599
|
+
});
|
|
1600
|
+
|
|
1601
|
+
case 33:
|
|
1602
|
+
_context13.next = 38;
|
|
1603
|
+
break;
|
|
1604
|
+
|
|
1605
|
+
case 35:
|
|
1606
|
+
_context13.prev = 35;
|
|
1607
|
+
_context13.t0 = _context13["catch"](21);
|
|
1608
|
+
console.error(_context13.t0);
|
|
1609
|
+
|
|
1610
|
+
case 38:
|
|
1544
1611
|
if (!(!menuCode || isLogin)) {
|
|
1545
|
-
_context13.next =
|
|
1612
|
+
_context13.next = 42;
|
|
1546
1613
|
break;
|
|
1547
1614
|
}
|
|
1548
1615
|
|
|
1549
1616
|
isToOpenPage = true;
|
|
1550
|
-
_context13.next =
|
|
1617
|
+
_context13.next = 52;
|
|
1551
1618
|
break;
|
|
1552
1619
|
|
|
1553
|
-
case
|
|
1554
|
-
_context13.prev =
|
|
1555
|
-
_context13.next =
|
|
1556
|
-
return verify(
|
|
1620
|
+
case 42:
|
|
1621
|
+
_context13.prev = 42;
|
|
1622
|
+
_context13.next = 45;
|
|
1623
|
+
return verify(newMenu, sybInfo, notAuth);
|
|
1557
1624
|
|
|
1558
|
-
case
|
|
1625
|
+
case 45:
|
|
1559
1626
|
isToOpenPage = true;
|
|
1560
|
-
_context13.next =
|
|
1627
|
+
_context13.next = 52;
|
|
1561
1628
|
break;
|
|
1562
1629
|
|
|
1563
|
-
case
|
|
1564
|
-
_context13.prev =
|
|
1565
|
-
_context13.
|
|
1630
|
+
case 48:
|
|
1631
|
+
_context13.prev = 48;
|
|
1632
|
+
_context13.t1 = _context13["catch"](42);
|
|
1566
1633
|
isToOpenPage = false;
|
|
1567
1634
|
|
|
1568
1635
|
if (onFail) {
|
|
1569
|
-
_context13.
|
|
1570
|
-
message: _context13.
|
|
1636
|
+
_context13.t1 ? onFail({
|
|
1637
|
+
message: _context13.t1
|
|
1571
1638
|
}) : onFail();
|
|
1572
1639
|
}
|
|
1573
1640
|
|
|
1574
|
-
case
|
|
1641
|
+
case 52:
|
|
1575
1642
|
if (!isToOpenPage) {
|
|
1576
|
-
_context13.next =
|
|
1643
|
+
_context13.next = 71;
|
|
1577
1644
|
break;
|
|
1578
1645
|
}
|
|
1579
1646
|
|
|
1580
1647
|
if (!(isRoute || customEvent)) {
|
|
1581
|
-
_context13.next =
|
|
1648
|
+
_context13.next = 57;
|
|
1582
1649
|
break;
|
|
1583
1650
|
}
|
|
1584
1651
|
|
|
1585
1652
|
onSuccess && onSuccess();
|
|
1586
|
-
_context13.next =
|
|
1653
|
+
_context13.next = 71;
|
|
1587
1654
|
break;
|
|
1588
1655
|
|
|
1589
|
-
case
|
|
1656
|
+
case 57:
|
|
1590
1657
|
if (!pageUrl) {
|
|
1591
|
-
_context13.next =
|
|
1658
|
+
_context13.next = 61;
|
|
1592
1659
|
break;
|
|
1593
1660
|
}
|
|
1594
1661
|
|
|
@@ -1597,7 +1664,7 @@ var open = /*#__PURE__*/function () {
|
|
|
1597
1664
|
url: pageUrl,
|
|
1598
1665
|
hideHeader: hideHeader,
|
|
1599
1666
|
params: openParams,
|
|
1600
|
-
menuInfo:
|
|
1667
|
+
menuInfo: newMenu,
|
|
1601
1668
|
onClose: onClose,
|
|
1602
1669
|
onSuccess: onSuccess,
|
|
1603
1670
|
onFail: onFail
|
|
@@ -1608,12 +1675,12 @@ var open = /*#__PURE__*/function () {
|
|
|
1608
1675
|
});
|
|
1609
1676
|
}
|
|
1610
1677
|
|
|
1611
|
-
_context13.next =
|
|
1678
|
+
_context13.next = 71;
|
|
1612
1679
|
break;
|
|
1613
1680
|
|
|
1614
|
-
case
|
|
1681
|
+
case 61:
|
|
1615
1682
|
if (!isLogin) {
|
|
1616
|
-
_context13.next =
|
|
1683
|
+
_context13.next = 65;
|
|
1617
1684
|
break;
|
|
1618
1685
|
}
|
|
1619
1686
|
|
|
@@ -1624,7 +1691,7 @@ var open = /*#__PURE__*/function () {
|
|
|
1624
1691
|
switch (_context11.prev = _context11.next) {
|
|
1625
1692
|
case 0:
|
|
1626
1693
|
_context11.next = 2;
|
|
1627
|
-
return openPage(data,
|
|
1694
|
+
return openPage(data, newMenu, sybInfo, extraParams, openParams, onClose, onSuccess, onFail);
|
|
1628
1695
|
|
|
1629
1696
|
case 2:
|
|
1630
1697
|
case "end":
|
|
@@ -1642,23 +1709,23 @@ var open = /*#__PURE__*/function () {
|
|
|
1642
1709
|
message: message
|
|
1643
1710
|
});
|
|
1644
1711
|
});
|
|
1645
|
-
_context13.next =
|
|
1712
|
+
_context13.next = 71;
|
|
1646
1713
|
break;
|
|
1647
1714
|
|
|
1648
|
-
case
|
|
1715
|
+
case 65:
|
|
1649
1716
|
if (!["6", "7"].includes(menuType)) {
|
|
1650
|
-
_context13.next =
|
|
1717
|
+
_context13.next = 70;
|
|
1651
1718
|
break;
|
|
1652
1719
|
}
|
|
1653
1720
|
|
|
1654
|
-
_context13.next =
|
|
1655
|
-
return openPage({},
|
|
1721
|
+
_context13.next = 68;
|
|
1722
|
+
return openPage({}, newMenu, sybInfo, extraParams, openParams, onClose, onSuccess, onFail);
|
|
1656
1723
|
|
|
1657
|
-
case
|
|
1658
|
-
_context13.next =
|
|
1724
|
+
case 68:
|
|
1725
|
+
_context13.next = 71;
|
|
1659
1726
|
break;
|
|
1660
1727
|
|
|
1661
|
-
case
|
|
1728
|
+
case 70:
|
|
1662
1729
|
Http.menuPageQuery(pageCode, pageType).then( /*#__PURE__*/function () {
|
|
1663
1730
|
var _ref16 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee12(data) {
|
|
1664
1731
|
return _regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
@@ -1666,7 +1733,7 @@ var open = /*#__PURE__*/function () {
|
|
|
1666
1733
|
switch (_context12.prev = _context12.next) {
|
|
1667
1734
|
case 0:
|
|
1668
1735
|
_context12.next = 2;
|
|
1669
|
-
return openPage(data,
|
|
1736
|
+
return openPage(data, newMenu, sybInfo, extraParams, openParams, onClose, onSuccess, onFail);
|
|
1670
1737
|
|
|
1671
1738
|
case 2:
|
|
1672
1739
|
case "end":
|
|
@@ -1685,12 +1752,12 @@ var open = /*#__PURE__*/function () {
|
|
|
1685
1752
|
});
|
|
1686
1753
|
});
|
|
1687
1754
|
|
|
1688
|
-
case
|
|
1755
|
+
case 71:
|
|
1689
1756
|
case "end":
|
|
1690
1757
|
return _context13.stop();
|
|
1691
1758
|
}
|
|
1692
1759
|
}
|
|
1693
|
-
}, _callee13, null, [[21,
|
|
1760
|
+
}, _callee13, null, [[21, 35], [42, 48]]);
|
|
1694
1761
|
}));
|
|
1695
1762
|
|
|
1696
1763
|
return function open(_x40, _x41, _x42, _x43, _x44, _x45, _x46) {
|
package/es/style/base.css
CHANGED
|
@@ -1159,6 +1159,23 @@ ul {
|
|
|
1159
1159
|
.mm-tabs-nav-bevel .mm-tab:last-child .mm-tab-text {
|
|
1160
1160
|
padding: 0;
|
|
1161
1161
|
}
|
|
1162
|
+
.mm-tabs-nav-block {
|
|
1163
|
+
background-color: transparent;
|
|
1164
|
+
padding-bottom: 16px;
|
|
1165
|
+
}
|
|
1166
|
+
.mm-tabs-nav-block .mm-tab {
|
|
1167
|
+
background: #fff;
|
|
1168
|
+
-webkit-box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
1169
|
+
box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
1170
|
+
border-radius: 12px;
|
|
1171
|
+
border: 2px solid #fff;
|
|
1172
|
+
}
|
|
1173
|
+
.mm-tabs-nav-block .mm-tab.mm-tab-active {
|
|
1174
|
+
border: 2px solid #0095fd;
|
|
1175
|
+
}
|
|
1176
|
+
.mm-tabs-nav-block .mm-tab + .mm-tab {
|
|
1177
|
+
margin-left: 16px;
|
|
1178
|
+
}
|
|
1162
1179
|
.mm-tabs-nav-button .mm-tab {
|
|
1163
1180
|
background-color: #e5f1ff;
|
|
1164
1181
|
margin-left: 6px;
|
|
@@ -1183,6 +1200,17 @@ ul {
|
|
|
1183
1200
|
background-color: #0095fd;
|
|
1184
1201
|
border-radius: 3px;
|
|
1185
1202
|
}
|
|
1203
|
+
.mm-tabs--triangle {
|
|
1204
|
+
position: absolute;
|
|
1205
|
+
bottom: 0;
|
|
1206
|
+
left: 0;
|
|
1207
|
+
z-index: 1;
|
|
1208
|
+
width: 0;
|
|
1209
|
+
height: 0;
|
|
1210
|
+
border-top: 10px solid #0095fd;
|
|
1211
|
+
border-right: 10px solid transparent;
|
|
1212
|
+
border-left: 10px solid transparent;
|
|
1213
|
+
}
|
|
1186
1214
|
.mm-tabs-track {
|
|
1187
1215
|
position: relative;
|
|
1188
1216
|
display: -webkit-box;
|
package/es/style/theme.less
CHANGED
|
@@ -745,13 +745,18 @@
|
|
|
745
745
|
@tabs-bevel-height: 24px;
|
|
746
746
|
@tabs-button-height: 24px;
|
|
747
747
|
@tabs-nav-background-color: @white;
|
|
748
|
+
@tabs-nav-tab-background-color: @white;
|
|
748
749
|
@tabs-nav-bevel-background-color: #e5f1ff;
|
|
749
750
|
@tabs-bottom-bar-width: 40px;
|
|
751
|
+
@tabs-bottom-triangle-width: 10px;
|
|
750
752
|
@tabs-bottom-bar-height: 3px;
|
|
751
753
|
@tabs-bottom-bar-color: @tabs-default-color;
|
|
752
754
|
@tabs-bevel-radius: 50px;
|
|
753
755
|
@tabs-bevel-margin: 6px;
|
|
754
756
|
@tabs-bevel-min-width: 96px;
|
|
757
|
+
@tabs-block-radius: 12px;
|
|
758
|
+
@tabs-block-padding-bottom: 16px;
|
|
759
|
+
@tabs-block-box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
755
760
|
|
|
756
761
|
// Dialog
|
|
757
762
|
@dialog-width: 320px;
|
package/es/tabs/index.css
CHANGED
|
@@ -431,6 +431,23 @@
|
|
|
431
431
|
.mm-tabs-nav-bevel .mm-tab:last-child .mm-tab-text {
|
|
432
432
|
padding: 0;
|
|
433
433
|
}
|
|
434
|
+
.mm-tabs-nav-block {
|
|
435
|
+
background-color: transparent;
|
|
436
|
+
padding-bottom: 16px;
|
|
437
|
+
}
|
|
438
|
+
.mm-tabs-nav-block .mm-tab {
|
|
439
|
+
background: #fff;
|
|
440
|
+
-webkit-box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
441
|
+
box-shadow: 0 0 8px 2px rgba(218, 224, 242, 0.5);
|
|
442
|
+
border-radius: 12px;
|
|
443
|
+
border: 2px solid #fff;
|
|
444
|
+
}
|
|
445
|
+
.mm-tabs-nav-block .mm-tab.mm-tab-active {
|
|
446
|
+
border: 2px solid #0095fd;
|
|
447
|
+
}
|
|
448
|
+
.mm-tabs-nav-block .mm-tab + .mm-tab {
|
|
449
|
+
margin-left: 16px;
|
|
450
|
+
}
|
|
434
451
|
.mm-tabs-nav-button .mm-tab {
|
|
435
452
|
background-color: #e5f1ff;
|
|
436
453
|
margin-left: 6px;
|
|
@@ -455,6 +472,17 @@
|
|
|
455
472
|
background-color: #0095fd;
|
|
456
473
|
border-radius: 3px;
|
|
457
474
|
}
|
|
475
|
+
.mm-tabs--triangle {
|
|
476
|
+
position: absolute;
|
|
477
|
+
bottom: 0;
|
|
478
|
+
left: 0;
|
|
479
|
+
z-index: 1;
|
|
480
|
+
width: 0;
|
|
481
|
+
height: 0;
|
|
482
|
+
border-top: 10px solid #0095fd;
|
|
483
|
+
border-right: 10px solid transparent;
|
|
484
|
+
border-left: 10px solid transparent;
|
|
485
|
+
}
|
|
458
486
|
.mm-tabs-track {
|
|
459
487
|
position: relative;
|
|
460
488
|
display: -webkit-box;
|
package/es/tabs/index.js
CHANGED
|
@@ -84,6 +84,9 @@ export default create({
|
|
|
84
84
|
}), _vm.type === 'line' ? _c('div', {
|
|
85
85
|
class: _vm.b('-line'),
|
|
86
86
|
style: _vm.lineStyle
|
|
87
|
+
}) : _vm._e(), _vm.type === 'block' ? _c('div', {
|
|
88
|
+
class: _vm.b('-triangle'),
|
|
89
|
+
style: _vm.lineStyle
|
|
87
90
|
}) : _vm._e(), _vm._t("nav-right")], 2)])]) : _c('div', {
|
|
88
91
|
ref: "wrap",
|
|
89
92
|
class: [_vm.b('wrap', {
|
|
@@ -136,6 +139,9 @@ export default create({
|
|
|
136
139
|
}), _vm.type === 'line' ? _c('div', {
|
|
137
140
|
class: _vm.b('-line'),
|
|
138
141
|
style: _vm.lineStyle
|
|
142
|
+
}) : _vm._e(), _vm.type === 'block' ? _c('div', {
|
|
143
|
+
class: _vm.b('-triangle'),
|
|
144
|
+
style: _vm.lineStyle
|
|
139
145
|
}) : _vm._e(), _vm._t("nav-right")], 2)]), _c('mm-content', {
|
|
140
146
|
attrs: {
|
|
141
147
|
"count": _vm.children.length,
|
|
@@ -284,7 +290,7 @@ export default create({
|
|
|
284
290
|
this.$nextTick(function () {
|
|
285
291
|
var titles = _this3.$refs.titles;
|
|
286
292
|
|
|
287
|
-
if (!titles || !titles[_this3.currentIndex] || _this3.type
|
|
293
|
+
if (!titles || !titles[_this3.currentIndex] || !["line", "block"].includes(_this3.type) || isHidden(_this3.$el)) {
|
|
288
294
|
return;
|
|
289
295
|
}
|
|
290
296
|
|
package/es/tabs/index.less
CHANGED
|
@@ -192,6 +192,26 @@
|
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
+
&-block {
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
padding-bottom: @tabs-block-padding-bottom;
|
|
198
|
+
|
|
199
|
+
.mm-tab {
|
|
200
|
+
background: @tabs-nav-tab-background-color;
|
|
201
|
+
box-shadow: @tabs-block-box-shadow;
|
|
202
|
+
border-radius: @tabs-block-radius;
|
|
203
|
+
border: 2px solid @tabs-nav-tab-background-color;
|
|
204
|
+
|
|
205
|
+
&.mm-tab-active {
|
|
206
|
+
border: 2px solid @tabs-default-color;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.mm-tab + .mm-tab {
|
|
211
|
+
margin-left: 16px;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
195
215
|
&-button {
|
|
196
216
|
.mm-tab {
|
|
197
217
|
background-color: @tabs-nav-bevel-background-color;
|
|
@@ -223,6 +243,18 @@
|
|
|
223
243
|
border-radius: @tabs-bottom-bar-height;
|
|
224
244
|
}
|
|
225
245
|
|
|
246
|
+
&--triangle {
|
|
247
|
+
position: absolute;
|
|
248
|
+
bottom: 0;
|
|
249
|
+
left: 0;
|
|
250
|
+
z-index: 1;
|
|
251
|
+
width: 0;
|
|
252
|
+
height: 0;
|
|
253
|
+
border-top: @tabs-bottom-triangle-width solid @tabs-bottom-bar-color;
|
|
254
|
+
border-right: @tabs-bottom-triangle-width solid transparent;
|
|
255
|
+
border-left: @tabs-bottom-triangle-width solid transparent;
|
|
256
|
+
}
|
|
257
|
+
|
|
226
258
|
&-track {
|
|
227
259
|
position: relative;
|
|
228
260
|
display: flex;
|
package/es/utils/http.js
CHANGED
|
@@ -103,7 +103,9 @@ instanceJson.interceptors.response.use(function (response) {
|
|
|
103
103
|
return Promise.reject(resData.message || resData.msg.message);
|
|
104
104
|
}
|
|
105
105
|
}, function (error) {
|
|
106
|
-
|
|
106
|
+
error.response && error.response.data && (error.response.data = DataProcess.aesDecrypt(error.response.data));
|
|
107
|
+
|
|
108
|
+
if (error.code === "ECONNABORTED" && error.message && error.message.indexOf("timeout") >= 0) {
|
|
107
109
|
return Promise.reject("请求超时");
|
|
108
110
|
} else if (error.response && error.response.status === 500) {
|
|
109
111
|
var result = error.response.data;
|
package/es/utils/index.js
CHANGED
|
@@ -6,6 +6,7 @@ import mcrm from "mcrm-jsapi";
|
|
|
6
6
|
import DataProcess from "../data-process";
|
|
7
7
|
var isServer = Vue.prototype.$isServer;
|
|
8
8
|
var inBrowser = typeof window !== "undefined";
|
|
9
|
+
var isLocal = process.env.NODE_ENV === "local";
|
|
9
10
|
|
|
10
11
|
function isDef(value) {
|
|
11
12
|
return value !== undefined && value !== null;
|
|
@@ -101,7 +102,7 @@ var cacheEncrypt = function cacheEncrypt(value) {
|
|
|
101
102
|
data: value,
|
|
102
103
|
type: typeof value
|
|
103
104
|
});
|
|
104
|
-
return DataProcess.aesEncrypt(data);
|
|
105
|
+
return isLocal ? data : DataProcess.aesEncrypt(data);
|
|
105
106
|
};
|
|
106
107
|
|
|
107
108
|
var cacheDecrypt = function cacheDecrypt(data) {
|
|
@@ -123,7 +124,7 @@ var cacheDecrypt = function cacheDecrypt(data) {
|
|
|
123
124
|
|
|
124
125
|
try {
|
|
125
126
|
if (isDef(data)) {
|
|
126
|
-
var decryptData = DataProcess.aesDecrypt(data);
|
|
127
|
+
var decryptData = isLocal ? data : DataProcess.aesDecrypt(data);
|
|
127
128
|
|
|
128
129
|
if (decryptData) {
|
|
129
130
|
var objData = JSON.parse(decryptData);
|