@titaui/pc 1.6.11 → 1.6.15
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/button/icon-btn/index.css +2 -0
- package/lib/components/button/index.js +1 -9
- package/lib/components/button/rect-btn/index.css +41 -8
- package/lib/components/button/rect-btn/index.js +8 -8
- package/lib/components/button/text-btn/index.css +33 -0
- package/lib/components/button/text-btn/index.js +52 -2
- package/lib/components/dynamic/components/title/index.css +2 -2
- package/lib/components/dynamic/constant.js +2 -1
- package/lib/components/dynamic/dynamic-item/dynamic-create-o/index.js +8 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/dynamic-milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/index.js +4 -21
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.css +4 -0
- package/lib/components/dynamic/dynamic-item/dynamic-progress/index.js +4 -2
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/dynamic-project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-project/index.js +4 -7
- package/lib/components/dynamic/dynamic-item/dynamic-task/constant.js +1 -35
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/dynamic-task.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.css +7 -1
- package/lib/components/dynamic/dynamic-item/dynamic-task/index.js +17 -7
- package/lib/components/dynamic/dynamic-like-ranking/index.css +1 -2
- package/lib/components/dynamic/dynamic-like-ranking/index.js +11 -6
- package/lib/components/dynamic/dynamic-liking/index.css +0 -1
- package/lib/components/dynamic/dynamic-liking/item.js +2 -20
- package/lib/components/dynamic/dynamic.js +4 -1
- package/lib/components/dynamic/new-ui.css +206 -0
- package/lib/components/dynamic/quick-operation/components/create-announcement/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-okr/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-share/index.js +2 -2
- package/lib/components/dynamic/quick-operation/components/create-task/index.js +2 -2
- package/lib/components/dynamic/quick-operation/img/okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/send-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/task.png +0 -0
- package/lib/components/dynamic/util.js +1 -1
- package/lib/components/file-list/components/single-file/index.css +2 -2
- package/lib/components/file-list/components/single-file/index.js +1 -1
- package/lib/components/form/form-fields/radios/index.css +5 -0
- package/lib/components/form/form-fields/radios/index.js +34 -5
- package/lib/components/help-card/image/canceled.svg +13 -0
- package/lib/components/help-card/image/helpzx.svg +8 -0
- package/lib/components/help-card/image/kefu.svg +18 -0
- package/lib/components/help-card/image/kefu1.svg +8 -0
- package/lib/components/help-card/image/okr-shequ.svg +14 -0
- package/lib/components/help-card/image/question.svg +20 -0
- package/lib/components/help-card/image/yuyueyanshi.svg +8 -0
- package/lib/components/help-card/index.css +219 -0
- package/lib/components/help-card/index.js +286 -0
- package/lib/components/help-card/request-api.js +34 -0
- package/lib/components/img-viewer/index.css +4 -0
- package/lib/components/img-viewer/index.js +2 -1
- package/lib/components/menus/components/drag-resize/index.css +4 -4
- package/lib/components/menus/components/drag-resize/index.js +35 -30
- package/lib/components/menus/components/flip-menu-card/index.css +7 -2
- package/lib/components/menus/components/flip-menu-card/index.js +17 -15
- package/lib/components/menus/components/menu-card/index.js +1 -6
- package/lib/components/menus/components/menu-close-btn/index.css +2 -1
- package/lib/components/menus/components/menu-tree/images/loading-node.gif +0 -0
- package/lib/components/menus/components/menu-tree/index.js +4 -3
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.css +50 -0
- package/lib/components/menus/components/menu-tree/tree-node/avatar/index.js +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/compony-node/index.js +3 -1
- package/lib/components/menus/components/menu-tree/tree-node/depart-node/index.js +8 -4
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.css +48 -0
- package/lib/components/menus/components/menu-tree/tree-node/follower-node/index.js +65 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.css +72 -0
- package/lib/components/menus/components/menu-tree/tree-node/index.js +19 -0
- package/lib/components/{button/admin-button/primary.js → menus/components/menu-tree/tree-node/loading-node.js} +7 -14
- package/lib/components/menus/components/menu-tree/tree-node/no-follower-node.js +24 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-concern-node.js +7 -3
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.css +3 -0
- package/lib/components/menus/components/menu-tree/tree-node/user-node/index.js +9 -42
- package/lib/components/menus/export-modules/appraisal-menus/datas.js +45 -18
- package/lib/components/menus/export-modules/depart-menus/index.js +34 -7
- package/lib/components/menus/export-modules/okr-menus/datas.js +102 -2
- package/lib/components/menus/export-modules/okr-menus/index.css +0 -3
- package/lib/components/menus/export-modules/okr-menus/index.js +73 -20
- package/lib/components/menus/export-modules/subordinate-menus/index.js +3 -2
- package/lib/components/menus/request-apis.js +22 -5
- package/lib/components/nav-top/components/menu/index.js +7 -5
- package/lib/components/nav-top/components/user-message/components/inform/index.css +28 -6
- package/lib/components/nav-top/components/user-message/components/inform/index.js +184 -22
- package/lib/components/nav-top/components/user-message/components/red-pack/index.css +40 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/index.js +105 -0
- package/lib/components/nav-top/components/user-message/components/red-pack/request-api.js +14 -0
- package/lib/components/nav-top/components/user-message/components/remind/index.css +25 -8
- package/lib/components/nav-top/components/user-message/components/remind/index.js +74 -21
- package/lib/components/nav-top/components/user-message/components/reply/index.css +27 -6
- package/lib/components/nav-top/components/user-message/components/reply/index.js +129 -24
- package/lib/components/nav-top/components/user-message/components/tab-title/index.js +4 -8
- package/lib/components/nav-top/components/user-message/components/todos/index.css +25 -12
- package/lib/components/nav-top/components/user-message/components/todos/index.js +147 -23
- package/lib/components/nav-top/components/user-message/constant.js +11 -1
- package/lib/components/nav-top/components/user-message/images/loading.gif +0 -0
- package/lib/components/nav-top/components/user-message/images/msg-reward.png +0 -0
- package/lib/components/nav-top/components/user-message/index.css +37 -0
- package/lib/components/nav-top/components/user-message/index.js +86 -72
- package/lib/components/nav-top/components/user-message/msg/index.js +17 -24
- package/lib/components/nav-top/components/user-message/utils.js +14 -0
- package/lib/components/nav-top/components/user-own-menu/index.js +3 -4
- package/lib/components/nav-top/components/user-own-menu/utils.js +77 -0
- package/lib/components/nav-top/constant.js +1 -1
- package/lib/components/nav-top/index.js +12 -12
- package/lib/components/nav-top/request.apis.js +52 -0
- package/lib/components/nav-top/utils.js +10 -70
- package/lib/components/okr-filter-drawer/filter-button.js +1 -0
- package/lib/components/okr-filter-drawer/filter-form.js +163 -0
- package/lib/components/okr-filter-drawer/index.css +45 -0
- package/lib/components/okr-filter-drawer/index.js +42 -0
- package/lib/components/pagination/index.css +6 -12
- package/lib/components/photo-card/components/card/index.css +78 -105
- package/lib/components/photo-card/components/card/index.js +133 -40
- package/lib/components/photo-card/data.js +5 -5
- package/lib/components/photo-card/images/assistant.svg +40 -0
- package/lib/components/photo-card/images/back-manager.svg +40 -0
- package/lib/components/photo-card/images/boss.svg +38 -0
- package/lib/components/photo-card/images/depart-leader.svg +40 -0
- package/lib/components/photo-card/images/super-manager.svg +40 -0
- package/lib/components/photo-card/index.css +12 -12
- package/lib/components/photo-card/index.js +17 -13
- package/lib/components/point-demo/drop-down-box/index.css +98 -0
- package/lib/components/point-demo/drop-down-box/index.js +159 -0
- package/lib/components/point-demo/image/demo-bcg.png +0 -0
- package/lib/components/point-demo/image/down.svg +14 -0
- package/lib/components/point-demo/image/icon-canceled.svg +7 -0
- package/lib/components/point-demo/image/logo.svg +64 -0
- package/lib/components/point-demo/index.css +348 -0
- package/lib/components/point-demo/index.js +657 -0
- package/lib/components/point-demo/input/index.css +74 -0
- package/lib/components/point-demo/input/index.js +176 -0
- package/lib/components/point-demo/point-demo.js +93 -0
- package/lib/components/point-demo/popup/index.css +7 -0
- package/lib/components/point-demo/popup/index.js +113 -0
- package/lib/components/point-demo/popup/placement.js +44 -0
- package/lib/components/point-demo/popup/rc-trigger.css +127 -0
- package/lib/components/tree/index.js +0 -2
- package/lib/components/update-modal/img/background.png +0 -0
- package/lib/components/update-modal/img/rocket.png +0 -0
- package/lib/components/update-modal/index.css +80 -0
- package/lib/components/update-modal/index.js +83 -0
- package/lib/components/update-modal/request-api.js +17 -0
- package/lib/hooks/useLocalStorage.js +37 -0
- package/lib/index.js +22 -2
- package/lib/pages/aha2021/index.css +16 -1
- package/lib/pages/aha2021/index.js +15 -5
- package/lib/pages/new-okr-list/context.js +14 -0
- package/lib/{components/button/export-button/index.js → pages/new-okr-list/header/create-okr.js} +24 -44
- package/lib/pages/new-okr-list/header/depart-title.js +19 -0
- package/lib/pages/new-okr-list/header/filter.js +58 -0
- package/lib/pages/new-okr-list/header/index.css +31 -0
- package/lib/pages/new-okr-list/header/index.js +94 -0
- package/lib/pages/new-okr-list/header/user-title.js +19 -0
- package/lib/pages/new-okr-list/index.css +10 -0
- package/lib/pages/new-okr-list/index.js +127 -0
- package/lib/pages/new-okr-list/keyword-search/index.css +71 -0
- package/lib/{components/button/admin-button/drop-down-arrow.js → pages/new-okr-list/keyword-search/index.js} +54 -47
- package/lib/pages/new-okr-list/list/index.css +0 -0
- package/lib/pages/new-okr-list/list/index.js +48 -0
- package/lib/pages/new-okr-list/precls.js +8 -0
- package/lib/pages/new-okr-list/request-api.js +57 -0
- package/lib/pages/new-okr-list/theme.css +3 -0
- package/lib/pages/okr-map/hooks/useStorage.js +1 -1
- package/lib/pages/okr-map/utils.js +11 -7
- package/lib/pages/personal-info/index.js +5 -3
- package/lib/utils/bs-global.js +16 -1
- package/package.json +2 -1
- package/lib/components/button/admin-button/default.js +0 -35
- package/lib/components/button/admin-button/index.css +0 -86
- package/lib/components/button/admin-button/index.js +0 -40
- package/lib/components/button/admin-button/secondary.js +0 -35
- package/lib/components/button/export-button/index.css +0 -51
- package/lib/components/dynamic/dynamic-item/components/icon/index.css +0 -10
- package/lib/components/dynamic/dynamic-item/components/icon/index.js +0 -35
- package/lib/components/dynamic/dynamic-item/dynamic-milestone/img/milestone.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-project/img/project.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-cancel.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-delay.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-done.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-pause.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-progress.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unaccept.png +0 -0
- package/lib/components/dynamic/dynamic-item/dynamic-task/img/task-unstart.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-announcement.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-okr.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-share.png +0 -0
- package/lib/components/dynamic/quick-operation/img/create-task.png +0 -0
- package/lib/components/nav-top/mock.js +0 -36
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.getDepsAndUsers = exports.addFollower = exports.getSubordinates = exports.getFollowerList = void 0;
|
|
6
|
+
exports.getDepsAndUsers = exports.removeFollower = exports.addFollower = exports.getSubordinates = exports.getFollowerList = void 0;
|
|
7
7
|
|
|
8
8
|
var _request = require("../../utils/request");
|
|
9
9
|
|
|
@@ -69,10 +69,13 @@ var getSubordinates = function getSubordinates(_ref) {
|
|
|
69
69
|
|
|
70
70
|
exports.getSubordinates = getSubordinates;
|
|
71
71
|
|
|
72
|
-
var addFollower = function addFollower(
|
|
73
|
-
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/addFollower?followerId=").concat(
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
var addFollower = function addFollower(id) {
|
|
73
|
+
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/addFollower?followerId=").concat(id), null, {
|
|
74
|
+
'headers': {
|
|
75
|
+
'Content-Type': 'application/json; charset=utf-8',
|
|
76
|
+
'Accept': 'application/json, application/xml, text/play, text/html, *.*'
|
|
77
|
+
},
|
|
78
|
+
'withCredentials': true
|
|
76
79
|
}).then(function (res) {
|
|
77
80
|
return res.data;
|
|
78
81
|
});
|
|
@@ -80,6 +83,20 @@ var addFollower = function addFollower(userId) {
|
|
|
80
83
|
|
|
81
84
|
exports.addFollower = addFollower;
|
|
82
85
|
|
|
86
|
+
var removeFollower = function removeFollower(id) {
|
|
87
|
+
return _axios["default"].post("".concat(requestDomain(), "/api/v1/").concat(tenantId, "/").concat(userId, "/follow/delFollower?followerId=").concat(id), null, {
|
|
88
|
+
'headers': {
|
|
89
|
+
'Content-Type': 'application/json; charset=utf-8',
|
|
90
|
+
'Accept': 'application/json, application/xml, text/play, text/html, *.*'
|
|
91
|
+
},
|
|
92
|
+
'withCredentials': true
|
|
93
|
+
}).then(function (res) {
|
|
94
|
+
return res.data;
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
exports.removeFollower = removeFollower;
|
|
99
|
+
|
|
83
100
|
var getDepsAndUsers = function getDepsAndUsers() {
|
|
84
101
|
var departmentId = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
|
|
85
102
|
var isGetUser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
@@ -69,8 +69,9 @@ var Menu = function Menu(_ref) {
|
|
|
69
69
|
component: "span"
|
|
70
70
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
71
71
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-show"), _defineProperty({}, "".concat(prefix, "__menu-show--active"), activeMenuId == menu.id)),
|
|
72
|
-
href: "
|
|
73
|
-
|
|
72
|
+
href: "".concat(menu.href),
|
|
73
|
+
target: "_self"
|
|
74
|
+
}, menu.title));
|
|
74
75
|
};
|
|
75
76
|
|
|
76
77
|
var renderRest = function renderRest(items) {
|
|
@@ -84,9 +85,10 @@ var Menu = function Menu(_ref) {
|
|
|
84
85
|
}, items.map(function (menu) {
|
|
85
86
|
return /*#__PURE__*/_react["default"].createElement("a", {
|
|
86
87
|
className: (0, _classnames["default"])("".concat(prefix, "__menu-hide"), _defineProperty({}, "".concat(prefix, "__menu-hide--active"), activeMenuId == menu.id)),
|
|
87
|
-
href: "
|
|
88
|
-
key: menu.id
|
|
89
|
-
|
|
88
|
+
href: "".concat(menu.href),
|
|
89
|
+
key: menu.id,
|
|
90
|
+
target: "_self"
|
|
91
|
+
}, menu.title);
|
|
90
92
|
}));
|
|
91
93
|
|
|
92
94
|
return /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
+
.titaui-user-message-msg-inform__loading {
|
|
2
|
+
width: 80px;
|
|
3
|
+
position: absolute;
|
|
4
|
+
top: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
margin: auto;
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
.titaui-user-message-msg-inform__items {
|
|
2
12
|
width: 420px;
|
|
3
|
-
margin-top: 8px;
|
|
4
13
|
}
|
|
5
14
|
|
|
6
15
|
.titaui-user-message-msg-inform__item {
|
|
@@ -9,7 +18,15 @@
|
|
|
9
18
|
height: 82px;
|
|
10
19
|
border-radius: 12px;
|
|
11
20
|
margin-bottom: 4px;
|
|
12
|
-
margin:
|
|
21
|
+
margin-left: 12px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.titaui-user-message-msg-inform__item:first-of-type {
|
|
25
|
+
margin-top: 8px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titaui-user-message-msg-inform__item:last-of-type {
|
|
29
|
+
margin-bottom: 0;
|
|
13
30
|
}
|
|
14
31
|
|
|
15
32
|
.titaui-user-message-msg-inform__item-photo {
|
|
@@ -95,6 +112,10 @@
|
|
|
95
112
|
position: absolute;
|
|
96
113
|
bottom: 0;
|
|
97
114
|
left: 0;
|
|
115
|
+
box-sizing: border-box;
|
|
116
|
+
padding-right: 24px;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
98
119
|
width: 420px;
|
|
99
120
|
height: 50px;
|
|
100
121
|
background: #ffffff;
|
|
@@ -102,13 +123,14 @@
|
|
|
102
123
|
}
|
|
103
124
|
|
|
104
125
|
.titaui-user-message-msg-inform__footer-all {
|
|
105
|
-
|
|
106
|
-
margin: 16px 24px 16px 348px;
|
|
107
|
-
width: 48px;
|
|
108
|
-
height: 18px;
|
|
126
|
+
margin-left: auto;
|
|
109
127
|
font-size: 12px;
|
|
110
128
|
font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
|
|
111
129
|
font-weight: 400;
|
|
112
130
|
color: #2879ff;
|
|
113
131
|
line-height: 18px;
|
|
114
132
|
}
|
|
133
|
+
|
|
134
|
+
.titaui-user-message-msg-inform__footer-all:hover {
|
|
135
|
+
color: #2879ff;
|
|
136
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
4
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
6
8
|
exports["default"] = void 0;
|
|
7
9
|
|
|
8
|
-
var _react =
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
11
|
|
|
10
12
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
13
|
|
|
12
|
-
var
|
|
14
|
+
var _rcVirtualList = _interopRequireDefault(require("rc-virtual-list"));
|
|
13
15
|
|
|
14
16
|
var _default2 = _interopRequireDefault(require("../../../../../../components/avatar/default"));
|
|
15
17
|
|
|
@@ -17,32 +19,191 @@ var _conditionRender = _interopRequireDefault(require("../../../../../dynamic/co
|
|
|
17
19
|
|
|
18
20
|
var _tooltipText = _interopRequireDefault(require("../../../../../tooltip/tooltip-text"));
|
|
19
21
|
|
|
22
|
+
var _request = require("../../../../request.apis");
|
|
23
|
+
|
|
20
24
|
var _empty = _interopRequireDefault(require("../empty"));
|
|
21
25
|
|
|
26
|
+
var _loading = _interopRequireDefault(require("../../images/loading.gif"));
|
|
27
|
+
|
|
22
28
|
require("./index.css");
|
|
23
29
|
|
|
24
30
|
var _constant = require("../../constant");
|
|
25
31
|
|
|
26
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
27
33
|
|
|
34
|
+
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); }
|
|
35
|
+
|
|
36
|
+
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; }
|
|
37
|
+
|
|
38
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
39
|
+
|
|
40
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
41
|
+
|
|
42
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
43
|
+
|
|
44
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
45
|
+
|
|
46
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
47
|
+
|
|
48
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
49
|
+
|
|
50
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
51
|
+
|
|
52
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
53
|
+
|
|
54
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
55
|
+
|
|
56
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
57
|
+
|
|
28
58
|
var preCls = "titaui-user-message-msg-inform";
|
|
29
59
|
|
|
30
60
|
var Inform = function Inform(props) {
|
|
31
|
-
var
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
61
|
+
var userInfo = props.userInfo,
|
|
62
|
+
onItemClick = props.onItemClick;
|
|
63
|
+
|
|
64
|
+
var _useState = (0, _react.useState)([]),
|
|
65
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
66
|
+
informs = _useState2[0],
|
|
67
|
+
setInforms = _useState2[1];
|
|
68
|
+
|
|
69
|
+
var _useState3 = (0, _react.useState)(true),
|
|
70
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
71
|
+
isLoading = _useState4[0],
|
|
72
|
+
setIsLoading = _useState4[1];
|
|
73
|
+
|
|
74
|
+
var handleItemClick = function handleItemClick(e, data) {
|
|
75
|
+
onItemClick && onItemClick(false);
|
|
76
|
+
var isMessageMerging = data.messageType == 13018 || data.messageType == 30362 || data.messageType == 131;
|
|
77
|
+
|
|
78
|
+
if (!isMessageMerging) {
|
|
79
|
+
window.open("".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/taskinfo?Id=").concat(data.objId), "_blank");
|
|
80
|
+
return;
|
|
38
81
|
}
|
|
82
|
+
|
|
83
|
+
var type = "eReport"; // E-周报提醒消息合并
|
|
84
|
+
|
|
85
|
+
if (data.messageType == "83") {
|
|
86
|
+
// 项目,目标进展提醒消息合并
|
|
87
|
+
type = "objective";
|
|
88
|
+
} else if (Number(data.messageType) > 93 && Number(data.messageType) <= 100) {
|
|
89
|
+
// OKR 仪表盘消息提醒
|
|
90
|
+
type = "okrDashBoard";
|
|
91
|
+
} else if (data.messageType == 131) {
|
|
92
|
+
type = "performance";
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
var options = {
|
|
96
|
+
width: 680,
|
|
97
|
+
showScroll: true,
|
|
98
|
+
type: "message",
|
|
99
|
+
// 推屏类型
|
|
100
|
+
data: {
|
|
101
|
+
type: type,
|
|
102
|
+
// 消息类型
|
|
103
|
+
objId: data.messageId,
|
|
104
|
+
objType: data.messageType,
|
|
105
|
+
startDate: "",
|
|
106
|
+
endDate: ""
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
if (data.messageType == 83) {
|
|
111
|
+
options.data.objType = data.messageType;
|
|
112
|
+
options.data.startDate = data.createTime;
|
|
113
|
+
} else if (data.messageType > 93 && data.messageType <= 100) {
|
|
114
|
+
options.data.startDate = data.createTime;
|
|
115
|
+
} else if (data.messageType == 131) {
|
|
116
|
+
options.data.objType = data.objId.split("_")[0];
|
|
117
|
+
options.data.startDate = data.objId.split("_")[1];
|
|
118
|
+
options.data.endDate = data.objId.split("_")[2];
|
|
119
|
+
} else {
|
|
120
|
+
var regex = /\((.+?)\)/g,
|
|
121
|
+
content = e.target.textContent;
|
|
122
|
+
var date = [];
|
|
123
|
+
date = content.match(regex); // @ts-ignore
|
|
124
|
+
|
|
125
|
+
options.data.startDate = date[0].slice(1, date[0].length - 1).split("-")[0]; // @ts-ignore
|
|
126
|
+
|
|
127
|
+
options.data.endDate = date[0].slice(1, date[0].length - 1).split("-")[1];
|
|
128
|
+
} // @ts-ignore
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
Talent.app.vent.trigger("openReactScreenPush", options);
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
var _useState5 = (0, _react.useState)(1),
|
|
135
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
136
|
+
pageNum = _useState6[0],
|
|
137
|
+
setPageNum = _useState6[1];
|
|
138
|
+
|
|
139
|
+
var _useState7 = (0, _react.useState)(false),
|
|
140
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
141
|
+
isRequest = _useState8[0],
|
|
142
|
+
setIsRequest = _useState8[1];
|
|
143
|
+
|
|
144
|
+
var _useState9 = (0, _react.useState)(0),
|
|
145
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
146
|
+
replysData = _useState10[0],
|
|
147
|
+
setReplysData = _useState10[1];
|
|
148
|
+
|
|
149
|
+
var onScrollBottom = function onScrollBottom(e) {
|
|
150
|
+
var _e$target = e.target,
|
|
151
|
+
offsetHeight = _e$target.offsetHeight,
|
|
152
|
+
scrollTop = _e$target.scrollTop,
|
|
153
|
+
scrollHeight = _e$target.scrollHeight;
|
|
154
|
+
|
|
155
|
+
if (offsetHeight + scrollTop >= scrollHeight - 100) {
|
|
156
|
+
setPageNum(pageNum + 1);
|
|
157
|
+
|
|
158
|
+
if (!isRequest) {
|
|
159
|
+
setIsRequest(true);
|
|
160
|
+
|
|
161
|
+
if (pageNum <= Math.ceil(replysData / 20)) {
|
|
162
|
+
(0, _request.getInforms)(pageNum).then(function (res) {
|
|
163
|
+
if (res.Code === 1) {
|
|
164
|
+
setInforms([].concat(_toConsumableArray(informs), _toConsumableArray(res.Data.todos)));
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
setIsRequest(false);
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
(0, _react.useEffect)(function () {
|
|
175
|
+
(0, _request.getInforms)(1).then(function (res) {
|
|
176
|
+
if (res.Code === 1) {
|
|
177
|
+
if (res.Data.total || res.Data.messags && res.Data.messags.length) {
|
|
178
|
+
setInforms(res.Data.messags);
|
|
179
|
+
setReplysData(res.Data.total);
|
|
180
|
+
setIsLoading(false);
|
|
181
|
+
} else {
|
|
182
|
+
setIsLoading(false);
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}, []);
|
|
187
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
188
|
+
condition: isLoading
|
|
189
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
190
|
+
src: _loading["default"],
|
|
191
|
+
className: (0, _classnames["default"])("".concat(preCls, "__loading"))
|
|
192
|
+
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
193
|
+
condition: informs.length !== 0
|
|
39
194
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
40
|
-
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
41
|
-
|
|
42
|
-
|
|
195
|
+
className: (0, _classnames["default"])("".concat(preCls, "__items"))
|
|
196
|
+
}, /*#__PURE__*/_react["default"].createElement(_rcVirtualList["default"], {
|
|
197
|
+
data: informs,
|
|
198
|
+
height: 386,
|
|
199
|
+
itemKey: "messageId",
|
|
200
|
+
onScroll: function onScroll(e) {
|
|
201
|
+
return onScrollBottom(e);
|
|
202
|
+
}
|
|
203
|
+
}, function (item) {
|
|
43
204
|
return /*#__PURE__*/_react["default"].createElement("li", {
|
|
44
205
|
className: (0, _classnames["default"])("".concat(preCls, "__item")),
|
|
45
|
-
key:
|
|
206
|
+
key: item.messageId
|
|
46
207
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
47
208
|
className: (0, _classnames["default"])("".concat(preCls, "__item-photo"))
|
|
48
209
|
}, /*#__PURE__*/_react["default"].createElement(_default2["default"], {
|
|
@@ -54,33 +215,34 @@ var Inform = function Inform(props) {
|
|
|
54
215
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right"))
|
|
55
216
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
56
217
|
target: "_blank",
|
|
57
|
-
|
|
218
|
+
onClick: function onClick(e) {
|
|
219
|
+
handleItemClick(e, item);
|
|
220
|
+
}
|
|
58
221
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
222
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-name"))
|
|
60
223
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
61
224
|
overlayClassName: "".concat(preCls, "__item-right-name-tooltip"),
|
|
62
|
-
text:
|
|
225
|
+
text: item.user.name,
|
|
63
226
|
maxWidth: 100,
|
|
64
227
|
mouseEnterDelay: 0.8
|
|
65
228
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
66
229
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-content"))
|
|
67
230
|
}, /*#__PURE__*/_react["default"].createElement(_tooltipText["default"], {
|
|
68
231
|
overlayClassName: "".concat(preCls, "__item-right-content-tooltip"),
|
|
69
|
-
text: (0, _constant.htmlToText)(
|
|
232
|
+
text: (0, _constant.htmlToText)(item.content),
|
|
70
233
|
isPercent: true,
|
|
71
234
|
mouseEnterDelay: 0.8
|
|
72
235
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
236
|
className: (0, _classnames["default"])("".concat(preCls, "__item-right-time"))
|
|
74
|
-
},
|
|
75
|
-
}))
|
|
237
|
+
}, item.createTime))));
|
|
238
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
76
239
|
className: (0, _classnames["default"])("".concat(preCls, "__footer"))
|
|
77
240
|
}, /*#__PURE__*/_react["default"].createElement("a", {
|
|
78
241
|
target: "_blank",
|
|
79
|
-
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=
|
|
80
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
242
|
+
href: "".concat(_constant.apiServer, "/u/").concat(_constant.userId, "/Home#more/messages?messageType=1&isRead=1&autoApply=true"),
|
|
81
243
|
className: (0, _classnames["default"])("".concat(preCls, "__footer-all"))
|
|
82
|
-
}, "\u67E5\u770B\u5168\u90E8")))
|
|
83
|
-
condition: informs.
|
|
244
|
+
}, "\u67E5\u770B\u5168\u90E8"))), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
245
|
+
condition: isLoading === false && informs.length === 0
|
|
84
246
|
}, /*#__PURE__*/_react["default"].createElement(_empty["default"], null)));
|
|
85
247
|
};
|
|
86
248
|
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.titaui-nav-top-red-pack {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 40px;
|
|
4
|
+
right: 40px;
|
|
5
|
+
height: 94px;
|
|
6
|
+
z-index: 1040;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: flex-end;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.titaui-nav-top-red-pack__item {
|
|
12
|
+
margin-left: 16px;
|
|
13
|
+
position: relative;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.titaui-nav-top-red-pack__item-img {
|
|
18
|
+
width: 48px;
|
|
19
|
+
height: 58px;
|
|
20
|
+
background-image: url(../../images/msg-reward.png);
|
|
21
|
+
background-repeat: no-repeat;
|
|
22
|
+
box-shadow: 0 0 20px rgba(204, 41, 41, 0.2);
|
|
23
|
+
transform: rotate(20deg);
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.titaui-nav-top-red-pack__item-avatar {
|
|
28
|
+
position: absolute;
|
|
29
|
+
bottom: 24px;
|
|
30
|
+
right: 0;
|
|
31
|
+
border-radius: 100%;
|
|
32
|
+
width: 30px;
|
|
33
|
+
height: 30px;
|
|
34
|
+
border: 2px solid #fff;
|
|
35
|
+
background: #ffffff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titaui-nav-top-red-pack__item-avatar .titaui-pc-avator-wrapper {
|
|
39
|
+
display: inline-flex;
|
|
40
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _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 _requestApi = require("./request-api");
|
|
13
|
+
|
|
14
|
+
var _avatar = _interopRequireDefault(require("../../../../../../components/avatar"));
|
|
15
|
+
|
|
16
|
+
require("./index.css");
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
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); }
|
|
21
|
+
|
|
22
|
+
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; }
|
|
23
|
+
|
|
24
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
25
|
+
|
|
26
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
27
|
+
|
|
28
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
29
|
+
|
|
30
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
31
|
+
|
|
32
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
+
|
|
34
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
35
|
+
|
|
36
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
37
|
+
|
|
38
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
39
|
+
|
|
40
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
41
|
+
|
|
42
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
+
|
|
44
|
+
var prefix = "titaui-nav-top-red-pack";
|
|
45
|
+
|
|
46
|
+
var RedPack = function RedPack(_ref) {
|
|
47
|
+
var _ref$redPackNum = _ref.redPackNum,
|
|
48
|
+
redPackNum = _ref$redPackNum === void 0 ? 0 : _ref$redPackNum;
|
|
49
|
+
|
|
50
|
+
var _useState = (0, _react.useState)([]),
|
|
51
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
52
|
+
data = _useState2[0],
|
|
53
|
+
setData = _useState2[1];
|
|
54
|
+
|
|
55
|
+
var handleOpenRedPack = function handleOpenRedPack(id) {
|
|
56
|
+
// @ts-ignore
|
|
57
|
+
Talent.app.vent.trigger("Global-Reward-Open", {
|
|
58
|
+
data: id,
|
|
59
|
+
needMask: true,
|
|
60
|
+
onOpen: function onOpen(data) {}
|
|
61
|
+
});
|
|
62
|
+
setData(_toConsumableArray(data.filter(function (item) {
|
|
63
|
+
return item.orderId !== id;
|
|
64
|
+
})));
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
(0, _react.useEffect)(function () {
|
|
68
|
+
if (redPackNum > 0) {
|
|
69
|
+
(0, _requestApi.getUserRedPackInfo)().then(function (resp) {
|
|
70
|
+
if (resp.Code === 1) {
|
|
71
|
+
setData(resp.Data.orders);
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
}, [redPackNum]);
|
|
76
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
77
|
+
className: prefix
|
|
78
|
+
}, data.map(function (item) {
|
|
79
|
+
return /*#__PURE__*/_react["default"].createElement("span", {
|
|
80
|
+
className: "".concat(prefix, "__item"),
|
|
81
|
+
onClick: function onClick() {
|
|
82
|
+
handleOpenRedPack(item.orderId);
|
|
83
|
+
},
|
|
84
|
+
key: item.orderId
|
|
85
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
86
|
+
className: "".concat(prefix, "__item-img")
|
|
87
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
88
|
+
className: "".concat(prefix, "__item-avatar")
|
|
89
|
+
}, /*#__PURE__*/_react["default"].createElement(_avatar["default"], {
|
|
90
|
+
src: item.fromUser.avatar.medium,
|
|
91
|
+
userId: item.fromUser.userId,
|
|
92
|
+
name: item.fromUser.name,
|
|
93
|
+
showNameTips: true,
|
|
94
|
+
color: item.fromUser.avatar.color,
|
|
95
|
+
size: {
|
|
96
|
+
width: 30,
|
|
97
|
+
fontSize: 12,
|
|
98
|
+
textNum: 1
|
|
99
|
+
}
|
|
100
|
+
})));
|
|
101
|
+
}));
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
var _default = RedPack;
|
|
105
|
+
exports["default"] = _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getUserRedPackInfo = void 0;
|
|
7
|
+
|
|
8
|
+
var _request = require("../../../../../../utils/request");
|
|
9
|
+
|
|
10
|
+
var getUserRedPackInfo = function getUserRedPackInfo() {
|
|
11
|
+
return (0, _request.rget)('v1')('wx/pay/order/received?page_num=1&page_size=12');
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
exports.getUserRedPackInfo = getUserRedPackInfo;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
.titaui-user-message-msg-remind__items {
|
|
2
2
|
width: 420px;
|
|
3
|
-
height: 500px;
|
|
4
|
-
margin-top: 8px;
|
|
5
3
|
}
|
|
6
4
|
|
|
7
5
|
.titaui-user-message-msg-remind__item {
|
|
@@ -10,8 +8,16 @@
|
|
|
10
8
|
box-sizing: border-box;
|
|
11
9
|
height: 60px;
|
|
12
10
|
border-radius: 12px;
|
|
13
|
-
margin-bottom:
|
|
14
|
-
margin:
|
|
11
|
+
margin-bottom: 4px;
|
|
12
|
+
margin-left: 12px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.titaui-user-message-msg-remind__item:first-of-type {
|
|
16
|
+
margin-top: 8px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.titaui-user-message-msg-remind__item:last-of-type {
|
|
20
|
+
margin-bottom: 0;
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
.titaui-user-message-msg-remind__item-photo {
|
|
@@ -108,6 +114,10 @@
|
|
|
108
114
|
position: absolute;
|
|
109
115
|
bottom: 0;
|
|
110
116
|
left: 0;
|
|
117
|
+
box-sizing: border-box;
|
|
118
|
+
padding-right: 24px;
|
|
119
|
+
display: flex;
|
|
120
|
+
align-items: center;
|
|
111
121
|
width: 420px;
|
|
112
122
|
height: 50px;
|
|
113
123
|
background: #ffffff;
|
|
@@ -115,10 +125,7 @@
|
|
|
115
125
|
}
|
|
116
126
|
|
|
117
127
|
.titaui-user-message-msg-remind__footer-all {
|
|
118
|
-
|
|
119
|
-
margin: 16px 24px 16px 348px;
|
|
120
|
-
width: 48px;
|
|
121
|
-
height: 18px;
|
|
128
|
+
margin-left: auto;
|
|
122
129
|
font-size: 12px;
|
|
123
130
|
font-family: Resource-Han-Rounded-CN-Regular, Resource-Han-Rounded-CN;
|
|
124
131
|
font-weight: 400;
|
|
@@ -157,3 +164,13 @@
|
|
|
157
164
|
margin-left: -88px;
|
|
158
165
|
cursor: pointer;
|
|
159
166
|
}
|
|
167
|
+
|
|
168
|
+
.titaui-user-message-msg-remind__loading {
|
|
169
|
+
width: 80px;
|
|
170
|
+
position: absolute;
|
|
171
|
+
top: 0;
|
|
172
|
+
bottom: 0;
|
|
173
|
+
left: 0;
|
|
174
|
+
right: 0;
|
|
175
|
+
margin: auto;
|
|
176
|
+
}
|