<!DOCTYPE html>
<html>
 <head>
  <meta charset="utf-8" />
  <title>华为智能门锁 标准版 - 华为手机钱包钥匙开锁,HarmonyOS分布式猫眼,8800mAh超大容量电池</title>
  <link rel="stylesheet" href="css/main.css">
  <style>
  </style>
  <script src="js/jQuery_file.js"></script>
  <script type="text/javascript">
  </script>
 </head>
 <body>
  <div id="nav_panel">
   <div class="nav"><img src="img/top.png" alt=""></div>
  </div>
  <div class="position">
   < a href="" title="首页">首页</ a>
   &gt;
   < a href="" title="智能家装">智能家装</ a>
   &gt;
   < a href="" title="智能门锁">智能门锁</ a>
   &gt;
   <a id="product_title" href="" title="智能门锁 标准版">智能门锁 标准版</ a>   
  </div>
  <div class="main">
   <div id="photo_pannel">
    <div class="photo"><img src="img/a01.png" alt=""></div>
    <div class="photo_list">
     <div class="prev tab"><img src="img/disabled-prev.png" alt=""></div>
     <div id="scroll">
      <ul id="image_list">
       <li><img src="img/a01.png" alt=""></li>
       <li><img src="img/a02.png" alt=""></li>
       <li><img src="img/a03.png" alt=""></li>
       <li><img src="img/a04.png" alt=""></li>
       <li><img src="img/a05.png" alt=""></li>
       <li><img src="img/a06.png" alt=""></li>
       <li><img src="img/a07.png" alt=""></li>
       <li><img src="img/a08.png" alt=""></li>
       <li><img src="img/a09.png" alt=""></li>
       <li><img src="img/a10.png" alt=""></li>
       <li><img src="img/a11.png" alt=""></li>
       <li><img src="img/a12.png" alt=""></li>
      </ul>
     </div>
     <div class="next tab"><img src="img/hover-next.png" alt=""></div>
    </div>
   </div>
   <div id="property_pannel">
    <div class="title">华为智能门锁 标准版</div>
    <div class="desc">AI指纹锁,华为手机钱包钥匙开锁,HarmonyOS分布式猫眼,8800mAh超大容量电池</div>
    <div class="price">¥<span>2799</span></div>
    <div class="hot">智能门锁系列:<span>拼团最高省500</span><div>&gt;</div></div>
    <div class="color choose_outer" id="color_panel">
     <div class="title">颜色</div>
     <div class="choose">
      <div class="item black">星际黑</div>
      <div class="item gold selected">鎏光金</div>
     </div>
    </div>
    <div class="type choose_outer" id="version_panel">
     <div class="title">版本</div>
     <div class="choose">
      <div class="item">Pro 版<br>3D人脸识别+可视猫眼+指纹解锁</div>
      <div class="item">标准版<br>可视猫眼+指纹解锁</div>
     </div>
    </div>
    <div class="service choose_outer">
     <div class="title">保障服务</div>
     <div class="desc">已有590万位用户加入华为官方保障服务</div>
    </div>
    <div id="order_panel">
     <div class="count">
      <div class="count_op" id="count_minus">
  <img src="img/minus.png" alt=""></div>
  <input type="text" name="" id="product_count" value="1">
       <div class="count_op" id="count_add">
       <img src="img/add.png" alt="">
       </div></div>
     <button class="add">加入购物车</button>
     <button class="buy">立刻购买</button>
    </div>
   </div>
  </div>
 </body>
</html>
<script>
var imageList = document.getElementById("image_list");
var prevButton = document.querySelector(".prev");
var nextButton = document.querySelector(".next");
var currentIndex = 0;
<p>prevButton.addEventListener(&quot;click&quot;, function() {
if (currentIndex &gt; 0) {
currentIndex -= 4;
imageList.style.transform = &quot;translateX(-&quot; + currentIndex * 100 + &quot;%)&quot;;
nextButton.disabled = false;
}
if (currentIndex &lt;= 0) {
prevButton.disabled = true;
}
});</p>
<p>nextButton.addEventListener(&quot;click&quot;, function() {
if (currentIndex &lt; imageList.children.length - 4) {
currentIndex += 4;
imageList.style.transform = &quot;translateX(-&quot; + currentIndex * 100 + &quot;%)&quot;;
prevButton.disabled = false;
}
if (currentIndex &gt;= imageList.children.length - 4) {
nextButton.disabled = true;
}
});
</script></p>
华为智能门锁 标准版 - 华为手机钱包钥匙开锁,HarmonyOS分布式猫眼,8800mAh超大容量电池

原文地址: https://www.cveoy.top/t/topic/pCED 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录