From d4ee2884763b3dfe6744980c598df7e07e7f7234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Wed, 17 Jul 2019 15:32:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=A1=88=E4=BE=8B=E7=BC=96?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_form.html.erb | 16 ++++-- public/images/educoder/unite.png | Bin 0 -> 169 bytes public/react/src/modules/tpm/SiderBar.js | 70 +++++++++++++---------- public/stylesheets/educoder/edu-main.css | 19 +++++- 4 files changed, 66 insertions(+), 39 deletions(-) create mode 100755 public/images/educoder/unite.png diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 4e27d52a..36d09bed 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -64,11 +64,14 @@
<% cover_exists = @library.cover_id.present? %> - 封面图 (上传尺寸:120*90 px) +
封面图 (上传尺寸:120*90 px)
+
+ +
<% if cover_exists %> <%= image_tag(named_attachment_path(@library.cover.id, @library.cover.filename), :class => "w120 h90 ml5 shixun_image_show") %> <% else %> - + <% 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) } %> - - <%= cover_exists ? "重新上传" : "上传图片" %> - - +
+ " onclick="$('#upload_img_<%= @library.id %>').click();"> + <%= cover_exists ? "重新上传" : "上传图片" %> + +
diff --git a/public/images/educoder/unite.png b/public/images/educoder/unite.png new file mode 100755 index 0000000000000000000000000000000000000000..8ebb4984d5e247d50f38837c36a5c89693cbf342 GIT binary patch literal 169 zcmeAS@N?(olHy`uVBq!ia0vp^Dj>|k1|%Oc%$NbB3OrpLLn7SYPCv-$pvZIdjltde z1$>LuAIjUgY^dnE-k#gZXzF%&)vBGRQ_}8C*>h`;w6%b2V~dIli^g?DPC>>~r5;W$ z4WGi=_Z?mFvD-$5!{B$43csp~;{ViozAbUGDmOjfIk -
- - - -
- -
- - - -
- -
- -
-
- -

微信扫一扫

-

关注公众号

- -
-
-
-
- - - -
- -
+
+ +
+
+ + + +
+ +
+ + + +
+ +
+ +
+
+ +

微信扫一扫

+

关注公众号

+ +
+
+
+
+ + + +
+
+ +
+ +
+ +
); } } diff --git a/public/stylesheets/educoder/edu-main.css b/public/stylesheets/educoder/edu-main.css index 0e21cf82..05cea010 100644 --- a/public/stylesheets/educoder/edu-main.css +++ b/public/stylesheets/educoder/edu-main.css @@ -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; } \ No newline at end of file