renew.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. {% load staticfiles %}
  2. <!DOCTYPE html>
  3. <html lang="en">
  4. <head>
  5. <meta charset="UTF-8" />
  6. <link rel="shortcut icon" href="{% static '/img/favicon.png' %}" type="image/x-icon">
  7. <link href="https://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap.css" rel="stylesheet">
  8. <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
  9. <link rel="stylesheet" href="{% static 'assetsDemo/css/fonts.googleapis.com.css' %}" />
  10. <link rel="stylesheet" href="{% static '/assetsDemo/css/ace.min.css' %}" class="ace-main-stylesheet" id="main-ace-style"
  11. />
  12. <link rel="stylesheet" href="{% static '/assetsDemo/css/ace-skins.min.css' %}">
  13. <link rel="stylesheet" href="{% static '/assetsDemo/css/ace-rtl.min.css' %}">
  14. <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
  15. <style type="text/css">
  16. body {
  17. overflow: hidden;
  18. background: #fff;
  19. }
  20. /* */
  21. .tipmsg{
  22. background: #ececec;
  23. padding: 2% 4%;
  24. margin-bottom: 30px;
  25. }
  26. .tipmsg h1{
  27. font-size: 22px;
  28. margin-bottom: 6px;
  29. }
  30. .tipmsg div{
  31. line-height: 30px;
  32. font-size: 16px;
  33. }
  34. /* */
  35. .payicon{
  36. width: 101px;
  37. padding: 0px 12px;
  38. height: 24px;
  39. }
  40. .pricebox{
  41. line-height: 29px;
  42. }
  43. .pricebox span{
  44. font-size: 20px;
  45. color: #2fb9fa;
  46. font-weight: bold;
  47. margin-right: 5px;
  48. }
  49. .btn, .btn-default{
  50. margin-right: 18px;
  51. }
  52. .form-group .btn.btn-active{
  53. border: 2px solid rgb(14, 172, 255)!important;
  54. box-shadow: 0 1px 8px 2px rgba(47,185,255,.1) !important;
  55. background: url(../static/img/choiceicon.png) no-repeat top right !important;
  56. background-size: 20px !important;
  57. }
  58. .emphasize{
  59. color: #dd1b1b;
  60. font-weight: bold;
  61. text-decoration: underline;
  62. font-size: 18px;
  63. }
  64. </style>
  65. </head>
  66. <body>
  67. <div class="content">
  68. <div class="">
  69. <div class="tipmsg">
  70. <h1>尊敬的用户您好!</h1>
  71. <div>您的账号将于<span class="emphasize">{{user_date}}</span>到期,若不及时缴费,<span class="emphasize">{{remaining_days}}</span>天后您将无法登陆此平台。为避免给您带来不便,请及时充值。</div>
  72. </div>
  73. <!-- <div class="renewmsg">
  74. <div class="form-horizontal">
  75. <div class="form-group">
  76. <label class="col-sm-1 control-label no-padding-right"> 充值时长: </label>
  77. <div class="col-sm-8 numDays">
  78. <!-- <input type="text" id="form-field-1" placeholder="Username" class="col-xs-10 col-sm-5">
  79. <button type="button" class="btn btn-white btn-default">90天</button>
  80. <button type="button" class="btn btn-white btn-default">180天</button>
  81. <button type="button" class="btn btn-white btn-default">365天</button>
  82. <button type="button" class="btn btn-white btn-default btn-active">730天</button>
  83. </div>
  84. </div>
  85. <div class="form-group">
  86. <label class="col-sm-1 control-label no-padding-right"> 开通方式: </label>
  87. <div class="col-sm-11">
  88. <button type="button" class="btn btn-white btn-default btn-active">
  89. <img class="payicon" src="{% static '/img/alipay.png' %}" alt="">
  90. </button>
  91. </div>
  92. </div>
  93. <div class="form-group">
  94. <label class="col-sm-1 control-label no-padding-right"> 应付金额: </label>
  95. <div class="col-sm-11">
  96. <div class="pricebox"><span id="totalprice">730</span>元</div>
  97. </div>
  98. </div>
  99. <div class="clearfix">
  100. <div class="col-md-offset-1">
  101. <button class="btn btn-info" type="button">
  102. <i class="ace-icon fa fa-check bigger-110"></i>
  103. 立即充值
  104. </button>
  105. </div>
  106. </div>
  107. </div>
  108. </div> -->
  109. </div>
  110. </div>
  111. <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
  112. <script src="{% static '/lib/layui/layui.all.js' %}"></script>
  113. <script type="text/javascript">
  114. $.ajaxSetup({
  115. data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
  116. });
  117. </script>
  118. <script >
  119. $(function(){
  120. $('.numDays').on('click','button',function(){
  121. $('.numDays button').removeClass('btn-active');
  122. $(this).addClass('btn-active');
  123. var moneyArr = [90,180,365,730];
  124. $('#totalprice').html(moneyArr[$(this).index()])
  125. console.log();
  126. })
  127. })
  128. </script>
  129. </body>
  130. </html>