提交 bcc97f30 编写于 作者: D devil_gong

应用

上级 2fc196b8
......@@ -62,6 +62,11 @@ class PetsAdmin extends Controller
);
$data = Service::PetsList($data_params);
$this->assign('data_list', $data['data']);
// 插件配置信息
$base = PluginsService::PluginsData('petscms', ['logo', 'pets_default_images', 'alipay_qrcode_images', 'weixin_qrcode_images'], false);
$this->assign('plugins_base_data', $base['data']);
$this->assign('params', $params);
$this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list);
$this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list);
......
......@@ -123,17 +123,27 @@
<tr>
<td class="am-hide-sm-only row-first">
<p class="ellipsis">{{$v.title}}</p>
{{if !empty($v['photo'])}}
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false, "slideshow":false}' >
<ul class="am-slides">
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false, "slideshow":false}' >
<ul class="am-slides">
{{if !empty($v['photo'])}}
{{foreach $v.photo as $photo}}
<li>
<img src="{{$photo.images}}" alt="{{$v.title}}" />
</li>
{{/foreach}}
</ul>
</div>
{{/if}}
{{else /}}
{{if !empty($plugins_base_data['pets_default_images'])}}
<li>
<img src="{{$plugins_base_data.pets_default_images}}" alt="{{$v.title}}" />
</li>
{{else /}}
<li>
<img src="{{$attachment_host}}/static/plugins/images/petscms/pets-default-images.jpg" alt="{{$v.title}}" />
</li>
{{/if}}
{{/if}}
</ul>
</div>
</td>
<td>
编号:{{if empty($v['pest_no'])}}<span class="items-value-empty">未填写</span>{{else /}}{{$v.pest_no}}{{/if}}<br />
......
......@@ -110,17 +110,27 @@
<tr id="data-list-{{$v.id}}">
<td class="am-hide-sm-only row-first">
<p class="ellipsis">{{$v.title}}</p>
{{if !empty($v['photo'])}}
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false, "slideshow":false}' >
<ul class="am-slides">
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false, "slideshow":false}' >
<ul class="am-slides">
{{if !empty($v['photo'])}}
{{foreach $v.photo as $photo}}
<li>
<img src="{{$photo.images}}" alt="{{$v.title}}" />
</li>
{{/foreach}}
</ul>
</div>
{{/if}}
{{else /}}
{{if !empty($plugins_base_data['pets_default_images'])}}
<li>
<img src="{{$plugins_base_data.pets_default_images}}" alt="{{$v.title}}" />
</li>
{{else /}}
<li>
<img src="{{$attachment_host}}/static/plugins/images/petscms/pets-default-images.jpg" alt="{{$v.title}}" />
</li>
{{/if}}
{{/if}}
</ul>
</div>
</td>
<td>
编号:{{if empty($v['pest_no'])}}<span class="items-value-empty">未填写</span>{{else /}}{{$v.pest_no}}{{/if}}<br />
......
......@@ -24,6 +24,7 @@
.row-first p { font-weight: 500; max-width: 240px; }
.row-first .am-slider { max-height: 130px; }
.row-first .am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; }
.data-list table.am-table .am-slides li { height: 150px; }
@media only screen and (min-width: 641px){
.so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; }
.thin_sub:hover { color:#F60; }
......
......@@ -24,6 +24,7 @@
.row-first p { font-weight: 500; max-width: 240px; }
.row-first .am-slider { max-height: 130px; }
.row-first .am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; }
.data-list table.am-table .am-slides li { height: 150px; }
@media only screen and (min-width: 641px){
.so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; }
.thin_sub:hover { color:#F60; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册