product.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. {include file="layout/header" /}
  2. <!-- banner -->
  3. <div class="product-banner">
  4. <div class="container">
  5. <ul class="rslides">
  6. <li>
  7. <div class="slider-info" style="text-align: left !important; margin-top: 7%" >
  8. <p style="font-size: 2.3vw; text-align: center; line-height:2px">
  9. 足球数据
  10. </p>
  11. <p style="font-size: 1vw; text-align: center; margin-bottom:3%">
  12. football data
  13. </p>
  14. <!--<div class="product-banner-button">
  15. <button type="button" style="border:1px solid rgb(91, 120, 249); background-color: rgb(91, 120, 249)">
  16. 免费使用
  17. </button>
  18. <button type="button" style = "background-color: transparent; border: 1px solid ;">
  19. 购买咨询
  20. </button>
  21. </div>-->
  22. </div>
  23. </li>
  24. </ul>
  25. </div>
  26. </div>
  27. <section class="wthree-row" id="pricing">
  28. <input style="display: none" id="id" value="{$id}">
  29. <div class="container">
  30. <div class="row pb-5">
  31. <div class="col-lg-2 col-md-6 text-center pb-0 pt-3 px-3 agile-pricegrid">
  32. <ul class="list-group-flush">
  33. <li class="list-group-item" style="font-size: 16px; text-align: right;">产品与服务</li>
  34. {volist name="fatherProduct" id="value"}
  35. <li onclick="showCurrent('{$value.product_id}')" id="li-{$value.product_id}" class="list-group-item product-group">{$value.product_name}</li>
  36. {/volist}
  37. </ul>
  38. </div>
  39. <div class="col-lg-10 col-md-6 text-center pb-0 pt-3 px-3 agile-pricegrid">
  40. {volist name="product" id="value"}
  41. <div style="display: flex;">
  42. <div class="col-lg-5 col-md-6" style="text-align: left">
  43. <div style="font-size: 16px; height: 40px; border-bottom: 2px solid #777;">
  44. {$value.product_name}
  45. </div>
  46. <div style="margin-top: 10px; height: 120px; font-size: 14px; color: #3e3e3e;">
  47. {$value.product_content}
  48. </div>
  49. <div style="text-align: right; margin-bottom: 50px; color: #3e3e3e;">
  50. <span style="cursor:pointer;" onclick="goInfo('{$value.product_id}')">查看详情</span>
  51. </div>
  52. </div>
  53. <div class="col-lg-7 col-md-6">
  54. <img src="{$Think.UPLOADS_ROOT}{$value.product_img}" style="width: 550px">
  55. </div>
  56. </div>
  57. {/volist}
  58. </div>
  59. </div>
  60. </div>
  61. </section>
  62. <script>
  63. const myHost = "http://" + window.location.host;
  64. let current = $("#id").val();
  65. $("#li-"+current).attr("style","background: #E6F5FF")
  66. function showCurrent(id) {
  67. window.location.href = myHost + "/home/product/product.html?id=" + id;
  68. }
  69. function goInfo(id) {
  70. window.location.href = myHost + "/home/product/details.html?id=" + id;
  71. }
  72. layui.use('laydate', function(){
  73. var laydate = layui.laydate;
  74. //执行一个laydate实例
  75. laydate.render({
  76. elem: '#creatTime' //指定元素
  77. });
  78. laydate.render({
  79. elem:'#timeRang',
  80. range:true,
  81. format: 'yyyy/MM/dd',
  82. done: function(value, date){
  83. /* 时间选择完成后的回调 */
  84. }
  85. })
  86. });
  87. </script>
  88. {include file="layout/footer" /}