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