| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- {% load staticfiles %}
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <link rel="shortcut icon" href="{% static '/img/favicon.png' %}" type="image/x-icon">
- <link href="https://cdn.bootcss.com/bootstrap/3.1.1/css/bootstrap.css" rel="stylesheet">
- <link rel="stylesheet" href="https://cdn.bootcss.com/font-awesome/4.7.0/css/font-awesome.css">
- <link rel="stylesheet" href="{% static 'assetsDemo/css/fonts.googleapis.com.css' %}" />
- <link rel="stylesheet" href="{% static '/assetsDemo/css/ace.min.css' %}" class="ace-main-stylesheet" id="main-ace-style"
- />
- <link rel="stylesheet" href="{% static '/assetsDemo/css/ace-skins.min.css' %}">
- <link rel="stylesheet" href="{% static '/assetsDemo/css/ace-rtl.min.css' %}">
- <link rel="stylesheet" href="{% static '/lib/layui/css/layui.css' %}">
- <style type="text/css">
- body {
- overflow: hidden;
- background: #fff;
- }
- /* */
- .tipmsg{
- background: #ececec;
- padding: 2% 4%;
- margin-bottom: 30px;
- }
- .tipmsg h1{
- font-size: 22px;
- margin-bottom: 6px;
- }
- .tipmsg div{
- line-height: 30px;
- font-size: 16px;
- }
- /* */
- .payicon{
- width: 101px;
- padding: 0px 12px;
- height: 24px;
- }
- .pricebox{
- line-height: 29px;
- }
- .pricebox span{
- font-size: 20px;
- color: #2fb9fa;
- font-weight: bold;
- margin-right: 5px;
- }
- .btn, .btn-default{
- margin-right: 18px;
- }
- .form-group .btn.btn-active{
- border: 2px solid rgb(14, 172, 255)!important;
- box-shadow: 0 1px 8px 2px rgba(47,185,255,.1) !important;
- background: url(../static/img/choiceicon.png) no-repeat top right !important;
- background-size: 20px !important;
- }
- .emphasize{
- color: #dd1b1b;
- font-weight: bold;
- text-decoration: underline;
- font-size: 18px;
- }
- </style>
- </head>
- <body>
- <div class="content">
- <div class="">
- <div class="tipmsg">
- <h1>尊敬的用户您好!</h1>
- <div>您的账号将于<span class="emphasize">{{user_date}}</span>到期,若不及时缴费,<span class="emphasize">{{remaining_days}}</span>天后您将无法登陆此平台。为避免给您带来不便,请及时充值。</div>
- </div>
- <!-- <div class="renewmsg">
- <div class="form-horizontal">
- <div class="form-group">
- <label class="col-sm-1 control-label no-padding-right"> 充值时长: </label>
- <div class="col-sm-8 numDays">
- <!-- <input type="text" id="form-field-1" placeholder="Username" class="col-xs-10 col-sm-5">
- <button type="button" class="btn btn-white btn-default">90天</button>
- <button type="button" class="btn btn-white btn-default">180天</button>
- <button type="button" class="btn btn-white btn-default">365天</button>
- <button type="button" class="btn btn-white btn-default btn-active">730天</button>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-1 control-label no-padding-right"> 开通方式: </label>
- <div class="col-sm-11">
- <button type="button" class="btn btn-white btn-default btn-active">
- <img class="payicon" src="{% static '/img/alipay.png' %}" alt="">
- </button>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-1 control-label no-padding-right"> 应付金额: </label>
- <div class="col-sm-11">
- <div class="pricebox"><span id="totalprice">730</span>元</div>
- </div>
- </div>
- <div class="clearfix">
- <div class="col-md-offset-1">
- <button class="btn btn-info" type="button">
- <i class="ace-icon fa fa-check bigger-110"></i>
- 立即充值
- </button>
- </div>
- </div>
- </div>
- </div> -->
- </div>
- </div>
- <script src="{% static '/lib/js/jquery-2.1.4.min.js' %}"></script>
- <script src="{% static '/lib/layui/layui.all.js' %}"></script>
- <script type="text/javascript">
- $.ajaxSetup({
- data: { csrfmiddlewaretoken: '{{ csrf_token }}' },
- });
- </script>
- <script >
- $(function(){
- $('.numDays').on('click','button',function(){
- $('.numDays button').removeClass('btn-active');
- $(this).addClass('btn-active');
- var moneyArr = [90,180,365,730];
- $('#totalprice').html(moneyArr[$(this).index()])
- console.log();
- })
- })
- </script>
- </body>
- </html>
|