1536 lines
67 KiB
PHTML
Executable File
1536 lines
67 KiB
PHTML
Executable File
<!DOCTYPE html>
|
||
<html lang="en">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<title><?php echo $detail['name']; ?></title>
|
||
<meta property="og:url" <?php echo url_rewrite('us/productdetail', ['id' => $detail['id']])?>/>
|
||
<meta property="og:type" content="product"/>
|
||
<meta property="og:title" content="<?php echo $detail['name']; ?>"/>
|
||
<meta property="og:description" content="<?php echo $detail['name']; ?>"/>
|
||
<meta property="og:image" content="<?php echo getImage($detail['picture']); ?>"/>
|
||
{include file="include/head-seo" /}
|
||
{include file="include/head-product" /}
|
||
|
||
<link rel="stylesheet" type="text/css" href="__PUBLIC__/weben/css/cooperation.css">
|
||
<script type="text/javascript" src="__PUBLIC__/web/scripts/comment.js"></script>
|
||
<script type="text/javascript">
|
||
var navID = "1";
|
||
</script>
|
||
<style>
|
||
.cp .cprh .buy a.style1bybuybt1:hover{
|
||
background: #0044e2;
|
||
color: #fff !important;
|
||
border: 1px solid #0044e2;
|
||
}
|
||
.cp .cprh .buy a.style1bybuybt2:hover{
|
||
background: #fff;
|
||
color: #0044e2!important;
|
||
border: 1px solid #0044e2;
|
||
}
|
||
.buybuttonin {
|
||
border: 1px solid #0044e2 !important;
|
||
color: #0044e2;
|
||
border-radius: 32px;
|
||
width: auto;
|
||
padding: 0px 30px;
|
||
height: auto
|
||
}
|
||
|
||
.style1bybuybt1 {
|
||
background: #0044e2;
|
||
color: #fff !important;
|
||
}
|
||
|
||
.style1bybuybt2 {
|
||
background: #fff;
|
||
color: #0044e2 !important;
|
||
}
|
||
|
||
.swt-Container {
|
||
width: 1280px!important;
|
||
}
|
||
@media screen and (min-width: 1280px) {
|
||
.products_des img {
|
||
margin: inherit;
|
||
}
|
||
}
|
||
@media screen and (min-width: 1460px) {
|
||
.swt-Container {
|
||
width: 1280px!important;
|
||
}
|
||
}
|
||
</style>
|
||
</head>
|
||
<body οnlοad="openwin()">
|
||
<!--top-->
|
||
<header class="header-PC header-Product">
|
||
<div id="header" class="theme-black">
|
||
{include file="include/top-header" /}
|
||
</div>
|
||
</header>
|
||
|
||
<!--top End-->
|
||
<link rel="stylesheet" href="__PUBLIC__/web/css/tipso.min.css">
|
||
<script type="text/javascript" src="__PUBLIC__/web/scripts/large.js"></script>
|
||
<script src="__PUBLIC__/web/scripts/tipso.min.js"></script>
|
||
<div class="indexbox-product cpmbox">
|
||
<div class="swt-Container">
|
||
<div class="product_address">
|
||
<a href="/index" class="href_01">Home</a>
|
||
<span class="icon-arrow arrow_address"></span><?php if($pid==''){?>
|
||
<a href="<?php echo url_rewrite('us/product', ['id' => $cid['id']]); ?>" class="href_02"><?php echo $cid['name'];?></a>
|
||
<?php }else{?>
|
||
<a href="<?php echo url_rewrite('us/product', ['id' => $pid['id']]); ?>" class="href_02"><?php echo $pid['name'];?></a>
|
||
<?php }?>
|
||
<span class="icon-arrow arrow_address"></span> <a href="<?php echo url_rewrite('us/productsub', ['id' => $detail['cid']]); ?>" class="href_02"><?php echo $category['name'];?></a>
|
||
</div>
|
||
<!-- 产品 s -->
|
||
<div class="cp outBox">
|
||
<div class="cpfl">
|
||
<!--preview start-->
|
||
<div class="preview">
|
||
<?php
|
||
$firstimage = $detail['list_bk_img'];
|
||
|
||
$proimages = [];
|
||
$images = [];
|
||
if ($product_images):
|
||
$proimages = $product_images;
|
||
//判断属性规则为旧版【2023-12-30前】单一颜色属性, 还是新版多属性
|
||
if(is_array($product_attr)) {
|
||
|
||
$images = reset($product_images);
|
||
$skuAttr = $images['image_color']; //获取多属性标签
|
||
|
||
|
||
}
|
||
else{
|
||
if ($color){
|
||
$images = $product_images[$color];
|
||
} else {
|
||
$images = reset($product_images);
|
||
}
|
||
}
|
||
|
||
?>
|
||
|
||
<div class="smallImg">
|
||
<div class="scrollbutton smallImgUp disabled"></div>
|
||
<div id="imageMenu">
|
||
<ul id="image_list">
|
||
|
||
<?php
|
||
|
||
|
||
if(is_array($product_attr) && is_array($images['image_url'])){
|
||
foreach($images['image_url'] as $km => $itm) {
|
||
|
||
if($km == 0) {
|
||
if($itm){
|
||
$firstimage = $itm;
|
||
}
|
||
|
||
echo '<li id="onlickImg"> <img src="'.getImage($itm).'"></li>';
|
||
}
|
||
else{
|
||
echo '<li> <img src="'.getImage($itm).'"></li>';
|
||
}
|
||
}
|
||
}
|
||
else{
|
||
//echo "<pre>-------"; print_r($firstimage);die;
|
||
|
||
|
||
|
||
if(isset($images['image_url']) && is_array($images['image_url'])) {
|
||
foreach ($images['image_url'] as $k => $img){
|
||
if($k == 0 && $img) {
|
||
$firstimage = $img;
|
||
|
||
}
|
||
|
||
echo '<li id="onlickImg"> <img src="'.getImage($img).'"></li>';
|
||
}
|
||
}
|
||
else{
|
||
foreach ($images as $k => $img){
|
||
if($k == 0) {
|
||
if($img['image_url']){
|
||
$firstimage = $img['image_url'];
|
||
}
|
||
|
||
echo '<li id="onlickImg"> <img src="'.getImage($img['image_url']).'"></li>';
|
||
}
|
||
else{
|
||
echo '<li> <img src="'.getImage($img['image_url']).'"></li>';
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
|
||
?>
|
||
|
||
</ul>
|
||
</div>
|
||
<div class="scrollbutton smallImgDown"></div>
|
||
</div><!--smallImg end-->
|
||
<?php endif; ?>
|
||
|
||
<div id="vertical" class="bigImg">
|
||
<?php if($firstimage){ ?>
|
||
<img src="<?php echo getImage($firstimage); ?>" id="midimg"/>
|
||
<?php }?>
|
||
</div><!--bigImg end-->
|
||
</div>
|
||
<!--preview end-->
|
||
|
||
<!-- phone e -->
|
||
|
||
<!-- 视频播放 s -->
|
||
<?php if ($detail['videopath'] == "") { ?><?php } else { ?>
|
||
<!--div class="play play1">
|
||
<a href="javascript:;" class="pcha"><img src="__PUBLIC__/web/images/images/cha1.png"></a>
|
||
<div class="moimg">
|
||
<video id="pvideo" width="100%" height="auto" controls
|
||
poster="<?php echo getImage($detail['picture']); ?>">
|
||
<source src="<?php echo $detail['videopath']; ?>">
|
||
您的浏览器不支持 video 标签。
|
||
Your browser does not support HTML5 video.
|
||
</video>
|
||
</div>
|
||
</div>
|
||
|
||
|
||
<div class="plbtn"><a href="javascript:;"><img src="__PUBLIC__/web/images/images/play.png"></a>
|
||
</div-->
|
||
<?php } ?>
|
||
<!-- 视频播放 e -->
|
||
|
||
</div>
|
||
<div class="cprh">
|
||
<div class="cpcon">
|
||
<p class="ctit1">
|
||
<?php echo $detail['name']; ?>
|
||
</p>
|
||
<!--a onclick="toggle_colleciton()" class="cursor_p detail-col">
|
||
<div class="house-w">
|
||
<span class="house house_img01
|
||
<?php if ($detail['is_collection']): ?>
|
||
house_img02
|
||
<?php endif; ?>
|
||
"></span>
|
||
</div>
|
||
<div class="clear margin-top-50"></div>
|
||
</a>--
|
||
<p class="ctit2"><?php echo $detail['shortname']; ?></p>
|
||
</div>
|
||
|
||
<!-- 规格参数 s -->
|
||
<div class="proTfg">
|
||
<?php
|
||
if ($detail['product_view']) {
|
||
$detail_views = unserialize($detail['product_view']);
|
||
if ($detail_views) {
|
||
?>
|
||
<ul class="msul swt-Table">
|
||
<li class="Table-Row">
|
||
<div class="ms3 Table-Cell">Product Model</div>
|
||
<div class="ms2 Table-Cell"></div>
|
||
<div class="ms4 Table-Cell"><?php echo $detail['brand_id']; ?></div>
|
||
</li>
|
||
<?php foreach ($detail_views as $detail_view): ?>
|
||
|
||
<li class="Table-Row">
|
||
<div class="ms3 Table-Cell"><?php echo $detail_view['desc_title']; ?></div>
|
||
<div class="ms2 Table-Cell "></div>
|
||
<div class="ms4 Table-Cell"><?php echo $detail_view['desc_desc']; ?></div>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
<?php
|
||
}
|
||
}
|
||
?>
|
||
</div>
|
||
<!-- 规格参数 e -->
|
||
|
||
<?php if ($proimages): ?>
|
||
|
||
|
||
<?php
|
||
|
||
|
||
if(is_array($attributes) && sizeof($attributes)){
|
||
foreach($attributes as $ka => $attrList){
|
||
echo "<div class='hd'><div class ='dt attr_type'>".$ka."<span class='selectedAttr'></span></div>";
|
||
$isColor = false;
|
||
|
||
if(strtolower($ka) == 'color' || $ka == '颜色' || $ka == '色彩') {
|
||
echo "<ul class='dowebok'>";
|
||
$isColor = true;
|
||
}
|
||
else{
|
||
echo "<ul class='typeColor'>";
|
||
}
|
||
$colorType = '';
|
||
foreach($attrList as $kl => $attrValue){
|
||
|
||
$firstClass = " attr_item ".($kl ==0 ? "on" : "");
|
||
|
||
if($isColor){
|
||
//判断颜色属性取值【中文文字、色值、色块图英文名称】
|
||
$firstChar = substr($attrValue, 0, 1);
|
||
$colorFile = 'https://cc.f2b211.com/static/colors/' .strtolower($attrValue). '.png';
|
||
|
||
if($kl == 0){
|
||
//判断为颜色色值RGB
|
||
if($firstChar == '#'){
|
||
$colorType = 1;
|
||
}
|
||
elseif(strlen($attrValue) == 2){
|
||
$colorType = 2;
|
||
}
|
||
//判断颜色色块图片是否存在
|
||
elseif(https_request($colorFile)){
|
||
$colorType = 3;
|
||
}
|
||
|
||
}
|
||
|
||
|
||
//判断为颜色色值RGB
|
||
if($colorType == 1){
|
||
echo '<li class="item attr_value '.$firstClass.'" data-type="'.$ka.'" data-value="'.trim($attrValue).'"><a style="background-color: '.$attrValue.'""></a></li>';
|
||
|
||
}
|
||
elseif($colorType == 2){
|
||
if(isset($productColor[strtoupper($attrValue)])) {
|
||
if($attrValue == 'GD'||$attrValue == 'GR'||$attrValue == 'SV'||$attrValue == 'RG'||$attrValue == 'CO'||$attrValue == 'WD'){
|
||
echo '<li class="item attr_value tip1 '.$firstClass.'" data-feed="'.$productColor[$attrValue].'" data-type="'.$ka.'" data-value="'.trim($attrValue).'" data-tipso="'.$productColor[strtoupper($attrValue)].'"><a><img src="/static/colors/'.$attrValue.'.png" alt="" style="width:20px; height: 20px; border-radius: 10px; "></a></li>';
|
||
|
||
}
|
||
else{
|
||
echo '<li class="item attr_value tip1 '.$firstClass.'" data-type="'.$ka.'" data-value="'.trim($attrValue).'" data-feed="'.$productColor[$attrValue].'" data-tipso="'.$productColor[strtoupper($attrValue)].'"><span class="co-bg '.strtoupper($attrValue).'"></span></li>';
|
||
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
else{
|
||
echo '<li class="item attr_value '.$firstClass.'" data-type="'.$ka.'" data-feed="'.strtoupper($attrValue).'" data-value="'.trim($attrValue).'"><a ><i class="text">'.strtoupper($attrValue).'</i></a></li>';
|
||
}
|
||
}
|
||
|
||
else{
|
||
echo '<li class="item attr_value '.$firstClass.'" data-type="'.$ka.'" data-feed="'.trim($attrValue).'" data-value="'.trim($attrValue).'"><a ><i class="text">'.$attrValue.'</i></a></li>';
|
||
|
||
}
|
||
|
||
}
|
||
|
||
echo "</ul> </div>";
|
||
|
||
}
|
||
}
|
||
else{
|
||
|
||
|
||
if($images){
|
||
|
||
$firstKeys = array_keys($proimages);
|
||
$firstElement = array_shift($firstKeys);
|
||
|
||
if(!$firstElement == 0){
|
||
echo "<div class='hd 333'><div class ='dt'>Color</div><ul class='dowebok'>";
|
||
|
||
}
|
||
|
||
|
||
foreach ($proimages as $k => $imgclrs):
|
||
|
||
//echo "<pre>=="; print_r($imgclrs);die;
|
||
if(is_array($imgclrs)){
|
||
$b = $k;
|
||
$c = $imgclrs[0]['image_color']; //背景图片色块
|
||
$colorName = mb_substr($b,-2,2);
|
||
|
||
}
|
||
else{
|
||
$c = '';
|
||
}
|
||
|
||
|
||
?>
|
||
<?php if (!$c == '') { ?>
|
||
|
||
|
||
<li class="item inner <?php if ($b == $color): ?> on<?php endif; ?>" >
|
||
|
||
<a class="attr_value" href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $detail['id'], 'color' => $b]); ?>">
|
||
<img src="<?php echo $c; ?>" alt="" style="width:20px; height: 20px; border-radius: 10px; ">
|
||
</a>
|
||
</li>
|
||
<?php } ?>
|
||
<?php endforeach; ?>
|
||
<?php echo " </ul></div>";?>
|
||
<?php } ?>
|
||
|
||
<?php } ?>
|
||
|
||
<?php endif; ?>
|
||
|
||
<div class="buy">
|
||
{volist name="purchase_links" id="vo" key="k"}
|
||
{if condition="!empty($vo.link)"}
|
||
<a target="_blank"
|
||
href="{$vo.link}" class="btn-blue-detail business-button buybuttonin style1bybuybt{$k}" >{$vo.platform}</a>
|
||
{/if}
|
||
{/volist}
|
||
</div>
|
||
<div class="btn-blue-detail business-button">Send Inquiry</div>
|
||
<!--div>
|
||
<?php if ($detail['url_tm']): ?>
|
||
<a href="<?php echo $detail['url_tm']; ?>" class="blue-d" target="_blank" onclick="add_click(<?php echo $detail['id']; ?>, 3, '<?php echo $detail['url_tm']; ?>')">Buy Amazon</a>
|
||
<?php endif; ?>
|
||
<?php if ($detail['url_jd']): ?>
|
||
<a href="<?php echo $detail['url_jd']; ?>" class="blue-d" target="_blank" onclick="add_click(<?php echo $detail['id']; ?>, 4, '<?php echo $detail['url_jd']; ?>')">Buy Newegg</a>
|
||
<?php endif; ?>
|
||
<?php if ($detail['url_dg_amazon']): ?>
|
||
<a href="<?php echo $detail['url_dg_amazon']; ?>" class="blue-d" target="_blank" onclick="add_click(<?php echo $detail['id']; ?>, 3, '<?php echo $detail['url_dg_amazon']; ?>', 'de')">Buy Amazon.de</a>
|
||
<?php endif; ?>
|
||
</div-->
|
||
</div>
|
||
<!--弹出框-->
|
||
<div class="marsk-container" style="display: none;">
|
||
<div class="popup-quick" >
|
||
<div class="title-text">Send Inquiry</div>
|
||
<div class="business-close"><img src="__PUBLIC__/weben/images/close.png"></div>
|
||
<div class="apply_content">
|
||
<div class="detail_form">
|
||
<div style="margin-bottom: 1.875rem;width:48%;float:left;">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Name</p>
|
||
<div class="name clearfix" style="margin-right: 1.25rem; ">
|
||
<input type="text" class="first detail-w" placeholder="First name" name="firstname" id="firstname"/>
|
||
<input type="text" class="first detail-w" placeholder="Last name" name="lastname" id="lastname"/>
|
||
</div>
|
||
</div>
|
||
<div class=" clearfix" style="margin-bottom: 1.875rem;width:48%;display:inline-block;">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Company/Organization</p>
|
||
<div style="margin-right: 1.25rem; ">
|
||
<input type="text" class="first detail-w01" id='companyName' name='companyName'/>
|
||
</div>
|
||
</div>
|
||
<div class=" clearfix" style="margin-bottom: 1.875rem;width:48%;display:inline-block;">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Email Address</p>
|
||
<div style="margin-right: 1.25rem; ">
|
||
<input type="text" class="first detail-w01" id="email" name='email'/>
|
||
</div>
|
||
</div>
|
||
<div class=" clearfix" style="margin-bottom: 1.875rem;width:48%;display:inline-block;">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Phone Number</p>
|
||
<div style="margin-right: 1.25rem; ">
|
||
<input type="text" class="first detail-w01" id="phone" name='phone'/>
|
||
</div>
|
||
</div>
|
||
<div class=" clearfix" style="margin-bottom: 1.875rem;width:48%;display:inline-block;">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Country</p>
|
||
<div style="margin-right: 1.25rem; ">
|
||
<select class=" detail-w01" id='country' name='country'>
|
||
<option value ="">--- Select your country ---</option>
|
||
<option value ="Afghanistan">Afghanistan</option>
|
||
<option value ="Albania">Albania</option>
|
||
<option value ="Algeria">Algeria</option>
|
||
<option value ="American Samoa">American Samoa</option>
|
||
<option value ="Andorra">Andorra</option>
|
||
<option value ="Angola">Angola</option>
|
||
<option value ="Anguilla">Anguilla</option>
|
||
<option value ="Antigua and Barbuda">Antigua and Barbuda</option>
|
||
<option value ="Argentina">Argentina</option>
|
||
<option value ="Armenia">Armenia</option>
|
||
<option value ="Aruba">Aruba</option>
|
||
<option value ="Australia">Australia</option>
|
||
<option value ="Austria">Austria</option>
|
||
<option value ="Azerbaijan">Azerbaijan</option>
|
||
<option value ="Azores">Azores</option>
|
||
<option value ="Bahamas">Bahamas</option>
|
||
<option value ="Bahrain">Bahrain</option>
|
||
<option value ="Bangladesh">Bangladesh</option>
|
||
<option value ="Barbados">Barbados</option>
|
||
<option value ="Belarus">Belarus</option>
|
||
<option value ="Belgium">Belgium</option>
|
||
<option value ="Belize">Belize</option>
|
||
<option value ="Benin">Benin</option>
|
||
<option value ="Bermuda">Bermuda</option>
|
||
<option value ="Bhutan">Bhutan</option>
|
||
<option value ="Bolivia">Bolivia</option>
|
||
<option value ="Bosnia and Herzegovina">Bosnia and Herzegovina</option>
|
||
<option value ="Botswana">Botswana</option>
|
||
<option value ="Brazil">Brazil</option>
|
||
<option value ="Brunei">Brunei</option>
|
||
<option value ="Bulgaria">Bulgaria</option>
|
||
<option value ="Burkina Faso">Burkina Faso</option>
|
||
<option value ="Burundi">Burundi</option>
|
||
<option value ="Cambodia">Cambodia</option>
|
||
<option value ="Cameroon">Cameroon</option>
|
||
<option value ="Canada">Canada</option>
|
||
<option value ="Canarias">Canarias</option>
|
||
<option value ="Cape Verde">Cape Verde</option>
|
||
<option value ="Cayman">Cayman</option>
|
||
<option value ="Central African Republic">Central African Republic</option>
|
||
<option value ="Chad">Chad</option>
|
||
<option value ="Chile">Chile</option>
|
||
<option value ="China">China</option>
|
||
<option value ="Colombia">Colombia</option>
|
||
<option value ="Comoros">Comoros</option>
|
||
<option value ="Congo (Congo-Kinshasa)">Congo (Congo-Kinshasa)</option>
|
||
<option value ="Congo">Congo</option>
|
||
<option value ="Cook Islands">Cook Islands</option>
|
||
<option value ="Costa Rica">Costa Rica</option>
|
||
<option value ="Cote D'Ivoire">Cote D'Ivoire</option>
|
||
<option value ="Croatia">Croatia</option>
|
||
<option value ="Cuba">Cuba</option>
|
||
<option value ="Cyprus">Cyprus</option>
|
||
<option value ="Czech">Czech</option>
|
||
<option value ="Denmark">Denmark</option>
|
||
<option value ="Djibouti">Djibouti</option>
|
||
<option value ="Dominica">Dominica</option>
|
||
<option value ="Dominican">Dominican</option>
|
||
<option value ="Ecuador">Ecuador</option>
|
||
<option value ="Egypt">Egypt</option>
|
||
<option value ="El Salvador">El Salvador</option>
|
||
<option value ="Equatorial Guinea">Equatorial Guinea</option>
|
||
<option value ="Eritrea">Eritrea</option>
|
||
<option value ="Estonia">Estonia</option>
|
||
<option value ="Ethiopia">Ethiopia</option>
|
||
<option value ="Fiji">Fiji</option>
|
||
<option value ="Finland">Finland</option>
|
||
<option value ="France">France</option>
|
||
<option value ="French Guiana">French Guiana</option>
|
||
<option value ="French Polynesia">French Polynesia</option>
|
||
<option value ="Gabon">Gabon</option>
|
||
<option value ="Gambia">Gambia</option>
|
||
<option value ="Georgia">Georgia</option>
|
||
<option value ="Germany">Germany</option>
|
||
<option value ="Ghana">Ghana</option>
|
||
<option value ="Greece">Greece</option>
|
||
<option value ="Greenland">Greenland</option>
|
||
<option value ="Grenada">Grenada</option>
|
||
<option value ="Guadeloupe">Guadeloupe</option>
|
||
<option value ="Guam">Guam</option>
|
||
<option value ="Guatemala">Guatemala</option>
|
||
<option value ="Guinea">Guinea</option>
|
||
<option value ="Guinea-Bissau">Guinea-Bissau</option>
|
||
<option value ="Guyana">Guyana</option>
|
||
<option value ="Haiti">Haiti</option>
|
||
<option value ="Honduras">Honduras</option>
|
||
<option value ="Hungary">Hungary</option>
|
||
<option value ="Iceland">Iceland</option>
|
||
<option value ="India">India</option>
|
||
<option value ="Indonesia">Indonesia</option>
|
||
<option value ="Iran">Iran</option>
|
||
<option value ="Iraq">Iraq</option>
|
||
<option value ="Ireland">Ireland</option>
|
||
<option value ="Israel">Israel</option>
|
||
<option value ="Italy">Italy</option>
|
||
<option value ="Jamaica">Jamaica</option>
|
||
<option value ="Japan">Japan</option>
|
||
<option value ="Jordan">Jordan</option>
|
||
<option value ="Kazakhstan">Kazakhstan</option>
|
||
<option value ="Kenya">Kenya</option>
|
||
<option value ="Kiribati">Kiribati</option>
|
||
<option value ="Korea (North)">Korea (North)</option>
|
||
<option value ="Korea (South)">Korea (South)</option>
|
||
<option value ="Kuwait">Kuwait</option>
|
||
<option value ="Kyrgyzstan">Kyrgyzstan</option>
|
||
<option value ="Laos">Laos</option>
|
||
<option value ="Latvia">Latvia</option>
|
||
<option value ="Lebanon">Lebanon</option>
|
||
<option value ="Lesotho">Lesotho</option>
|
||
<option value ="Liberia">Liberia</option>
|
||
<option value ="Libya">Libya</option>
|
||
<option value ="Liechtenstein">Liechtenstein</option>
|
||
<option value ="Lithuania">Lithuania</option>
|
||
<option value ="Luxembourg">Luxembourg</option>
|
||
<option value ="Macedonia">Macedonia</option>
|
||
<option value ="Madagascar">Madagascar</option>
|
||
<option value ="Madeira">Madeira</option>
|
||
<option value ="Malawi">Malawi</option>
|
||
<option value ="Malaysia">Malaysia</option>
|
||
<option value ="Maldives">Maldives</option>
|
||
<option value ="Mali">Mali</option>
|
||
<option value ="Malta">Malta</option>
|
||
<option value ="Marshall Islands">Marshall Islands</option>
|
||
<option value ="Martinique">Martinique</option>
|
||
<option value ="Mauritania">Mauritania</option>
|
||
<option value ="Mauritius">Mauritius</option>
|
||
<option value ="Mexico">Mexico</option>
|
||
<option value ="Micronesia">Micronesia</option>
|
||
<option value ="Moldova">Moldova</option>
|
||
<option value ="Monaco">Monaco</option>
|
||
<option value ="Mongolia">Mongolia</option>
|
||
<option value ="Montserrat">Montserrat</option>
|
||
<option value ="Morocco">Morocco</option>
|
||
<option value ="Mozambique">Mozambique</option>
|
||
<option value ="Myanmar">Myanmar</option>
|
||
<option value ="Namibia">Namibia</option>
|
||
<option value ="Nauru">Nauru</option>
|
||
<option value ="Nepal">Nepal</option>
|
||
<option value ="Netherlands Antilles">Netherlands Antilles</option>
|
||
<option value ="Netherlands">Netherlands</option>
|
||
<option value ="New Caledonia">New Caledonia</option>
|
||
<option value ="New Zealand">New Zealand</option>
|
||
<option value ="Nicaragua">Nicaragua</option>
|
||
<option value ="Niger">Niger</option>
|
||
<option value ="Niue">Niue</option>
|
||
<option value ="Northern Mariana">Northern Mariana</option>
|
||
<option value ="Norway">Norway</option>
|
||
<option value ="Oman">Oman</option>
|
||
<option value ="Pakistan">Pakistan</option>
|
||
<option value ="Palau">Palau</option>
|
||
<option value ="Palestine">Palestine</option>
|
||
<option value ="Panama">Panama</option>
|
||
<option value ="Papua New Guinea">Papua New Guinea</option>
|
||
<option value ="Paraguay">Paraguay</option>
|
||
<option value ="Peru">Peru</option>
|
||
<option value ="Philippines">Philippines</option>
|
||
<option value ="Pitcairn Islands">Pitcairn Islands</option>
|
||
<option value ="Poland">Poland</option>
|
||
<option value ="Portugal">Portugal</option>
|
||
<option value ="Puerto Rico">Puerto Rico</option>
|
||
<option value ="Qatar">Qatar</option>
|
||
<option value ="Reunion">Reunion</option>
|
||
<option value ="Romania">Romania</option>
|
||
<option value ="Russian Federation">Russian Federation</option>
|
||
<option value ="Rwanda">Rwanda</option>
|
||
<option value ="Saint Helena">Saint Helena</option>
|
||
<option value ="Saint Kitts-Nevis">Saint Kitts-Nevis</option>
|
||
<option value ="Saint Lucia">Saint Lucia</option>
|
||
<option value ="Saint Vincent and the Grenadines">Saint Vincent and the Grenadines</option>
|
||
<option value ="Samoa">Samoa</option>
|
||
<option value ="San Marino">San Marino</option>
|
||
<option value ="Sao Tome and Principe">Sao Tome and Principe</option>
|
||
<option value ="Saudi Arabia">Saudi Arabia</option>
|
||
<option value ="Senegal">Senegal</option>
|
||
<option value ="Serbia">Serbia</option>
|
||
<option value ="Seychelles">Seychelles</option>
|
||
<option value ="Sierra Leone">Sierra Leone</option>
|
||
<option value ="Singapore">Singapore</option>
|
||
<option value ="Slovakia">Slovakia</option>
|
||
<option value ="Slovenia">Slovenia</option>
|
||
<option value ="Solomon Islands">Solomon Islands</option>
|
||
<option value ="Somalia">Somalia</option>
|
||
<option value ="South Africa">South Africa</option>
|
||
<option value ="Spain">Spain</option>
|
||
<option value ="Sri Lanka">Sri Lanka</option>
|
||
<option value ="Sudan">Sudan</option>
|
||
<option value ="Suriname">Suriname</option>
|
||
<option value ="Swaziland">Swaziland</option>
|
||
<option value ="Sweden">Sweden</option>
|
||
<option value ="Switzerland">Switzerland</option>
|
||
<option value ="Syria">Syria</option>
|
||
<option value ="Tajikistan">Tajikistan</option>
|
||
<option value ="Tanzania">Tanzania</option>
|
||
<option value ="Thailand">Thailand</option>
|
||
<option value ="The British Virgin Islands">The British Virgin Islands</option>
|
||
<option value ="The United States Virgin Islands">The United States Virgin Islands</option>
|
||
<option value ="Timor-Leste">Timor-Leste</option>
|
||
<option value ="Togo">Togo</option>
|
||
<option value ="Tokelau">Tokelau</option>
|
||
<option value ="Tonga">Tonga</option>
|
||
<option value ="Trinidad and Tobago">Trinidad and Tobago</option>
|
||
<option value ="Tunisia">Tunisia</option>
|
||
<option value ="Turkey">Turkey</option>
|
||
<option value ="Turkmenistan">Turkmenistan</option>
|
||
<option value ="Turks and Caicos Islands">Turks and Caicos Islands</option>
|
||
<option value ="Tuvalu">Tuvalu</option>
|
||
<option value ="Uganda">Uganda</option>
|
||
<option value ="Ukraine">Ukraine</option>
|
||
<option value ="United Arab Emirates">United Arab Emirates</option>
|
||
<option value ="United Kingdom">United Kingdom</option>
|
||
<option value ="United States">United States</option>
|
||
<option value ="Uruguay">Uruguay</option>
|
||
<option value ="Uzbekistan">Uzbekistan</option>
|
||
<option value ="Vanuatu">Vanuatu</option>
|
||
<option value ="Vatican City">Vatican City</option>
|
||
<option value ="Venezuela">Venezuela</option>
|
||
<option value ="Vietnam">Vietnam</option>
|
||
<option value ="Wallis and Futuna">Wallis and Futuna</option>
|
||
<option value ="Western Sahara">Western Sahara</option>
|
||
<option value ="Yemen">Yemen</option>
|
||
<option value ="Zambia">Zambia</option>
|
||
<option value ="Zimbabwe">Zimbabwe</option>
|
||
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class=" clearfix" style="margin-bottom: 1.875rem;width:48%;display:inline-block;">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>Industry</p>
|
||
<div style="margin-right: 1.25rem; ">
|
||
<input type="text" class="first detail-w01" id='industry' name='industry'/>
|
||
</div>
|
||
</div>
|
||
<div class=" clearfix" style="margin-bottom: 1.875rem; display:inline-block;width:100%; ">
|
||
<p><strong style="color: red; margin-right: 0.3125rem;">*</strong>lnquiry</p>
|
||
<div >
|
||
<textarea rows="6" cols="20" class="first detail-w01" id='inquiry' name='inquiry'/> </textarea>
|
||
</div>
|
||
</div>
|
||
<div class="submit_btn">SUBMIT</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<!--弹出框-->
|
||
<!-- 产品 e -->
|
||
<script>
|
||
$(document).ready(function(){
|
||
$("a .house").click(function(){
|
||
$(this).toggleClass("house_img02");
|
||
})
|
||
|
||
|
||
})
|
||
</script>
|
||
|
||
</div>
|
||
<!-- 产品 e -->
|
||
</div>
|
||
</div>
|
||
<div class="warp">
|
||
<div class="warpa">
|
||
<!-- 锚链接 s -->
|
||
<ul class="cpa">
|
||
<li><a href="#link1">Product Description</a></li>
|
||
<?php if ($product_relateds): ?><li><a href="#link2">Related Products</a></li><?php endif; ?>
|
||
<?php if ($product_dls): ?><li><a href="#link3">Related Download</a></li><?php endif; ?>
|
||
<!--<li><a href="#link4">评论</a></li>-->
|
||
<div class="clear"></div>
|
||
</ul>
|
||
<!-- 锚链接 e-->
|
||
</div>
|
||
<div class="swt-Container">
|
||
<!--产品详情-->
|
||
<div class="products_des"><?php echo $detail['ld_md_content']; ?></div>
|
||
</div>
|
||
|
||
|
||
<!-- 关联产品 s <?php //if ($product_relateds)print_r($product_relateds); ?>-->
|
||
<?php if ($product_relateds): ?>
|
||
<div class="warp2 proTfg">
|
||
<div class="swt-Container">
|
||
<div class="gltit" id="link2">Related Products</div>
|
||
<div class="cpBox">
|
||
<div class="owl-carousel">
|
||
<?php foreach ($product_relateds as $product):; ?>
|
||
<div class="item wow">
|
||
<?php $img = getProductReated($product['id']); ?>
|
||
<a href="__ORICOROOT__<?php echo url_rewrite('productdetail', ['id' => $product['id']]); ?>">
|
||
<div class="glimg img-responsive"><img src="<?php echo $product['list_bk_img']; ?>">
|
||
<!--换成一级列表图--></div>
|
||
<div class="gltext">
|
||
<p class="gl1"><?php echo $product['name']; ?></p>
|
||
<p class="gl2"> <?php echo $product['brand_id']; ?></p>
|
||
<!-- <p class="gl2">-->
|
||
<?php //echo $product['shortname']; ?><!--</p>-->
|
||
</div>
|
||
<div class="clear"></div>
|
||
</a>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
<script>
|
||
var owl = $(".cpBox .owl-carousel");
|
||
owl.owlCarousel({
|
||
autoplay: true,
|
||
navigationText: ["", ""],
|
||
responsive: {
|
||
0: {
|
||
items: 1,
|
||
margin: 0
|
||
},
|
||
420: {
|
||
items: 1,
|
||
margin: 0,
|
||
smartSpeed: 80,
|
||
dots: false
|
||
},
|
||
640: {
|
||
items: 2,
|
||
margin: 0,
|
||
smartSpeed: 80,
|
||
dots: false
|
||
},
|
||
998: {
|
||
items: 3,
|
||
margin: 0,
|
||
smartSpeed: 80,
|
||
dots: false
|
||
},
|
||
},
|
||
})
|
||
</script>
|
||
</div>
|
||
|
||
</div>
|
||
</div>
|
||
<?php endif; ?>
|
||
|
||
|
||
|
||
<!-- 相关下载 s -->
|
||
<?php if (!$product_dls) { ?>
|
||
<?php } else { ?>
|
||
<div class="nybox proTfg">
|
||
<div class="swt-Container">
|
||
<div class="sptit" id="link3">Related Download</div>
|
||
<?php
|
||
if ($product_dls):
|
||
$selectTypeArr = config("product_dltype");
|
||
$prodls = [];
|
||
foreach ($product_dls as $dlrow) {
|
||
$prodls[$dlrow['dl_type']][] = $dlrow;
|
||
}
|
||
?>
|
||
<?php foreach ($prodls as $type => $dlclrs): ?>
|
||
<div class="xz">
|
||
<p class="xztit"><?php echo isset($selectTypeArr[$type]) ? $selectTypeArr[$type] : ''; ?></p>
|
||
<?php foreach ($dlclrs as $dl): ?>
|
||
<p class="xz1"><a
|
||
href="<?php echo url('us/download/prodownload', ['id' => $dl['id']]); ?>"><i></i><?php echo $dl['dl_name']; ?>
|
||
</a></p>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
<?php endforeach; ?>
|
||
<?php endif; ?>
|
||
</div>
|
||
</div>
|
||
<?php } ?>
|
||
|
||
<style>
|
||
/*点击弹框*/
|
||
.popup-quick {
|
||
width: 48rem;
|
||
position: fixed;
|
||
top: 35%;
|
||
margin-top: -235px;
|
||
left: 45%;
|
||
margin-left: -235px;
|
||
background-color: #fff;
|
||
z-index: 9999;
|
||
box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.2);
|
||
color: #333;
|
||
border-radius: 0.05rem;
|
||
}
|
||
|
||
.popup-quick .popup-app {
|
||
font-size: 0.14rem;
|
||
color: #333;
|
||
line-height: 22px;
|
||
padding: 30px 40px;
|
||
text-align: center;
|
||
}
|
||
|
||
.popup-quick .business-close {
|
||
width: 24px;
|
||
height: 24px;
|
||
position: absolute;
|
||
top: 20px;
|
||
right: 20px;
|
||
cursor: pointer;
|
||
}
|
||
|
||
.popup-quick .popup-business-logo img {
|
||
width: 1.5rem;
|
||
height: 1.5rem;
|
||
margin-left: 0.9rem;
|
||
}
|
||
|
||
.title-text {
|
||
font-size: 26px;
|
||
color: #101010;
|
||
font-weight: 600;
|
||
text-align: center;
|
||
padding: 34px 0;
|
||
}
|
||
|
||
.marsk-container {
|
||
background: rgba(0, 0, 0, 0.8);
|
||
display: none;
|
||
position: absolute;
|
||
position: fixed;
|
||
top: 0;
|
||
right: 0;
|
||
left: 0;
|
||
bottom: 0px;
|
||
z-index: 999;
|
||
}
|
||
|
||
.detail_form input {
|
||
height: 2.75rem;
|
||
line-height: 2.75rem;
|
||
padding: 0 0.625rem;
|
||
margin-top: 0.625rem;
|
||
border: 1px solid #dbdbdb;
|
||
display: inline-block;
|
||
}
|
||
|
||
.detail_form select {
|
||
height: 2.75rem;
|
||
line-height: 2.75rem;
|
||
padding: 0 0.625rem;
|
||
margin-top: 0.625rem;
|
||
border: 1px solid #dbdbdb;
|
||
display: inline-block;
|
||
}
|
||
|
||
.detail_form textarea {
|
||
padding: 0.225rem 0.5rem;
|
||
margin-top: 0.625rem;
|
||
border: 1px solid #dbdbdb;
|
||
display: inline-block;
|
||
}
|
||
|
||
.apply_form textarea {
|
||
padding: 0.225rem;
|
||
margin-top: 0.625rem;
|
||
border: 1px solid #dbdbdb;
|
||
display: inline-block;
|
||
}
|
||
|
||
.apply_content {
|
||
width: 43.75rem;
|
||
height: auto;
|
||
margin: 0 auto;
|
||
}
|
||
|
||
.form_title {
|
||
width: 43.75rem;
|
||
height: 1.875rem;
|
||
line-height: 2rem;
|
||
text-align: center;
|
||
padding: 3.125rem 0;
|
||
font-size: 1.5rem;
|
||
font-weight: bold;
|
||
color: #000000;
|
||
}
|
||
|
||
.apply_form p {
|
||
color: #252525;
|
||
font-size: 0.875rem;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.apply_form input {
|
||
width: calc(100% - 1.25rem);
|
||
height: 2.75rem;
|
||
line-height: 2.75rem;
|
||
padding: 0 0.625rem;
|
||
margin-top: 0.625rem;
|
||
border: 1px solid #DBDBDB;
|
||
}
|
||
|
||
.apply_form .name>div {
|
||
float: left;
|
||
width: calc((100% - 1.25rem)/2);
|
||
}
|
||
|
||
.check_box,
|
||
.radio_box {
|
||
margin-top: 0.9375rem;
|
||
}
|
||
|
||
.check_box ul li,
|
||
.radio_box ul li {
|
||
color: #252525;
|
||
font-size: 0.875rem;
|
||
font-weight: 400;
|
||
margin-bottom: 0.625rem;
|
||
line-height: 1.25rem;
|
||
}
|
||
|
||
.check_box ul li i {
|
||
display: block;
|
||
float: left;
|
||
width: 1rem;
|
||
height: 1rem;
|
||
border: 1px solid #cccccc;
|
||
border-radius: 0.125rem;
|
||
margin-right: 0.625rem;
|
||
}
|
||
|
||
.checked i::before {
|
||
background: url(../img/check.png);
|
||
width: 1rem;
|
||
height: 1rem;
|
||
display: block;
|
||
content: '';
|
||
}
|
||
|
||
.radio_box ul li i {
|
||
display: block;
|
||
float: left;
|
||
width: 1rem;
|
||
height: 1rem;
|
||
border: 1px solid #cccccc;
|
||
border-radius: 50%;
|
||
margin-right: 0.625rem;
|
||
}
|
||
|
||
.submit_btn {
|
||
margin: 0 auto;
|
||
width: 15rem;
|
||
height: 2.5rem;
|
||
line-height: 2.5rem;
|
||
background: #009FDF;
|
||
color: #ffffff;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
margin-bottom: 5.625rem;
|
||
}
|
||
|
||
.radio i::before {
|
||
background: url(../img/radio.png);
|
||
width: 1rem;
|
||
height: 1rem;
|
||
display: block;
|
||
content: '';
|
||
}
|
||
|
||
.detail-w {
|
||
width: 40%;
|
||
}
|
||
|
||
.detail-w02 {
|
||
width: 45%;
|
||
}
|
||
|
||
.detail-w01 {
|
||
width: 90%;
|
||
}
|
||
|
||
.detail-w02 {
|
||
width: 100%;
|
||
}
|
||
|
||
.detail_form .name>div {
|
||
float: left;
|
||
width: calc((100% - 1.25rem) / 2);
|
||
}
|
||
|
||
.hd .co-bg {
|
||
width: 20px;
|
||
}
|
||
</style>
|
||
<script>
|
||
$(function() {
|
||
$('.tip1').tipso({
|
||
useTitle: false
|
||
});
|
||
});
|
||
</script>
|
||
<!-- 相关下载 e -->
|
||
<script type="text/javascript">
|
||
$(function() {
|
||
var attributes = JSON.parse('<?php echo json_encode($product_attr); ?>');
|
||
var pictures = JSON.parse('<?php echo json_encode($product_images); ?>');
|
||
|
||
//多属性选择及绑定事件
|
||
$(".hd .attr_item").click(function() {
|
||
$(this).siblings().removeClass('on');
|
||
$(this).toggleClass('on');
|
||
|
||
var attrVal = $(this).data('feed');
|
||
if ($(this).hasClass("on")) {
|
||
$(this).parents(".hd").find(".selectedAttr").text(attrVal);
|
||
} else {
|
||
|
||
$(this).parents(".hd").find(".selectedAttr").html('');
|
||
}
|
||
|
||
//验证是否所有属性全部选中
|
||
var skuCount = $('.attr_type').length;
|
||
var activeCount = $('.hd .on').length;
|
||
|
||
var productAttr = skuAttrType();
|
||
|
||
if(activeCount == skuCount)
|
||
{
|
||
|
||
//勾选属性事件: 重新加载属性图片
|
||
pictures.forEach(function(image, key) {
|
||
//选中的属性
|
||
var imageColor = image.image_color;
|
||
|
||
|
||
//判断属性是否全部匹配
|
||
var attrFlag = true;
|
||
attributes.forEach(function(attrName, kat) {
|
||
//console.log(imageColor[kat][attrName] + '=====+++++====' + productAttr[kat][attrName]);
|
||
if(imageColor[kat][attrName] == productAttr[kat][attrName]){
|
||
|
||
}else{
|
||
|
||
attrFlag = false;
|
||
return;
|
||
|
||
}
|
||
})
|
||
|
||
if(attrFlag){
|
||
|
||
var smaImagesHtml = '';
|
||
var bigImagesHtml = '';
|
||
var firstImage = '';
|
||
var imageUrl = image.image_url;
|
||
|
||
imageUrl.forEach(function(atrVal,atrKey) {
|
||
if(atrKey == 0) {
|
||
$("#midimg").attr('src', atrVal);
|
||
}
|
||
bigImagesHtml += '<li id="onlickImg"> <img src="' + atrVal + '"></li>';
|
||
smaImagesHtml += '<div class="swiper-slide"><a href="javascript:void(0);"><img src="' + atrVal + '"></a></div>';
|
||
|
||
});
|
||
|
||
$("#image_list").html(bigImagesHtml);
|
||
$("#mswiper-list").html(smaImagesHtml);
|
||
}
|
||
|
||
})
|
||
|
||
}
|
||
|
||
});
|
||
|
||
});
|
||
|
||
function skuAttrType(){
|
||
// 获取规格值
|
||
var spec = [];
|
||
$('.hd .on').each(function()
|
||
{
|
||
var typeName = $(this).data('type');
|
||
var selected = {};
|
||
|
||
selected[typeName] = $(this).data('value');
|
||
|
||
spec.push(selected);
|
||
});
|
||
|
||
return JSON.parse(JSON.stringify(spec));
|
||
}
|
||
|
||
|
||
$(function () {
|
||
var $category = $(".ans .anbox");
|
||
$category.hide();
|
||
$(".ans .antit").click(function () {
|
||
if ($(this).next(".anbox").is(":visible")) {
|
||
$(this).removeClass('on').next().slideUp(800);
|
||
$(this).parent('.ans').removeClass('on');
|
||
$(this).children("i").removeClass("ons")
|
||
} else {
|
||
$category.hide();
|
||
$(".ans .antit").removeClass('on');
|
||
$(this).children("i").addClass("ons")
|
||
$(this).addClass('on').next().slideDown(800);
|
||
$(this).parent('.ans').addClass('on');
|
||
|
||
}
|
||
});
|
||
});
|
||
|
||
$(function () {
|
||
$('a[href*=#],area[href*=#]').click(function () {
|
||
console.log(this.pathname)
|
||
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
|
||
var $target = $(this.hash);
|
||
$target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
|
||
if ($target.length) {
|
||
var targetOffset = $target.offset().top - 50;
|
||
$('html,body').animate({
|
||
scrollTop: targetOffset
|
||
}, 800);
|
||
return false; //页面锚点跳转动画 后面的800是锚点跳转的时间 800ms
|
||
}
|
||
}
|
||
});
|
||
})
|
||
$(document).ready(function () {
|
||
//获取div-one距离顶部的距离
|
||
var navtop = $(".warpa").offset().top;
|
||
$(document).scroll(function () {
|
||
//获取滚动条滚动的高度
|
||
var scroltop = $(document).scrollTop();
|
||
if (scroltop > navtop) {
|
||
$(".warpa").css({
|
||
"position": "fixed",
|
||
"top": "0px",
|
||
"left": "0px",
|
||
"right": "0px",
|
||
"z-index": "999"
|
||
})
|
||
} else {
|
||
$(".warpa").css({
|
||
"position": "",
|
||
"top": "",
|
||
"left": "",
|
||
"right": "",
|
||
"z-index": ""
|
||
})
|
||
}
|
||
})
|
||
})
|
||
|
||
$("input").click(function () {
|
||
$(this).siblings("div").children("span").addClass("active");
|
||
$(this).parents("div").siblings("div").find("span").removeClass("active");
|
||
});
|
||
|
||
|
||
$(function () {
|
||
$(window).scroll(function () {
|
||
var arr = []
|
||
$.each($(".proTfg"), function (k, v) {
|
||
arr[k] = $(this).offset().top + $(this).height();
|
||
})
|
||
$.each(arr, function (k, v) {
|
||
if (($(window).scrollTop() + $(".cpa li").eq(k - 1).height() + 10) < v) {
|
||
if (!$(".cpa li").eq(k).hasClass("current")) {
|
||
$(".cpa li").eq(k).attr("class", "current").siblings().removeClass();
|
||
}
|
||
return false;
|
||
}
|
||
})
|
||
})
|
||
})
|
||
</script>
|
||
</div>
|
||
|
||
<div class="enlarge-img" style="display: none;">
|
||
<div class="scrollbutton_01 smallImgUp disabled"></div>
|
||
<?php if($firstimage){ ?>
|
||
<img id="bigImg" src="<?php echo getImage($firstimage); ?>">
|
||
<div id="bigImg" src="<?php echo getImage($firstimage); ?>"></div>
|
||
<?php } ?>
|
||
<div class="scrollbutton_01 smallImgDown"></div>
|
||
<div class="close"><span class="icon-close"></div>
|
||
|
||
</div>
|
||
|
||
|
||
<div class="alert" style="display: none">
|
||
<div class="alert_white"></div>
|
||
</div>
|
||
<!--详情新增样式-->
|
||
|
||
<script>
|
||
$(function () {
|
||
|
||
var obj = new commentMove('.tm-m-photos', '.tm-m-photo-viewer');
|
||
obj.init()
|
||
})
|
||
</script>
|
||
|
||
<script type="text/javascript">
|
||
|
||
window.onload = function () {
|
||
var oStar = document.getElementById("star");
|
||
|
||
var aLi = oStar.getElementsByTagName("li");
|
||
|
||
var oUl = oStar.getElementsByTagName("ul")[0];
|
||
|
||
var oSpan = oStar.getElementsByTagName("span")[1];
|
||
|
||
var oP = oStar.getElementsByTagName("p")[0];
|
||
|
||
var i = iScore = iStar = 0;
|
||
|
||
for (i = 1; i <= aLi.length; i++) {
|
||
aLi[i - 1].index = i;
|
||
//鼠标移过显示分数
|
||
aLi[i - 1].onmouseover = function () {
|
||
fnPoint(this.index);
|
||
//浮动层显示
|
||
oP.style.display = "block";
|
||
//计算浮动层位置
|
||
oP.style.left = oUl.offsetLeft + this.index * this.offsetWidth - 104 + "px";
|
||
//匹配浮动层文字内容
|
||
oP.innerHTML = "<em><b>" + this.index + "</b> 分 " + aMsg[this.index - 1].match(/(.+)\|/)[1] + "</em>" + aMsg[this.index - 1].match(/\|(.+)/)[1]
|
||
};
|
||
//鼠标离开后恢复上次评分
|
||
|
||
aLi[i - 1].onmouseout = function () {
|
||
fnPoint();
|
||
//关闭浮动层
|
||
oP.style.display = "none"
|
||
};
|
||
//点击后进行评分处理
|
||
aLi[i - 1].onclick = function () {
|
||
iStar = this.index;
|
||
oP.style.display = "none";
|
||
oSpan.innerHTML = "<strong>" + (this.index) + " 分</strong> (" + aMsg[this.index - 1].match(/\|(.+)/)[1] + ")"
|
||
}
|
||
}
|
||
|
||
//评分处理
|
||
function fnPoint(iArg) {
|
||
//分数赋值
|
||
iScore = iArg || iStar;
|
||
for (i = 0; i < aLi.length; i++) aLi[i].className = i < iScore ? "on" : "";
|
||
}
|
||
};
|
||
</script>
|
||
<script>
|
||
/*图片放大效果*/
|
||
$(".bigImg").click(function () {
|
||
$(".enlarge-img").show();
|
||
});
|
||
$(".enlarge-img .close").click(function () {
|
||
$(".enlarge-img").hide();
|
||
});
|
||
</script>
|
||
|
||
<!-- bottom s -->
|
||
{include file="include/bottom" /}
|
||
<!-- bottom e -->
|
||
</body>
|
||
</html>
|
||
|
||
<script type="text/javascript">
|
||
|
||
function add_click(content_id, type, url, ext='') {
|
||
var country_code = ext == 'de' ? 'DE' : 'US';
|
||
console.log(country_code);
|
||
$.ajax({
|
||
url: '/us/clicksum/add_click',
|
||
data: {
|
||
content_id: content_id,
|
||
type: type,
|
||
customer_id: 0,
|
||
country_code: country_code,
|
||
url:url
|
||
},
|
||
type: 'post',
|
||
dataType: 'json',
|
||
success: function(res) {
|
||
|
||
}
|
||
})
|
||
}
|
||
|
||
var curr_url = '/product/detail/<?php echo $detail['id']; ?>.html';
|
||
var is_collection = <?php echo $detail['is_collection']; ?>;
|
||
var flag = 1; // 限制调用收藏接口 1可用 0不可用
|
||
function toggle_colleciton()
|
||
{
|
||
if (flag == 0)
|
||
{
|
||
return;
|
||
}
|
||
is_collection = Number(!is_collection);
|
||
flag = 0;
|
||
if (is_collection)
|
||
{
|
||
var url = '/index/collection/add_collection';
|
||
}
|
||
else
|
||
{
|
||
var url = '/index/collection/cancel_collection';
|
||
}
|
||
|
||
var coll_id = <?php echo $detail['id']; ?>;
|
||
var data = {
|
||
type: 1,
|
||
coll_id: coll_id,
|
||
curr_url: curr_url
|
||
};
|
||
|
||
$.ajax({
|
||
url: url,
|
||
type: 'post',
|
||
dataType: 'json',
|
||
data : data,
|
||
success: function(res) {
|
||
if (res.code == -1000)
|
||
{
|
||
$('.alert').show();
|
||
$('.alert_white').html('Please login first').delay(1000).fadeOut();
|
||
setTimeout(function() {
|
||
location.href = '/us/login.html?url=' + res.data.url;
|
||
}, 800);
|
||
}
|
||
}
|
||
});
|
||
|
||
setTimeout(function() {
|
||
flag = 1;
|
||
}, 2000);
|
||
}
|
||
|
||
|
||
</script>
|
||
<!--/*弹出框*/-->
|
||
<script>
|
||
$(function() {
|
||
$('.business-button,.busniess-joinus-btn').click(function() {
|
||
$(".marsk-container").show();
|
||
});
|
||
});
|
||
|
||
try {
|
||
k_win_ref = window.parent.document.referrer;
|
||
} catch(e) {
|
||
k_win_ref = '';
|
||
};
|
||
/*弹出框关闭*/
|
||
$(function() {
|
||
$('.business-close').click(function() {
|
||
$(".marsk-container").hide();
|
||
});
|
||
// 提交表单
|
||
$('.submit_btn').click(function(){
|
||
var companyName = $('#companyName').val();
|
||
var firstName = $('#firstname').val();
|
||
var lastName = $('#lastname').val();
|
||
var email = $('#email').val();
|
||
var phone = $('#phone').val();
|
||
var country = $('#country').val();
|
||
var industry = $('#industry').val();
|
||
var inquiry = $('#inquiry').val();
|
||
|
||
|
||
// 输入框失去焦点
|
||
|
||
if(email == ''){
|
||
$('#email').addClass('error');
|
||
$('#email').next('span').removeClass('hide');
|
||
}
|
||
else{
|
||
if (/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(email) == false) {
|
||
$('#email').addClass('error');
|
||
$('#email').next('span').removeClass('hide');
|
||
return false;
|
||
}
|
||
else{
|
||
$('#email').removeClass('error');
|
||
$('#email').next('span').addClass('hide');
|
||
}
|
||
}
|
||
if(companyName == ''){
|
||
$('#companyName').addClass('error');
|
||
$('#companyName').next('span').removeClass('hide');
|
||
}else{
|
||
$('#companyName').removeClass('error');
|
||
$('#companyName').next('span').addClass('hide');
|
||
}
|
||
|
||
if(firstName == ''){
|
||
$('#firstname').addClass('error');
|
||
$('#firstname').next('span').removeClass('hide');
|
||
|
||
}else{
|
||
$('#firstname').removeClass('error');
|
||
$('#firstname').next('span').addClass('hide');
|
||
}
|
||
if(lastName == ''){
|
||
$('#lastname').addClass('error');
|
||
$('#lastname').next('span').removeClass('hide');
|
||
|
||
}else{
|
||
$('#lastname').removeClass('error');
|
||
$('#lastname').next('span').addClass('hide');
|
||
}
|
||
if(phone == ''){
|
||
$('#phone').addClass('error');
|
||
$('#phone').next('span').removeClass('hide');
|
||
|
||
}else{
|
||
$('#phone').removeClass('error');
|
||
$('#phone').next('span').addClass('hide');
|
||
}
|
||
if(industry == ''){
|
||
$('#industry').addClass('error');
|
||
$('#industry').next('span').removeClass('hide');
|
||
|
||
}else{
|
||
$('#industry').addClass('error');
|
||
$('#industry').next('span').addClass('hide');
|
||
}
|
||
if(inquiry == ''){
|
||
$('#inquiry').addClass('error');
|
||
$('#inquiry').next('span').removeClass('hide');
|
||
|
||
}else{
|
||
$('#inquiry').removeClass('error');
|
||
$('#inquiry').next('span').addClass('hide');
|
||
}
|
||
if(country == ''){
|
||
$('#country').addClass('error');
|
||
$('#country').next('span').removeClass('hide');
|
||
}else{
|
||
$('#country').removeClass('error');
|
||
$('#country').next('span').addClass('hide');
|
||
}
|
||
|
||
|
||
|
||
var spu = '<?php echo $detail['brand_id']; ?>';
|
||
|
||
//点击创建申请块
|
||
if (companyName && firstName && lastName && email && phone && country && industry && inquiry) {
|
||
var type = 'Agent';
|
||
|
||
$.ajax({
|
||
type: "POST",
|
||
url: "/us/inquiry/create",
|
||
data: {
|
||
'company': companyName,
|
||
'email': email,
|
||
'country': country,
|
||
'name': firstName,
|
||
'last_name': lastName,
|
||
'phone': phone,
|
||
'industry': industry,
|
||
'inquiry': inquiry,
|
||
'spu': spu,
|
||
'refer': k_win_ref
|
||
},
|
||
dataType: "json",
|
||
success: function(data) {
|
||
if (data.code == 200) {
|
||
alert("Inquiry Add Success!");
|
||
location.href = '/us/Group/submission.html';
|
||
|
||
$(".marsk-container").hide();
|
||
|
||
$("input[ type='text']").val('');
|
||
$('#country').val('');
|
||
$('#inquiry').val('');
|
||
$('#industry').val('');
|
||
|
||
|
||
|
||
} else {
|
||
if (data.code == 403 || data.code == 201) {
|
||
alert(data.msg);
|
||
} else {
|
||
|
||
$('.email').addClass('error');
|
||
$('.email').next('span').removeClass('hide');
|
||
|
||
}
|
||
}
|
||
|
||
}
|
||
});
|
||
|
||
}
|
||
|
||
})
|
||
|
||
});
|
||
</script>
|