exchange_index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {layout name="common/layout" /}
  2. <style>
  3. .bg-exchange {
  4. background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(https://images.unsplash.com/photo-1513519245088-0e12902e5a38?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1500&q=80);
  5. background-size: cover;
  6. background-attachment: fixed;
  7. background-position: center;
  8. width: 100%;
  9. height: 500px;
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. }
  14. .bg-exchange .content h1 {
  15. text-align: center;
  16. font-size: 45px;
  17. color: #fff;
  18. }
  19. .bg-exchange .title {
  20. font-size: 22px;
  21. color: #bbb;
  22. padding: 15px 0;
  23. }
  24. .product-list .product-grid {
  25. background: none;
  26. }
  27. .product-item .item-detail {
  28. display: flex;
  29. justify-content: space-between;
  30. text-align: center;
  31. }
  32. .product-item .item-detail .text-grey {
  33. color: #a5a5a5;
  34. font-size: 15px;
  35. }
  36. .product-item .item-detail div {
  37. width: calc(100% / 3);
  38. }
  39. </style>
  40. <div class="bg-exchange">
  41. <div class="content">
  42. <h1>积分兑换</h1>
  43. <div class="title">积分可免费兑换更多品质商品!</div>
  44. </div>
  45. </div>
  46. <div class="container" id="content-container">
  47. <div>
  48. <ul class="nav nav-tabs nav-filter" style="margin-bottom: 15px;">
  49. <li class="{:empty($type)?'active':''}">
  50. <a href="?">全部</a>
  51. </li>
  52. <li class="{:$type=='reality'?'active':''}">
  53. <a href="?type=reality">实物商品</a>
  54. </li>
  55. <li class="{:$type=='virtual'?'active':''}">
  56. <a href="?type=virtual">虚拟商品</a>
  57. </li>
  58. </ul>
  59. <div id="" class="tab-content">
  60. <div class="product-list">
  61. <div class="product-grid">
  62. {foreach name="exchangeList" item="item"}
  63. <div class="product-item text-center">
  64. <a class="card-item" href="{$item.url|htmlentities}">
  65. <div class="mb-3">
  66. <div class="embed-responsive embed-responsive-square img-zoom">
  67. <img src="{$item.image|htmlentities}" class="" alt="{$item.title|htmlentities}">
  68. </div>
  69. </div>
  70. <div class="item-info">
  71. <div class="item-title">{$item.title|htmlentities}</div>
  72. <div class="item-detail text-danger">
  73. <div>
  74. <p>{$item.score|htmlentities}</p>
  75. <p class="text-grey">积分</p>
  76. </div>
  77. <div>
  78. <p>{$item.sales|htmlentities}</p>
  79. <p class="text-grey">已兑换</p>
  80. </div>
  81. <div>
  82. <p>{:$item.stocks>0?'充足':'不足'}</p>
  83. <p class="text-grey">库存</p>
  84. </div>
  85. </div>
  86. </div>
  87. </a>
  88. </div>
  89. {/foreach}
  90. </div>
  91. <div class="clearfix"></div>
  92. </div>
  93. {if $exchangeList->isEmpty()}
  94. <div class="text-center">暂无相关信息</div>
  95. {/if}
  96. <div class="pager">
  97. <ul class="pagination">
  98. {$exchangeList->render()}
  99. </ul>
  100. </div>
  101. <div class="clearfix"></div>
  102. </div>
  103. </div>
  104. </div>