调整案例编辑

dev_aliyun
杨树明 6 years ago
parent 7f8dba8549
commit d4ee288476

@ -64,11 +64,14 @@
<div class="clearfix lineheight35">
<% cover_exists = @library.cover_id.present? %>
<span class="upload_Titles">封面图</span> <span class="color-grey-c">上传尺寸120*90 px</span>
<div><span class="upload_Titles">封面图</span> <span class="color-grey-c">上传尺寸120*90 px</span></div>
<div class="surfacePlot ml25">
<img src="/images/educoder/unite.png" class="marginuploading"/>
</div>
<% if cover_exists %>
<%= image_tag(named_attachment_path(@library.cover.id, @library.cover.filename), :class => "w120 h90 ml5 shixun_image_show") %>
<% else %>
<img src="" class="w80 h80 ml5 shixun_image_show none" id="shixun_image_show_<%= @library.id %>"/>
<img src="" class="ml5 shixun_image_show ml50 none" width="150px" height="150px" id="shixun_image_show_<%= @library.id %>"/>
<% end %>
<%= file_field_tag 'library[cover_id]',
:id => "upload_img_#{@library.id}",
@ -85,10 +88,11 @@
:upload_path => uploads_path(:format => 'js',:project =>nil),
:description_placeholder => nil ,# l(:label_optional_description)
} %>
<a href="javascript:void(0);" id="object_upload_img_<%= @library.id %>" class="mr10" onclick="$('#upload_img_<%= @library.id %>').click();">
<%= cover_exists ? "重新上传" : "上传图片" %>
</a>
<div>
<a href="javascript:void(0);" id="object_upload_img_<%= @library.id %>" class="<%= cover_exists ? "mr10 ml60" : "mr10 ml60 decoration4CACFF" %>" onclick="$('#upload_img_<%= @library.id %>').click();">
<%= cover_exists ? "重新上传" : "上传图片" %>
</a>
</div>
</div>
</div>
<div class="padding30 bor-top-greyE">

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

@ -17,37 +17,45 @@ class SiderBar extends Component {
render() {
return (
<div className="-task-sidebar">
<div className="gotop" style={{"display":"none"}} tooltips="返回顶部">
<a href="javascript:void(0)" className="inline">
<i class="iconfont icon-shangjiantou color-white fl mt7"></i>
</a>
</div>
<div className="feedback" tooltips="意见反馈">
<a target="_blank" className="color_white inline" href="/help?index=6">
<i className="iconfont icon-yijianfankui color-white font-22 fl mt7"></i>
</a>
</div>
<div className="scan pr">
<span className="inline"><i className="iconfont icon-erweima color-white font-22 fl mt7"></i></span>
<div className="scan_ewm">
<div className="pr padding10">
<img src={getImageUrl('/images/edu_user/EWM.jpg')} style={{"widht":"158px","height":"158px"}} />
<p className="mb0 mt8">微信扫一扫</p>
<p className="mb0">关注公众号</p>
<span className="trangle_right"></span>
</div>
</div>
</div>
<div className="consult" tooltips="在线咨询">
<a target="_blank" className="color_white inline" href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd">
<i className="iconfont icon-qqzaixianzixun color-white font-22 fl mt7"></i>
</a>
</div>
</div>
<div>
<div className="-task-sidebar">
<div className="gotop" style={{"display": "none"}} tooltips="返回顶部">
<a href="javascript:void(0)" className="inline">
<i className="iconfont icon-shangjiantou color-white fl mt7"></i>
</a>
</div>
<div className="feedback" tooltips="意见反馈">
<a target="_blank" className="color_white inline" href="/help?index=6">
<i className="iconfont icon-yijianfankui color-white font-22 fl mt7"></i>
</a>
</div>
<div className="scan pr">
<span className="inline"><i className="iconfont icon-erweima color-white font-22 fl mt7"></i></span>
<div className="scan_ewm">
<div className="pr padding10">
<img src={getImageUrl('/images/edu_user/EWM.jpg')} style={{"widht": "158px", "height": "158px"}}/>
<p className="mb0 mt8">微信扫一扫</p>
<p className="mb0">关注公众号</p>
<span className="trangle_right"></span>
</div>
</div>
</div>
<div className="consult" tooltips="在线咨询">
<a target="_blank" className="color_white inline"
href="//shang.qq.com/wpa/qunwpa?idkey=2f2043d88c1bd61d182b98bf1e061c6185e23055bec832c07d8148fe11c5a6cd">
<i className="iconfont icon-qqzaixianzixun color-white font-22 fl mt7"></i>
</a>
</div>
</div>
<div className="-task-sidebars" style={{right: "240px"}}>
<img src={getImageUrl("/images/educoder/competition/lvmeng.png")} width="150px" height="150px" />
</div>
</div>
);
}
}

@ -1188,14 +1188,13 @@ html>body #ajax-indicator { position: fixed; }
.upload_Titles{
position: relative;
margin-right: 30px;
float: left;
line-height: 35px;
font-size: 16px;
width: 50px;
}
.lineheight34{
.lineheight35{
line-height: 35px;
}
@ -1204,4 +1203,20 @@ html>body #ajax-indicator { position: fixed; }
}
.h90{
width:90px;
}
.decoration4CACFF{
color: #4CACFF !important;
border-bottom: 1px solid #4CACFF;
}
.surfacePlot{
width:120px;
height:90px;
background:rgba(250,250,250,1);
border:1px solid rgba(221,221,221,1);
}
.marginuploading{
margin: 27px 42px;
}
Loading…
Cancel
Save