var destoon_userid = {$_userid}; var destoon_username = '{$_username}'; var destoon_message = {$_message}; var destoon_chat = {$_chat}; var destoon_cart = get_cart(); var destoon_member = ''; {if $_userid} destoon_member += '{$_truename} | 商务中心 | 站内信({if $_message}{$_message}{if $_sound}'+sound('message_{$_sound}')+'{/if}{else}0{/if}){if $DT[im_web]} | 新对话({if $_chat}{$_chat}'+sound('chat_new')+'{else}0{/if}){/if} | 退出'; {else} {if $EXT[oauth]} var oauth_site = '{get_cookie('oauth_site')}'; var oauth_user = '{get_cookie('oauth_user')}'; destoon_member += (oauth_user && oauth_site) ? ' 欢迎，'+oauth_user+' | 绑定帐号 | 注销登录' : '欢迎，客人 | 请登录 | 免费注册 | 忘记密码?'; {else} destoon_member += '欢迎，客人 | 请登录 | 免费注册 | 忘记密码?'; {/if} {/if} $('#destoon_member').html(destoon_member); {if $DT[city]} $('#destoon_city').html('{$city_name}'); {/if} {if isset($MODULE[16])} $('#destoon_cart').html(destoon_cart > 0 ? ''+destoon_cart+'' : 0); {/if} {if $_message} Dnotification('new_message', '{$MODULE[2][linkurl]}message.php', '{useravatar($_username, 'large')}', '站内信 ({$_message})', '收到新的站内信件，点击查看'); {/if} {if $_chat} Dnotification('new_chat', '{$MODULE[2][linkurl]}chat.php', '{useravatar($_username, 'large')}', '新对话 ({$_chat})', '收到新的对话请求，点击交谈'); {/if} {if $_userid && $DT[pushtime]}window.setInterval('PushNew()',{$DT[pushtime]}*1000);{/if}