Просмотр исходного кода

Merge branch 'master' of http://192.168.1.41:3000/SmartCost/YangHuCost

TonyKang 5 лет назад
Родитель
Сommit
d66438e9d8
2 измененных файлов с 16 добавлено и 0 удалено
  1. 8 0
      web/common/html/header.html
  2. 8 0
      web/users/html/user-buy.html

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

@@ -71,7 +71,11 @@
                     <a class="dropdown-item" href="http://doc.zhzdwd.com/docs/yanghuUpdate" target="_blank">升级说明</a>
                     <a class="dropdown-item" href="https://smartcost.com.cn/" target="_blank">纵横官网</a>
                     <!--  <a class="dropdown-item" href="#">动画教程</a>-->
+                    <% if (compilationName === '公路造价(2018)') { %>
+                    <a class="dropdown-item" href="https://smartcost.com.cn/contact2" target="_blank">联系客服</a>
+                    <% } else { %>
                     <a id="customerService" class="dropdown-item" href="javascript:void(0);">联系客服</a>
+                    <% } %>
                     <!--  <a class="dropdown-item" href="#">关于</a>-->
                 </div>
             </li>
@@ -115,7 +119,11 @@
                         <button class="dropdown-item dropdown-toggle" type="button" data-toggle="dropdown">帮助</button>
                         <div class="dropdown-menu">
                             <a class="dropdown-item" href="https://smartcost.com.cn/" target="_blank">纵横官网</a>
+                            <% if (compilationName === '公路造价(2018)') { %>
+                            <a class="dropdown-item" href="https://smartcost.com.cn/contact2" target="_blank">联系客服</a>
+                            <% } else { %>
                             <a id="customerService" class="dropdown-item" href="javascript:void(0);">联系客服</a>
+                            <% } %>
                         </div>
                     </div>
                 </div>

+ 8 - 0
web/users/html/user-buy.html

@@ -106,10 +106,18 @@
                                             </div>
                                             <div class="ml-auto text-right">
                                                 <% if (compilation.isUpgrade === undefined || compilation.isUpgrade !== true) { %>
+                                                <% if (compilationName === '公路造价(2018)') { %>
+                                                <a href="https://smartcost.com.cn/contact2" target="_blank" class="btn btn-primary btn-sm">立即激活</a>
+                                                <% } else { %>
                                                 <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 { %>
+                                                <% if (compilationName === '公路造价(2018)') { %>
+                                                <a href="https://smartcost.com.cn/contact2" target="_blank" class="btn btn-outline-secondary btn-sm"><i class="fa fa-check"></i> 已激活</a>
+                                                <% } 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>