<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta http-equiv="x-ua-compatible" content="ie=edge">
    <title>产品激活-大司空云计价</title>
    <link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/web/building_saas/css/main.css">
    <link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
    <link rel="shortcut icon" href="/web/building_saas/css/favicon.ico">
    <link rel="icon" type="image/gif" href="/web/building_saas/css/animated_favicon1.gif">
</head>

<body>
  <div class="header">
      <%include ../../common/html/header.html %>
  </div>
    <div class="main">
        <div class="poj-manage container-fluid">
            <div class="row">
                <div class="col-lg-2">
                    <div class="mt-3">
                        <ul class="nav nav-pills flex-column">
                            <li class="nav-item">
                                <a class="nav-link" href="/user/info">企业资料</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/user/safe">账号安全</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link active" href="/user/buy">产品激活</a>
                            </li>
                            <li class="nav-item">
                                <a class="nav-link" href="/user/preferences">登录设置</a>
                            </li>
                        </ul>
                    </div>
                </div>
                <div class="col-lg-10 side-content">
                    <div class="col-lg-12 my-3">
                        <!-- <legend>购买企业版</legend>
                        <div class="card card-body mb-5">
                            <h3 class="card-title">Smartcost 企业版</h3>
                            <p class="card-text">简介</p>
                            <a class="btn btn-primary" href="#">了解企业版</a>
                        </div> -->
                        <legend class=" mb-4">激活专业版</legend>
                        <div class="row">
                            <div class="col-sm-5 mb-5">
                                <div class="card free-version">
                                  <div class=" card-body">
                                    <h3 class="card-title">免费版 </h3>
                                      <!--<p class="card-text">-->
                                    <!--  <ul class="pl-3">
                                          <li>只可创建 50 个单位工程</li>
                                          <li>报表带水印</li>
                                      </ul>-->
                                      <!--</p>-->
                                  </div>
                                    <ul class="list-group list-group-flush">
                                        <% if (compilationList.length > 0) {%>
                                        <% compilationList.forEach(function(compilation) { %>
                                        <% if (compilation.is_release === true) { %>
                                        <li class="list-group-item d-flex justify-content-between">
                                            <%= compilation.name %>
                                            <a class="btn disabled btn-sm"><i class="fa fa-check"></i> 已激活</a>
                                        </li>
                                        <% } %>
                                        <% }) %>
                                        <% } %>
                                    </ul>
                                </div>
                            </div>
                            <div class="col-sm-5 mb-5">
                                <div class="card pro-version">
                                    <div class="card-body d-flex justify-content-between">
                                        <h3 class="card-title">专业版</h3>
                                        <div>
                                            <div class="d-inline-block mr-3">
                                                <img width="24" src="/web/building_saas/img/vip.png">购买
                                            </div>
                                            <div class="d-inline-block mr-3">
                                                <img width="24" src="/web/building_saas/img/vip2.png">借用
                                            </div>
                                            <div class="d-inline-block">
                                                <img width="24" src="/web/building_saas/img/vip3.png">赠送
                                            </div>
                                        </div>
                                      <!--<p class="card-text">-->
                                      <!--&lt;!&ndash;<ul class="pl-3">-->
                                          <!--<li>创建单位工程无限制</li>-->
                                          <!--<li>报表无水印</li>-->
                                      <!--</ul>&ndash;&gt;-->
                                      <!--</p>-->
                                  </div>
                                    <ul class="list-group list-group-flush">
                                        <% if (compilationList.length > 0) {%>
                                        <% compilationList.forEach(function(compilation) { %>
                                        <li class="list-group-item d-flex justify-content-between">
                                            <div class="col-6">
                                                <%= compilation.name %>
                                                <% if (compilation.lock !== undefined && compilation.lock === 1) { %>
                                                <img width="38" src="/web/building_saas/img/vip2.png" data-toggle="tooltip" data-placement="bottom" data-original-title="借用">
                                                <% } else if (compilation.lock !== undefined && compilation.lock === 2) { %>
                                                <img width="38" src="/web/building_saas/img/vip.png" data-toggle="tooltip" data-placement="bottom" data-original-title="购买">
                                                <% } else if (compilation.lock !== undefined && compilation.lock === 3) { %>
                                                <img width="38" src="/web/building_saas/img/vip3.png" data-toggle="tooltip" data-placement="bottom" data-original-title="赠送">
                                                <% } %>
                                            </div>
                                            <div class="ml-auto text-right">
                                                <% if (compilation.isUpgrade === undefined || compilation.isUpgrade !== true) { %>
                                                <a href="javascript:void(0);" class="btn btn-primary btn-sm getcategory" data-upgrade="<%= compilation.isUpgrade %>" data-category="<%= compilation.categoryID %>">立即激活</a>
                                                <% if (compilation.deadline !== undefined && compilation.deadline !== '') { %><span class="d-block text-danger">已到期：<%= compilation.deadline %></span><% } %>
                                                <% } else { %>
                                                <a href="javascript:void(0);" class="btn btn-outline-secondary btn-sm getcategory" data-title="<%= compilation.name %>" data-upgrade="<%= compilation.isUpgrade %>" data-category="<%= compilation.categoryID %>"><i class="fa fa-check"></i> 已激活</a>
                                                <% if (compilation.deadline !== undefined && compilation.deadline !== '') { %><span class="d-block text-muted">到期：<%= compilation.deadline %></span><% } %>
                                                <% } %>
                                            </div>
                                        </li>
                                        <% }) %>
                                        <% } %>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- JS. -->
  <script src="/web/building_saas/js/global.js"></script>
  <script src="/web/users/js/user.js"></script>
</body>
<script type="text/javascript">
    autoFlashHeight();
</script>

</html>
