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/themes/lingshi/ |
<!DOCTYPE html> <html> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <meta charset="utf-8" /> <title>{$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="{$ectouch_themes}/images/touch-icon.png" rel="apple-touch-icon-precomposed" /> <link href="{$ectouch_themes}/images/favicon.ico" rel="shortcut icon" type="image/x-icon" /> <link href="{$ectouch_css}" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="js/magiczoom_plus.js" ></script> <script type="text/javascript" src="js/common_pre_sale.js"> </script> {insert_scripts files='jquery-1.9.1.min.js'} <script type="text/javascript" src="js/jquery.json.js"></script> <script type="text/javascript" src="{$ectouch_themes}/js/jquery.countdown-2.5.3.min.js"></script> <script type="text/javascript"> // 筛选商品属性 jQuery(function($) { $("#info2").click(function(){ $('.goodsBuy .fields_sale').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> <script language="javascript"> function shows_number(result) { if(result.product_number !=undefined){ document.getElementById('shows_number').innerHTML = result.product_number+'{if $goods.measure_unit}{$goods.measure_unit}{else}件{/if}'; }else{ document.getElementById('shows_number').innerHTML = '无库存'; } } //默认就显示第一个属性库存 function changeKucun() { var frm=document.forms['ECS_FORMBUY']; spec_arr = getSelectedAttributes(frm); if(spec_arr==''){ document.getElementById('shows_number').innerHTML = '{$goods.goods_number}{if $goods.measure_unit}{$goods.measure_unit}{else}件{/if}'; }else{ Ajax.call('goods.php?act=get_products_info', 'id=' + spec_arr+ '&goods_id=' + goods_id, shows_number, 'GET', 'JSON'); } } </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> <div class="header_r header_search"></div> </header> <!--商品图 s---> <script src="{$ectouch_themes}/js/TouchSlide.js"></script> <section class="goods_slider"> <div id="slideBox" class="slideBox"> <div class="scroller"> <ul> <!--{if $pictures}--> <!-- {foreach from=$pictures item=picture name=no}--> <li><a href="javascript:showPic()"><img style="width:100%;height:auto;" src="{$site_url}{if $picture.img_url}{$picture.img_url}{else}{$picture.thumb_url}{/if}"/></a></li> <!--{/foreach}--> <!--{/if}--> </ul> </div> <div class="icons"> <ul> <!--{if $pictures}--> <!-- {foreach from=$pictures item=picture name=no}--> <li<!-- {if $smarty.foreach.no.first}--> class="on"<!-- {/if}-->></li> <!--{/foreach}--> <!--{/if}--> </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> <!--商品图 end---> <!--商品参数--> <section class="goodsInfo"> <a class="collect" id="collect_box" href="javascript:collect({$goods.goods_id})" style="display: inline;">{$record_count}</a> <div class="title"> <h1> {$goods.goods_style_name} </h1> </div> <ul> <!-- {if $cfg.show_goodssn} 显示商品货号--> <li>{$lang.goods_sn}{$goods.goods_sn} </li> <!-- {/if} --> <!-- {if $goods.goods_brand neq "" and $cfg.show_brand} 显示商品品牌--> <li>{$lang.goods_brand}<a class="price" href="{$goods.goods_brand_url}" >{$goods.goods_brand}</a></li> <!--{/if}--> <!-- {if $cfg.show_goodsweight} 商品重量--> <li>{$lang.goods_weight}{$goods.goods_weight}</li> <!-- {/if} --> <!-- {if $cfg.show_goodsweight} 商品重量--> <li>{$lang.exchange_integral}{$goods.exchange_integral}</li> <!-- {/if} --> </ul> </section> <!--商品参数 begin--> <div class="wrap"> <section class="goodsBuy radius5"> <label class="info" id="info1" for="goodsBuy-open"> <div><font id="ps_cd_{$goods.goods_id}"></font><font id="ps_label_{$goods.goods_id}" over="false">{$goods.cur_status}</font><i></i></div> <div class="selected"> </div> </label> <script type="text/javascript"> $().ready(function(){ countdown.setLabels( '毫秒|秒|分|小时|天| 周| 月| 年| 十年| 世纪| 千年', '毫秒|秒|分|小时|天| 周| 月| 年| 十年| 世纪| 千年', '',//秒连接符 '',//其他时间连接符 'End', function(n){ return n.toString() }); <!-- {if $goods.status == 0} --> var endDate = new Date({$goods.local_start_date}); <!-- {else} --> var endDate = new Date({$goods.local_end_date}); <!-- {/if} --> //if({$goods.goods_id} == 62){ // endDate = new Date(2015, 6, 29, 12, 09); //} var status = "{$goods.status}"; var timerId = null; function countdown_callback(ts){ $("#ps_cd_{$goods.goods_id}").html(ts.toString()); if(status == 0){ //预热中->预售中 if(ts == "End"){ Ajax.call('index.php?act=clear_cache', 'POST', 'JSON'); window.location.reload(); window.clearInterval(timerId); $("#ps_cd_{$goods.goods_id}").html(""); $("#ps_label_{$goods.goods_id}").html("后结束"); $("#ps_label_{$goods.goods_id}").attr("over", true); status = 1; endDate = new Date({$goods.local_end_date}); timerId = countdown(countdown_callback, endDate, countdown.DAYS | countdown.HOURS | countdown.MINUTES | countdown.SECONDS); } }else{ //预售中->活动已结束 if(ts == "End" || new Date().getTime() > endDate.getTime()){ window.clearInterval(timerId); $("#ps_cd_{$goods.goods_id}").html(""); $("#ps_label_{$goods.goods_id}").html("活动已结束"); $("#ps_label_{$goods.goods_id}").attr("over", true); $("#buybuttom").html("活动已结束"); $("#buybuttom").removeAttr("onclick"); } } } timerId = countdown(countdown_callback, endDate, countdown.DAYS | countdown.HOURS | countdown.MINUTES | countdown.SECONDS); }); </script> <form action="javascript:;" method="post" name="ECS_FORMBUY" id="ECS_FORMBUY" > <div class="fields" style="display: block;"> <ul class="ul1" style="height:auto;"> <li>预售价:<font id="ECS_GOODS_AMOUNT" class="price">{$goods.formated_cur_price}</font></li> <li>定金:<font class="price">{$goods.formated_deposit}</font></li> <li>预定人数:<font class="price">{$goods.valid_order}</font> 人</li> <li>累计销量:<font class="price">{$goods.sale_count}</font></li> </ul> <ul class="ul2"> <!-- {* 开始循环所有可选属性 *} --> <!-- {foreach from=$specification item=spec key=spec_key} --> <li> <h2>{$spec.name}:</h2> <div class="items"> <!-- {* 判断属性是复选还是单选 *} --> <!-- {if $spec.attr_type eq 1} --> <!-- {if $cfg.goodsattr_style eq 1} --> <!--代码修改_start By www.de11.cn 注:将 if $cfg.goodsattr_style eq 1 与 对应else 之间的代码修改成下面这个样子--> <input type="hidden" name="spec_attr_type" value="{$spec_key}"> <ul class="ys_xuan" id="xuan_{$spec_key}"> <div class="catt" id="catt_{$spec_key}"> <!-- {foreach from=$spec.values item=value key=key} --> <a href="javascript:" {if $value.disabled}class="wuxiao"{else}{if $value.selected_key_gbee eq '1'}class="cattsel"{/if}{/if} onclick="{if $value.disabled}{else}show_attr_status(this,{$goods.goods_id}{if $attr_id},{$attr_id}{/if});{if $spec_key eq $attr_id}get_gallery_attr({$id}, {$value.id});{/if}{/if}" name="{$value.id}" id="xuan_a_{$value.id}"> <p {if $value.thumb_url}class="padd"{elseif $value.hex_color neq ''}style="background:#{$value.hex_color}; height:40px; width:40px"{else}style="padding:6px 10px;"{/if} title="{$value.label}"> {if $value.thumb_url} <img src="{$site_url}{$value.thumb_url}" width="40" height="40" alt="{$value.label}"> {elseif $value.hex_color} {else} <em>{$value.label}</em> {/if} <i></i> </p> <input style="display:none" id="spec_value_{$value.id}" type="radio" name="spec_{$spec_key}" value="{$value.id}" {if $value.selected_key_gbee eq '1'}checked{/if} /> </a> <!-- {/foreach} --> </div> </ul> <input type="hidden" name="spec_list" value="{$key}" /> <!--代码修改_end By www.de11.cn--> <!-- {else} --> <select name="spec_{$spec_key}"> <!-- {foreach from=$spec.values item=value key=key} --> <option label="{$value.label}" value="{$value.id}">{$value.label} {if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if}{if $value.price neq 0}{$value.format_price}{/if}</option> <!-- {/foreach} --> </select> <input type="hidden" name="spec_list" value="{$key}" /> <!-- {/if} --> <!-- {else} --> <!-- {foreach from=$spec.values item=value key=key} --> <label for="spec_value_{$value.id}"> <input type="checkbox" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" onclick="changePrice()" /> {$value.label} [{if $value.price gt 0}{$lang.plus}{elseif $value.price lt 0}{$lang.minus}{/if} {$value.format_price|abs}] </label> <br /> <!-- {/foreach} --> <input type="hidden" name="spec_list" value="{$key}" /> <!-- {/if} --> </div> <!-- {/foreach} --> <!--代码修改_start By www.de11.cn--> <script type="text/javascript"> var myString=new Array(); {literal} {foreach from=$prod_exist_arr key=pkey item=prod} myString[{$pkey}]="{$prod}"; {/foreach} {/literal} </script> <!--代码修改_end By www.de11.cn--> <!-- {* 结束循环可选属性 *} --> </ul> <ul class="quantity"> <h2>数量:</h2> <div class="items"> <span class="ui-number radius5" style="float:left;"> <!-- {if $goods.goods_id gt 0 && $goods.is_gift eq 0 && $goods.parent_id eq 0} 普通商品可修改数量 --> <button type="button" class="decrease radius5" onclick="changenum(- 1)">-</button> <input class="num" name="number" id="goods_number" autocomplete="off" value="1" min="1" max="{$goods.goods_number}" type="text" /> <button type="button" class="increase radius5" onclick="changenum(1)">+</button> <!-- {else} --> {$goods.goods_number} <!-- {/if} --> </span> <p style="float:left;heigth:2.3rem;line-height:2.3rem;margin-left:1rem;"> <!-- {if $goods.goods_number neq "" and $cfg.show_goodsnumber} 商品库存--> <!-- {if $goods.goods_number eq 0} --> 库存: {$lang.stock_up} <!-- {else} --> 库存: <font id="shows_number">载入中···</font> <!-- {/if} --> <!-- {/if} --> </p> </div> </ul> </div> <div class="option" > <script type="text/javascript"> function showDiv(){ } </script> <input type="hidden" name="goods_id" value="{$goods.goods_id}" /> <input type="hidden" id="pre_sale_id" name="pre_sale_id" value="{$goods.pre_sale_id}"/> <!-- {if $goods.status == 0} --> <a id="buybuttom" href="javascript:;" class="btn buy radius5">活动尚未开始</a> <!--{elseif $goods.status == 1 && $goods.deposit > 0 && $goods.status < 2}--> <a id="buybuttom" href="javascript:;" onclick="addToCart({$goods.goods_id}, 0, 1, 'pre_sale', '{$goods.pre_sale_id}')" class="btn buy radius5">立刻支付定金</a> <!--{elseif $goods.status < 2}--> <a id="buybuttom" href="javascript:;" onclick="addToCart({$goods.goods_id}, 0, 1, 'pre_sale', '{$goods.pre_sale_id}')" name="on_addToCart" class="btn buy radius5">立刻付款</a> <!-- {elseif $goods.status >= 2} --> <a id="buybuttom" href="javascript:" class="btn buy radius5">活动已结束</a> <!--{/if}--> </div> </form> </section> </div> <div class="wrap"> <section class="goodsBuy radius5"> <input id="goodsBuy-open-sale" type="checkbox"> <label class="info" id="info2" for="goodsBuy-open-sale"> <div>阶梯价格<i></i></div> <div class="selected"> </div> </label> <div class="fields_sale"> <ul class="ul1"> <!--{foreach from=$goods.price_ladder item=item name=name key=key}--> <li>满{$item.amount}人:<font class="{if $goods.cur_price == $item.price}price{else}price_no{/if}">{$item.formated_price}</font></li> <!-- {/foreach} --> </ul> </div> </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 = ''; document.getElementById('tab2').className = 'hidden'; }else if (id == 2) { document.getElementById('tab1').className = 'hidden'; document.getElementById('tab2').className = ''; } } </script> <!--商品参数 begin--> <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">({$goods.comment_count})</span> </li> </ul> </header> <div id="tab1" class=""> <div class="desc wrap"> {if $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:'../../{$goods.goods_video}'//视频地址 }; var player=new chplayer(videoObject); </script> </div> {/if} <div class="blank2n"></div> {$goods.goods_desc} </div> </div> <div id="tab2" class="hidden"> <div class="wrap"> <div class="blank2n"></div> <!-- #BeginLibraryItem "/library/comments.lbi" --> {insert_scripts files='transport.js,utils.js'} <div id="ECS_COMMENT"> {* ECSHOP 提醒您:动态载入comments_list.lbi,显示评论列表和评论表单 *}{insert name='comments' type=$type id=$id}</div> <!-- #EndLibraryItem --> <script language="javascript"> ShowMyComments({$goods.goods_id},0,1);</script> </div> </div> <div id="tab3" class="hidden"> <div class="wrap"> <ul class="m-recommend "> <div class="blank2n"></div> <!--{foreach from=$related_goods item=releated_goods_data name="related_goods"}--> <li class="flex_in " <!-- {if $smarty.foreach.related_goods.index mod 2 eq 1} --> style="float:right" <!-- {/if} --> > <a href="{$goods.url}"> <div class="summary radius5"> <img src="{$site_url}{$releated_goods_data.goods_thumb}" alt=""/> <div class="price"> <!-- {if $releated_goods_data.promote_price neq 0} --> {$releated_goods_data.formated_promote_price} <!-- {else} --> {$releated_goods_data.shop_price} <!-- {/if} --> </div> </div> <!--{if $goods.goods_comment}--> <div class="reviews"> <!--{foreach from=$goods.goods_comment item=comment name="comment"}--> <!-- {if $smarty.foreach.comment.iteration<4}--> <blockquote> <span class="user"><!-- {if $comment.username} -->{$comment.username|escape:html}<!-- {else} -->{$lang.anonymous}<!-- {/if} --></span> {$comment.content} </blockquote> <!--{/if}--> <!--{/foreach}--> </div> <!--{/if}--> </a> </li> <!--{/foreach}--> </ul> </div> </div> </section> <!-- #BeginLibraryItem "/library/page_footer.lbi" --><!-- #EndLibraryItem --> <!--购物车区域 S--> <!--购物车区域 E--> <script type="text/javascript"> var goods_id = {$id}; var goodsattr_style = {$cfg.goodsattr_style|default:1}; var gmt_end_time = {$promote_end_time|default:0}; {foreach from=$lang.goods_js item=item key=key} var {$key} = "{$item}"; {/foreach} var goodsId = {$id}; var now_time = {$now_time}; <!-- {literal} --> onload = function(){ changePrice(); changeKucun();//这里是添加的 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 + '&pre_sale_id={$goods.pre_sale_id}', 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; } } <!-- {/literal} --> </script> {insert_scripts files='transportjq.js,utils.js'} </body> </html>