feat(admin): 新增图片预览功能
- 新增图片预览脚本 image-preview.js - 新增预览关闭按钮样式 - 新增测试用例 - 为图片链接添加预览类名 - 修复图片点击打开逻辑 - 调整图片预览层级显示
这个提交包含在:
@@ -58,10 +58,10 @@
|
||||
<label class="control-label col-xs-12 col-sm-2">证书照片:</label>
|
||||
<div class="col-xs-12 col-sm-10">
|
||||
{if !empty($row.cert_image)}
|
||||
<a href="{$row.cert_image|cdnurl|htmlentities}" target="_blank" title="点击在新窗口查看高清原图">
|
||||
<a href="{$row.cert_image|cdnurl|htmlentities}" target="_blank" title="点击放大查看高清原图">
|
||||
<img src="{$row.cert_image|cdnurl|htmlentities}" style="max-width:420px;max-height:280px;border-radius:6px;border:1px solid #e2e8f0;background:#f8fafc;padding:4px;" />
|
||||
</a>
|
||||
<div class="help-block" style="margin-bottom:0;">点击图片可在新标签页放大核验证件编号与有效期</div>
|
||||
<div class="help-block" style="margin-bottom:0;">点击图片可放大核验证件编号与有效期</div>
|
||||
{else/}
|
||||
<span class="text-muted">未上传照片</span>
|
||||
{/if}
|
||||
|
||||
在新工单中引用
屏蔽一个用户