From f18b50406a577d3a7d007febdcc6b7de0a4138d5 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 6 Jul 2019 10:01:19 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B4=A6=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../exercise/ExerciseReviewAndAnswer.js | 21 ++++-- .../courses/poll/PollDetailTabThird.js | 2 +- public/react/src/modules/user/AccountPage.js | 69 ++++++++++--------- .../src/modules/user/account/AccountBasic.js | 2 +- .../modules/user/account/AccountBasicEdit.js | 2 +- .../user/account/AccountCertification.js | 2 +- .../src/modules/user/account/AccountSecure.js | 2 +- 7 files changed, 55 insertions(+), 45 deletions(-) diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js index 31c293659..b9f0f67f9 100644 --- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js +++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js @@ -1,5 +1,5 @@ import React,{ Component } from "react"; -import {Checkbox,Radio, Input,InputNumber} from "antd"; +import {Checkbox,Radio, Input,InputNumber,Spin} from "antd"; import '../css/members.css' import '../css/busyWork.css' @@ -75,7 +75,10 @@ class ExerciseReviewAndAnswer extends Component{ Id:undefined, // 试卷总分 - exerciseTotalScore:undefined + exerciseTotalScore:undefined, + + // 加载效果 + isSpin:false } } componentDidUpdate (prevProps) { @@ -163,7 +166,8 @@ class ExerciseReviewAndAnswer extends Component{ getInfo=()=>{ this.setState({ courseName:this.props.current_user.course_name, - userName:this.props.current_user.username + userName:this.props.current_user.username, + isSpin:true }) let eId=this.props.match.params.Id; @@ -187,7 +191,8 @@ class ExerciseReviewAndAnswer extends Component{ exercise_questions:result.data.exercise_questions, user_exercise_status:1, Id:result.data.exercise_answer_user.user_id, - exerciseTotalScore:result.data.exercise_answer_user.score + exerciseTotalScore:result.data.exercise_answer_user.score, + isSpin:false }) } }).catch((error)=>{ @@ -210,7 +215,8 @@ class ExerciseReviewAndAnswer extends Component{ exercise_questions:result.data.exercise_questions, user_exercise_status:result.data.exercise.user_exercise_status, time:result.data.exercise.left_time, - exerciseTotalScore:result.data.user_score + exerciseTotalScore:result.data.user_score, + isSpin:false }) if(result.data.exercise.left_time != null){ this.remainTime(); @@ -498,7 +504,8 @@ class ExerciseReviewAndAnswer extends Component{ ModalCancel, ModalSave, Loadtype, - exerciseTotalScore + exerciseTotalScore, + isSpin }=this.state let isAdmin = this.props.isAdmin(); let isStudent =this.props.isStudent(); @@ -506,6 +513,7 @@ class ExerciseReviewAndAnswer extends Component{ console.log(data&&data.exercise.user_name) return(
+ - - - - () - } - > - () - } - > + + +
+ + () + } + > + () + } + > - () - } - > + () + } + > - () - } - > + () + } + > - () - } - > - + () + } + > + +
); diff --git a/public/react/src/modules/user/account/AccountBasic.js b/public/react/src/modules/user/account/AccountBasic.js index e1d084cc4..831fd39ca 100644 --- a/public/react/src/modules/user/account/AccountBasic.js +++ b/public/react/src/modules/user/account/AccountBasic.js @@ -22,7 +22,7 @@ class AccountBasicEdit extends Component { const {basicInfo} =this.props const showRealName = false; return ( -
+