ꄀ收藏
'
html += '
';
html += '
';
html += '
';
html += '
';
html += ' ';
html += '
';
html += '
';
html += ' 끹';
html += ' 成功加入收藏夹!';
html += '
';
html += '
';
html += ' 收藏夹内共有 0 篇文章, 0 个产品';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
$("body").append(html);
}
if ($("#smvSysFavoriteExistsNewsItemModal").length == 0) {
var html = "";
html += '
'
html += '
';
html += '
';
html += '
';
html += '
';
html += ' ';
html += '
';
html += '
';
html += ' 끹';
html += ' 你已收藏了该文章!';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
html += '
';
$("body").append(html);
}
$('#smvSysFavoriteModal .w-modal-close').unbind("click").bind("click", function () {
$('#smvSysFavoriteModal .w-modal').removeClass("w-fadein");
});
$('#smvSysFavoriteExistsNewsItemModal .w-modal-close').unbind("click").bind("click", function () {
$('#smvSysFavoriteExistsNewsItemModal .w-modal').removeClass("w-fadein");
});
});
function smv_tem_6_40_click()
{
var newsItemId = '8816354';
if (newsItemId == 0 || newsItemId == "0")
{
return false;
}
$.ajax({
url: '/Common/GetCurrentCustomer',
type: 'POST', //GET
async: true, //或false,是否异步
timeout: 5000, //超时时间
dataType: 'json', //返回的数据格式:json/xml/html/script/jsonp/text
success: function (result) {
if (result.IsLogin) {
AddToMyFavourite(newsItemId, 1, function (newsItemCount, productCount, isExists) {
if (typeof isExists != 'undefined' && isExists) {
$('#smvSysFavoriteExistsNewsItemModal .w-modal').addClass("w-fadein");
}
else {
if (typeof newsItemCount != 'undefined') {
$("#smvSysFavoriteModal .w-modal .newsIitem").html(newsItemCount);
}
if (typeof productCount != 'undefined') {
$("#smvSysFavoriteModal .w-modal .product").html(productCount);
}
$('#smvSysFavoriteModal .w-modal').addClass("w-fadein");
}
if ($('#divLogin').length > 0) {
$('#divLogin').modal('hide');
}
});
}
else
{
$.get("/ebusiness/RenderLoginPartial", { trigger: 'favourite', type: "1"}, function (result) {
$("body").append(result);
window["AjaxLoginCallBack"] = function (data) {
if (data.IsSuccess && data.IsLogin) {
AddToMyFavourite(newsItemId, 1, function (newsItemCount, productCount, isExists) {
if (typeof isExists != 'undefined' && isExists) {
$('#smvSysFavoriteExistsNewsItemModal .w-modal').addClass("w-fadein");
}
else {
if (typeof newsItemCount != 'undefined') {
$("#smvSysFavoriteModal .w-modal .newsIitem").html(newsItemCount);
}
if (typeof productCount != 'undefined') {
$("#smvSysFavoriteModal .w-modal .product").html(productCount);
}
$('#smvSysFavoriteModal .w-modal').addClass("w-fadein");
}
});
}
}
})
}
}
});
}