...
|
...
|
@@ -66,6 +66,27 @@ |
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
|
|
<table class="table table-bordered">
|
|
|
<tr>
|
|
|
<th>移动轮播图<span class="form-required">*</span></th>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<td>
|
|
|
<div style="text-align: center;">
|
|
|
<input type="hidden" name="thumbnail_mobile" id="thumbnail_mobile" value="{$post.thumbnail_mobile|default=''}">
|
|
|
<a href="javascript:uploadOneImage('图片上传','#thumbnail_mobile');">
|
|
|
<if condition="empty($post.thumbnail_mobile)">
|
|
|
<img src="__TMPL__/public/assets/images/default-thumbnail.png" id="thumbnail_mobile-preview" width="135" style="cursor: pointer"/>
|
|
|
<else/>
|
|
|
<img src="{:cmf_get_image_preview_url($post.thumbnail_mobile)}" id="thumbnail_mobile-preview" width="135" style="cursor: pointer"/>
|
|
|
</if>
|
|
|
</a>
|
|
|
<input type="button" class="btn btn-sm btn-cancel-thumbnail_mobile" value="取消图片">
|
|
|
</div>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="form-group">
|
...
|
...
|
@@ -97,6 +118,13 @@ |
|
|
$('#thumbnail-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
|
|
|
$('#thumbnail').val('');
|
|
|
});
|
|
|
|
|
|
//移动轮播图
|
|
|
$('.btn-cancel-thumbnail_mobile').click(function () {
|
|
|
$('#thumbnail_mobile-preview').attr('src', '__TMPL__/public/assets/images/default-thumbnail.png');
|
|
|
$('#thumbnail_mobile').val('');
|
|
|
});
|
|
|
|
|
|
});
|
|
|
</script>
|
|
|
</body>
|
...
|
...
|
|