details.html 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. {include file="layout/header" /}
  2. <style type="text/css">
  3. </style>
  4. <!-- banner -->
  5. <div class="product-details-banner">
  6. <div class="container">
  7. <div>
  8. <div class="">
  9. <ul class="rslides">
  10. <li>
  11. <div class="slider-info" style="text-align: left !important;">
  12. <p style="font-size: 2.8vw;">
  13. {$product.product_name}
  14. </p>
  15. <p style="font-size: 1vw;">
  16. {$product.product_content}
  17. </p>
  18. <div style="text-align: right">
  19. <button>立即选购</button>
  20. </div>
  21. </div>
  22. </li>
  23. </ul>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. <section class="wthree-row" id="pricing">
  29. <div class="container" style="font-size: 18px; font-weight: 800; margin-top: 50px;">
  30. 产品介绍
  31. </div>
  32. {volist name="productInfo" id="value"}
  33. <div>
  34. <div class="container" style="margin-top: 5px;">
  35. <img src="{$Think.HOME_SITE_ROOT}/images/infoData.png">
  36. {$value.productInfo_title}
  37. </div>
  38. <div class="container" style="margin-top: 5px;">
  39. {$value.productInfo_content}
  40. </div>
  41. <div class="container" style="margin-top: 20px; margin-bottom: 50px">
  42. <img src="{$Think.UPLOADS_ROOT}{$value.productInfo_img}" width="100%">
  43. </div>
  44. </div>
  45. {/volist}
  46. <div class="container" style="font-size: 18px; font-weight: 800; margin-top: 50px;">
  47. 产品价格
  48. </div>
  49. <div class="container" style="margin-top: 10px; margin-bottom: 50px;">
  50. <table class="gridtable">
  51. <tr>
  52. <td style="border-right: 0;">产品名称</td>
  53. <td style="border-right: 0; border-left: 0;">时间</td>
  54. <td style="border-right: 0; border-left: 0;">价格</td>
  55. <td style="border-left: 0;">选购</td>
  56. </tr>
  57. {volist name="renewal" id="value"}
  58. <tr>
  59. <td>{$value.renewal_name}</td>
  60. <td>{$value.renewal_name}</td>
  61. <td>
  62. <?php
  63. switch($value->renewal_id){
  64. case 1:
  65. echo $product->product_TypeOne;
  66. break;
  67. case 2:
  68. echo $product->product_TypeTwo;
  69. break;
  70. case 3:
  71. echo $product->product_TypeThree;
  72. break;
  73. case 4:
  74. echo $product->product_TypeFour;
  75. break;
  76. }
  77. ?>元
  78. </td>
  79. <td onclick="shopping('{$value.renewal_id}')" style="color: #0d93bf; cursor:pointer;">选购</td>
  80. </tr>
  81. {/volist}
  82. </table>
  83. </div>
  84. </section>
  85. <script>
  86. const myHost = "http://" + window.location.host;
  87. function shopping(id) {
  88. window.location.href = myHost + "/home/product/details.html?id=" + id;
  89. }
  90. </script>
  91. {include file="layout/footer" /}