qq57231864 | 工作性質(zhì): 銷售
經(jīng)營業(yè)務(wù)范圍:
var _layerIndex;
//加載彈窗
function showLayer(url, title) {
var self = this;
checkUserIsLogin(function () {
_layerIndex = $.layer({
type: 2,
shadeClose: true,
title: title,
shade: [0.5, '#000'],
border: [0],
offset: ['20px', ''],
area: ['700px', '530px'],
iframe: { src: url }
});
//注冊彈窗關(guān)閉事件
if (!self.onLayerClose) {
self.onLayerClose = function (callback) {
setTimeout(function () {
layer.close(_layerIndex);
if (callback) {
callback.call(self);
}
}, 100);
}
}
});
}
$(function () {
$('#btnSearch').click(function () {
if (!$('#txtSearch').getValue()) {
tc.ui.msgbox.error('請輸入關(guān)鍵字');
return;
}
window.open('/iask/search?keyword=' + encodeURIComponent($('#txtSearch').getValue()), '_blank');
});
});