dev01 2 years ago
parent
commit
774e73b515
2 changed files with 22 additions and 16 deletions
  1. 19 15
      js/component/manageCenter/index/content.jsx
  2. 3 1
      js/component/manageCenter/topTab.jsx

+ 19 - 15
js/component/manageCenter/index/content.jsx

@@ -552,20 +552,24 @@ const MessageModal = React.createClass({
                             this.state.unreadData.map((v) => (
                             this.state.unreadData.map((v) => (
                                 <Tabs.TabPane
                                 <Tabs.TabPane
                                     key={v.id + ''}
                                     key={v.id + ''}
-                                    tab={<div>
-                                        {v.list.length === 0 || v.isRead ? null :
-                                            <div
-                                                style={{
-                                                    width: '8px',
-                                                    height: "8px",
-                                                    borderRadius: '8px',
-                                                    background: '#f00',
-                                                    position: 'absolute',
-                                                    right: '5px',
-                                                    top: '2px'
-                                                }} />}
-                                        {v.name}
-                                    </div>
+                                    tab={
+                                        <div
+                                            style={{ color: v.id == 7 && "red" }}
+                                        >
+                                            {v.list.length === 0 || v.isRead ? null :
+                                                <div
+                                                    style={{
+                                                        width: '8px',
+                                                        height: "8px",
+                                                        borderRadius: '8px',
+                                                        background: '#f00',
+                                                        position: 'absolute',
+                                                        right: '5px',
+                                                        top: '2px',
+                                                    }} />
+                                            }
+                                            {v.name}
+                                        </div>
                                     } />
                                     } />
                             ))
                             ))
                         }
                         }
@@ -622,7 +626,7 @@ const MessageModal = React.createClass({
                                 this.state.unreadData.map((v) => (
                                 this.state.unreadData.map((v) => (
                                     <Tabs.TabPane
                                     <Tabs.TabPane
                                         key={v.id + ''}
                                         key={v.id + ''}
-                                        tab={<div>
+                                        tab={<div style={{ color: v.id == 7 && "red" }}>
                                             {v.list.length === 0 || v.isRead ? null : <div style={{ width: '8px', height: "8px", borderRadius: '8px', background: '#f00', position: 'absolute', right: '5px', top: '2px' }} />}
                                             {v.list.length === 0 || v.isRead ? null : <div style={{ width: '8px', height: "8px", borderRadius: '8px', background: '#f00', position: 'absolute', right: '5px', top: '2px' }} />}
                                             {v.name}
                                             {v.name}
                                         </div>
                                         </div>

+ 3 - 1
js/component/manageCenter/topTab.jsx

@@ -347,7 +347,9 @@ const MessageModal = React.createClass({
                   <Tabs.TabPane
                   <Tabs.TabPane
                     key={v.id + ""}
                     key={v.id + ""}
                     tab={
                     tab={
-                      <div>
+                      <div
+                        style={{ color: v.id == 7 && "red" }}
+                      >
                         {v.list.length === 0 || v.isRead ? null : (
                         {v.list.length === 0 || v.isRead ? null : (
                           <div
                           <div
                             style={{
                             style={{