andre 4 年之前
父节点
当前提交
0f14914e26
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      js/scripts.js

+ 4 - 3
js/scripts.js

@@ -3820,7 +3820,8 @@ function updateProductTotalMessage(billingcycle) {
     switch(billingcycle) {
     switch(billingcycle) {
         case 'monthly':
         case 'monthly':
             console.log(billingcycle);
             console.log(billingcycle);
-            console.log(days);
+            daysM = daysIntoYear(new Date(now.getFullYear(), now.getMonth() + 1, 0)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            console.log(daysM);
             jQuery('#producttotalmessage').html('Monatlich');
             jQuery('#producttotalmessage').html('Monatlich');
             break;
             break;
         case 'quarterly':
         case 'quarterly':
@@ -3833,8 +3834,8 @@ function updateProductTotalMessage(billingcycle) {
             break;
             break;
         case 'annually':
         case 'annually':
             console.log(billingcycle);
             console.log(billingcycle);
-            days = daysIntoYear(new Date(now.getFullYear(), 12, 31)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
-            console.log(days);
+            daysY = daysIntoYear(new Date(now.getFullYear(), 12, 31)) - daysIntoYear(new Date(now.getFullYear(), now.getMonth(), now.getDate()));
+            console.log(daysY);
             jQuery('#producttotalmessage').html('Jährlich');
             jQuery('#producttotalmessage').html('Jährlich');
             break;
             break;
     }
     }