@titaui/pc 1.10.52 → 1.10.55
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/dynamic/dynamic-item/dynamic-report/index.js +10 -1
- package/lib/components/dynamic/dynamic-item/index.js +11 -0
- package/lib/components/help-card/index.js +1 -1
- package/lib/components/invite-people/img/invite-people.svg +62 -0
- package/lib/components/invite-people/index.css +1 -1
- package/lib/components/nav-top/components/user-message/components/reply/index.js +7 -3
- package/lib/components/okrcase-library/okrcases-components/submitOkr-dialog.js +40 -36
- package/lib/index.js +8 -0
- package/lib/pages/aha2021/img/try.png +0 -0
- package/lib/pages/aha2021/index.css +7 -0
- package/lib/pages/aha2021/index.js +5 -3
- package/lib/pages/pay/image/success.png +0 -0
- package/lib/pages/pay/index.css +79 -0
- package/lib/pages/pay/index.js +66 -0
- package/lib/utils/helpers.js +7 -1
- package/package.json +1 -1
- package/lib/components/invite-people/img/invite-people.png +0 -0
|
@@ -67,7 +67,16 @@ var DynamicReply = function DynamicReply(_ref) {
|
|
|
67
67
|
searchKeyWord = _useContext.searchKeyWord;
|
|
68
68
|
|
|
69
69
|
var handleClickTitle = function handleClickTitle() {
|
|
70
|
-
|
|
70
|
+
if (window.titaTracker) {
|
|
71
|
+
window.titaTracker("planAction").record({
|
|
72
|
+
actionName: "查看日报",
|
|
73
|
+
actionGroup: "动态-推屏",
|
|
74
|
+
productName: "动态",
|
|
75
|
+
planId: data.dailyId
|
|
76
|
+
});
|
|
77
|
+
} // @ts-ignore
|
|
78
|
+
|
|
79
|
+
|
|
71
80
|
window.Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
|
|
72
81
|
};
|
|
73
82
|
|
|
@@ -164,6 +164,17 @@ var DynamicItem = function DynamicItem(_ref) {
|
|
|
164
164
|
};
|
|
165
165
|
|
|
166
166
|
var handleShowMore = function handleShowMore() {
|
|
167
|
+
if (data.feedType === _constant.EFeedType.Report) {
|
|
168
|
+
if (window.titaTracker) {
|
|
169
|
+
window.titaTracker("planAction").record({
|
|
170
|
+
actionName: "查看日报",
|
|
171
|
+
actionGroup: "动态-查看更多",
|
|
172
|
+
productName: "动态",
|
|
173
|
+
planId: data.dailyId
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
167
178
|
setIsFold(false);
|
|
168
179
|
};
|
|
169
180
|
|
|
@@ -221,7 +221,7 @@ var HelpCard = function HelpCard(_ref) {
|
|
|
221
221
|
};
|
|
222
222
|
|
|
223
223
|
var renderKefu = function renderKefu() {
|
|
224
|
-
if ((0, _openData.isPlatform)("feishu") || (0, _openData.isPlatform)("dd")
|
|
224
|
+
if ((0, _openData.isPlatform)("feishu") || (0, _openData.isPlatform)("dd")) return /*#__PURE__*/_react["default"].createElement("span", null);
|
|
225
225
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
226
226
|
className: "".concat(preCls, "__footer-item"),
|
|
227
227
|
onClick: handleCustomerService
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="52px" height="52px" viewBox="0 0 52 52" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>编组 9</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="50%" y1="3.061617e-15%" x2="50%" y2="100%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#4E90FF" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#2879FF" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<circle id="path-2" cx="26" cy="26" r="26"></circle>
|
|
10
|
+
<filter x="-7.7%" y="-7.7%" width="115.4%" height="115.4%" filterUnits="objectBoundingBox" id="filter-3">
|
|
11
|
+
<feMorphology radius="2" operator="erode" in="SourceAlpha" result="shadowSpreadInner1"></feMorphology>
|
|
12
|
+
<feGaussianBlur stdDeviation="3" in="shadowSpreadInner1" result="shadowBlurInner1"></feGaussianBlur>
|
|
13
|
+
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
|
14
|
+
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
|
15
|
+
<feColorMatrix values="0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
|
16
|
+
</filter>
|
|
17
|
+
<filter x="-66.7%" y="-67.8%" width="233.3%" height="235.6%" filterUnits="objectBoundingBox" id="filter-4">
|
|
18
|
+
<feOffset dx="0" dy="4" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
|
|
19
|
+
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
|
|
20
|
+
<feColorMatrix values="0 0 0 0 0.101003231 0 0 0 0 0.427065106 0 0 0 0 0.966476109 0 0 0 1 0" type="matrix" in="shadowBlurOuter1" result="shadowMatrixOuter1"></feColorMatrix>
|
|
21
|
+
<feMerge>
|
|
22
|
+
<feMergeNode in="shadowMatrixOuter1"></feMergeNode>
|
|
23
|
+
<feMergeNode in="SourceGraphic"></feMergeNode>
|
|
24
|
+
</feMerge>
|
|
25
|
+
</filter>
|
|
26
|
+
<path d="M16.2408759,11.8636364 C17.6941571,11.8636364 18.9915571,12.4834063 19.8432958,13.4538491 L19.7727273,13.453125 L19.7727273,13.453125 C16.6096419,13.453125 14.0454545,16.0173123 14.0454545,19.1803977 C14.0454545,20.9550936 14.8526446,22.5412601 16.1199159,23.5917885 L4.6284008,23.5908352 L4.64499005,23.5908352 C2.07963288,23.5908352 0,21.6596367 0,19.2773827 L0,16.1770888 C0,13.9888024 1.75476468,12.1811102 4.02888228,11.9012462 C5.39814304,13.8696511 7.5432088,15.1363636 9.95454545,15.1363636 C12.3817457,15.1363636 14.53916,13.8529296 15.9070744,11.8635215 L16.2408759,11.8636364 Z M9.95454545,0 C13.3435655,0 16.0909091,3.05260398 16.0909091,6.81818182 C16.0909091,10.5837597 13.3435655,13.6363636 9.95454545,13.6363636 C6.5655254,13.6363636 3.81818182,10.5837597 3.81818182,6.81818182 C3.81818182,3.05260398 6.5655254,0 9.95454545,0 Z" id="path-5"></path>
|
|
27
|
+
<filter x="-7.6%" y="-6.4%" width="115.1%" height="112.7%" filterUnits="objectBoundingBox" id="filter-6">
|
|
28
|
+
<feGaussianBlur stdDeviation="1.5" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
|
29
|
+
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
|
30
|
+
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
|
31
|
+
<feColorMatrix values="0 0 0 0 0.156862745 0 0 0 0 0.474509804 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
|
32
|
+
</filter>
|
|
33
|
+
<circle id="path-7" cx="19.7727273" cy="19.1803977" r="4.22727273"></circle>
|
|
34
|
+
<filter x="-11.8%" y="-11.8%" width="123.7%" height="123.7%" filterUnits="objectBoundingBox" id="filter-8">
|
|
35
|
+
<feGaussianBlur stdDeviation="1" in="SourceAlpha" result="shadowBlurInner1"></feGaussianBlur>
|
|
36
|
+
<feOffset dx="0" dy="0" in="shadowBlurInner1" result="shadowOffsetInner1"></feOffset>
|
|
37
|
+
<feComposite in="shadowOffsetInner1" in2="SourceAlpha" operator="arithmetic" k2="-1" k3="1" result="shadowInnerInner1"></feComposite>
|
|
38
|
+
<feColorMatrix values="0 0 0 0 0.156862745 0 0 0 0 0.474509804 0 0 0 0 1 0 0 0 1 0" type="matrix" in="shadowInnerInner1"></feColorMatrix>
|
|
39
|
+
</filter>
|
|
40
|
+
</defs>
|
|
41
|
+
<g id="动态" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
42
|
+
<g id="动态-版本二(一级导航变菜单栏)" transform="translate(-20.000000, -646.000000)">
|
|
43
|
+
<g id="编组-9" transform="translate(20.000000, 646.000000)">
|
|
44
|
+
<g id="椭圆形">
|
|
45
|
+
<use fill="url(#linearGradient-1)" fill-rule="evenodd" xlink:href="#path-2"></use>
|
|
46
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-3)" xlink:href="#path-2"></use>
|
|
47
|
+
</g>
|
|
48
|
+
<g id="shitu备份" filter="url(#filter-4)" transform="translate(14.000000, 14.000000)">
|
|
49
|
+
<g id="形状结合">
|
|
50
|
+
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-5"></use>
|
|
51
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-6)" xlink:href="#path-5"></use>
|
|
52
|
+
</g>
|
|
53
|
+
<g id="椭圆形">
|
|
54
|
+
<use fill="#FFFFFF" fill-rule="evenodd" xlink:href="#path-7"></use>
|
|
55
|
+
<use fill="black" fill-opacity="1" filter="url(#filter-8)" xlink:href="#path-7"></use>
|
|
56
|
+
</g>
|
|
57
|
+
<path d="M19.8409091,16.5894886 C20.2080529,16.5894886 20.5056818,16.8871175 20.5056818,17.2542614 L20.5048182,18.5834886 L21.8352273,18.5838068 C22.2023711,18.5838068 22.5,18.8814357 22.5,19.2485795 C22.5,19.6157234 22.2023711,19.9133523 21.8352273,19.9133523 L20.5048182,19.9124886 L20.5056818,21.2428977 C20.5056818,21.6100416 20.2080529,21.9076705 19.8409091,21.9076705 C19.4737653,21.9076705 19.1761364,21.6100416 19.1761364,21.2428977 L19.1758182,19.9124886 L17.8465909,19.9133523 C17.4794471,19.9133523 17.1818182,19.6157234 17.1818182,19.2485795 C17.1818182,18.8814357 17.4794471,18.5838068 17.8465909,18.5838068 L19.1758182,18.5834886 L19.1761364,17.2542614 C19.1761364,16.8871175 19.4737653,16.5894886 19.8409091,16.5894886 Z" id="形状结合" fill="#2879FF"></path>
|
|
58
|
+
</g>
|
|
59
|
+
</g>
|
|
60
|
+
</g>
|
|
61
|
+
</g>
|
|
62
|
+
</svg>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.titaui-invite-people {
|
|
2
2
|
width: 42px;
|
|
3
3
|
height: 42px;
|
|
4
|
-
background: url("./img/invite-people.
|
|
4
|
+
background: url("./img/invite-people.svg") no-repeat;
|
|
5
5
|
background-size: 42px;
|
|
6
6
|
box-shadow: 0px 4px 12px 0px rgba(127, 145, 180, 0.2);
|
|
7
7
|
cursor: pointer;
|
|
@@ -56,7 +56,8 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
56
56
|
var preCls = "titaui-user-message-msg-reply";
|
|
57
57
|
|
|
58
58
|
function Reply(props) {
|
|
59
|
-
var onItemClick = props.onItemClick
|
|
59
|
+
var onItemClick = props.onItemClick,
|
|
60
|
+
handleIntervalRequestMessageInfo = props.handleIntervalRequestMessageInfo;
|
|
60
61
|
|
|
61
62
|
var _useState = (0, _react.useState)([]),
|
|
62
63
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -116,7 +117,10 @@ function Reply(props) {
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
setIsLoading(false);
|
|
119
|
-
});
|
|
120
|
+
});
|
|
121
|
+
(0, _request.clearReplys)().then(function () {
|
|
122
|
+
return handleIntervalRequestMessageInfo();
|
|
123
|
+
});
|
|
120
124
|
}, 300);
|
|
121
125
|
}, []);
|
|
122
126
|
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
@@ -124,7 +128,7 @@ function Reply(props) {
|
|
|
124
128
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
125
129
|
src: _loading["default"],
|
|
126
130
|
className: (0, _classnames["default"])("".concat(preCls, "__loading")),
|
|
127
|
-
alt: "\
|
|
131
|
+
alt: "\u6B63\u5728\u8BF7\u6C42"
|
|
128
132
|
})), /*#__PURE__*/_react["default"].createElement(_conditionRender["default"], {
|
|
129
133
|
condition: replys.length !== 0
|
|
130
134
|
}, /*#__PURE__*/_react["default"].createElement("ul", {
|
|
@@ -57,23 +57,23 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
|
|
|
57
57
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
58
58
|
|
|
59
59
|
var Fields = _form["default"].Fields;
|
|
60
|
-
var precls =
|
|
60
|
+
var precls = "okr-cases-library__pay-window";
|
|
61
61
|
|
|
62
62
|
function SubmitDialog(props) {
|
|
63
63
|
var handleShowSubmitOkrWindow = props.handleShowSubmitOkrWindow,
|
|
64
64
|
isShowSubmitOkrWindow = props.isShowSubmitOkrWindow;
|
|
65
65
|
|
|
66
|
-
var _useState = (0, _react.useState)(
|
|
66
|
+
var _useState = (0, _react.useState)(""),
|
|
67
67
|
_useState2 = _slicedToArray(_useState, 2),
|
|
68
68
|
type = _useState2[0],
|
|
69
69
|
setType = _useState2[1];
|
|
70
70
|
|
|
71
|
-
var _useState3 = (0, _react.useState)(
|
|
71
|
+
var _useState3 = (0, _react.useState)(""),
|
|
72
72
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
73
73
|
job = _useState4[0],
|
|
74
74
|
setJob = _useState4[1];
|
|
75
75
|
|
|
76
|
-
var _useState5 = (0, _react.useState)(
|
|
76
|
+
var _useState5 = (0, _react.useState)(""),
|
|
77
77
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
78
78
|
scene = _useState6[0],
|
|
79
79
|
setScene = _useState6[1];
|
|
@@ -93,11 +93,11 @@ function SubmitDialog(props) {
|
|
|
93
93
|
|
|
94
94
|
if (!err.length) {
|
|
95
95
|
(0, _network.postSurvey)(body).then(function () {
|
|
96
|
-
_toast["default"].Success(
|
|
96
|
+
_toast["default"].Success("发送成功");
|
|
97
97
|
|
|
98
98
|
handleShowSubmitOkrWindow(false);
|
|
99
99
|
})["catch"](function () {
|
|
100
|
-
_toast["default"].Warning(
|
|
100
|
+
_toast["default"].Warning("发送失败");
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
};
|
|
@@ -130,7 +130,7 @@ function SubmitDialog(props) {
|
|
|
130
130
|
placeholder: "\u5982\u9500\u552E\u56E2\u961F",
|
|
131
131
|
require: true,
|
|
132
132
|
verifies: [{
|
|
133
|
-
tip:
|
|
133
|
+
tip: "OKR类型不能为空",
|
|
134
134
|
test: /\S/
|
|
135
135
|
}],
|
|
136
136
|
onChange: setType
|
|
@@ -140,7 +140,7 @@ function SubmitDialog(props) {
|
|
|
140
140
|
placeholder: "\u5982\u9500\u552EVP",
|
|
141
141
|
require: true,
|
|
142
142
|
verifies: [{
|
|
143
|
-
tip:
|
|
143
|
+
tip: "OKR岗位不能为空",
|
|
144
144
|
test: /\S/
|
|
145
145
|
}],
|
|
146
146
|
onChange: setJob
|
|
@@ -155,7 +155,7 @@ function SubmitDialog(props) {
|
|
|
155
155
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
156
156
|
className: "okr-cases-library__submitWindow-submitButton",
|
|
157
157
|
onClick: onSubmitButtonClick
|
|
158
|
-
}, (0, _getLocale.getLocale)(
|
|
158
|
+
}, (0, _getLocale.getLocale)("Pro_detail_Submission"))));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
function PayDialog(props) {
|
|
@@ -176,38 +176,38 @@ function PayDialog(props) {
|
|
|
176
176
|
var tenantType = window.BSGlobal.tenantInfo.tenantType; // 外部注冊賬號使用的產品ID不同
|
|
177
177
|
|
|
178
178
|
// 外部注冊賬號使用的產品ID不同
|
|
179
|
-
if (Version === 1 && tenantType === 3) return
|
|
180
|
-
return
|
|
179
|
+
if (Version === 1 && tenantType === 3) return "D9E059E4-4303-4EE2-9275-AE2FA74BBAA6";
|
|
180
|
+
return "60AFAD35-5273-4A06-B2F4-9A3193096BE7";
|
|
181
181
|
}),
|
|
182
182
|
_useState10 = _slicedToArray(_useState9, 1),
|
|
183
183
|
packageId = _useState10[0];
|
|
184
184
|
|
|
185
|
-
var _useState11 = (0, _react.useState)(
|
|
185
|
+
var _useState11 = (0, _react.useState)(""),
|
|
186
186
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
187
187
|
orderId = _useState12[0],
|
|
188
188
|
setOrderId = _useState12[1];
|
|
189
189
|
|
|
190
|
-
var _useState13 = (0, _react.useState)(
|
|
190
|
+
var _useState13 = (0, _react.useState)("wxPay"),
|
|
191
191
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
192
192
|
payCode = _useState14[0],
|
|
193
193
|
setPayCode = _useState14[1];
|
|
194
194
|
|
|
195
|
-
var _useState15 = (0, _react.useState)(
|
|
195
|
+
var _useState15 = (0, _react.useState)("微信"),
|
|
196
196
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
197
197
|
payName = _useState16[0],
|
|
198
198
|
setPayName = _useState16[1];
|
|
199
199
|
|
|
200
200
|
var _useState17 = (0, _react.useState)({
|
|
201
|
-
PayCode:
|
|
202
|
-
PayName:
|
|
201
|
+
PayCode: "directPay",
|
|
202
|
+
PayName: "支付宝"
|
|
203
203
|
}),
|
|
204
204
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
205
205
|
wxModel = _useState18[0],
|
|
206
206
|
setWxModel = _useState18[1];
|
|
207
207
|
|
|
208
208
|
var _useState19 = (0, _react.useState)({
|
|
209
|
-
PayCode:
|
|
210
|
-
PayName:
|
|
209
|
+
PayCode: "wxPay",
|
|
210
|
+
PayName: "微信"
|
|
211
211
|
}),
|
|
212
212
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
213
213
|
aliModel = _useState20[0],
|
|
@@ -259,9 +259,9 @@ function PayDialog(props) {
|
|
|
259
259
|
} else {
|
|
260
260
|
// 订单已支付
|
|
261
261
|
_titaUi.Modal.success({
|
|
262
|
-
title:
|
|
263
|
-
content:
|
|
264
|
-
okText:
|
|
262
|
+
title: "支付成功",
|
|
263
|
+
content: "OKR案例库已开通",
|
|
264
|
+
okText: "立即使用",
|
|
265
265
|
onOk: function () {
|
|
266
266
|
var _onOk = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
267
267
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
@@ -300,15 +300,17 @@ function PayDialog(props) {
|
|
|
300
300
|
};
|
|
301
301
|
|
|
302
302
|
var clickPayNowHandler = function clickPayNowHandler(e) {
|
|
303
|
-
if (payCode
|
|
303
|
+
if (payCode === "wxPay") {
|
|
304
304
|
e.preventDefault();
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
})
|
|
305
|
+
var path = window.location.href.split("#")[0];
|
|
306
|
+
var encode = encodeURIComponent("orderId=".concat(orderId, "&payCode=").concat(payCode, "&payName=").concat(payName));
|
|
307
|
+
window.open("".concat(path, "#/pay?").concat(encode), "_blank"); // postWxPayOrder({
|
|
308
|
+
// order_id: orderId,
|
|
309
|
+
// default_bank: payCode,
|
|
310
|
+
// default_bank_name: payName,
|
|
311
|
+
// }).then((res) => {
|
|
312
|
+
// window.open(res, '_blank')
|
|
313
|
+
// })
|
|
312
314
|
}
|
|
313
315
|
|
|
314
316
|
loopOrderInfo(orderId);
|
|
@@ -335,43 +337,45 @@ function PayDialog(props) {
|
|
|
335
337
|
return handleShowPayWindow(false);
|
|
336
338
|
},
|
|
337
339
|
style: {
|
|
338
|
-
width:
|
|
339
|
-
height:
|
|
340
|
+
width: "18px",
|
|
341
|
+
height: "18px"
|
|
340
342
|
}
|
|
341
343
|
}), /*#__PURE__*/_react["default"].createElement("p", {
|
|
342
344
|
className: "".concat(precls, "__head")
|
|
343
|
-
}, price, " \u8D2D\u4E70\u5343\u4EFD OKR \u6848\u4F8B\u5E93"), /*#__PURE__*/_react["default"].createElement("p", {
|
|
345
|
+
}, price, " ", "\u8D2D\u4E70\u5343\u4EFD OKR \u6848\u4F8B\u5E93"), /*#__PURE__*/_react["default"].createElement("p", {
|
|
344
346
|
className: "".concat(precls, "__detail")
|
|
345
347
|
}, "\u53EF\u67E5\u770B \u4F7F\u7528\u6848\u4F8B\u5E93\u6240\u6709\u884C\u4E1A\u7684\u6848\u4F8B", /*#__PURE__*/_react["default"].createElement("a", {
|
|
346
348
|
href: "https://club.tita.com/okr-examples",
|
|
347
349
|
target: "_blank",
|
|
348
350
|
rel: "noreferrer"
|
|
349
|
-
}, (0, _getLocale.getLocale)(
|
|
351
|
+
}, (0, _getLocale.getLocale)("Mod_Checkdetails"))), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
352
|
className: "".concat(precls, "__amount")
|
|
351
353
|
}, "\u5E94\u4ED8\u91D1\u989D\uFF1A", /*#__PURE__*/_react["default"].createElement("b", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
352
354
|
style: {
|
|
353
|
-
fontSize:
|
|
355
|
+
fontSize: "32px"
|
|
354
356
|
}
|
|
355
357
|
}, "29.8"), "\u5143/\u5E74")), /*#__PURE__*/_react["default"].createElement("div", {
|
|
356
358
|
className: "".concat(precls, "__type")
|
|
357
359
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
358
|
-
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), "".concat(precls, "__commit-order--wx"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode
|
|
360
|
+
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), "".concat(precls, "__commit-order--wx"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode === (wxModel === null || wxModel === void 0 ? void 0 : wxModel.PayCode))),
|
|
359
361
|
onClick: function onClick() {
|
|
360
362
|
return onPayOrderChange(wxModel);
|
|
361
363
|
}
|
|
362
364
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
363
365
|
src: _wxPay["default"],
|
|
366
|
+
alt: "",
|
|
364
367
|
width: 20,
|
|
365
368
|
style: {
|
|
366
369
|
marginRight: 4
|
|
367
370
|
}
|
|
368
371
|
}), "\u5FAE\u4FE1\u652F\u4ED8"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
369
|
-
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode
|
|
372
|
+
className: (0, _classnames["default"])("".concat(precls, "__commit-order"), _defineProperty({}, "".concat(precls, "__commit-order--active"), payCode === (aliModel === null || aliModel === void 0 ? void 0 : aliModel.PayCode))),
|
|
370
373
|
onClick: function onClick() {
|
|
371
374
|
return onPayOrderChange(aliModel);
|
|
372
375
|
}
|
|
373
376
|
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
374
377
|
src: _aliPay["default"],
|
|
378
|
+
alt: "",
|
|
375
379
|
width: 20,
|
|
376
380
|
style: {
|
|
377
381
|
marginRight: 4
|
package/lib/index.js
CHANGED
|
@@ -327,6 +327,12 @@ Object.defineProperty(exports, "PasswordInput", {
|
|
|
327
327
|
return _passwordInput["default"];
|
|
328
328
|
}
|
|
329
329
|
});
|
|
330
|
+
Object.defineProperty(exports, "PayPage", {
|
|
331
|
+
enumerable: true,
|
|
332
|
+
get: function get() {
|
|
333
|
+
return _pay["default"];
|
|
334
|
+
}
|
|
335
|
+
});
|
|
330
336
|
Object.defineProperty(exports, "PeriodSelector", {
|
|
331
337
|
enumerable: true,
|
|
332
338
|
get: function get() {
|
|
@@ -744,6 +750,8 @@ var _uploadPhotoModal = _interopRequireDefault(require("./components/upload-phot
|
|
|
744
750
|
|
|
745
751
|
var _bookDemo = _interopRequireDefault(require("./components/book-demo"));
|
|
746
752
|
|
|
753
|
+
var _pay = _interopRequireDefault(require("./pages/pay"));
|
|
754
|
+
|
|
747
755
|
var _richEditor = _interopRequireDefault(require("./components/rich-editor"));
|
|
748
756
|
|
|
749
757
|
var _videoModal = _interopRequireDefault(require("./components/video-modal"));
|
|
Binary file
|
|
@@ -41,6 +41,8 @@ var _errorLevel = _interopRequireDefault(require("../../utils/error-level"));
|
|
|
41
41
|
|
|
42
42
|
var _notTry = _interopRequireDefault(require("./img/not-try.png"));
|
|
43
43
|
|
|
44
|
+
var _try = _interopRequireDefault(require("./img/try.png"));
|
|
45
|
+
|
|
44
46
|
require("./index.css");
|
|
45
47
|
|
|
46
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
@@ -132,7 +134,7 @@ function PageLayout(props) {
|
|
|
132
134
|
}, "\u5FAE\u4FE1/\u4F01\u4E1A\u5FAE\u4FE1\u626B\u4E00\u626B"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
135
|
className: "".concat(preCls, "__popup-content")
|
|
134
136
|
}, "\u4E13\u5C5E\u5BA2\u670D\u4E3A\u4F60\u63D0\u4F9B\u54A8\u8BE2\u670D\u52A1"), /*#__PURE__*/_react["default"].createElement("img", {
|
|
135
|
-
src: _notTry["default"],
|
|
137
|
+
src: isTrial ? _try["default"] : _notTry["default"],
|
|
136
138
|
className: "".concat(preCls, "__popup-img"),
|
|
137
139
|
alt: "\u5FAE\u4FE1\u626B\u7801"
|
|
138
140
|
}));
|
|
@@ -150,7 +152,7 @@ function PageLayout(props) {
|
|
|
150
152
|
}
|
|
151
153
|
}, children), !isTencentHr && /*#__PURE__*/_react["default"].createElement("div", {
|
|
152
154
|
className: (0, _classnames["default"])("".concat(preCls, "__help"))
|
|
153
|
-
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !
|
|
155
|
+
}, /*#__PURE__*/_react["default"].createElement(_helpCard["default"], null)), !isTencentHr && !(0, _helpers.isDingDing)() && !(0, _helpers.isFeishu)() && /*#__PURE__*/_react["default"].createElement(_popup["default"], {
|
|
154
156
|
popup: popup,
|
|
155
157
|
popupTransitionName: "tita-popup-zoom-left-bottom",
|
|
156
158
|
placement: "topLeft",
|
|
@@ -172,7 +174,7 @@ function PageLayout(props) {
|
|
|
172
174
|
offset: [0, 0]
|
|
173
175
|
}
|
|
174
176
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
175
|
-
className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
|
|
177
|
+
className: (0, _classnames["default"])("".concat(preCls, "__kefu"), _defineProperty({}, "".concat(preCls, "__try-kefu"), isTrial), _defineProperty({}, "".concat(preCls, "__hidden"), visible)),
|
|
176
178
|
onClick: handleShowCode
|
|
177
179
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
178
180
|
className: (0, _classnames["default"])(_defineProperty({}, "".concat(preCls, "__cancel"), visible))
|
|
Binary file
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
.tita-pay-page {
|
|
2
|
+
width: 100vw;
|
|
3
|
+
height: 100vh;
|
|
4
|
+
background: linear-gradient(180deg, #e9f1ff 0%, rgba(233, 241, 255, 0) 100%);
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.tita-pay-page-layout {
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: calc(50% - 40px);
|
|
11
|
+
left: 50%;
|
|
12
|
+
transform: translate(-50%, -50%);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.tita-pay-page__title {
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.tita-pay-page__card {
|
|
21
|
+
width: 444px;
|
|
22
|
+
height: 469px;
|
|
23
|
+
background: #ffffff;
|
|
24
|
+
box-shadow: 0px 12px 20px 0px rgba(127, 145, 180, 0.2);
|
|
25
|
+
border-radius: 24px;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
align-items: center;
|
|
29
|
+
margin-top: 21px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.tita-pay-page__card__success-image {
|
|
33
|
+
width: 194px;
|
|
34
|
+
height: 194px;
|
|
35
|
+
margin-top: 76px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tita-pay-page__card__success-message {
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
margin-top: 28px;
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
color: #3f4755;
|
|
43
|
+
line-height: 32px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tita-pay-page__card__success-promptMes {
|
|
47
|
+
font-size: 14px;
|
|
48
|
+
font-weight: 400;
|
|
49
|
+
color: #3f4755;
|
|
50
|
+
line-height: 22px;
|
|
51
|
+
margin-top: 12px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.tita-pay-page__card-title {
|
|
55
|
+
font-size: 20px;
|
|
56
|
+
color: #141c28;
|
|
57
|
+
line-height: 30px;
|
|
58
|
+
margin-top: 44px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.tita-pay-page__card-price {
|
|
62
|
+
margin: 12px 0 17px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.tita-pay-page__card-qrcode {
|
|
66
|
+
width: 240px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.tita-pay-page__card-qrcode > img {
|
|
70
|
+
width: 100%;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.tita-pay-page__card-promptMes {
|
|
74
|
+
margin-top: 20px;
|
|
75
|
+
font-size: 16px;
|
|
76
|
+
font-weight: 400;
|
|
77
|
+
color: #3f4755;
|
|
78
|
+
line-height: 22px;
|
|
79
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _success = _interopRequireDefault(require("./image/success.png"));
|
|
11
|
+
|
|
12
|
+
require("./index.css");
|
|
13
|
+
|
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
15
|
+
|
|
16
|
+
var preCls = "tita-pay-page";
|
|
17
|
+
|
|
18
|
+
var payPage = function payPage(_ref) {
|
|
19
|
+
var title = _ref.title,
|
|
20
|
+
cardTitle = _ref.cardTitle,
|
|
21
|
+
price = _ref.price,
|
|
22
|
+
qrcode = _ref.qrcode,
|
|
23
|
+
promptMes = _ref.promptMes,
|
|
24
|
+
isSuccessPay = _ref.isSuccessPay,
|
|
25
|
+
successMes = _ref.successMes;
|
|
26
|
+
|
|
27
|
+
var renderSuccessCard = function renderSuccessCard() {
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("img", {
|
|
29
|
+
className: "".concat(preCls, "__card__success-image"),
|
|
30
|
+
src: _success["default"],
|
|
31
|
+
alt: ""
|
|
32
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
33
|
+
className: "".concat(preCls, "__card__success-message")
|
|
34
|
+
}, "\u606D\u559C\u60A8\uFF0C\u652F\u4ED8\u6210\u529F"), /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
+
className: "".concat(preCls, "__card__success-promptMes")
|
|
36
|
+
}, successMes));
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var renderCard = function renderCard() {
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
41
|
+
className: "".concat(preCls, "__card-title")
|
|
42
|
+
}, cardTitle), /*#__PURE__*/_react["default"].createElement("div", {
|
|
43
|
+
className: "".concat(preCls, "__card-price")
|
|
44
|
+
}, price), /*#__PURE__*/_react["default"].createElement("div", {
|
|
45
|
+
className: "".concat(preCls, "__card-qrcode")
|
|
46
|
+
}, /*#__PURE__*/_react["default"].createElement("img", {
|
|
47
|
+
src: qrcode,
|
|
48
|
+
alt: ""
|
|
49
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
50
|
+
className: "".concat(preCls, "__card-promptMes")
|
|
51
|
+
}, qrcode ? promptMes : "订单获取失败,请返回重试"));
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
55
|
+
className: "".concat(preCls)
|
|
56
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
57
|
+
className: "".concat(preCls, "-layout")
|
|
58
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
59
|
+
className: "".concat(preCls, "__title")
|
|
60
|
+
}, title), /*#__PURE__*/_react["default"].createElement("div", {
|
|
61
|
+
className: "".concat(preCls, "__card")
|
|
62
|
+
}, isSuccessPay ? renderSuccessCard() : renderCard())));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
var _default = payPage;
|
|
66
|
+
exports["default"] = _default;
|
package/lib/utils/helpers.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.escapeHtml = escapeHtml;
|
|
|
8
8
|
exports.getLoginUserInfo = void 0;
|
|
9
9
|
exports.getTenantInfo = getTenantInfo;
|
|
10
10
|
exports.getUploadMaxSize = getUploadMaxSize;
|
|
11
|
-
exports.isTencentHr = exports.isLocal = exports.isDingDing = void 0;
|
|
11
|
+
exports.isTencentHr = exports.isLocal = exports.isFeishu = exports.isDingDing = void 0;
|
|
12
12
|
|
|
13
13
|
var _bsGlobal = require("./bs-global");
|
|
14
14
|
|
|
@@ -43,6 +43,12 @@ var isDingDing = function isDingDing() {
|
|
|
43
43
|
|
|
44
44
|
exports.isDingDing = isDingDing;
|
|
45
45
|
|
|
46
|
+
var isFeishu = function isFeishu() {
|
|
47
|
+
return getTenantInfo().Source === 862;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
exports.isFeishu = isFeishu;
|
|
51
|
+
|
|
46
52
|
var isLocal = function isLocal() {
|
|
47
53
|
return !!getTenantInfo().isLocal;
|
|
48
54
|
};
|
package/package.json
CHANGED
|
Binary file
|