var destoon_userid = {$_userid}; var destoon_username = '{$_username}'; var destoon_message = {$_message}; var destoon_chat = {$_chat}; var destoon_cart = substr_count(get_cookie('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 ? ''+destoon_cart+'' : 0); {/if} {if $_userid && $DT[pushtime]}window.setInterval('PushNew()',{$DT[pushtime]}*1000);{/if}