Brak opisu

shareProduct.html 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
  6. <meta http-equiv="X-UA-Compatible" content="ie=edge">
  7. <title>分享商品</title>
  8. <link rel="stylesheet" href="./css/swiper.min.css">
  9. <link rel="stylesheet" href="../common/reset.css">
  10. <link rel="stylesheet" href="./css/shareProduct.css?v=1.0">
  11. </head>
  12. <body>
  13. <div class="swiper-container swiper-container-horizontal">
  14. <div class="swiper-wrapper" id="swiper-wrapper">
  15. </div>
  16. <div class="swiper-pagination"></div>
  17. </div>
  18. <div class="main">
  19. <div class="info">
  20. <div class="priceInfo">
  21. <span class="newPrice">¥18.8</span>
  22. <span class="oldPrice">原价169.9</span>
  23. <span class="volume">月销 89997</span>
  24. </div>
  25. <span class="collect">
  26. <img class="smallIcon" src="./img/collect.png" alt="">
  27. 收藏
  28. </span>
  29. </div>
  30. <div class="title">
  31. <img class="source" src="./img/tianmao.png" alt="">
  32. 秋冬季新款韩版拼接毛毛加厚内里棉服外套宽松秋冬季新款韩版拼接毛毛加厚内里棉服外套宽松秋冬季新款韩版拼接毛毛加厚内里棉服外套宽松
  33. </div>
  34. <div class="cheap">
  35. <div class="left">
  36. <div class="number">返 ¥99.99</div>
  37. <div class="word">自购和分享都有佣金 </div>
  38. </div>
  39. <div class="right">
  40. <div class="number">券 100元</div>
  41. <div class="word">数量有限 先到先领</div>
  42. </div>
  43. </div>
  44. <div class="shop">
  45. <img class="shopPicture" src="http://logo.taobao.com/shop-logo/4a/e4/TB1YJi9lNTpK1RjSZFMSuvG_VXa.jpg" alt="">
  46. <div class="other">
  47. <div class="shopName">塔鲁宝贝旗舰店</div>
  48. <div class="grade">
  49. <span>宝贝描述:4.8</span>
  50. <span>服务态度:4.8</span>
  51. <span>发货速度:4.8</span>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="button">
  56. <div class="share">
  57. <img class="fenxiang" src="./img/fenxiang.png" alt="">
  58. 分享赚钱
  59. </div>
  60. <div class="buy">
  61. <img class="quan" src="./img/quan.png" alt="">
  62. 领券购买
  63. </div>
  64. </div>
  65. </div>
  66. <script>
  67. document.documentElement.style.fontSize=100*(document.documentElement.clientWidth/375)+"px";
  68. window.onresize=function(){
  69. document.documentElement.style.fontSize=100*(document.documentElement.clientWidth/375)+"px";
  70. }
  71. </script>
  72. <script src="./js/swiper.min.js"></script>
  73. <script src="../common/jquery-2.1.0.js"></script>
  74. <script>
  75. var content=""
  76. // 将title替换
  77. // document.title=""
  78. var data=[0,1,2]
  79. for(var i in data) {
  80. content+=`
  81. <div class="swiper-slide">
  82. <img class="picture" src="https://img.alicdn.com/i3/654368921/TB2O4EGxmtYBeNjSspaXXaOOFXa_!!654368921.jpg" alt="">
  83. </div>
  84. `
  85. }
  86. window.onload=function(){
  87. $("#swiper-wrapper").html(content)
  88. swiperEvent()
  89. }
  90. function swiperEvent () {
  91. var mySwiper = new Swiper ('.swiper-container', {
  92. autoplay: 3000,
  93. loop: true,
  94. pagination: '.swiper-pagination',
  95. })
  96. }
  97. // 显示加载速度
  98. document.onreadystatechange = function () {//即在加载的过程中执行下面的代码
  99. console.log("加载中")
  100. if(document.readyState=="complete"){//complete加载完成
  101. console.log("完毕")
  102. $(".loading").fadeOut();
  103. }
  104. }
  105. </script>
  106. </body>
  107. </html>