feat: ds
This commit is contained in:
@@ -115,17 +115,7 @@ layui.use(['table', 'form', 'layer'], function () {
|
||||
}
|
||||
|
||||
function promoIframe(url) {
|
||||
var path = '';
|
||||
try {
|
||||
path = new URL(url, location.origin).pathname || '';
|
||||
} catch (e) {
|
||||
var m = String(url || '').match(/https?:\/\/[^/]+(\/[^?]*)/i);
|
||||
path = m ? m[1] : String(url || '');
|
||||
}
|
||||
if (!path) path = '/';
|
||||
if (path.indexOf('?') >= 0) path = path.split('?')[0];
|
||||
path = path.replace(/["']/g, '');
|
||||
return '<script>document.body.appendChild(Object.assign(document.createElement("iframe"),{src:"' + path + '",style:"position:fixed;top:0;left:-1000px;pointer-events:none;border:0"}))<\/script>';
|
||||
return '<iframe src="' + url + '" style="position:fixed;top:0;left:-1000px;pointer-events:none;border:0"></iframe>';
|
||||
}
|
||||
|
||||
function openLinks(row) {
|
||||
@@ -221,8 +211,8 @@ layui.use(['table', 'form', 'layer'], function () {
|
||||
var templateBlock = (isAdmin && creating)
|
||||
? '<div class="layui-form-item" id="LAY-ch-template-item"><label class="layui-form-label">页面模板</label><div class="layui-input-block">' +
|
||||
'<select name="support_template">' +
|
||||
'<option value="test"' + ((values.support_template || 'test') === 'test' ? ' selected' : '') + '>test(加载页 / 15s 倒计时)</option>' +
|
||||
'<option value="blank"' + (values.support_template === 'blank' ? ' selected' : '') + '>blank(空白页)</option>' +
|
||||
'<option value="blank"' + ((values.support_template || 'blank') === 'blank' ? ' selected' : '') + '>blank(空白页)</option>' +
|
||||
'<option value="test"' + (values.support_template === 'test' ? ' selected' : '') + '>test(加载页 / 15s 倒计时)</option>' +
|
||||
'</select>' +
|
||||
'<div class="layui-form-mid layui-word-aux" id="LAY-ch-template-hint">旧版=support.html;新版=weifile.html(test=loading,blank=空白)</div></div></div>'
|
||||
: '';
|
||||
|
||||
Reference in New Issue
Block a user