Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_admin
cxt 6 years ago
commit e84b6d46dc

@ -25,28 +25,28 @@ elsif @type == "txt"
elsif @type =="qrcode"
json.qrcode_str @qrcode_str
elsif @type == "mp3" || @type == "mp4"
# if @type == "mp4"
# json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378171/123.mp4"}]
# json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172/456.mp4"}]
# json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378173/789.mp4"}]
# else
# json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378174/58099.mp3"}]
# json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
# json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175/654058514.mp3"}]
# end
json.orignal_file do
json.array! @orignal_picture do |file|
json.file_url attachment_show_users_path(:file_name => file, :path => @original_path)
end
end
json.user_file do
json.array! @user_picture do |file|
json.file_url attachment_show_users_path(:file_name => file, :path => @user_path, :time => Time.now.to_i)
end
end
json.answer_file do
json.array! @answer_picture do |file|
json.file_url attachment_show_users_path(:file_name => file, :path => @answer_path)
end
if @type == "mp4"
json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378171"}]
json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378172"}]
json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378173"}]
else
json.orignal_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378174"}]
json.user_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175"}]
json.answer_file [{"file_url": "http://120.27.231.56:48080/attachments/download/378175"}]
end
# json.orignal_file do
# json.array! @orignal_picture do |file|
# json.file_url attachment_show_users_path(:file_name => file, :path => @original_path)
# end
# end
# json.user_file do
# json.array! @user_picture do |file|
# json.file_url attachment_show_users_path(:file_name => file, :path => @user_path, :time => Time.now.to_i)
# end
# end
# json.answer_file do
# json.array! @answer_picture do |file|
# json.file_url attachment_show_users_path(:file_name => file, :path => @answer_path)
# end
# end
end

@ -470,7 +470,7 @@ class CommonWorkPost extends Component{
}
gocannel=()=>{
window.history.go(-1)
this.props.history.goBack()
}
render(){

@ -362,7 +362,7 @@ class GraduationTasksSubmitedit extends Component{
}
gocannel=()=>{
window.history.go(-1)
this.props.history.goBack()
}
handleSubmit=(e) => {

@ -362,7 +362,7 @@ class GraduationTasksSubmitnew extends Component{
}
}
gocannel=()=>{
window.history.go(-1)
this.props.history.goBack()
}
//公用数据

@ -11,10 +11,10 @@
}
.user_navlist{
margin-left: 40px;
/*margin-left: 40px;*/
}
.next-slick-list{
margin-left: 12px;
/*margin-left: 12px;*/
}
.black_nav_span{
@ -58,7 +58,7 @@
}
.educontentSlider{
width: 1282px !important;
/*width: 1282px !important;*/
}
.user_navlist_white{
max-height:350px !important;
@ -72,4 +72,8 @@
.iconfontshixundaibeijing{
font-size: 18px !important;
line-height: 24px;
}
.next-slick.next-slick-horizontal.next-slick-outer{
padding:0px !important;
}

@ -112,14 +112,14 @@ class PathDetailIndex extends Component{
this.setState({
Modalstype:false,
})
window.history.go(-1)
this.props.history.goBack()
}
cardsModalsave=()=>{
this.setState({
Modalstype:false,
})
window.history.go(-1)
this.props.history.goBack()
}
// 加载markdown
updatamakedown=(id)=>{

@ -230,7 +230,8 @@ class PackageIndexNEITaskDetails extends Component {
}
goback = () => {
// window.history.go(-1)
window.location.href="/crowdsourcing";
// window.location.href="/crowdsourcing";
this.props.history.goBack()
}
render() {

@ -30,7 +30,8 @@ class PackageIndexNewandEditIndex extends Component{
goback = () => {
// window.history.go(-1)
window.location.href="/crowdsourcing";
// window.location.href="/crowdsourcing";
this.props.history.goBack()
}
render() {

Loading…
Cancel
Save