|
|
|
@ -3,6 +3,8 @@ class HomeController < ApplicationController
|
|
|
|
|
def index
|
|
|
|
|
# banner图
|
|
|
|
|
images = current_laboratory.portal_images.only_online.order(position: :asc)
|
|
|
|
|
images = default_laboratory.portal_images.only_online.order(position: :asc) if images.blank? # 未设置时使用EduCoder的轮播图
|
|
|
|
|
|
|
|
|
|
@images_url = []
|
|
|
|
|
images.each do |image|
|
|
|
|
|
@images_url << {path: image.link, image_url: Util::FileManage.source_disk_file_url(image)}
|
|
|
|
|