docs(后台图片尺寸备注): 图片尺寸备注
parent
b958757bf0
commit
0ea7a5f24f
|
@ -65,7 +65,7 @@
|
|||
</div>
|
||||
{/if}
|
||||
|
||||
{if !(in_array($category['id'],[5,37]))}
|
||||
{if !(in_array($category['id'],[5,37,38]))}
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">封面图</label>
|
||||
<div class="layui-input-block">
|
||||
|
@ -74,7 +74,7 @@
|
|||
</div>
|
||||
{/if}
|
||||
|
||||
{if !(in_array($category['id'],[5,37,42]))}
|
||||
{if !(in_array($category['id'],[5,37,38,42]))}
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">手机封面图</label>
|
||||
<div class="layui-input-block">
|
||||
|
@ -95,12 +95,12 @@
|
|||
<div class="layui-form-item">
|
||||
{php}
|
||||
$imgName = 'PC组图';
|
||||
$pcImgSize = '';
|
||||
$pcImgSize = $pcImgSize??'';
|
||||
|
||||
switch ($category['id']) {
|
||||
case 37:
|
||||
$imgName = '大事记';
|
||||
$pcImgSize = '830*500';
|
||||
$pcImgSize = $pcImgSize ?: '830*500';
|
||||
break;
|
||||
}
|
||||
{/php}
|
||||
|
|
|
@ -115,12 +115,12 @@
|
|||
<div class="layui-form-item">
|
||||
{php}
|
||||
$imgName = 'PC组图';
|
||||
$pcImgSize = '';
|
||||
$pcImgSize = $pcImgSize??'';
|
||||
|
||||
switch ($category['id']) {
|
||||
case 37:
|
||||
case 37:
|
||||
$imgName = '大事记';
|
||||
$pcImgSize = '830*500';
|
||||
$pcImgSize = $pcImgSize ?: '830*500';
|
||||
break;
|
||||
}
|
||||
{/php}
|
||||
|
|
|
@ -87,10 +87,10 @@ use app\model\Category as VCategory;
|
|||
</colgroup>
|
||||
<thead>
|
||||
<td><input type="checkbox" lay-skin="primary" lay-filter="parents-table" title=""/></td>
|
||||
{if !in_array($category.id, [5, 37])}
|
||||
{if !in_array($category.id, [5, 37, 38])}
|
||||
<td>封面</td>
|
||||
{/if}
|
||||
{if !in_array($category.id, [42, 37])}
|
||||
{if !in_array($category.id, [42, 37, 38])}
|
||||
<td>手机封面</td>
|
||||
{/if}
|
||||
{switch $category.id}
|
||||
|
@ -115,14 +115,14 @@ use app\model\Category as VCategory;
|
|||
{foreach name="list" item="item"}
|
||||
<tr class="select_box table-lv1" data-id="{$item.id}" data-category-id="{$category.id}" data-url="{:url('manager.article/sort', ['category_id'=>$category['id']])}">
|
||||
<td><input type="checkbox" name="checkbox" value="{$item.id}" lay-skin="primary" lay-filter="childrens-table"/></td>
|
||||
{if !in_array($category.id, [5, 37])}
|
||||
{if !in_array($category.id, [5, 37, 38])}
|
||||
<td class="layer-photos">
|
||||
{if !empty($item['src']) && file_exists('.' . $item['src'])}
|
||||
<img src="{:CImage::getThumb($item.src, 50, 50)}" layer-src="{$item.src}" width="50" />
|
||||
{/if}
|
||||
</td>
|
||||
{/if}
|
||||
{if !in_array($category.id, [42, 37])}
|
||||
{if !in_array($category.id, [42, 37, 38])}
|
||||
<td class="layer-photos">
|
||||
{if !empty($item['src_mobile']) && file_exists('.' . $item['src_mobile'])}
|
||||
<img src="{:CImage::getThumb($item.src_mobile, 50, 50)}" layer-src="{$item.src_mobile}" width="50" />
|
||||
|
|
Loading…
Reference in New Issue