|
|
|
@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
|
|
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
|
|
|
|
@ -569,6 +569,15 @@ class TPMBanner extends Component {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
|
|
|
|
|
const MyRate = ({ defaultValue, ...rest }) => {
|
|
|
|
|
let myValue = defaultValue;
|
|
|
|
|
console.log(myValue-Math.floor(myValue))
|
|
|
|
|
// if (myValue < Math.ceil(myValue)) {
|
|
|
|
|
// myValue = Math.floor(myValue) + 0.5;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
return <Rating {...rest} value={myValue} />;
|
|
|
|
|
};
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
shixunsDetails===undefined?"":
|
|
|
|
@ -607,6 +616,21 @@ class TPMBanner extends Component {
|
|
|
|
|
|
|
|
|
|
</p>
|
|
|
|
|
<div className="clearfix mt50">
|
|
|
|
|
{/*<style>*/}
|
|
|
|
|
{/*{*/}
|
|
|
|
|
{/*`*/}
|
|
|
|
|
{/*.anticon-star{*/}
|
|
|
|
|
{/*font-size:14px;*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*.pathInfo{*/}
|
|
|
|
|
{/*margin-right:-5px;*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*.ant-rate{*/}
|
|
|
|
|
{/*color: #FFA800;*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*`*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*</style>*/}
|
|
|
|
|
<ul className="fl color-grey-c pathInfo" >
|
|
|
|
|
<li>
|
|
|
|
|
<span>学习人数</span>
|
|
|
|
@ -624,11 +648,11 @@ class TPMBanner extends Component {
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
<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">
|
|
|
|
|
<Rating value={star_info[0]} disabled allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={star_info[0]} disabled/>
|
|
|
|
|
</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">
|
|
|
|
|
<span className="rateTrangle"></span>
|
|
|
|
|
<div className="pr clearfix ratePanelContent" style={{height: '177px'}}>
|
|
|
|
@ -639,16 +663,16 @@ class TPMBanner extends Component {
|
|
|
|
|
<span className="displayblock">总评分</span>
|
|
|
|
|
<div className="rateYo">
|
|
|
|
|
{showradios === true ?
|
|
|
|
|
<Rating value={star_info[0]} allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={star_info[0]} disabled/>
|
|
|
|
|
: ""}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div className="fr width360">
|
|
|
|
|
<div className="fr">
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
{showradios === true ?
|
|
|
|
|
<Rating value={5} disabled allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={5} disabled/>
|
|
|
|
|
: ""}
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[1]} showInfo={false}></Progress>
|
|
|
|
@ -657,7 +681,7 @@ class TPMBanner extends Component {
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
{showradios === true ?
|
|
|
|
|
<Rating value={4} disabled allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={4} disabled/>
|
|
|
|
|
: ""}
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[2]} showInfo={false}></Progress>
|
|
|
|
@ -666,7 +690,7 @@ class TPMBanner extends Component {
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
{showradios === true ?
|
|
|
|
|
<Rating value={3} disabled allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={3} disabled/>
|
|
|
|
|
: ""}
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[3]} showInfo={false}></Progress>
|
|
|
|
@ -675,7 +699,7 @@ class TPMBanner extends Component {
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
{showradios === true ?
|
|
|
|
|
<Rating value={2} disabled allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={2} disabled/>
|
|
|
|
|
: ""}
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[4]} showInfo={false}></Progress>
|
|
|
|
@ -684,7 +708,7 @@ class TPMBanner extends Component {
|
|
|
|
|
<div className="clearfix">
|
|
|
|
|
<div className="rateYo fl mt3">
|
|
|
|
|
{showradios === true ?
|
|
|
|
|
<Rating value={1} disabled allowHalf/>
|
|
|
|
|
<MyRate allowHalf defaultValue={1} disabled/>
|
|
|
|
|
: ""}
|
|
|
|
|
</div>
|
|
|
|
|
<Progress percent={star_infos[5]} showInfo={false}></Progress>
|
|
|
|
|