@titaui/pc 1.7.28 → 1.7.29

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.
@@ -74,7 +74,13 @@ var Inform = function Inform(props) {
74
74
  // // @ts-ignore
75
75
  // Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
76
76
  // }
77
- // 处理合并的消息
77
+
78
+
79
+ if (messageType == 135) {
80
+ var redisKey = item.content.match(/redisKey=(\S*?)"/g)[1]; // @ts-ignore
81
+
82
+ Talent.app.vent.trigger("open-weekly-report-modal", redisKey);
83
+ } // 处理合并的消息
78
84
 
79
85
 
80
86
  var isMessageMerging = messageType == 13018 || messageType == 30362 || messageType == 131;
@@ -29,7 +29,7 @@ function Statistics(_ref) {
29
29
  className: preCls + '__num'
30
30
  }, data.LoveNum), /*#__PURE__*/_react["default"].createElement("div", {
31
31
  className: preCls + '__text'
32
- }, "\u83B7\u5F97\u70B9\u8D5E"), data.LoveTopNum && /*#__PURE__*/_react["default"].createElement("div", {
32
+ }, "\u83B7\u5F97\u70B9\u8D5E"), data.LoveTopNum && data.LoveTopNum != '0' && /*#__PURE__*/_react["default"].createElement("div", {
33
33
  className: preCls + '__tips'
34
34
  }, "Top", data.LoveTopNum)), /*#__PURE__*/_react["default"].createElement("div", {
35
35
  className: (0, _classnames["default"])(preCls + '__item', preCls + '__communication')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.7.28",
3
+ "version": "1.7.29",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -31,7 +31,7 @@
31
31
  }
32
32
  .rc-cascader-menu-item-active{
33
33
  background: unset;
34
- color: #2879ff;
34
+ color: #2879ff !important;
35
35
  }
36
36
  .rc-cascader-menu-item{
37
37
  box-sizing: border-box;
@@ -38,7 +38,11 @@ const Inform = (props) => {
38
38
  // // @ts-ignore
39
39
  // Talent.app.vent.trigger("global-daily-detail-pull-screen", feedId);
40
40
  // }
41
-
41
+ if(messageType == 135){
42
+ const redisKey = item.content.match(/redisKey=(\S*?)"/g)[1]
43
+ // @ts-ignore
44
+ Talent.app.vent.trigger("open-weekly-report-modal", redisKey);
45
+ }
42
46
  // 处理合并的消息
43
47
  const isMessageMerging = messageType == 13018 || messageType == 30362 || messageType == 131;
44
48
  if (!isMessageMerging) {
@@ -16,7 +16,7 @@ function Statistics({data}: Props): ReactElement {
16
16
  <div className={classnames(preCls+'__item',preCls+'__praise')}>
17
17
  <div className={preCls+'__num'}>{data.LoveNum}</div>
18
18
  <div className={preCls+'__text'}>获得点赞</div>
19
- {data.LoveTopNum && <div className={preCls+'__tips'}>Top{data.LoveTopNum}</div>}
19
+ {data.LoveTopNum && data.LoveTopNum != '0' && <div className={preCls+'__tips'}>Top{data.LoveTopNum}</div>}
20
20
  </div>
21
21
  <div className={classnames(preCls+'__item',preCls+'__communication')}>
22
22
  <div className={preCls+'__num'}>{data.Lnteraction}</div>