mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update index.html
This commit is contained in:
parent
300c40f560
commit
8a1742521e
@ -34,6 +34,8 @@
|
|||||||
field: 'xurl', title: '查看文件', width: '8%', align: 'center', templet: function (d) {
|
field: 'xurl', title: '查看文件', width: '8%', align: 'center', templet: function (d) {
|
||||||
if (typeof d.mime === 'string' && /^image\//.test(d.mime)) {
|
if (typeof d.mime === 'string' && /^image\//.test(d.mime)) {
|
||||||
return laytpl('<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image="{{d.xurl}}" style="background-image:url({{d.xurl}})"></div>').render(d)
|
return laytpl('<div class="headimg headimg-no headimg-ss margin-0" data-tips-hover data-tips-image="{{d.xurl}}" style="background-image:url({{d.xurl}})"></div>').render(d)
|
||||||
|
} else if (typeof d.mime === 'string' && /^(video|audio)\//.test(d.mime)) {
|
||||||
|
return laytpl('<div><a target="_blank" data-iframe="{{d.xurl}}">查看</a></div>').render(d);
|
||||||
} else {
|
} else {
|
||||||
return laytpl('<div><a target="_blank" href="{{d.xurl}}">查看</a></div>').render(d);
|
return laytpl('<div><a target="_blank" href="{{d.xurl}}">查看</a></div>').render(d);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user