From eddf43ab1c5961dd01d4481c490b7d3e2d3ea8dc Mon Sep 17 00:00:00 2001 From: anke1460 Date: Tue, 3 Mar 2020 17:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0benner?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/admins/weapp_banners/create.js.erb | 3 ++- app/views/admins/weapp_banners/index.html.erb | 5 ++--- app/views/admins/weapp_banners/shixun_banner.js.erb | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/views/admins/weapp_banners/create.js.erb b/app/views/admins/weapp_banners/create.js.erb index 413ea3978..64b90cd98 100644 --- a/app/views/admins/weapp_banners/create.js.erb +++ b/app/views/admins/weapp_banners/create.js.erb @@ -1 +1,2 @@ -$("#course_img")[0].innerHTML = "<%= escape_javascript(image_tag Util::FileManage.source_disk_file_url(@course), class: 'banner-item-img course-banner-img') %>" \ No newline at end of file +$("#course_img")[0].innerHTML = "<%= escape_javascript(image_tag Util::FileManage.source_disk_file_url(@course), class: 'banner-item-img course-banner-img') %>"; +$("#course_img_banner").addClass('has-img'); \ No newline at end of file diff --git a/app/views/admins/weapp_banners/index.html.erb b/app/views/admins/weapp_banners/index.html.erb index 73e34b97a..fab38c9c7 100644 --- a/app/views/admins/weapp_banners/index.html.erb +++ b/app/views/admins/weapp_banners/index.html.erb @@ -9,7 +9,7 @@ <%= form_with(url: '/admins/weapp_banners', html: { id: 'course_form', enctype: 'multipart/form-data' }) do |f| %>