Browse Source

修改this.props.userInfo.user.userFunId

FANGLH 7 năm trước cách đây
mục cha
commit
2c69c412ae

+ 4 - 4
frontend/wechat-web/src/components/RefreshLayout.jsx

@@ -41,10 +41,10 @@ export default class RefreshLayout extends Component {
                     height: this.props.height,
                 })
             } else {
-                const hei = this.state.height - ReactDOM.findDOMNode(this.ptr).offsetTop;
-                this.setState({
-                    height: hei
-                })
+                // const hei = this.state.height - ReactDOM.findDOMNode(this.ptr).offsetTop;
+                // this.setState({
+                //     height: hei
+                // })
             }
         }, 0);
     }

+ 1 - 1
frontend/wechat-web/src/modules/hiPages/class-schedule/ClassSchedule.css

@@ -14,7 +14,7 @@
 .header_days_sty{display: flex;flex-direction: row;}
 .each_day_default{width: 20%;height: 36px;color: #CECECE;font-size: 15px;
     text-align: center;margin-top:15px;margin:10px 20px 10px 20px;
-    background-color: #333333; border-radius:100%;line-height: 36px;
+    border-radius:100%;line-height: 36px;
 }
 .isday_click{
     width: 20%;height: 36px;

+ 7 - 7
frontend/wechat-web/src/modules/hiPages/scorenotification/ScoreNotification.js

@@ -21,9 +21,9 @@ class ScoreNotification extends Component{
     constructor(){
         super();
         this.state = {
-            stuId:null,
-            selectClass:null,
-            selectTime:null,
+            stuId:'',
+            selectClass:'',
+            selectTime:'',
             ScoreDataList:[
 
             ],
@@ -39,10 +39,10 @@ class ScoreNotification extends Component{
     }
     componentDidMount() {
         let stuId
-        if (this.props.match.params.stuId == null){
-            stuId = this.props.userInfo.user.student.stuId
-        }else {
+        if (this.props.match.params.stuId){
             stuId = this.props.match.params.stuId
+        }else {
+            stuId = this.props.userInfo.user.student.stuId
         }
         this.setState({
             stuId:stuId
@@ -75,7 +75,7 @@ class ScoreNotification extends Component{
         )
     }
     getScoreData =()=>{
-        if(this.state.stuId == null || this.state.stuId.trim().length == 0){
+        if(!isObjEmpty(this.state.stuId)){
             return
         }
         try {

+ 1 - 1
frontend/wechat-web/src/utils/homePage.constants.js

@@ -113,7 +113,7 @@ export const CONFIG_PARENT_MENU = [
             {
                 funcText: '成绩通知',
                 funcIcon: require('imgs/ic_score_notice.png'),
-                funcPage: '/score-inquiry'
+                funcPage: '/scorenotification'
             },
             {
                 funcText: '作业通知',