Prechádzať zdrojové kódy

修复调差隐藏bug

ellisran 1 rok pred
rodič
commit
66e6607ca4

+ 0 - 1
app/controller/wap_controller.js

@@ -798,7 +798,6 @@ module.exports = app => {
         async msg(ctx) {
             try {
                 const msgId = parseInt(ctx.params.id) || 0;
-                console.log(msgId);
                 if (!msgId) {
                     throw '参数有误';
                 }

+ 2 - 2
app/public/js/material.js

@@ -2140,7 +2140,7 @@ $(document).ready(() => {
     if (getLocalCache('material_month_' + materialID) && !isStageSelf) {
         const tab = $('.right-nav a[content="#month-tab"]'), tabPanel = $(tab.attr('content'));
         $('a', '.side-menu').removeClass('active');
-        $('.tab-content .tab-pane').removeClass('active');
+        $('#right-view .tab-content .tab-pane').removeClass('active');
         tab.addClass('active');
         tabPanel.addClass('active');
         $('#right-view').width(getLocalCache('material_month_' + materialID) + '%');
@@ -2174,7 +2174,7 @@ $(document).ready(() => {
         $('.sjs-material').height($('.sjs-height-1').height() - getObjHeight($('.sjs-bar')));
     }
     function getObjHeight(select) {
-        return select.length > 0 ? select.height() : 0;
+        return select.length > 0 ? select.outerHeight() : 0;
     }
 
     function formatDate(numb, format) {