@titaui/pc 1.9.144 → 1.9.145
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.
|
@@ -192,7 +192,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
192
192
|
localStorage.setItem("isSubmitted", "1");
|
|
193
193
|
var trickerContent = _constant.trackerInfo[type];
|
|
194
194
|
|
|
195
|
-
if (window.titaTracker) {
|
|
195
|
+
if (window.titaTracker && !localStorage.getItem("titaccc")) {
|
|
196
196
|
window.titaTracker("action").record(_objectSpread({
|
|
197
197
|
actionName: "提交预约演示",
|
|
198
198
|
productName: "预约演示"
|
|
@@ -305,7 +305,7 @@ var BookDemoPCContent = function BookDemoPCContent(_ref) {
|
|
|
305
305
|
}));
|
|
306
306
|
var trickerContent = _constant.trackerInfo[type];
|
|
307
307
|
|
|
308
|
-
if (window.titaTracker) {
|
|
308
|
+
if (window.titaTracker && !localStorage.getItem("titaccc")) {
|
|
309
309
|
window.titaTracker("action").record({
|
|
310
310
|
actionName: "点开预约演示",
|
|
311
311
|
productName: "预约演示",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.userId = exports.tm = exports.popupAlignPhoto = exports.getVersionTextMap = exports.apiServer =
|
|
6
|
+
exports.userId = exports.tm = exports.popupAlignPhoto = exports.getVersionTextMap = exports.apiServer = void 0;
|
|
7
7
|
|
|
8
8
|
var _getLocale = require("../../utils/getLocale");
|
|
9
9
|
|
|
@@ -35,28 +35,4 @@ var getVersionTextMap = function getVersionTextMap() {
|
|
|
35
35
|
return _ref = {}, _defineProperty(_ref, _constant.Versions.Standard, (0, _getLocale.getLocale)("Sw_ProEdit")), _defineProperty(_ref, _constant.Versions.WeixinAssess, (0, _getLocale.getLocale)("Sw_PerEdit")), _defineProperty(_ref, _constant.Versions.Professional, (0, _getLocale.getLocale)("Sw_OKREdit")), _defineProperty(_ref, _constant.Versions.Flagship, (0, _getLocale.getLocale)("Sw_Flagship")), _ref;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
|
-
exports.getVersionTextMap = getVersionTextMap;
|
|
39
|
-
var DEMO_FREE_MENU_CONFIG = {
|
|
40
|
-
DataSource: null,
|
|
41
|
-
appCode: null,
|
|
42
|
-
appId: 119,
|
|
43
|
-
children: [],
|
|
44
|
-
code: "",
|
|
45
|
-
color: "#F28D49",
|
|
46
|
-
defaultExpand: false,
|
|
47
|
-
domain: "",
|
|
48
|
-
groupId: 0,
|
|
49
|
-
href: "#demofree/list",
|
|
50
|
-
iconName: "",
|
|
51
|
-
id: 99998,
|
|
52
|
-
labelName: null,
|
|
53
|
-
menuPoint: null,
|
|
54
|
-
orderId: 2000,
|
|
55
|
-
originUrl: null,
|
|
56
|
-
signUrl: "",
|
|
57
|
-
status: 0,
|
|
58
|
-
tenantId: 0,
|
|
59
|
-
title: "预约演示",
|
|
60
|
-
type: "hash"
|
|
61
|
-
};
|
|
62
|
-
exports.DEMO_FREE_MENU_CONFIG = DEMO_FREE_MENU_CONFIG;
|
|
38
|
+
exports.getVersionTextMap = getVersionTextMap;
|
|
@@ -9,8 +9,6 @@ var _bsGlobal = require("../../utils/bs-global");
|
|
|
9
9
|
|
|
10
10
|
var _logoWhite = _interopRequireDefault(require("./images/logo-white.png"));
|
|
11
11
|
|
|
12
|
-
var _constant = require("./constant");
|
|
13
|
-
|
|
14
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
13
|
|
|
16
14
|
var getMenus = function getMenus() {
|
|
@@ -19,12 +17,6 @@ var getMenus = function getMenus() {
|
|
|
19
17
|
navs.sort(function (pre, next) {
|
|
20
18
|
return pre.orderId - next.orderId;
|
|
21
19
|
});
|
|
22
|
-
var isTita = (0, _bsGlobal.getTenantInfo)().Id === 352728;
|
|
23
|
-
|
|
24
|
-
if (isTita) {
|
|
25
|
-
navs = navs.concat(_constant.DEMO_FREE_MENU_CONFIG);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
20
|
return navs;
|
|
29
21
|
};
|
|
30
22
|
|
package/lib/utils/format-time.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.timeFormat = exports.showWeekLastDay = exports.showWeekFirstDay = exports.showNextWeekFirstDay = exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.getTimeString = exports.getNextDayOfYear = exports.getFirstDayOfYear = void 0;
|
|
6
|
+
exports.timeFormat = exports.showWeekLastDay = exports.showWeekFirstDay = exports.showNextWeekFirstDay = exports.showNextMonthFirstDay = exports.showMonthLastDay = exports.showMonthFirstDay = exports.getTimeString = exports.getNextDayOfYear = exports.getFirstDayOfYear = exports["default"] = void 0;
|
|
7
7
|
|
|
8
8
|
var _constant = require("./constant");
|
|
9
9
|
|
|
@@ -44,11 +44,11 @@ var getTimeString = function getTimeString(time, nowTime) {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
if (secondDiff < 60 * 60 * 24 * 2 && nowDate - 1 === timeDate) {
|
|
47
|
-
return "".concat((0, _getLocale.getLocale)("OKR_MyO_Pr_Text_Yesterday"), " ", "".concat(timeHours, ":").concat(timeMinutes));
|
|
47
|
+
return "".concat((0, _getLocale.getLocale)("OKR_MyO_Pr_Text_Yesterday"), " ", "".concat(timeHours < 10 ? "0".concat(timeHours) : timeHours, ":").concat(timeMinutes < 10 ? "0".concat(timeMinutes) : timeMinutes));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
if (secondDiff < 60 * 60 * 24 * 3 && nowDate - 2 === timeDate) {
|
|
51
|
-
return "".concat((0, _getLocale.getLocale)("Mood_2daysago"), " ", "".concat(timeHours, ":").concat(timeMinutes));
|
|
51
|
+
return "".concat((0, _getLocale.getLocale)("Mood_2daysago"), " ", "".concat(timeHours < 10 ? "0".concat(timeHours) : timeHours, ":").concat(timeMinutes < 10 ? "0".concat(timeMinutes) : timeMinutes));
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
if (timeYear === nowYear) {
|
|
@@ -166,4 +166,6 @@ var showNextMonthFirstDay = function showNextMonthFirstDay() {
|
|
|
166
166
|
return "".concat(MonthFirstDay.getFullYear(), "/").concat(M, "/").concat(MonthFirstDay.getDate(), " 0:0:0");
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
exports.showNextMonthFirstDay = showNextMonthFirstDay;
|
|
169
|
+
exports.showNextMonthFirstDay = showNextMonthFirstDay;
|
|
170
|
+
var _default = getTimeString;
|
|
171
|
+
exports["default"] = _default;
|