dev_forum
parent
d8fbe0678c
commit
bc58fcd79d
@ -1,246 +1,246 @@
|
||||
import React,{ Component } from "react";
|
||||
import { Modal,Checkbox,Select,Input,Tooltip } from "antd";
|
||||
import axios from'axios';
|
||||
import Loading from '@icedesign/base/lib/loading';
|
||||
import '@icedesign/base/lib/loading/style.js';
|
||||
import Modals from '../../modals/Modals';
|
||||
|
||||
const Option = Select.Option;
|
||||
const Search = Input.Search;
|
||||
class PathModal extends Component{
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state={
|
||||
StudentList_value:"",
|
||||
Searchvalue:undefined,
|
||||
type:'all',
|
||||
page:1,
|
||||
patheditarry:undefined
|
||||
}
|
||||
}
|
||||
|
||||
hidecouseShixunModal=()=>{
|
||||
this.props.hidecouseShixunModal()
|
||||
}
|
||||
|
||||
//tag
|
||||
changeTag=(types)=>{
|
||||
let {Searchvalue}=this.state;
|
||||
this.setState({
|
||||
type:types,
|
||||
page:1,
|
||||
})
|
||||
this.props.funshixunpathlist(Searchvalue,types,true,1)
|
||||
}
|
||||
|
||||
//搜索
|
||||
SenttotheValue=(e)=>{
|
||||
this.setState({
|
||||
Searchvalue:e.target.value
|
||||
})
|
||||
}
|
||||
SenttotheSearch=(value)=>{
|
||||
let{type}=this.state;
|
||||
this.setState({
|
||||
page:1,
|
||||
})
|
||||
this.props.funshixunpathlist(value,type,true,1)
|
||||
}
|
||||
|
||||
|
||||
//勾选实训
|
||||
shixunhomeworkedit=(list)=>{
|
||||
this.setState({
|
||||
patheditarry:list
|
||||
})
|
||||
// this.props.funpatheditarry(newpatheditarry)
|
||||
}
|
||||
|
||||
contentViewScrolledit=(e)=>{
|
||||
//滑动到底判断
|
||||
|
||||
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
|
||||
|
||||
let {Searchvalue,type,page,shixunpathlist}=this.state;
|
||||
let newpage=page+1
|
||||
this.props.funshixunpathlist(Searchvalue,type,true,newpage)
|
||||
this.setState({
|
||||
page:newpage
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
//提交
|
||||
savecouseShixunModal=()=>{
|
||||
let {patheditarry}=this.state;
|
||||
let {coursesId,Coursename,page,order,category_id,datas}=this.props;
|
||||
let url="/courses/"+coursesId+"/homework_commons/create_subject_homework.json";
|
||||
if(patheditarry===undefined){
|
||||
this.setState({
|
||||
patheditarrytype:true,
|
||||
patheditarryvalue:"请先选择实训课程"
|
||||
})
|
||||
return
|
||||
}else if(patheditarry.length===0){
|
||||
this.setState({
|
||||
patheditarrytype:true,
|
||||
patheditarryvalue:"请先选择实训课程"
|
||||
})
|
||||
return
|
||||
}
|
||||
axios.post(url, {
|
||||
// category_id: datas&&datas.category_name===undefined||datas&&datas.category_name===null?undefined:category_id,
|
||||
subject_ids:patheditarry,
|
||||
}
|
||||
).then((response) => {
|
||||
if(response.data.status===-1){
|
||||
// this.setState({
|
||||
// Modalstype:true,
|
||||
// Modalstopval:response.data.message,
|
||||
// ModalsBottomval:"",
|
||||
// ModalSave:this.cancelmodel,
|
||||
// Loadtype:true
|
||||
// })
|
||||
this.props.showNotification(response.data.message)
|
||||
|
||||
}else{
|
||||
// this.homeworkstart
|
||||
//调用立即发布弹窗
|
||||
this.props.hidecouseShixunModal();
|
||||
this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
|
||||
// this.props.showNotification("选用成功")
|
||||
// this.props.showNotification(response.data.message)
|
||||
// this.props.homeworkupdatalists(Coursename,page,order);
|
||||
}
|
||||
|
||||
// if(response.status===200) {
|
||||
// this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
|
||||
// }
|
||||
|
||||
|
||||
}).catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
render(){
|
||||
let {Searchvalue,type,Modalstype}=this.state;
|
||||
let {visible,shixunmodallist,hometypepvisible,newshixunmodallist}=this.props;
|
||||
|
||||
|
||||
return(
|
||||
<div>
|
||||
{/*提示*/}
|
||||
{Modalstype&&Modalstype===true?<Modals
|
||||
modalsType={this.state.Modalstype}
|
||||
modalsTopval={this.state.Modalstopval}
|
||||
modalCancel={this.state.ModalCancel}
|
||||
modalSave={this.state.ModalSave}
|
||||
modalsBottomval={this.state.ModalsBottomval}
|
||||
loadtype={this.state.Loadtype}
|
||||
/>:""}
|
||||
<Modal
|
||||
keyboard={false}
|
||||
title="选择实训课程"
|
||||
visible={visible}
|
||||
closable={false}
|
||||
footer={null}
|
||||
width="840px"
|
||||
destroyOnClose={true}
|
||||
>
|
||||
<Loading visible={false} shape="dot-circle" color='#4AC7FF'>
|
||||
|
||||
<div className="newupload_conbox">
|
||||
{ shixunmodallist && shixunmodallist.tags.length===0?"":<div className="clearfix mb20 shixun_work_div newshixun_tab_div cdefault" style={{"marginRight":"4px"}} id="shixun_tab_div">
|
||||
|
||||
<li className="fl mr5 mt5"> <a onClick={()=>this.changeTag("all")} className={ type==="all" ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部</a></li>
|
||||
{
|
||||
shixunmodallist && shixunmodallist.tags.map((item,key)=>{
|
||||
return(
|
||||
<li className="fl mr5 mt5" key={key}>
|
||||
<a onClick={()=>this.changeTag(item.tag_id)} className={ parseInt(type) === parseInt(item.tag_id) ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>{item.tag_name}</a>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
</div>}
|
||||
<div className="clearfix mb20" id="shixun_search_form_div" style={{height:"30px"}}>
|
||||
<span className="fl color-grey-9 font-16 mt3">
|
||||
<span>共</span>
|
||||
<span className="color-orange-tip">{shixunmodallist === undefined ? "":shixunmodallist.subjects_count}</span>
|
||||
<span>个实训</span>
|
||||
</span>
|
||||
<div className="fr search-new">
|
||||
<Search
|
||||
placeholder="输入实训名称的关键字搜索"
|
||||
value={Searchvalue}
|
||||
onInput={this.SenttotheValue}
|
||||
onSearch={(value) => this.SenttotheSearch(value)}
|
||||
style={{width: '100%'}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<ul className="clearfix greybackHead edu-txt-center">
|
||||
<li className="fl with40 paddingleft22">实训路径名称</li>
|
||||
<li className="fl with30 edu-txt-left">已发布实训数</li>
|
||||
<li className="fl with10">使用人数</li>
|
||||
<li className="fl with10"></li>
|
||||
</ul>
|
||||
|
||||
<style>
|
||||
{`
|
||||
.pl40{
|
||||
padding-left:40px
|
||||
}
|
||||
.newtaskhide{
|
||||
margin-top:0px !important;
|
||||
height: 40px;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
|
||||
<div className="over210 pl20 pr20"
|
||||
onScroll={this.contentViewScrolledit}
|
||||
style={{"Height":"204px"}}>
|
||||
<Loading visible={hometypepvisible} shape="dot-circle" className="newnext-loading" color='#4AC7FF'>
|
||||
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit}>
|
||||
{
|
||||
newshixunmodallist&&newshixunmodallist.map((item,key)=>{
|
||||
return(
|
||||
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
||||
<li className="fl with40 newtaskhide">
|
||||
<Checkbox
|
||||
id={"shixun_input_"+item.subject_id} value={item.subject_id}
|
||||
className="task-hide edu-txt-left newtaskhide"
|
||||
style={{"width":"280px"}}
|
||||
name="shixun_homework[]"
|
||||
>
|
||||
<label style={{"textAlign":"left","color":"#05101A"}} className="task-hide color-grey-name" title="frerere">{item.subject_name}</label>
|
||||
</Checkbox>
|
||||
</li>
|
||||
<li className="fl with30 edu-txt-left task-hide pl40">{item.shixun_count}</li>
|
||||
<li className="fl with10 paddingl10">{item.myshixun_count}</li>
|
||||
<Tooltip title="查看详情">
|
||||
<li className="fr with10"><a className="color-blue" href={"/paths/"+item.subject_id} target="_blank">详情</a></li>
|
||||
</Tooltip>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
</Checkbox.Group>
|
||||
</Loading>
|
||||
</div>
|
||||
{ this.state.patheditarrytype===true?<span className={"color-red"}>{this.state.patheditarryvalue}</span>:""}
|
||||
<div className="mt20 marginauto clearfix edu-txt-center">
|
||||
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a>
|
||||
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
|
||||
</div>
|
||||
</div>
|
||||
</Loading>
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
import React,{ Component } from "react";
|
||||
import { Modal,Checkbox,Select,Input,Tooltip } from "antd";
|
||||
import axios from'axios';
|
||||
import Loading from '@icedesign/base/lib/loading';
|
||||
import '@icedesign/base/lib/loading/style.js';
|
||||
import Modals from '../../modals/Modals';
|
||||
|
||||
const Option = Select.Option;
|
||||
const Search = Input.Search;
|
||||
class PathModal extends Component{
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state={
|
||||
StudentList_value:"",
|
||||
Searchvalue:undefined,
|
||||
type:'all',
|
||||
page:1,
|
||||
patheditarry:undefined
|
||||
}
|
||||
}
|
||||
|
||||
hidecouseShixunModal=()=>{
|
||||
this.props.hidecouseShixunModal()
|
||||
}
|
||||
|
||||
//tag
|
||||
changeTag=(types)=>{
|
||||
let {Searchvalue}=this.state;
|
||||
this.setState({
|
||||
type:types,
|
||||
page:1,
|
||||
})
|
||||
this.props.funshixunpathlist(Searchvalue,types,true,1)
|
||||
}
|
||||
|
||||
//搜索
|
||||
SenttotheValue=(e)=>{
|
||||
this.setState({
|
||||
Searchvalue:e.target.value
|
||||
})
|
||||
}
|
||||
SenttotheSearch=(value)=>{
|
||||
let{type}=this.state;
|
||||
this.setState({
|
||||
page:1,
|
||||
})
|
||||
this.props.funshixunpathlist(value,type,true,1)
|
||||
}
|
||||
|
||||
|
||||
//勾选实训
|
||||
shixunhomeworkedit=(list)=>{
|
||||
this.setState({
|
||||
patheditarry:list
|
||||
})
|
||||
// this.props.funpatheditarry(newpatheditarry)
|
||||
}
|
||||
|
||||
contentViewScrolledit=(e)=>{
|
||||
//滑动到底判断
|
||||
|
||||
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
|
||||
|
||||
let {Searchvalue,type,page,shixunpathlist}=this.state;
|
||||
let newpage=page+1
|
||||
this.props.funshixunpathlist(Searchvalue,type,true,newpage)
|
||||
this.setState({
|
||||
page:newpage
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
//提交
|
||||
savecouseShixunModal=()=>{
|
||||
let {patheditarry}=this.state;
|
||||
let {coursesId,Coursename,page,order,category_id,datas}=this.props;
|
||||
let url="/courses/"+coursesId+"/homework_commons/create_subject_homework.json";
|
||||
if(patheditarry===undefined){
|
||||
this.setState({
|
||||
patheditarrytype:true,
|
||||
patheditarryvalue:"请先选择实训课程"
|
||||
})
|
||||
return
|
||||
}else if(patheditarry.length===0){
|
||||
this.setState({
|
||||
patheditarrytype:true,
|
||||
patheditarryvalue:"请先选择实训课程"
|
||||
})
|
||||
return
|
||||
}
|
||||
axios.post(url, {
|
||||
// category_id: datas&&datas.category_name===undefined||datas&&datas.category_name===null?undefined:category_id,
|
||||
subject_ids:patheditarry,
|
||||
}
|
||||
).then((response) => {
|
||||
if(response.data.status===-1){
|
||||
// this.setState({
|
||||
// Modalstype:true,
|
||||
// Modalstopval:response.data.message,
|
||||
// ModalsBottomval:"",
|
||||
// ModalSave:this.cancelmodel,
|
||||
// Loadtype:true
|
||||
// })
|
||||
this.props.showNotification(response.data.message)
|
||||
|
||||
}else{
|
||||
// this.homeworkstart
|
||||
//调用立即发布弹窗
|
||||
this.props.hidecouseShixunModal();
|
||||
this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
|
||||
// this.props.showNotification("选用成功")
|
||||
// this.props.showNotification(response.data.message)
|
||||
// this.props.homeworkupdatalists(Coursename,page,order);
|
||||
}
|
||||
|
||||
// if(response.status===200) {
|
||||
// this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
|
||||
// }
|
||||
|
||||
|
||||
}).catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
render(){
|
||||
let {Searchvalue,type,Modalstype}=this.state;
|
||||
let {visible,shixunmodallist,hometypepvisible,newshixunmodallist}=this.props;
|
||||
|
||||
|
||||
return(
|
||||
<div>
|
||||
{/*提示*/}
|
||||
{Modalstype&&Modalstype===true?<Modals
|
||||
modalsType={this.state.Modalstype}
|
||||
modalsTopval={this.state.Modalstopval}
|
||||
modalCancel={this.state.ModalCancel}
|
||||
modalSave={this.state.ModalSave}
|
||||
modalsBottomval={this.state.ModalsBottomval}
|
||||
loadtype={this.state.Loadtype}
|
||||
/>:""}
|
||||
<Modal
|
||||
keyboard={false}
|
||||
title="选择实训课程"
|
||||
visible={visible}
|
||||
closable={false}
|
||||
footer={null}
|
||||
width="840px"
|
||||
destroyOnClose={true}
|
||||
>
|
||||
<Loading visible={false} shape="dot-circle" color='#4AC7FF'>
|
||||
|
||||
<div className="newupload_conbox">
|
||||
{ shixunmodallist && shixunmodallist.tags.length===0?"":<div className="clearfix mb20 shixun_work_div newshixun_tab_div cdefault" style={{"marginRight":"4px"}} id="shixun_tab_div">
|
||||
|
||||
<li className="fl mr5 mt5"> <a onClick={()=>this.changeTag("all")} className={ type==="all" ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部</a></li>
|
||||
{
|
||||
shixunmodallist && shixunmodallist.tags.map((item,key)=>{
|
||||
return(
|
||||
<li className="fl mr5 mt5" key={key}>
|
||||
<a onClick={()=>this.changeTag(item.tag_id)} className={ parseInt(type) === parseInt(item.tag_id) ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>{item.tag_name}</a>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
</div>}
|
||||
<div className="clearfix mb20" id="shixun_search_form_div" style={{height:"30px"}}>
|
||||
<span className="fl color-grey-9 font-16 mt3">
|
||||
<span>共</span>
|
||||
<span className="color-orange-tip">{shixunmodallist === undefined ? "":shixunmodallist.subjects_count}</span>
|
||||
<span>个实训</span>
|
||||
</span>
|
||||
<div className="fr search-new">
|
||||
<Search
|
||||
placeholder="请输入创建者或者实训名称进行搜索"
|
||||
value={Searchvalue}
|
||||
onInput={this.SenttotheValue}
|
||||
onSearch={(value) => this.SenttotheSearch(value)}
|
||||
style={{width: '115%'}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<ul className="clearfix greybackHead edu-txt-center">
|
||||
<li className="fl with40 paddingleft22">实训路径名称</li>
|
||||
<li className="fl with30 edu-txt-left">已发布实训数</li>
|
||||
<li className="fl with10">使用人数</li>
|
||||
<li className="fl with10"></li>
|
||||
</ul>
|
||||
|
||||
<style>
|
||||
{`
|
||||
.pl40{
|
||||
padding-left:40px
|
||||
}
|
||||
.newtaskhide{
|
||||
margin-top:0px !important;
|
||||
height: 40px;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
|
||||
<div className="over210 pl20 pr20"
|
||||
onScroll={this.contentViewScrolledit}
|
||||
style={{"Height":"204px"}}>
|
||||
<Loading visible={hometypepvisible} shape="dot-circle" className="newnext-loading" color='#4AC7FF'>
|
||||
<Checkbox.Group style={{ width: '100%' }} onChange={this.shixunhomeworkedit}>
|
||||
{
|
||||
newshixunmodallist&&newshixunmodallist.map((item,key)=>{
|
||||
return(
|
||||
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
||||
<li className="fl with40 newtaskhide">
|
||||
<Checkbox
|
||||
id={"shixun_input_"+item.subject_id} value={item.subject_id}
|
||||
className="task-hide edu-txt-left newtaskhide"
|
||||
style={{"width":"280px"}}
|
||||
name="shixun_homework[]"
|
||||
>
|
||||
<label style={{"textAlign":"left","color":"#05101A"}} className="task-hide color-grey-name" title="frerere">{item.subject_name}</label>
|
||||
</Checkbox>
|
||||
</li>
|
||||
<li className="fl with30 edu-txt-left task-hide pl40">{item.shixun_count}</li>
|
||||
<li className="fl with10 paddingl10">{item.myshixun_count}</li>
|
||||
<Tooltip title="查看详情">
|
||||
<li className="fr with10"><a className="color-blue" href={"/paths/"+item.subject_id} target="_blank">详情</a></li>
|
||||
</Tooltip>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
</Checkbox.Group>
|
||||
</Loading>
|
||||
</div>
|
||||
{ this.state.patheditarrytype===true?<span className={"color-red"}>{this.state.patheditarryvalue}</span>:""}
|
||||
<div className="mt20 marginauto clearfix edu-txt-center">
|
||||
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a>
|
||||
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
|
||||
</div>
|
||||
</div>
|
||||
</Loading>
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default PathModal;
|
@ -1,320 +1,320 @@
|
||||
import React,{ Component } from "react";
|
||||
import { Modal,Checkbox,Select,Input,Tooltip,Spin,Icon} from "antd";
|
||||
import axios from'axios';
|
||||
// import Loading from '@icedesign/base/lib/loading';
|
||||
// import '@icedesign/base/lib/loading/style.js';
|
||||
|
||||
const Option = Select.Option;
|
||||
const Search = Input.Search;
|
||||
class ShixunModal extends Component{
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state={
|
||||
Searchvalue:undefined,
|
||||
type:'all',
|
||||
category_id:0,
|
||||
page:1
|
||||
}
|
||||
}
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
//勾选实训
|
||||
shixunhomeworkedit=(list)=>{
|
||||
|
||||
let newpatheditarry=[];
|
||||
if (this.props.singleChoose == true) {
|
||||
if (list.length > 0) {
|
||||
newpatheditarry.push(list[list.length - 1])
|
||||
}
|
||||
} else {
|
||||
for(var i=0; i<list.length;i++){
|
||||
newpatheditarry.push(list[i])
|
||||
}
|
||||
}
|
||||
|
||||
// this.setState({
|
||||
// patheditarry:newpatheditarry
|
||||
// })
|
||||
this.props.funpatheditarry(newpatheditarry)
|
||||
}
|
||||
|
||||
contentViewScrolledit=(e)=>{
|
||||
//滑动到底判断
|
||||
|
||||
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
|
||||
|
||||
let {Searchvalue,type,page}=this.state;
|
||||
let newpage=page+1
|
||||
this.props.funshixunmodallist(Searchvalue,type,true,newpage)
|
||||
this.setState({
|
||||
page:newpage
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//搜索
|
||||
SenttotheValue=(e)=>{
|
||||
this.setState({
|
||||
Searchvalue:e.target.value
|
||||
})
|
||||
}
|
||||
SenttotheSearch=(value)=>{
|
||||
let{type}=this.state;
|
||||
this.setState({
|
||||
page:1,
|
||||
})
|
||||
|
||||
this.props.funshixunmodallist(value,type,true,1)
|
||||
this.props.funpatheditarry([])
|
||||
}
|
||||
|
||||
//tag
|
||||
changeTag=(types)=>{
|
||||
let {Searchvalue}=this.state;
|
||||
this.setState({
|
||||
type:types,
|
||||
page:1,
|
||||
})
|
||||
|
||||
this.props.funshixunmodallist(Searchvalue,types,true,1)
|
||||
this.props.funpatheditarry([])
|
||||
}
|
||||
|
||||
|
||||
hidecouseShixunModal=()=>{
|
||||
this.props.hidecouseShixunModal()
|
||||
}
|
||||
|
||||
savecouseShixunModal=()=>{
|
||||
let {coursesId,patheditarry,datas}=this.props;
|
||||
|
||||
let{category_id}=this.state;
|
||||
if (this.props.chooseShixun) {
|
||||
this.props.chooseShixun(patheditarry)
|
||||
return;
|
||||
}
|
||||
if(patheditarry.length===0){
|
||||
this.setState({
|
||||
shixunmodelchke:true,
|
||||
chekicmessage:"请先选择实训"
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
let url="/courses/"+coursesId+"/homework_commons/create_shixun_homework.json";
|
||||
axios.post(url, {
|
||||
category_id:this.props.category_id===null||this.props.category_id===undefined?undefined:parseInt(this.props.category_id),
|
||||
shixun_ids:patheditarry,
|
||||
}
|
||||
).then((response) => {
|
||||
if(response.data.status===-1){
|
||||
// this.props.showNotification(response.data.message)
|
||||
|
||||
}else{
|
||||
this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
|
||||
this.props.hidecouseShixunModal()
|
||||
}
|
||||
|
||||
// category_id: 3
|
||||
// homework_ids: (5) [9171, 9172, 9173, 9174, 9175]
|
||||
}).catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
|
||||
selectCloseList=(value)=>{
|
||||
this.setState({
|
||||
category_id:value
|
||||
})
|
||||
}
|
||||
render(){
|
||||
let {Searchvalue,type,category_id}=this.state;
|
||||
let {visible,shixunmodallist,hometypepvisible,newshixunmodallist,patheditarry}=this.props;
|
||||
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
|
||||
// console.log(patheditarry)
|
||||
return(
|
||||
<div>
|
||||
|
||||
<Modal
|
||||
keyboard={false}
|
||||
title="选择实训"
|
||||
visible={visible}
|
||||
closable={false}
|
||||
footer={null}
|
||||
width="840px"
|
||||
destroyOnClose={true}
|
||||
>
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.ant-spin-lg .ant-spin-dot {
|
||||
font-size: 32px !important;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
<Spin indicator={antIcon} spinning={hometypepvisible} className="newnext-loading" color='#4AC7FF' size="large">
|
||||
{/*<Spin shape="dot-circle" >*/}
|
||||
{/*{*/}
|
||||
{/*shixunmodallist === undefined ? "":shixunmodallist.homework_category.length>0?<div>*/}
|
||||
|
||||
{/*<div className={"fl"}>选择目录名称:</div>*/}
|
||||
{/*<div className="fl mb20">*/}
|
||||
{/*<Select*/}
|
||||
{/*placeholder="请选择您要发送的课堂"*/}
|
||||
{/*value={isNaN(parseInt(category_id))?"":parseInt(category_id)}*/}
|
||||
{/*style={{"width":"660px","marginTop": "-7px"}}*/}
|
||||
{/*onSelect={this.selectCloseList}*/}
|
||||
{/*// onMouseEnter={this.openList}*/}
|
||||
{/*defaultOpen={false}*/}
|
||||
{/*// open={openSearch}*/}
|
||||
{/*optionLabelProp="name"*/}
|
||||
{/*>*/}
|
||||
{/*{ shixunmodallist.main_category.map((item,key)=>{*/}
|
||||
{/*return(*/}
|
||||
{/*<Option key={key} value={item.main_category_id} name={item.main_category_name}>{item.main_category_name}</Option>*/}
|
||||
{/*)*/}
|
||||
{/*})*/}
|
||||
{/*}*/}
|
||||
|
||||
{/*{*/}
|
||||
{/*shixunmodallist.homework_category.map((item,key)=>{*/}
|
||||
{/*return(*/}
|
||||
{/*<Option key={key} value={item.category_id} name={item.category_name}>{item.category_name}</Option>*/}
|
||||
{/*)*/}
|
||||
{/*})*/}
|
||||
{/*}*/}
|
||||
|
||||
{/*</Select>*/}
|
||||
{/*</div>*/}
|
||||
|
||||
{/*</div>:""}*/}
|
||||
|
||||
<div className="newupload_conbox">
|
||||
<style>
|
||||
{
|
||||
`
|
||||
#shixun_tab_div{
|
||||
max-height: 65px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
<div className="clearfix mb10 shixun_work_div newshixun_tab_div cdefault" style={{"marginRight":"4px"}} id="shixun_tab_div">
|
||||
|
||||
<li className="fl mr5 mt5">
|
||||
<a onClick={()=>this.changeTag("all")} className={ type==="all" ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部</a>
|
||||
</li>
|
||||
|
||||
{
|
||||
shixunmodallist && shixunmodallist.tags.map((item,key)=>{
|
||||
return(
|
||||
<li className="fl mr5 mt5" key={key}>
|
||||
<a onClick={()=>this.changeTag(item.tag_id)} className={ parseInt(type) === parseInt(item.tag_id) ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>{item.tag_name}</a>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
</div>
|
||||
<div className="clearfix mb10" id="shixun_search_form_div" style={{height:"30px"}}>
|
||||
<span className="fl color-grey-9 font-16 mt3">
|
||||
<span>共</span>
|
||||
<span className="color-orange-tip">{shixunmodallist === undefined ? "":shixunmodallist.shixuns_count}</span>
|
||||
<span>个实训</span>
|
||||
</span>
|
||||
<div className="fr search-new">
|
||||
<Search
|
||||
placeholder="输入实训名称的关键字搜索"
|
||||
value={Searchvalue}
|
||||
onInput={this.SenttotheValue}
|
||||
onSearch={(value) => this.SenttotheSearch(value)}
|
||||
style={{width: '100%'}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{
|
||||
<style>
|
||||
{
|
||||
`.paddingleft22{
|
||||
text-align: left;
|
||||
padding-left: 23px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
}
|
||||
<ul className="clearfix greybackHead edu-txt-center">
|
||||
<li className="fl with40 paddingleft22" >实训名称</li>
|
||||
<li className="fl with30 edu-txt-left">使用院校</li>
|
||||
<li className="fl with10">使用人数</li>
|
||||
<li className="fl with10">评价等级</li>
|
||||
<li className="fl with10"></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div className="over210 pl20 pr20"
|
||||
onScroll={this.contentViewScrolledit}
|
||||
style={{height:"158px"}}>
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.next-loading{
|
||||
width: 100%;
|
||||
height: 230px;
|
||||
}
|
||||
.newtaskhide{
|
||||
margin-top:0px !important;
|
||||
height: 40px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
{/*<Loading visible={hometypepvisible} shape="dot-circle" className="newnext-loading" color='#4AC7FF'>*/}
|
||||
<Checkbox.Group style={{ width: '100%' }} value={patheditarry} onChange={this.shixunhomeworkedit}>
|
||||
{
|
||||
newshixunmodallist === undefined ? "": newshixunmodallist.map((item,key)=>{
|
||||
return(
|
||||
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
||||
<li className="fl with40 edu-txt-left task-hide paddingl5 newtaskhide">
|
||||
<Checkbox
|
||||
id={"shixun_input_"+item.shixun_id} value={item.shixun_id}
|
||||
className=" task-hide edu-txt-left newtaskhide"
|
||||
style={{"width":"280px"}}
|
||||
name="shixun_homework[]"
|
||||
>
|
||||
<span style={{"textAlign":"left","color":"#05101A"}} className="task-hide color-grey-name">{item.shixun_name}</span>
|
||||
</Checkbox>
|
||||
</li>
|
||||
<li className="fl with30 edu-txt-left task-hide paddingl5">{item.school_users}</li>
|
||||
<li className="fl with10 paddingl10">{item.myshixuns_count}</li>
|
||||
<li className="fl with10 color-orange-tip paddingl10">{item.preference}</li>
|
||||
<Tooltip title="新窗口查看详情">
|
||||
<li className="fl with10"><a className="color-blue" href={"/shixuns/"+item.identifier+"/challenges"} target="_blank">详情</a></li>
|
||||
</Tooltip>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
</Checkbox.Group>
|
||||
{/*</Loading>*/}
|
||||
</div>
|
||||
</div>
|
||||
</Spin>
|
||||
{this.state.shixunmodelchke===true?<span className={"color-red"}>{this.state.chekicmessage}</span>:""}
|
||||
<div className="mt20 marginauto clearfix edu-txt-center">
|
||||
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a>
|
||||
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
|
||||
</div>
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
import React,{ Component } from "react";
|
||||
import { Modal,Checkbox,Select,Input,Tooltip,Spin,Icon} from "antd";
|
||||
import axios from'axios';
|
||||
// import Loading from '@icedesign/base/lib/loading';
|
||||
// import '@icedesign/base/lib/loading/style.js';
|
||||
|
||||
const Option = Select.Option;
|
||||
const Search = Input.Search;
|
||||
class ShixunModal extends Component{
|
||||
constructor(props){
|
||||
super(props);
|
||||
this.state={
|
||||
Searchvalue:undefined,
|
||||
type:'all',
|
||||
category_id:0,
|
||||
page:1
|
||||
}
|
||||
}
|
||||
componentDidMount() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
//勾选实训
|
||||
shixunhomeworkedit=(list)=>{
|
||||
|
||||
let newpatheditarry=[];
|
||||
if (this.props.singleChoose == true) {
|
||||
if (list.length > 0) {
|
||||
newpatheditarry.push(list[list.length - 1])
|
||||
}
|
||||
} else {
|
||||
for(var i=0; i<list.length;i++){
|
||||
newpatheditarry.push(list[i])
|
||||
}
|
||||
}
|
||||
|
||||
// this.setState({
|
||||
// patheditarry:newpatheditarry
|
||||
// })
|
||||
this.props.funpatheditarry(newpatheditarry)
|
||||
}
|
||||
|
||||
contentViewScrolledit=(e)=>{
|
||||
//滑动到底判断
|
||||
|
||||
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
|
||||
|
||||
let {Searchvalue,type,page}=this.state;
|
||||
let newpage=page+1
|
||||
this.props.funshixunmodallist(Searchvalue,type,true,newpage)
|
||||
this.setState({
|
||||
page:newpage
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//搜索
|
||||
SenttotheValue=(e)=>{
|
||||
this.setState({
|
||||
Searchvalue:e.target.value
|
||||
})
|
||||
}
|
||||
SenttotheSearch=(value)=>{
|
||||
let{type}=this.state;
|
||||
this.setState({
|
||||
page:1,
|
||||
})
|
||||
|
||||
this.props.funshixunmodallist(value,type,true,1)
|
||||
this.props.funpatheditarry([])
|
||||
}
|
||||
|
||||
//tag
|
||||
changeTag=(types)=>{
|
||||
let {Searchvalue}=this.state;
|
||||
this.setState({
|
||||
type:types,
|
||||
page:1,
|
||||
})
|
||||
|
||||
this.props.funshixunmodallist(Searchvalue,types,true,1)
|
||||
this.props.funpatheditarry([])
|
||||
}
|
||||
|
||||
|
||||
hidecouseShixunModal=()=>{
|
||||
this.props.hidecouseShixunModal()
|
||||
}
|
||||
|
||||
savecouseShixunModal=()=>{
|
||||
let {coursesId,patheditarry,datas}=this.props;
|
||||
|
||||
let{category_id}=this.state;
|
||||
if (this.props.chooseShixun) {
|
||||
this.props.chooseShixun(patheditarry)
|
||||
return;
|
||||
}
|
||||
if(patheditarry.length===0){
|
||||
this.setState({
|
||||
shixunmodelchke:true,
|
||||
chekicmessage:"请先选择实训"
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
let url="/courses/"+coursesId+"/homework_commons/create_shixun_homework.json";
|
||||
axios.post(url, {
|
||||
category_id:this.props.category_id===null||this.props.category_id===undefined?undefined:parseInt(this.props.category_id),
|
||||
shixun_ids:patheditarry,
|
||||
}
|
||||
).then((response) => {
|
||||
if(response.data.status===-1){
|
||||
// this.props.showNotification(response.data.message)
|
||||
|
||||
}else{
|
||||
this.props.courseshomeworkstart(response.data.category_id,response.data.homework_ids)
|
||||
this.props.hidecouseShixunModal()
|
||||
}
|
||||
|
||||
// category_id: 3
|
||||
// homework_ids: (5) [9171, 9172, 9173, 9174, 9175]
|
||||
}).catch((error) => {
|
||||
console.log(error)
|
||||
})
|
||||
}
|
||||
|
||||
selectCloseList=(value)=>{
|
||||
this.setState({
|
||||
category_id:value
|
||||
})
|
||||
}
|
||||
render(){
|
||||
let {Searchvalue,type,category_id}=this.state;
|
||||
let {visible,shixunmodallist,hometypepvisible,newshixunmodallist,patheditarry}=this.props;
|
||||
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
|
||||
// console.log(patheditarry)
|
||||
return(
|
||||
<div>
|
||||
|
||||
<Modal
|
||||
keyboard={false}
|
||||
title="选择实训"
|
||||
visible={visible}
|
||||
closable={false}
|
||||
footer={null}
|
||||
width="840px"
|
||||
destroyOnClose={true}
|
||||
>
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.ant-spin-lg .ant-spin-dot {
|
||||
font-size: 32px !important;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
<Spin indicator={antIcon} spinning={hometypepvisible} className="newnext-loading" color='#4AC7FF' size="large">
|
||||
{/*<Spin shape="dot-circle" >*/}
|
||||
{/*{*/}
|
||||
{/*shixunmodallist === undefined ? "":shixunmodallist.homework_category.length>0?<div>*/}
|
||||
|
||||
{/*<div className={"fl"}>选择目录名称:</div>*/}
|
||||
{/*<div className="fl mb20">*/}
|
||||
{/*<Select*/}
|
||||
{/*placeholder="请选择您要发送的课堂"*/}
|
||||
{/*value={isNaN(parseInt(category_id))?"":parseInt(category_id)}*/}
|
||||
{/*style={{"width":"660px","marginTop": "-7px"}}*/}
|
||||
{/*onSelect={this.selectCloseList}*/}
|
||||
{/*// onMouseEnter={this.openList}*/}
|
||||
{/*defaultOpen={false}*/}
|
||||
{/*// open={openSearch}*/}
|
||||
{/*optionLabelProp="name"*/}
|
||||
{/*>*/}
|
||||
{/*{ shixunmodallist.main_category.map((item,key)=>{*/}
|
||||
{/*return(*/}
|
||||
{/*<Option key={key} value={item.main_category_id} name={item.main_category_name}>{item.main_category_name}</Option>*/}
|
||||
{/*)*/}
|
||||
{/*})*/}
|
||||
{/*}*/}
|
||||
|
||||
{/*{*/}
|
||||
{/*shixunmodallist.homework_category.map((item,key)=>{*/}
|
||||
{/*return(*/}
|
||||
{/*<Option key={key} value={item.category_id} name={item.category_name}>{item.category_name}</Option>*/}
|
||||
{/*)*/}
|
||||
{/*})*/}
|
||||
{/*}*/}
|
||||
|
||||
{/*</Select>*/}
|
||||
{/*</div>*/}
|
||||
|
||||
{/*</div>:""}*/}
|
||||
|
||||
<div className="newupload_conbox">
|
||||
<style>
|
||||
{
|
||||
`
|
||||
#shixun_tab_div{
|
||||
max-height: 65px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
<div className="clearfix mb10 shixun_work_div newshixun_tab_div cdefault" style={{"marginRight":"4px"}} id="shixun_tab_div">
|
||||
|
||||
<li className="fl mr5 mt5">
|
||||
<a onClick={()=>this.changeTag("all")} className={ type==="all" ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>全部</a>
|
||||
</li>
|
||||
|
||||
{
|
||||
shixunmodallist && shixunmodallist.tags.map((item,key)=>{
|
||||
return(
|
||||
<li className="fl mr5 mt5" key={key}>
|
||||
<a onClick={()=>this.changeTag(item.tag_id)} className={ parseInt(type) === parseInt(item.tag_id) ? "active edu-filter-cir-grey font-12":"edu-filter-cir-grey font-12"}>{item.tag_name}</a>
|
||||
</li>
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
</div>
|
||||
<div className="clearfix mb10" id="shixun_search_form_div" style={{height:"30px"}}>
|
||||
<span className="fl color-grey-9 font-16 mt3">
|
||||
<span>共</span>
|
||||
<span className="color-orange-tip">{shixunmodallist === undefined ? "":shixunmodallist.shixuns_count}</span>
|
||||
<span>个实训</span>
|
||||
</span>
|
||||
<div className="fr search-new">
|
||||
<Search
|
||||
placeholder="请输入创建者或者实训名称进行搜索"
|
||||
value={Searchvalue}
|
||||
onInput={this.SenttotheValue}
|
||||
onSearch={(value) => this.SenttotheSearch(value)}
|
||||
style={{width: '115%'}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
{
|
||||
<style>
|
||||
{
|
||||
`.paddingleft22{
|
||||
text-align: left;
|
||||
padding-left: 23px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
}
|
||||
<ul className="clearfix greybackHead edu-txt-center">
|
||||
<li className="fl with40 paddingleft22" >实训名称</li>
|
||||
<li className="fl with30 edu-txt-left">使用院校</li>
|
||||
<li className="fl with10">使用人数</li>
|
||||
<li className="fl with10">评价等级</li>
|
||||
<li className="fl with10"></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
<div className="over210 pl20 pr20"
|
||||
onScroll={this.contentViewScrolledit}
|
||||
style={{height:"158px"}}>
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.next-loading{
|
||||
width: 100%;
|
||||
height: 230px;
|
||||
}
|
||||
.newtaskhide{
|
||||
margin-top:0px !important;
|
||||
height: 40px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
{/*<Loading visible={hometypepvisible} shape="dot-circle" className="newnext-loading" color='#4AC7FF'>*/}
|
||||
<Checkbox.Group style={{ width: '100%' }} value={patheditarry} onChange={this.shixunhomeworkedit}>
|
||||
{
|
||||
newshixunmodallist === undefined ? "": newshixunmodallist.map((item,key)=>{
|
||||
return(
|
||||
<div className="clearfix edu-txt-center lineh-40 bor-bottom-greyE" key={key}>
|
||||
<li className="fl with40 edu-txt-left task-hide paddingl5 newtaskhide">
|
||||
<Checkbox
|
||||
id={"shixun_input_"+item.shixun_id} value={item.shixun_id}
|
||||
className=" task-hide edu-txt-left newtaskhide"
|
||||
style={{"width":"280px"}}
|
||||
name="shixun_homework[]"
|
||||
>
|
||||
<span style={{"textAlign":"left","color":"#05101A"}} className="task-hide color-grey-name">{item.shixun_name}</span>
|
||||
</Checkbox>
|
||||
</li>
|
||||
<li className="fl with30 edu-txt-left task-hide paddingl5">{item.school_users}</li>
|
||||
<li className="fl with10 paddingl10">{item.myshixuns_count}</li>
|
||||
<li className="fl with10 color-orange-tip paddingl10">{item.preference}</li>
|
||||
<Tooltip title="新窗口查看详情">
|
||||
<li className="fl with10"><a className="color-blue" href={"/shixuns/"+item.identifier+"/challenges"} target="_blank">详情</a></li>
|
||||
</Tooltip>
|
||||
</div>
|
||||
)
|
||||
})
|
||||
}
|
||||
</Checkbox.Group>
|
||||
{/*</Loading>*/}
|
||||
</div>
|
||||
</div>
|
||||
</Spin>
|
||||
{this.state.shixunmodelchke===true?<span className={"color-red"}>{this.state.chekicmessage}</span>:""}
|
||||
<div className="mt20 marginauto clearfix edu-txt-center">
|
||||
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a>
|
||||
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
|
||||
</div>
|
||||
</Modal>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
export default ShixunModal;
|
@ -1,52 +1,53 @@
|
||||
/* 右侧搜索区域*/
|
||||
.searchFor .searchCon {
|
||||
width: 215px;
|
||||
}
|
||||
|
||||
.search-new {
|
||||
width:237px!important;
|
||||
height: 30px;
|
||||
margin-bottom: 30px;
|
||||
}
|
||||
.search-new-input {
|
||||
padding-left: 16px;
|
||||
height: 30px;
|
||||
}
|
||||
.search-span {
|
||||
border-radius: 17px;
|
||||
}
|
||||
|
||||
.search-new img {
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
|
||||
/* 右侧 热门标签 */
|
||||
.HotLabelList a{display: block;float: left;padding: 0px 9px;height: 28px;line-height: 28px;border-radius: 14px;background-color: #f5f5f5;color: #666;margin-right: 10px;margin-bottom: 9px;}
|
||||
.HotLabelList a.selected {
|
||||
background: #4CACFF;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 右侧 热门问题 */
|
||||
.hotQuestionItem{padding:20px 0px;border-bottom: 1px solid #eee;}
|
||||
.questiontName{max-width: 100%;display: block;}
|
||||
|
||||
|
||||
|
||||
/* 用户信息-UserSection*/
|
||||
.user_default_btn {width: 114px;}
|
||||
.userPrivateName{line-height: 25px;margin-bottom: 9px;}
|
||||
.userPrivatePost{line-height: 20px;}
|
||||
.noteDetailTitle{line-height: 38px;font-size: 24px;font-weight: normal;text-align:justify }
|
||||
|
||||
.noteDetailNum{float: left;padding:0px 12px;position: relative;color: #999!important;height: 28px;line-height: 26px;}
|
||||
.noteDetailNum.rightline:after{position: absolute;content: '';right: 0px;width: 1px;background-color: #EAEAEA;height: 8px;top:10px;}
|
||||
|
||||
/*帖子详情点赞*/
|
||||
.noteDetailPoint{width: 100px;height: 70px;background-color: #4cacff;border-radius: 35px;color: #FFFFff;text-align: center;margin: 0px auto;box-sizing: border-box;padding: 2px 0px;cursor: pointer; line-height: 22px;
|
||||
padding-top: 12px;}
|
||||
.Pointed{background-color:#f0f0f0;color: #b3b3b3; cursor: default}
|
||||
.notefileDownload{height: 25px;line-height: 22px;}
|
||||
/* 右侧搜索区域*/
|
||||
.searchFor .searchCon {
|
||||
width: 215px;
|
||||
}
|
||||
|
||||
.search-new {
|
||||
width:237px!important;
|
||||
height: 30px;
|
||||
margin-bottom: 30px;
|
||||
margin-right: 35px;
|
||||
}
|
||||
.search-new-input {
|
||||
padding-left: 16px;
|
||||
height: 30px;
|
||||
}
|
||||
.search-span {
|
||||
border-radius: 17px;
|
||||
}
|
||||
|
||||
.search-new img {
|
||||
right: 10px;
|
||||
}
|
||||
|
||||
|
||||
/* 右侧 热门标签 */
|
||||
.HotLabelList a{display: block;float: left;padding: 0px 9px;height: 28px;line-height: 28px;border-radius: 14px;background-color: #f5f5f5;color: #666;margin-right: 10px;margin-bottom: 9px;}
|
||||
.HotLabelList a.selected {
|
||||
background: #4CACFF;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 右侧 热门问题 */
|
||||
.hotQuestionItem{padding:20px 0px;border-bottom: 1px solid #eee;}
|
||||
.questiontName{max-width: 100%;display: block;}
|
||||
|
||||
|
||||
|
||||
/* 用户信息-UserSection*/
|
||||
.user_default_btn {width: 114px;}
|
||||
.userPrivateName{line-height: 25px;margin-bottom: 9px;}
|
||||
.userPrivatePost{line-height: 20px;}
|
||||
.noteDetailTitle{line-height: 38px;font-size: 24px;font-weight: normal;text-align:justify }
|
||||
|
||||
.noteDetailNum{float: left;padding:0px 12px;position: relative;color: #999!important;height: 28px;line-height: 26px;}
|
||||
.noteDetailNum.rightline:after{position: absolute;content: '';right: 0px;width: 1px;background-color: #EAEAEA;height: 8px;top:10px;}
|
||||
|
||||
/*帖子详情点赞*/
|
||||
.noteDetailPoint{width: 100px;height: 70px;background-color: #4cacff;border-radius: 35px;color: #FFFFff;text-align: center;margin: 0px auto;box-sizing: border-box;padding: 2px 0px;cursor: pointer; line-height: 22px;
|
||||
padding-top: 12px;}
|
||||
.Pointed{background-color:#f0f0f0;color: #b3b3b3; cursor: default}
|
||||
.notefileDownload{height: 25px;line-height: 22px;}
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue