调整所有图片上传,增加缩略图显示

This commit is contained in:
2020-07-20 00:31:50 +08:00
parent 3af9250443
commit 1f8e2b1e6e
14 changed files with 96 additions and 13 deletions
@@ -84,6 +84,16 @@
<label class="col-sm-3 control-label">水印文件:</label>
<div class="col-sm-8">
<div class="input-group">
<span class="input-group-btn my-preview">
@if (!string.IsNullOrEmpty(Model.WaterMarkImg))
{
<img src="@Model.WaterMarkImg" />
}
else
{
<button type="button" class="btn btn-primary"><i class="fa fa-search-plus"></i></button>
}
</span>
<input id="WaterMarkImg" type="text" class="form-control upload-path" name="WaterMarkImg" value="@Model.WaterMarkImg" placeholder="水印文件,只支持jpg、png" aria-required="true">
<span class="input-group-addon my-upload-span upload-img"></span>
</div>