Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/mobile/data/compiled/ |
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta charset="utf-8" /> <title><?php echo $this->_var['page_title']; ?></title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" /> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> <meta name="format-detection" content="telephone=no" /> <link href="<?php echo $this->_var['ectouch_themes']; ?>/images/touch-icon.png" rel="apple-touch-icon-precomposed" /> <link href="<?php echo $this->_var['ectouch_themes']; ?>/images/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link href="<?php echo $this->_var['ectouch_css']; ?>" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/common1.js"> </script> <?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.9.1.min.js')); ?> <script type="text/javascript" src="themes/lingshi/js/jquery.json.js"></script> <script type="text/javascript"> // 筛选商品属性 jQuery(function($) { $(".info").click(function(){ $('.goodsBuy .fields').slideToggle("fast"); }); }) function changenum(diff) { var num = parseInt(document.getElementById('goods_number').value); var goods_number = num + Number(diff); if( goods_number >= 1){ document.getElementById('goods_number').value = goods_number;//更新数量 changePrice(); } } </script> </head> <body> <header id="header"> <div class="header_l header_return"> <a class="ico_10" onClick="javascript:history.go(-1);"> 返回 </a> </div> <h1> 积分兑换 </h1> </header> <script src="<?php echo $this->_var['ectouch_themes']; ?>/js/TouchSlide.js"></script> <section class="goods_slider"> <div id="slideBox" class="slideBox"> <div class="scroller"> <ul> <?php if ($this->_var['pictures']): ?> <?php $_from = $this->_var['pictures']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'picture');$this->_foreach['no'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['no']['total'] > 0): foreach ($_from AS $this->_var['picture']): $this->_foreach['no']['iteration']++; ?> <li><a href="javascript:showPic()"><img style="width:100%;height:auto;" src="<?php echo $this->_var['site_url']; ?><?php if ($this->_var['picture']['img_url']): ?><?php echo $this->_var['picture']['img_url']; ?><?php else: ?><?php echo $this->_var['picture']['thumb_url']; ?><?php endif; ?>"/></a></li> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> <?php endif; ?> </ul> </div> <div class="icons"> <ul> <?php if ($this->_var['pictures']): ?> <?php $_from = $this->_var['pictures']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'picture');$this->_foreach['no'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['no']['total'] > 0): foreach ($_from AS $this->_var['picture']): $this->_foreach['no']['iteration']++; ?> <li<?php if (($this->_foreach['no']['iteration'] <= 1)): ?> class="on"<?php endif; ?>></li> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> <?php endif; ?> </ul> </div> </div> <div class="blank2n"></div> </section> <script type="text/javascript"> TouchSlide({ slideCell:"#slideBox", titCell:".icons ul", //开启自动分页 autoPage:true ,此时设置 titCell 为导航元素包裹层 mainCell:".scroller ul", effect:"leftLoop", autoPage:true,//自动分页 autoPlay:true //自动播放wq }); function showPic(){ var data = document.getElementById("slideBox").className; var reCat = /ui-gallery/; //str1.indexOf(str2); if( reCat.test(data) ){ document.getElementById("slideBox").className = 'slideBox'; }else{ document.getElementById("slideBox").className = 'slideBox ui-gallery'; //document.getElementById("slideBox").style.position = 'fixed'; } } </script> <section class="goodsInfo"> <a class="collect" id="collect_box" href="javascript:collect(<?php echo $this->_var['goods']['goods_id']; ?>)" style="display: inline;"><?php echo $this->_var['record_count']; ?></a> <div class="title"> <h1> <?php echo $this->_var['goods']['goods_style_name']; ?> </h1> </div> <ul> <?php if ($this->_var['cfg']['show_goodssn']): ?> <li><?php echo $this->_var['lang']['goods_sn']; ?><b><?php echo $this->_var['goods']['goods_sn']; ?> </b></li> <?php endif; ?> <?php if ($this->_var['goods']['goods_brand'] != "" && $this->_var['cfg']['show_brand']): ?> <li><?php echo $this->_var['lang']['goods_brand']; ?><a class="price" href="<?php echo $this->_var['goods']['goods_brand_url']; ?>" ><?php echo $this->_var['goods']['goods_brand']; ?></a></li> <?php endif; ?> <?php if ($this->_var['cfg']['show_goodsweight']): ?> <li><?php echo $this->_var['lang']['goods_weight']; ?><b><?php echo $this->_var['goods']['goods_weight']; ?></b></li> <?php endif; ?> <?php if ($this->_var['cfg']['show_goodsweight']): ?> <li><?php echo $this->_var['lang']['exchange_integral']; ?><b class="price"><?php echo $this->_var['goods']['exchange_integral']; ?></b></li> <?php endif; ?> </ul> </section> <div class="wrap"> <section class="goodsBuy radius5"> <input id="goodsBuy-open" type="checkbox"> <label class="info" for="goodsBuy-open"> <div>请选择<span><?php $_from = $this->_var['specification']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('spec_key', 'spec');$this->_foreach['spec'] = array('total' => count($_from), 'iteration' => 0); if ($this->_foreach['spec']['total'] > 0): foreach ($_from AS $this->_var['spec_key'] => $this->_var['spec']): $this->_foreach['spec']['iteration']++; ?><?php if ($this->_foreach['spec']['iteration'] > 1): ?>/<?php endif; ?><?php echo $this->_var['spec']['name']; ?><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?></span><i></i></div> <div class="selected"> </div> </label> <form action="exchange.php?act=buy" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" > <div class="fields"> <ul class="ul1"> <input name="number" id="goods_number" value="1" type="hidden" /> <li><?php echo $this->_var['lang']['amount']; ?>:<font id="ECS_GOODS_AMOUNT" class="price"></font></li> <?php if ($this->_var['goods']['goods_number'] != "" && $this->_var['cfg']['show_goodsnumber']): ?> <?php if ($this->_var['goods']['goods_number'] == 0): ?> <li><?php echo $this->_var['lang']['goods_number']; ?> <?php echo $this->_var['lang']['stock_up']; ?> </li> <?php else: ?> <li><?php echo $this->_var['lang']['goods_number']; ?> <?php echo $this->_var['goods']['goods_number']; ?> <?php echo $this->_var['goods']['measure_unit']; ?></li> <?php endif; ?> <?php endif; ?> </ul> <ul class="ul2"> <?php $_from = $this->_var['specification']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('spec_key', 'spec');if (count($_from)): foreach ($_from AS $this->_var['spec_key'] => $this->_var['spec']): ?> <li> <h2><?php echo $this->_var['spec']['name']; ?></h2> <div class="items"> <?php if ($this->_var['spec']['attr_type'] == 1): ?> <?php if ($this->_var['cfg']['goodsattr_style'] == 1): ?> <?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)): foreach ($_from AS $this->_var['key'] => $this->_var['value']): ?> <input type="radio" name="spec_<?php echo $this->_var['spec_key']; ?>" value="<?php echo $this->_var['value']['id']; ?>" id="spec_value_<?php echo $this->_var['value']['id']; ?>" <?php if ($this->_var['key'] == 0): ?>checked<?php endif; ?> onclick="changePrice()" /> <label for="spec_value_<?php echo $this->_var['value']['id']; ?>"><?php echo $this->_var['value']['label']; ?></label> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> <?php else: ?> <select name="spec_<?php echo $this->_var['spec_key']; ?>" onchange="changePrice()"> <?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)): foreach ($_from AS $this->_var['key'] => $this->_var['value']): ?> <option label="<?php echo $this->_var['value']['label']; ?>" value="<?php echo $this->_var['value']['id']; ?>"><?php echo $this->_var['value']['label']; ?> <?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?><?php if ($this->_var['value']['price'] != 0): ?><?php echo $this->_var['value']['format_price']; ?><?php endif; ?></option> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> </select> <?php endif; ?> <?php else: ?> <?php $_from = $this->_var['spec']['values']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'value');if (count($_from)): foreach ($_from AS $this->_var['key'] => $this->_var['value']): ?> <input type="checkbox" name="spec_<?php echo $this->_var['spec_key']; ?>" value="<?php echo $this->_var['value']['id']; ?>" id="spec_value_<?php echo $this->_var['value']['id']; ?>" onclick="changePrice()" /> <label for="spec_value_<?php echo $this->_var['value']['id']; ?>"> <?php echo $this->_var['value']['label']; ?> [<?php if ($this->_var['value']['price'] > 0): ?><?php echo $this->_var['lang']['plus']; ?><?php elseif ($this->_var['value']['price'] < 0): ?><?php echo $this->_var['lang']['minus']; ?><?php endif; ?> <?php echo $this->_var['value']['format_price']; ?>] </label><br /> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> <input type="hidden" name="spec_list" value="<?php echo $this->_var['key']; ?>" /> <?php endif; ?> </div> </li> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> </ul> </div> <div class="option" > <script type="text/javascript"> function showDiv(){ document.getElementById('popDiv').style.display = 'block'; document.getElementById('hidDiv').style.display = 'block'; document.getElementById('cartNum').innerHTML = document.getElementById('goods_number').value; document.getElementById('cartPrice').innerHTML = document.getElementById('ECS_GOODS_AMOUNT').innerHTML; } function closeDiv(){ document.getElementById('popDiv').style.display = 'none'; document.getElementById('hidDiv').style.display = 'none'; } </script> <input type="hidden" name="goods_id" value="<?php echo $this->_var['goods']['goods_id']; ?>" /> <input type="submit" value="<?php echo $this->_var['lang']['exchange_goods']; ?>" class="btn buy radius5"/> </div> </form> </section> </div> <script type="text/javascript"> //介绍 评价 咨询切换 var tab_now = 1; function tab(id){ document.getElementById('tabs' + tab_now).className = document.getElementById('tabs' + tab_now).className.replace('current', ''); document.getElementById('tabs' + id).className = document.getElementById('tabs' + id).className.replace('', 'current'); tab_now = id; if (id == 1) { document.getElementById('tab1').className = 'current'; document.getElementById('tab2').className = 'hidden'; }else if (id == 2) { document.getElementById('tab1').className = 'hidden'; document.getElementById('tab2').className = ''; } } </script> <section class="s-detail"> <header> <ul style="position: static;" id="detail_nav"> <li id="tabs1" onClick="tab(1)" class="current"> 详情 </li> <li id="tabs2" onClick="tab(2)" class=""> 评价 <span class="review-count">(<?php echo $this->_var['comment_count']; ?>)</span> </li> </ul> </header> <div id="tab1" class=""> <div class="desc wrap"> <?php if ($this->_var['goods']['goods_video']): ?> <div class="blank2n"></div> <div style=" text-align:center"> <script type="text/javascript" src="js/chplayer/chplayer.js"></script> <div id="video" style=" height:15rem; max-width:95%; margin:0 auto"></div> <script type="text/javascript"> var videoObject = { container: '#video',//“#”代表容器的ID,“.”或“”代表容器的class variable: 'player',//该属性必需设置,值等于下面的new chplayer()的对象 volume: 0.6, //默认音量,范围是0-1 poster: '', //封面图片地址 autoplay: false, //是否自动播放,默认true=自动播放,false=默认暂停状态 loop: false, //是否循环播放,默认false=不需要,true=需要 live: false, //是否是直播,默认false=点播放,true=直播 loaded: 'loadedHandler', //当播放器加载后执行的函数 seek: 0, //默认需要跳转的时间 drag: 'start', //在flashplayer情况下是否需要支持按关键帧拖动,不需要留空,需要请填写拖动时请求的属性,本例中使用start,如果需要强制按时间点拖动则增加前缀time_,本例中即time_start,如果需要强制按关键帧进行拖动,则前缀是frames_,本例中即:frames_start front: '', //前一集按钮点击触发函数,即点击前一集时调用的函数名称,默认为空 next: '', //下一集按钮点击触发函数,即点击下一集时调用的函数名称,默认为空 flashplayer:false,//强制使用flashplayer html5m3u8:false,//是否使用hls,默认不选择,如果此属性设置成true,则不能设置flashplayer:true, video:'../<?php echo $this->_var['goods']['goods_video']; ?>'//视频地址 }; var player=new chplayer(videoObject); </script> </div> <?php endif; ?> <div class="blank2"></div> <?php echo $this->_var['goods']['goods_desc']; ?> </div> </div> <div id="tab2" class="hidden"> <div class="wrap"> <div class="blank2"></div> <?php echo $this->fetch('library/comments.lbi'); ?> <script language="javascript"> ShowMyComments(<?php echo $this->_var['goods']['goods_id']; ?>,0,1);</script> </div> </div> </section> <?php echo $this->fetch('library/page_footer.lbi'); ?> <script type="text/javascript"> var goods_id = <?php echo $this->_var['id']; ?>; var goodsattr_style = <?php echo empty($this->_var['cfg']['goodsattr_style']) ? '1' : $this->_var['cfg']['goodsattr_style']; ?>; var gmt_end_time = <?php echo empty($this->_var['promote_end_time']) ? '0' : $this->_var['promote_end_time']; ?>; <?php $_from = $this->_var['lang']['goods_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)): foreach ($_from AS $this->_var['key'] => $this->_var['item']): ?> var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>"; <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> var goodsId = <?php echo $this->_var['id']; ?>; var now_time = <?php echo $this->_var['now_time']; ?>; onload = function(){ changePrice(); fixpng(); try {onload_leftTime();} catch (e) {} } /** * 点选可选属性或改变数量时修改商品价格的函数 */ function changePrice() { var attr = getSelectedAttributes(document.forms['ECS_FORMBUY']); var qty = document.forms['ECS_FORMBUY'].elements['number'].value; Ajax.call('goods.php', 'act=price&id=' + goodsId + '&attr=' + attr + '&number=' + qty, changePriceResponse, 'GET', 'JSON'); } /** * 接收返回的信息 */ function changePriceResponse(res) { if (res.err_msg.length > 0) { alert(res.err_msg); } else { document.forms['ECS_FORMBUY'].elements['number'].value = res.qty; if (document.getElementById('ECS_GOODS_AMOUNT')) document.getElementById('ECS_GOODS_AMOUNT').innerHTML = res.result; } } </script> <?php echo $this->smarty_insert_scripts(array('files'=>'transportjq.js,utils.js')); ?> </body> </html>