This commit is contained in:
devil_gong 2019-04-19 16:51:22 +08:00
parent 2fc196b820
commit bcc97f3046
6 changed files with 39 additions and 12 deletions

View File

@ -62,6 +62,11 @@ class PetsAdmin extends Controller
); );
$data = Service::PetsList($data_params); $data = Service::PetsList($data_params);
$this->assign('data_list', $data['data']); $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('params', $params);
$this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list); $this->assign('pets_attribute_status_list', Service::$pets_attribute_status_list);
$this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list); $this->assign('pets_attribute_is_text_list', Service::$pets_attribute_is_text_list);

View File

@ -123,17 +123,27 @@
<tr> <tr>
<td class="am-hide-sm-only row-first"> <td class="am-hide-sm-only row-first">
<p class="ellipsis">{{$v.title}}</p> <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}' >
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false, "slideshow":false}' > <ul class="am-slides">
<ul class="am-slides"> {{if !empty($v['photo'])}}
{{foreach $v.photo as $photo}} {{foreach $v.photo as $photo}}
<li> <li>
<img src="{{$photo.images}}" alt="{{$v.title}}" /> <img src="{{$photo.images}}" alt="{{$v.title}}" />
</li> </li>
{{/foreach}} {{/foreach}}
</ul> {{else /}}
</div> {{if !empty($plugins_base_data['pets_default_images'])}}
{{/if}} <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>
<td> <td>
编号:{{if empty($v['pest_no'])}}<span class="items-value-empty">未填写</span>{{else /}}{{$v.pest_no}}{{/if}}<br /> 编号:{{if empty($v['pest_no'])}}<span class="items-value-empty">未填写</span>{{else /}}{{$v.pest_no}}{{/if}}<br />

View File

@ -110,17 +110,27 @@
<tr id="data-list-{{$v.id}}"> <tr id="data-list-{{$v.id}}">
<td class="am-hide-sm-only row-first"> <td class="am-hide-sm-only row-first">
<p class="ellipsis">{{$v.title}}</p> <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}' >
<div data-am-widget="slider" class="am-slider am-slider-a1" data-am-slider='{"directionNav":false, "slideshow":false}' > <ul class="am-slides">
<ul class="am-slides"> {{if !empty($v['photo'])}}
{{foreach $v.photo as $photo}} {{foreach $v.photo as $photo}}
<li> <li>
<img src="{{$photo.images}}" alt="{{$v.title}}" /> <img src="{{$photo.images}}" alt="{{$v.title}}" />
</li> </li>
{{/foreach}} {{/foreach}}
</ul> {{else /}}
</div> {{if !empty($plugins_base_data['pets_default_images'])}}
{{/if}} <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>
<td> <td>
编号:{{if empty($v['pest_no'])}}<span class="items-value-empty">未填写</span>{{else /}}{{$v.pest_no}}{{/if}}<br /> 编号:{{if empty($v['pest_no'])}}<span class="items-value-empty">未填写</span>{{else /}}{{$v.pest_no}}{{/if}}<br />

View File

@ -24,6 +24,7 @@
.row-first p { font-weight: 500; max-width: 240px; } .row-first p { font-weight: 500; max-width: 240px; }
.row-first .am-slider { max-height: 130px; } .row-first .am-slider { max-height: 130px; }
.row-first .am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; } .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){ @media only screen and (min-width: 641px){
.so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; } .so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; }
.thin_sub:hover { color:#F60; } .thin_sub:hover { color:#F60; }

View File

@ -24,6 +24,7 @@
.row-first p { font-weight: 500; max-width: 240px; } .row-first p { font-weight: 500; max-width: 240px; }
.row-first .am-slider { max-height: 130px; } .row-first .am-slider { max-height: 130px; }
.row-first .am-slider .am-slides img { width: auto; max-height: 100%; margin: 0 auto; } .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){ @media only screen and (min-width: 641px){
.so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; } .so-list .chosen-container, .so-list select { width:217px !important; display: -webkit-inline-box; }
.thin_sub:hover { color:#F60; } .thin_sub:hover { color:#F60; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 815 B