score.html 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>我的积分</title>
  6. <meta charset="UTF-8">
  7. <meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0" />
  8. <meta name="apple-mobile-web-app-capable" content="yes" />
  9. <meta name="apple-mobile-web-app-status-bar-style" content="black" />
  10. <link href="/static/css/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  11. <link rel="stylesheet" href="/static/css/common.css">
  12. <script src="http://lib.sinaapp.com/js/jquery/1.9.1/jquery-1.9.1.min.js"></script>
  13. <script src="/static/js/common.js"></script>
  14. <script src="/static/js/qrcode.js"></script>
  15. </head>
  16. <style>
  17. *{
  18. font-family: PingFang SC,Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,Microsoft Yahei,sans-serif;
  19. }
  20. .con-top{
  21. width: 100%;
  22. height: 7.5rem;
  23. background: #e35f50;
  24. text-align: center;
  25. color: white;
  26. font-size: 0.9rem;
  27. }
  28. .jifen{margin-top:0.3rem;font-size: 2rem;}
  29. .btop{
  30. height: 2.8rem;
  31. line-height: 2.8rem;
  32. border-bottom: 1px solid #eee;
  33. color: #666;
  34. }
  35. .bItem{
  36. height: 3rem;
  37. /*border-bottom: 1px solid #ccc;*/
  38. box-shadow: 0 1px 4px rgba(180,180,180, 0.1);
  39. margin-top: 0.5rem;
  40. background: white;
  41. }
  42. .bLeft{
  43. float:left;
  44. margin-left: 1rem;
  45. height: 100%;
  46. }
  47. .time{
  48. color: #ccc;
  49. font-size:0.7rem ;
  50. line-height: 0.3rem;
  51. }
  52. .title{
  53. font-size: 0.95rem;
  54. color: #666;
  55. line-height: 2rem;
  56. }
  57. .bRight{
  58. float:right;
  59. margin-right: 1rem;
  60. }
  61. .detail{
  62. font-size: 1.1rem;
  63. line-height: 3rem;
  64. }
  65. .add{
  66. color: #e35f50;
  67. }
  68. </style>
  69. <body style="background: #f5f5f5;">
  70. <div class="con-top">
  71. <p style="padding-top: 1.9rem;">当前积分</p>
  72. <p class="jifen">{$userInfo.usable_score}</p>
  73. </div>
  74. <div class="con-body">
  75. {if $userInfo.usable_score==0}
  76. <div class="btop">
  77. <span style="margin-left: 1rem;">积分记录</span>
  78. </div>
  79. {/if}
  80. <div class="bbody">
  81. {if $userInfo.total_score==0 && empty($orderInfo)}
  82. <img src="/static/imgs/noscore.jpg" style=" width: 8rem;
  83. margin-left: 9rem;
  84. margin-top: 6rem;" class="pay">
  85. {/if}
  86. {if !empty($orderInfo)}
  87. {foreach $orderInfo as $order}
  88. <div class="bItem">
  89. <div class="bLeft">
  90. <p class="title">购买商品</p>
  91. <p class="time">{$order['add_time']|date="Y-m-d",###} {$order['add_time']|date="H:i",###}</p>
  92. </div>
  93. <div class="bRight">
  94. <p class="detail add">+{$order.point}</p>
  95. </div>
  96. </div>
  97. {/foreach}
  98. {/if}
  99. </div>
  100. </div>
  101. </body>
  102. <script>
  103. </script>
  104. </html>