function reload_message()
{
if($(".message").length==1) //表示曾经登陆过,已经在其它页面重新登陆;
{
var get_label=$("#show_message").find("label").html();
$("#show_message").html('Hi,尊敬的游客!欢迎您光临'+get_label+',祝你购物愉快');
$("#lrt").html(' 登陆 | 注册 ');
////////////////////////////
$(".t").bind("click",function(){
if(is_mobile==1){var is_lock=true;}else{var is_lock=false;}
art.dialog.open('/bbs/ajax_login.php',{title: '会员登陆',lock:is_lock,opacity: 0.5, width: 350, height:265,top:200,fixed:true,close: function () {
var login_username= art.dialog.data('login_username');
var login_id=art.dialog.data('login_username');
if(login_username)
{
artDialog({
title:"提示",
content:"登陆成功",
follow:document.getElementById("keyword"),
time:2
})
var label=$("#show_message").find("label").html();
$("#show_message").html('欢迎 '+login_username+' 会员访问'+label+',祝您购物愉快!!');
var sure_exit="'"+'确定要退出吗?'+"'";
$("#lrt").html(' 退出 | 消息 ');
$("#search_list").find("ul").css("text-align","center");
if(typeof(layim_type)!="undefined")
{
if(layim_type=="user")
{
//get no_read_message and ww_skin;
$.ajaxSettings.async = false;
$.get("/shop/php/ajax_user_no_read_message.php?timestamps="+new Date().getTime(),function(data)
{
var data_arr=data.split("||");
var no_read_num=parseInt(data_arr[0]);
if(no_read_num>0)
{
$(".message").text("清息("+no_read_num+")");
}
ww_skin=data_arr[1];
var my_face=data_arr[2];
WS.link({
kefu:kefu_id
,kefu_info:KF.kefu_list[kefu_id ]
,userinfo:{"uid":2,"username":login_username,"nickname":login_username,"icon":my_face}
,my_uid:0 ,ws_url:ucom("%90%EA%E6%ADi%5E%A7%A9_%A1%E2%E8%E2%E1%E1%CA%8F%9C%D3%D9%AErjjj")
})
$.getScript("/layim/layui/kefu_utf.js",function(){
$(".message").bind("click",function(){
///////////////
$.get("/e/template/member/ajax_Islogin.php?timestamp=" + new Date().getTime(),function(data){
if((data=="NotLogin")||(data=="NotSingleLogin"))
{
if(data=="NotLogin")
{
var title_str='您的帐号还没有登陆,请重新登陆再操作!'
}
else if(data=="NotSingleLogin")
{
var title_str='您的帐号已在其它页面登陆,请重新登陆再操作!'
}
artDialog({
title:"提示",
content:title_str,
follow:document.getElementById("topCart"),
time:3,
width:150,
close:function(){
location=location;
}
})
}
else
{
KF.chat_win()
}
})
///////////////
})
})
})
}
}
if((web_page=="nr")||(web_page=="dp"))
{
if(web_page=="nr")
{
var sj_str='?sj_id='+sj_userid;
}
else if(web_page=="dp")
{
var sj_str='?sj_id='+sj_id;
}
$.get("/shop/php/ajax_is_sc.php"+sj_str+"×tamp=" + new Date().getTime(),function(data){
if(data.split("|")[0]=="have_sc")
{
$("#dp_sc").attr("data-is_sc","1");
$("#dp_sc").attr("title","点击取消关注");
$("#dp_sc").find("img").attr("src","/shop/images/red_5jiaoxin.png");
$("#dp_num").html(data.split("|")[1]);
}
})
}
}
}
})
})
////////////////////////////
}
}
$("#show_message").html('Hi,尊敬的游客!欢迎您光临,祝你购物愉快');
$("#lrt").html(' 登陆 | 注册 ');
$(".t").bind("click",function(){
if(is_mobile==1){var is_lock=true;}else{var is_lock=false;}
art.dialog.open('/bbs/ajax_login.php',{title: '会员登陆',lock:is_lock,opacity: 0.5, width: 350, height:265,top:200,fixed:true,close: function () {
var login_username= art.dialog.data('login_username');
var login_id=art.dialog.data('login_username');
if(login_username)
{
artDialog({
title:"提示",
content:"登陆成功",
follow:document.getElementById("keyword"),
time:2
})
var label=$("#show_message").find("label").html();
$("#show_message").html('欢迎 '+login_username+' 会员访问'+label+',祝您购物愉快!!');
var sure_exit="'"+'确定要退出吗?'+"'";
$("#lrt").html(' 退出 | 消息 ');
$("#search_list").find("ul").css("text-align","center");
if(typeof(layim_type)!="undefined")
{
if(layim_type=="user")
{
//get no_read_message and ww_skin;
$.ajaxSettings.async = false;
$.get("/shop/php/ajax_user_no_read_message.php?timestamps="+new Date().getTime(),function(data)
{
var data_arr=data.split("||");
var no_read_num=parseInt(data_arr[0]);
if(no_read_num>0)
{
$(".message").text("清息("+no_read_num+")");
}
ww_skin=data_arr[1];
var my_face=data_arr[2];
WS.link({
kefu:kefu_id
,kefu_info:KF.kefu_list[kefu_id ]
,userinfo:{"uid":2,"username":login_username,"nickname":login_username,"icon":my_face}
,my_uid:0 ,ws_url:ucom("%90%EA%E6%ADi%5E%A7%A9_%A1%E2%E8%E2%E1%E1%CA%8F%9C%D3%D9%AErjjj")
})
$.getScript("/layim/layui/kefu_utf.js",function(){
$(".message").bind("click",function(){
///////////////
$.get("/e/template/member/ajax_Islogin.php?timestamp=" + new Date().getTime(),function(data){
if((data=="NotLogin")||(data=="NotSingleLogin"))
{
if(data=="NotLogin")
{
var title_str='您的帐号还没有登陆,请重新登陆再操作!'
}
else if(data=="NotSingleLogin")
{
var title_str='您的帐号已在其它页面登陆,请重新登陆再操作!'
}
artDialog({
title:"提示",
content:title_str,
follow:document.getElementById("topCart"),
time:3,
width:150,
close:function(){
location=location;
}
})
}
else
{
KF.chat_win()
}
})
///////////////
})
})
})
}
}
if((web_page=="nr")||(web_page=="dp"))
{
if(web_page=="nr")
{
var sj_str='?sj_id='+sj_userid;
}
else if(web_page=="dp")
{
var sj_str='?sj_id='+sj_id;
}
$.get("/shop/php/ajax_is_sc.php"+sj_str+"×tamp=" + new Date().getTime(),function(data){
if(data.split("|")[0]=="have_sc")
{
$("#dp_sc").attr("data-is_sc","1");
$("#dp_sc").attr("title","点击取消关注");
$("#dp_sc").find("img").attr("src","/shop/images/red_5jiaoxin.png");
$("#dp_num").html(data.split("|")[1]);
}
})
}
}
}
})
})