var destoon_userid = {$_userid},destoon_username = '{$_username}',destoon_message = {$_message},destoon_chat = {$_chat},destoon_cart = get_cart(),destoon_member = destoon_guest = ''; {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} destoon_guest = '会员登录 | 免费注册 | 忘记密码'; {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+' | 绑定帐号 | 退出登录' : destoon_guest; {else} destoon_member += destoon_guest; {/if} {/if} $('#destoon_member').html(destoon_member); {if $DT[city]} $('#destoon_city').html('{$city_name}'); {/if} {if $DT[max_cart]} $('#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]}im.php', '{useravatar($_username, 'large')}', '新交谈 ({$_chat})', '收到新的对话请求，点击交谈'); {/if} {if $_userid && $DT[pushtime]}window.setInterval('PushNew()',{$DT[pushtime]}*1000);{/if}