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/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/saimikebio.com/mobile/themes/lingshi/exchange_goods.dwt
<!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/common1.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">
// 筛选商品属性
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>

<!--商品图 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}<b>{$goods.goods_sn} </b></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}<b>{$goods.goods_weight}</b></li>
    <!-- {/if} --> 
    <!-- {if $cfg.show_goodsweight} 商品重量-->
    <li>{$lang.exchange_integral}<b class="price">{$goods.exchange_integral}</b></li>
    <!-- {/if} --> 
  </ul>

</section>
<!--商品参数 begin-->
<div class="wrap">
  <section class="goodsBuy radius5">
    <input id="goodsBuy-open" type="checkbox">
    <label class="info" for="goodsBuy-open">
    <div>请选择<span><!-- {foreach name=spec from=$specification item=spec key=spec_key} --><!-- {if $smarty.foreach.spec.iteration>1}-->/<!-- {/if} -->{$spec.name}<!-- {/foreach} --></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>{$lang.amount}:<font id="ECS_GOODS_AMOUNT" class="price"></font></li>
          <!-- {if $goods.goods_number neq "" and $cfg.show_goodsnumber} 商品库存--> 
          <!-- {if $goods.goods_number eq 0} -->
          <li>{$lang.goods_number} {$lang.stock_up} </li>
          <!-- {else} -->
          <li>{$lang.goods_number} {$goods.goods_number} {$goods.measure_unit}</li>
          <!-- {/if} --> 
          <!-- {/if} -->
        </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} -->
                    <!-- {foreach from=$spec.values item=value key=key} -->
                    <input type="radio" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" {if $key eq 0}checked{/if} onclick="changePrice()" />
                    <label for="spec_value_{$value.id}">{$value.label}</label> 
                    <!-- {/foreach} -->
                <!-- {else} -->
                    <select name="spec_{$spec_key}" onchange="changePrice()">
                    <!-- {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>
                <!-- {/if} -->
            <!-- {else} -->
                <!-- {foreach from=$spec.values item=value key=key} -->
                <input type="checkbox" name="spec_{$spec_key}" value="{$value.id}" id="spec_value_{$value.id}" onclick="changePrice()" />
                <label for="spec_value_{$value.id}">
                {$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>
		  </li>
          <!-- {/foreach} --> 
          <!-- {* 结束循环可选属性 *} -->
        </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="{$goods.goods_id}" />
       <input type="submit" value="{$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> 

<!--商品参数 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">({$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="blank2"></div>
      {$goods.goods_desc}
    </div>
  </div>
  <div id="tab2" class="hidden">
    <div class="wrap">
      <div class="blank2"></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>
</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();
  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;
  }
}
<!-- {/literal} -->
</script>
{insert_scripts files='transportjq.js,utils.js'}
</body>
</html>