@titaui/pc 1.11.21-beta.7 → 1.11.22
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/lib/components/create-okr-modal/index.js +1 -3
- package/lib/components/dynamic/advertise/components/next-btn/index.css +27 -0
- package/lib/components/dynamic/advertise/components/next-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.css +26 -0
- package/lib/components/dynamic/advertise/components/pre-btn/index.js +32 -0
- package/lib/components/dynamic/advertise/index.css +21 -0
- package/lib/components/dynamic/advertise/index.js +126 -0
- package/lib/components/dynamic/advertise/interface.js +5 -0
- package/lib/components/dynamic/advertise/util.js +28 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.css +81 -0
- package/lib/components/dynamic/components/dynamic-search-input/index.js +203 -0
- package/lib/components/dynamic/components/first-level-tabs/index.css +101 -0
- package/lib/components/dynamic/components/first-level-tabs/index.js +131 -0
- package/lib/components/dynamic/dynamic-item/index.js +11 -9
- package/lib/components/dynamic/dynamic-like-ranking/image/like-ranking.svg +23 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-1.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-2.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-3.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/image/ranking-empty.png +0 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.css +146 -0
- package/lib/components/dynamic/dynamic-like-ranking/index.js +180 -0
- package/lib/components/dynamic/dynamic-like-ranking/item.js +105 -0
- package/lib/components/dynamic/dynamic-like-ranking/mock.js +84 -0
- package/lib/components/dynamic/dynamic-liking/image/like-dynamic.svg +30 -0
- package/lib/components/dynamic/dynamic-liking/index.css +81 -0
- package/lib/components/dynamic/dynamic-liking/index.js +79 -0
- package/lib/components/dynamic/dynamic-liking/item.js +75 -0
- package/lib/components/dynamic/dynamic-liking/mock.js +83 -0
- package/lib/components/dynamic/dynamic-list/index.js +3 -11
- package/lib/components/dynamic/dynamic-topping/image/quotation-mark.svg +16 -0
- package/lib/components/dynamic/dynamic-topping/image/top-icon.svg +30 -0
- package/lib/components/dynamic/dynamic-topping/index.css +141 -0
- package/lib/components/dynamic/dynamic-topping/index.js +82 -0
- package/lib/components/dynamic/dynamic-topping/interface.js +5 -0
- package/lib/components/dynamic/dynamic-topping/item.js +153 -0
- package/lib/components/dynamic/dynamic-topping/request-api.js +36 -0
- package/lib/components/dynamic/dynamic.css +173 -0
- package/lib/components/dynamic/dynamic.js +428 -0
- package/lib/components/dynamic/export-module/index.js +37 -0
- package/lib/components/dynamic/img/dynamic-top.svg +14 -0
- package/lib/components/dynamic/index.js +12 -9
- package/lib/components/dynamic/my-team/img/add-subordinate.png +0 -0
- package/lib/components/dynamic/my-team/img/line.png +0 -0
- package/lib/components/dynamic/my-team/img/team.png +0 -0
- package/lib/components/dynamic/my-team/index.css +184 -0
- package/lib/components/dynamic/my-team/index.js +263 -0
- package/lib/components/dynamic/my-team/request-api.js +52 -0
- package/lib/components/dynamic/my-team/util.js +20 -0
- package/lib/components/dynamic/new-ui.css +192 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.css +58 -0
- package/lib/components/dynamic/online-broadcast/components/broadcast-item/index.js +68 -0
- package/lib/components/dynamic/online-broadcast/data.js +77 -0
- package/lib/components/dynamic/online-broadcast/img/broadcast.svg +14 -0
- package/lib/components/dynamic/online-broadcast/img/new.png +0 -0
- package/lib/components/dynamic/online-broadcast/img/preview.png +0 -0
- package/lib/components/dynamic/online-broadcast/index.css +46 -0
- package/lib/components/dynamic/online-broadcast/index.js +61 -0
- package/lib/components/dynamic/online-broadcast/interfact.js +5 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +39 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.css +25 -0
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +44 -0
- package/lib/components/dynamic/quick-operation/img/new-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/new-task.png +0 -0
- package/lib/components/dynamic/quick-operation/index.css +51 -0
- package/lib/components/dynamic/quick-operation/index.js +120 -0
- package/lib/components/dynamic/request-api.js +68 -7
- package/lib/components/nav-top/index.js +3 -6
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +7 -2
- package/lib/components/superset-charts/utils/axios.js +0 -8
- package/lib/components/survey-model/contact.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
|
|
12
|
+
var _createOkr = _interopRequireDefault(require("./components/create-okr"));
|
|
13
|
+
|
|
14
|
+
var _createTask = _interopRequireDefault(require("./components/create-task"));
|
|
15
|
+
|
|
16
|
+
var _createShare = _interopRequireDefault(require("./components/create-share"));
|
|
17
|
+
|
|
18
|
+
var _createAnnouncement = _interopRequireDefault(require("./components/create-announcement"));
|
|
19
|
+
|
|
20
|
+
var _auth = require("../../../utils/auth");
|
|
21
|
+
|
|
22
|
+
var _createOkrModal = _interopRequireDefault(require("../../create-okr-modal"));
|
|
23
|
+
|
|
24
|
+
var _publishDynamicModal = _interopRequireDefault(require("../../publish-dynamic-modal/publish-dynamic-modal"));
|
|
25
|
+
|
|
26
|
+
var _toast = _interopRequireDefault(require("../../toast"));
|
|
27
|
+
|
|
28
|
+
var _bsGlobal = require("../../../utils/bs-global");
|
|
29
|
+
|
|
30
|
+
var _getLocale = require("../../../utils/getLocale");
|
|
31
|
+
|
|
32
|
+
require("./index.css");
|
|
33
|
+
|
|
34
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
35
|
+
|
|
36
|
+
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
37
|
+
|
|
38
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
39
|
+
|
|
40
|
+
var prefix = "titaui-pc-dynamic-quick-operation";
|
|
41
|
+
|
|
42
|
+
var DynamicQuickOperation = function DynamicQuickOperation(_ref) {
|
|
43
|
+
var _ref$showCreateOKr = _ref.showCreateOKr,
|
|
44
|
+
showCreateOKr = _ref$showCreateOKr === void 0 ? true : _ref$showCreateOKr,
|
|
45
|
+
_ref$showCreateTask = _ref.showCreateTask,
|
|
46
|
+
showCreateTask = _ref$showCreateTask === void 0 ? true : _ref$showCreateTask,
|
|
47
|
+
_ref$showCreateShare = _ref.showCreateShare,
|
|
48
|
+
showCreateShare = _ref$showCreateShare === void 0 ? true : _ref$showCreateShare,
|
|
49
|
+
_ref$showCreateAnnoun = _ref.showCreateAnnouncement,
|
|
50
|
+
showCreateAnnouncement = _ref$showCreateAnnoun === void 0 ? true : _ref$showCreateAnnoun;
|
|
51
|
+
var hasDynamicAnnouncementAuth = new _auth.DynamicManagerAuth().hasAuth();
|
|
52
|
+
var createTaskDivRef = (0, _react.useRef)(document.createElement("div"));
|
|
53
|
+
var isNewUI = (0, _bsGlobal.getBSGlobal)("tenantInfo").isNewIndex;
|
|
54
|
+
var newNavigation = (0, _bsGlobal.getBSGlobal)("newNavigation") || [];
|
|
55
|
+
var hasOKRApp = newNavigation.find(function (item) {
|
|
56
|
+
return item.appId === 113;
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var handleShowCreateOKrModal = function handleShowCreateOKrModal() {
|
|
60
|
+
// @ts-ignore
|
|
61
|
+
window.showCreateOkrModal && window.showCreateOkrModal();
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var handleShowCreateAnnouncement = function handleShowCreateAnnouncement() {
|
|
65
|
+
// @ts-ignore
|
|
66
|
+
window.showPublishAnnouncementDynamicModal && window.showPublishAnnouncementDynamicModal();
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
var handleShowCreatShare = function handleShowCreatShare() {
|
|
70
|
+
// @ts-ignore
|
|
71
|
+
window.showPublishShareDynamicModal && window.showPublishShareDynamicModal();
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
var handleCreateTaskClick = function handleCreateTaskClick() {
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
window.openCreateTaskPop(createTaskDivRef.current, {
|
|
77
|
+
createParams: {
|
|
78
|
+
objId: "",
|
|
79
|
+
objType: 4,
|
|
80
|
+
AppId: 1,
|
|
81
|
+
AppType: 1,
|
|
82
|
+
TaskType: 0
|
|
83
|
+
}
|
|
84
|
+
}).then(function () {
|
|
85
|
+
_toast["default"].Success((0, _getLocale.getLocale)("Pro_tag_pop_Pubsuc"), {
|
|
86
|
+
canClose: false
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
setTimeout(function () {
|
|
90
|
+
// @ts-ignore 跳到我的发布页签
|
|
91
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
92
|
+
}, 2000);
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
var handleAfterSuccess = function handleAfterSuccess() {
|
|
97
|
+
setTimeout(function () {
|
|
98
|
+
// @ts-ignore 跳到我的发布页签
|
|
99
|
+
window.setTabsToPublish && window.setTabsToPublish();
|
|
100
|
+
}, 2000);
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
104
|
+
className: prefix
|
|
105
|
+
}, showCreateOKr && (isNewUI && hasOKRApp || !isNewUI && (0, _bsGlobal.hasWebHead)("okr")) && /*#__PURE__*/_react["default"].createElement(_createOkr["default"], {
|
|
106
|
+
onClick: handleShowCreateOKrModal
|
|
107
|
+
}), showCreateTask && /*#__PURE__*/_react["default"].createElement(_createTask["default"], {
|
|
108
|
+
onClick: handleCreateTaskClick,
|
|
109
|
+
ref: createTaskDivRef
|
|
110
|
+
}), showCreateShare && /*#__PURE__*/_react["default"].createElement(_createShare["default"], {
|
|
111
|
+
onClick: handleShowCreatShare
|
|
112
|
+
}), showCreateAnnouncement && hasDynamicAnnouncementAuth && /*#__PURE__*/_react["default"].createElement(_createAnnouncement["default"], {
|
|
113
|
+
onClick: handleShowCreateAnnouncement
|
|
114
|
+
}), /*#__PURE__*/_react["default"].createElement(_createOkrModal["default"], {
|
|
115
|
+
onSuccess: handleAfterSuccess
|
|
116
|
+
}), /*#__PURE__*/_react["default"].createElement(_publishDynamicModal["default"], null));
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
var _default = DynamicQuickOperation;
|
|
120
|
+
exports["default"] = _default;
|
|
@@ -3,44 +3,105 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.topDynamic = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
|
|
6
|
+
exports.topDynamic = exports.getRanking = exports.getPraise = exports.getMenu = exports.getLeastPariseInfo = exports.getDynamicFeedList = exports.getAdvertise = exports.deleteDynamic = exports.collectDynamic = exports.cancelTopDynamic = exports.cancelCollectDynamic = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
|
|
12
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13
|
+
|
|
14
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
|
|
10
16
|
// @ts-ignore
|
|
11
17
|
var userId = BSGlobal && BSGlobal.loginUserInfo.Id || 0;
|
|
12
18
|
|
|
13
19
|
var topDynamic = function topDynamic(_ref) {
|
|
14
20
|
var feedId = _ref.feedId;
|
|
15
|
-
return (0, _request.rget)(
|
|
21
|
+
return (0, _request.rget)("v2")("user/feednew/setTop?feedId=".concat(feedId));
|
|
16
22
|
};
|
|
17
23
|
|
|
18
24
|
exports.topDynamic = topDynamic;
|
|
19
25
|
|
|
20
26
|
var cancelTopDynamic = function cancelTopDynamic(_ref2) {
|
|
21
27
|
var feedId = _ref2.feedId;
|
|
22
|
-
return (0, _request.rget)(
|
|
28
|
+
return (0, _request.rget)("v2")("user/feednew/cancelTop?feedId=".concat(feedId));
|
|
23
29
|
};
|
|
24
30
|
|
|
25
31
|
exports.cancelTopDynamic = cancelTopDynamic;
|
|
26
32
|
|
|
27
33
|
var collectDynamic = function collectDynamic(_ref3) {
|
|
28
34
|
var feedId = _ref3.feedId;
|
|
29
|
-
return (0, _request.rput)(
|
|
35
|
+
return (0, _request.rput)("v2")("user/feed/Collect?feed_id=".concat(feedId));
|
|
30
36
|
};
|
|
31
37
|
|
|
32
38
|
exports.collectDynamic = collectDynamic;
|
|
33
39
|
|
|
34
40
|
var cancelCollectDynamic = function cancelCollectDynamic(_ref4) {
|
|
35
41
|
var feedId = _ref4.feedId;
|
|
36
|
-
return (0, _request.rdelete)(
|
|
42
|
+
return (0, _request.rdelete)("v2")("user/feed/CancelCollect?feed_id=".concat(feedId));
|
|
37
43
|
};
|
|
38
44
|
|
|
39
45
|
exports.cancelCollectDynamic = cancelCollectDynamic;
|
|
40
46
|
|
|
41
47
|
var deleteDynamic = function deleteDynamic(_ref5) {
|
|
42
48
|
var feedId = _ref5.feedId;
|
|
43
|
-
return (0, _request.rdelete)(
|
|
49
|
+
return (0, _request.rdelete)("v2")("user/feed/Delete?feed_id=".concat(feedId));
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
exports.deleteDynamic = deleteDynamic;
|
|
53
|
+
|
|
54
|
+
var getPraise = function getPraise(_ref6) {
|
|
55
|
+
var objId = _ref6.objId,
|
|
56
|
+
_ref6$start = _ref6.start,
|
|
57
|
+
start = _ref6$start === void 0 ? "" : _ref6$start,
|
|
58
|
+
_ref6$count = _ref6.count,
|
|
59
|
+
count = _ref6$count === void 0 ? 5 : _ref6$count,
|
|
60
|
+
_ref6$objType = _ref6.objType,
|
|
61
|
+
objType = _ref6$objType === void 0 ? 10 : _ref6$objType;
|
|
62
|
+
return (0, _request.rget)("v1")("praise/get?objId=".concat(objId, "&start=&count=").concat(count, "&objType=").concat(objType));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
exports.getPraise = getPraise;
|
|
66
|
+
|
|
67
|
+
var getRanking = function getRanking(data) {
|
|
68
|
+
return (0, _request.rpost)("v1")("praise/getRanking", data);
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
exports.getRanking = getRanking;
|
|
72
|
+
|
|
73
|
+
var getLeastPariseInfo = function getLeastPariseInfo() {
|
|
74
|
+
return (0, _request.rget)("v1")("praise/getLeastPariseInfo?count=10");
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
exports.getLeastPariseInfo = getLeastPariseInfo;
|
|
78
|
+
|
|
79
|
+
var getMenu = function getMenu() {
|
|
80
|
+
return (0, _request.rget)("v2")("feed/FeedTabMenus");
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
exports.getMenu = getMenu;
|
|
84
|
+
|
|
85
|
+
var getDynamicFeedList = function getDynamicFeedList() {
|
|
86
|
+
var data = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
87
|
+
PageSize: 20,
|
|
88
|
+
PageNum: 1,
|
|
89
|
+
KeyWord: "",
|
|
90
|
+
ChannelIds: "",
|
|
91
|
+
Domain: "",
|
|
92
|
+
TitaHost: "",
|
|
93
|
+
RequestSource: 0,
|
|
94
|
+
CommentCount: 3
|
|
95
|
+
};
|
|
96
|
+
return (0, _request.rpost)("v2")("feed/feeds", _objectSpread(_objectSpread({}, data), {}, {
|
|
97
|
+
CommentCount: 3
|
|
98
|
+
}));
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
exports.getDynamicFeedList = getDynamicFeedList;
|
|
102
|
+
|
|
103
|
+
var getAdvertise = function getAdvertise() {
|
|
104
|
+
return (0, _request.rget)("v1")("operationAd/getByTerminalType?terminalType=1");
|
|
44
105
|
};
|
|
45
106
|
|
|
46
|
-
exports.
|
|
107
|
+
exports.getAdvertise = getAdvertise;
|
|
@@ -25,14 +25,12 @@ var _version = _interopRequireDefault(require("./components/version"));
|
|
|
25
25
|
|
|
26
26
|
var _utils = require("./utils");
|
|
27
27
|
|
|
28
|
+
require("./index.css");
|
|
29
|
+
|
|
28
30
|
var _request = require("../../utils/request");
|
|
29
31
|
|
|
30
32
|
var _toast = _interopRequireDefault(require("../toast"));
|
|
31
33
|
|
|
32
|
-
var _useGlobalValue = _interopRequireDefault(require("./useGlobalValue"));
|
|
33
|
-
|
|
34
|
-
require("./index.css");
|
|
35
|
-
|
|
36
34
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
37
35
|
|
|
38
36
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -173,5 +171,4 @@ var NavTop = function NavTop() {
|
|
|
173
171
|
};
|
|
174
172
|
|
|
175
173
|
var _default = NavTop;
|
|
176
|
-
exports["default"] = _default;
|
|
177
|
-
NavTop.useGlobalValue = _useGlobalValue["default"];
|
|
174
|
+
exports["default"] = _default;
|
|
@@ -304,8 +304,13 @@ function PayDialog(props) {
|
|
|
304
304
|
e.preventDefault();
|
|
305
305
|
var path = window.location.href.split("#")[0];
|
|
306
306
|
path = path.replace(/eLearningHome/, "Home");
|
|
307
|
-
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName));
|
|
308
|
-
window.open(
|
|
307
|
+
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName)); // if(isDingDing()){
|
|
308
|
+
// window.open(`${path}#/pay?${encode}`, "_self");
|
|
309
|
+
// window.location.reload();
|
|
310
|
+
// }else{
|
|
311
|
+
|
|
312
|
+
window.open("".concat(path, "#/pay?").concat(encode), "_blank"); // }
|
|
313
|
+
// postWxPayOrder({
|
|
309
314
|
// order_id: orderId,
|
|
310
315
|
// default_bank: payCode,
|
|
311
316
|
// default_bank_name: payName,
|
|
@@ -65,14 +65,6 @@ var beforeResponse = function beforeResponse(res) {
|
|
|
65
65
|
config.retry = 3;
|
|
66
66
|
config.retryCount = config.retryCount || 0;
|
|
67
67
|
|
|
68
|
-
if (window.titaTracker) {
|
|
69
|
-
window.titaTracker("action").record({
|
|
70
|
-
actionName: JSON.stringify(config),
|
|
71
|
-
actionGroup: "调用接口",
|
|
72
|
-
productName: "接口"
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
|
|
76
68
|
if (res.data.code === 401) {
|
|
77
69
|
// 401错误表示未登录授权或者token失效
|
|
78
70
|
clearToken();
|
|
@@ -77,7 +77,7 @@ var ContactModel = function ContactModel(_ref) {
|
|
|
77
77
|
className: "tu-icon-canceled ".concat(preCls, "__head-close "),
|
|
78
78
|
onClick: handleClose
|
|
79
79
|
})), /*#__PURE__*/_react["default"].createElement(Input, {
|
|
80
|
-
placeholder: '
|
|
80
|
+
placeholder: '参与调研有礼相送哦~',
|
|
81
81
|
value: contact,
|
|
82
82
|
onChange: onContactChange,
|
|
83
83
|
className: "".concat(preCls, "__input")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@titaui/pc",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.22",
|
|
4
4
|
"nameCN": "",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"react-transition-group": "4.4.2",
|
|
145
145
|
"resize-observer-polyfill": "1.5.1",
|
|
146
146
|
"slick-carousel": "1.8.1",
|
|
147
|
-
"tita-ui": "1.2.
|
|
147
|
+
"tita-ui": "1.2.52",
|
|
148
148
|
"url-parse": "1.5.1",
|
|
149
149
|
"uuid": "3.1.0",
|
|
150
150
|
"viewerjs": "1.10.1",
|