?> <span id="<?php echo $this->_vars['dom_id']; ?> "> <img src="<?php echo $this->_vars['type']['icon']; ?> " /><?php if ($this->_vars['label']) { echo $this->_vars['label']; } ?> </span> <?php if ($this->_vars['text']) { ?> <script> $('<?php echo $this->_vars['dom_id']; ?> ').store('tip:title','').store('tip:text',"<?php echo tpl_modifier_replace($this->_vars['text'], '"', '\\"'); ?> "); Xtip.attach($('<?php echo $this->_vars['dom_id']; ?> ')); </script> <?php } } }
</script> <?php } ?> <script> /*设置浏览过的商品*/ withBroswerStore(function(broswerStore){ broswerStore.get('history',function(history){ history=JSON.decode(history); if(!history||$type(history)!=='array')history=[]; if(history.length==40){history.pop()}; var newhis={'goodsId':<?php echo $this->_vars['goods']['goods_id']; ?> , 'goodsName':'<?php echo tpl_modifier_replace($this->_vars['goods']['name'], "'", "\\'"); ?> ', 'goodsImg':'<?php echo tpl_modifier_storager($this->_vars['images']['gimages'][$this->_vars['goods']['image_default']]['small']); ?> ', 'viewTime':$time() }; if(!history.some(function(i,index){ if(i['goodsId']==newhis['goodsId']){ history.erase(i); history.include(newhis) return true;
if (!function_exists('tpl_modifier_replace')) { require CORE_DIR . '/include_v5/smartyplugins/modifier.replace.php'; } ?> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $this->_vars['TITLE']; ?> </title> <meta name="keywords" content='<?php echo $this->_vars['KEYWORDS']; ?> '> <meta name="description" content='<?php echo $this->_vars['DESCRIPTION']; ?> '> <?php echo tpl_modifier_replace($this->_vars['headers'], "\n", ' '); ?> <link rel="icon" href="<?php echo $this->_vars['base_url']; ?> favicon.ico" type="image/x-icon" /> <link rel="bookmark" href="<?php echo $this->_vars['base_url']; ?> favicon.ico" type="image/x-icon" /> <link rel="stylesheet" href="<?php echo $this->_vars['base_url']; ?> statics/style.css" type="text/css" /> <script type="text/javascript"> var Shop = <?php echo $this->_vars['shopDefine']; ?> ;