浏览代码

专业版标识

zhangweicheng 5 年之前
父节点
当前提交
7fb78860eb
共有 4 个文件被更改,包括 10 次插入1 次删除
  1. 二进制
      web/building_saas/img/vip.png
  2. 1 0
      web/building_saas/main/js/views/sub_view.js
  3. 5 0
      web/common/html/header.html
  4. 4 1
      web/users/html/user-buy.html

二进制
web/building_saas/img/vip.png


+ 1 - 0
web/building_saas/main/js/views/sub_view.js

@@ -142,6 +142,7 @@ let subObj = {
         let tabID = "";
         if($('#qdzy').is(':visible')) tabID = "qdzy";
         if($('#qdjl').is(':visible')) tabID = "qdjl";
+        if(tabID == "") return;
         //总宽度
         let totalWidth = $('#subItems').width();
         //人材机和项目特征文本比例

+ 5 - 0
web/common/html/header.html

@@ -43,6 +43,11 @@
                     <a class="dropdown-item" href="/logout">退出登录</a>
                 </div>
             </li>
+            <% if (!versionName.includes('免费')) {%>
+              <li class="nav-item">
+                <a href="user/buy" target="_blank"><img src="/web/building_saas/img/vip.png" data-toggle="tooltip" data-placement="bottom" data-original-title="专业版用户"></a>
+              </li> 
+             <% } %> 
             <% if (action === 'index' && controller === 'main') {%>
             <li class="nav-item dropdown">
                 <a class="nav-link dropdown-toggle" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i class="fa fa-wrench" data-placement="bottom"></i> 工具</a>

+ 4 - 1
web/users/html/user-buy.html

@@ -76,7 +76,10 @@
                             <div class="col-sm-4 mb-5">
                                 <div class="card pro-version">
                                   <div class=" card-body">
-                                    <h3 class="card-title text-white">专业版</h3>
+                                    <h3 class="card-title text-white">
+                                      <img src="/web/building_saas/img/vip.png">
+                                      专业版
+                                    </h3>
                                       <p class="card-text">
                                       <!--<ul class="pl-3">
                                           <li>创建单位工程无限制</li>