调整评分

dev_cs
杨树明 6 years ago
parent 5b347ca199
commit 88ac05e8de

@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
import { Rating ,Progress} from "@icedesign/base"; import { Rating ,Progress} from "@icedesign/base";
import {Modal,Input,Radio,Pagination,message,Spin,Icon,Tooltip} from 'antd'; import {Modal,Input,Radio,Pagination,message,Spin,Icon,Tooltip,Rate} from 'antd';
import AccountProfile from"../user/AccountProfile"; import AccountProfile from"../user/AccountProfile";
@ -607,7 +607,19 @@ class TPMBanner extends Component {
</p> </p>
<div className="clearfix mt50"> <div className="clearfix mt50">
<ul className="fl color-grey-c pathInfo"> <style>
{
`
.anticon-star{
font-size:14px;
}
.pathInfo{
margin-right:-5px;
}
`
}
</style>
<ul className="fl color-grey-c pathInfo" >
<li> <li>
<span>学习人数</span> <span>学习人数</span>
<span className="mt10">{shixunsDetails.stu_num}</span> <span className="mt10">{shixunsDetails.stu_num}</span>
@ -624,11 +636,11 @@ class TPMBanner extends Component {
</ul> </ul>
<div className="pr fl" id="commentsStar" onMouseOver={()=>this.showonMouseOver()} onMouseOut={()=>this.hideonMouseOut()}> <div className="pr fl" id="commentsStar" onMouseOver={()=>this.showonMouseOver()} onMouseOut={()=>this.hideonMouseOut()}>
<div className={"color-grey-c mb7"} style={{color: "#Fff",textAlign: "center"}}>学员评分</div> <div className={"color-grey-c ml15"} style={{color: "#Fff",textAlign: "center"}}>学员评分</div>
<div className="rateYo"> <div className="rateYo">
<Rating value={star_info[0]} disabled allowHalf/> <Rate value={star_info[0]} disabled allowHalf/>
</div> </div>
<div id="ratePanel" className="showratePanel" style={{"width":"512px"}} onMouseOut={()=>this.hideonMouseOut()}> <div id="ratePanel" className="showratePanel" style={{"width":"530px"}} onMouseOut={()=>this.hideonMouseOut()}>
<div className="pr"> <div className="pr">
<span className="rateTrangle"></span> <span className="rateTrangle"></span>
<div className="pr clearfix ratePanelContent" style={{height: '177px'}}> <div className="pr clearfix ratePanelContent" style={{height: '177px'}}>
@ -639,16 +651,16 @@ class TPMBanner extends Component {
<span className="displayblock">总评分</span> <span className="displayblock">总评分</span>
<div className="rateYo"> <div className="rateYo">
{showradios === true ? {showradios === true ?
<Rating value={star_info[0]} allowHalf/> <Rate value={star_info[0]} allowHalf/>
: ""} : ""}
</div> </div>
</div> </div>
</div> </div>
<div className="fr width360"> <div className="fr">
<div className="clearfix"> <div className="clearfix">
<div className="rateYo fl mt3"> <div className="rateYo fl mt3">
{showradios === true ? {showradios === true ?
<Rating value={5} disabled allowHalf/> <Rate value={5} disabled allowHalf/>
: ""} : ""}
</div> </div>
<Progress percent={star_infos[1]} showInfo={false}></Progress> <Progress percent={star_infos[1]} showInfo={false}></Progress>
@ -657,7 +669,7 @@ class TPMBanner extends Component {
<div className="clearfix"> <div className="clearfix">
<div className="rateYo fl mt3"> <div className="rateYo fl mt3">
{showradios === true ? {showradios === true ?
<Rating value={4} disabled allowHalf/> <Rate value={4} disabled allowHalf/>
: ""} : ""}
</div> </div>
<Progress percent={star_infos[2]} showInfo={false}></Progress> <Progress percent={star_infos[2]} showInfo={false}></Progress>
@ -666,7 +678,7 @@ class TPMBanner extends Component {
<div className="clearfix"> <div className="clearfix">
<div className="rateYo fl mt3"> <div className="rateYo fl mt3">
{showradios === true ? {showradios === true ?
<Rating value={3} disabled allowHalf/> <Rate value={3} disabled allowHalf/>
: ""} : ""}
</div> </div>
<Progress percent={star_infos[3]} showInfo={false}></Progress> <Progress percent={star_infos[3]} showInfo={false}></Progress>
@ -675,7 +687,7 @@ class TPMBanner extends Component {
<div className="clearfix"> <div className="clearfix">
<div className="rateYo fl mt3"> <div className="rateYo fl mt3">
{showradios === true ? {showradios === true ?
<Rating value={2} disabled allowHalf/> <Rate value={2} disabled allowHalf/>
: ""} : ""}
</div> </div>
<Progress percent={star_infos[4]} showInfo={false}></Progress> <Progress percent={star_infos[4]} showInfo={false}></Progress>
@ -684,7 +696,7 @@ class TPMBanner extends Component {
<div className="clearfix"> <div className="clearfix">
<div className="rateYo fl mt3"> <div className="rateYo fl mt3">
{showradios === true ? {showradios === true ?
<Rating value={1} disabled allowHalf/> <Rate value={1} disabled allowHalf/>
: ""} : ""}
</div> </div>
<Progress percent={star_infos[5]} showInfo={false}></Progress> <Progress percent={star_infos[5]} showInfo={false}></Progress>

@ -1,47 +1,47 @@
.tpmComment .-fit { .tpmComment .-fit {
position: inherit; position: inherit;
} }
.tpmComment .rc-pagination { .tpmComment .rc-pagination {
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
margin-top: 12px; margin-top: 12px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.tpmComment .paginationSection { .tpmComment .paginationSection {
background: #FAFAFA; background: #FAFAFA;
} }
.tpmComment .comment_item_cont.df.clearfix:nth-last-child(1) { .tpmComment .comment_item_cont.df.clearfix:nth-last-child(1) {
border-bottom: none; border-bottom: none;
} }
/*.tpmComment .fl.edu-back-white {*/ /*.tpmComment .fl.edu-back-white {*/
/*min-height: 600px;*/ /*min-height: 600px;*/
/*}*/ /*}*/
.user_watch_btn { .user_watch_btn {
cursor: pointer; cursor: pointer;
} }
/*md编辑器*/ /*md编辑器*/
.tpmComment .commentItemMDEditor a.task-btn { .tpmComment .commentItemMDEditor a.task-btn {
background: #4cacff!important; background: #4cacff!important;
margin-right: 16px; margin-right: 16px;
margin-top: 16px; margin-top: 16px;
} }
/* md编辑器 resizeBar*/ /* md编辑器 resizeBar*/
.tpmComment .commentItemMDEditor .editor__resize { .tpmComment .commentItemMDEditor .editor__resize {
transform: translateX(-176%) transform: translateX(-176%)
} }
#ratePanel > div > div > div.fr div.rateYo.fl.mt3 { #ratePanel > div > div > div.fr div.rateYo.fl.mt3 {
height: 20px; height: 20px;
line-height: 20px; line-height: 20px;
cursor: default; cursor: default;
width: 90px; width: 110px;
} }
.tpmComment .icon-jiangli { .tpmComment .icon-jiangli {
/* margin-top: 2px; */ /* margin-top: 2px; */
} }

@ -8,7 +8,7 @@
.rateYo{ .rateYo{
text-align: center; text-align: center;
cursor: default; cursor: default;
width: 90px; width: 111px;
} }
a:link, a:visited { a:link, a:visited {

Loading…
Cancel
Save