Browse Source

打印次数提示

natasha 3 days ago
parent
commit
3daebf4349

+ 4 - 2
src/views/bookShelf/articleDetail.vue

@@ -1642,14 +1642,16 @@ export default {
                 "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
               getLogin(MethodName, {
                 goods_type: 21,
-                date_range: "TODAY",
+                date_range: "ALL",
                 article_id: this.articleId,
               }).then((res) => {
                 if (res.status === 1) {
                   if (res.print_count < 5) {
                     this.printFlag = true;
                   } else {
-                    this.$message.warning("今日打印次数已达上限");
+                    this.$message.warning(
+                      "每篇文章打印+下载次数共5次,现已达上限。"
+                    );
                   }
                 }
               });

+ 6 - 6
src/views/bookShelf/components/PrintModel.vue

@@ -1318,7 +1318,7 @@ export default {
         "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
       getLogin(MethodName, {
         goods_type: 21,
-        date_range: "TODAY",
+        date_range: "ALL",
         article_id: this.articleId,
       }).then((res) => {
         if (res.status === 1) {
@@ -1349,7 +1349,7 @@ export default {
               });
             });
           } else {
-            this.$message.warning("今日打印次数已达上限");
+            this.$message.warning("每篇文章打印+下载次数共5次,现已达上限。");
           }
         }
       });
@@ -1380,7 +1380,7 @@ export default {
         "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
       getLogin(MethodName, {
         goods_type: 21,
-        date_range: "TODAY",
+        date_range: "ALL",
         article_id: this.articleId,
       }).then((res) => {
         if (res.status === 1) {
@@ -1413,7 +1413,7 @@ export default {
               }, 100);
             });
           } else {
-            this.$message.warning("今日下载次数已达上限");
+            this.$message.warning("每篇文章打印+下载次数共5次,现已达上限。");
           }
         }
       });
@@ -1758,7 +1758,7 @@ export default {
         "/ShopServer/Client/PrintRecordManager/GetMyPrintCount_Article";
       getLogin(MethodName, {
         goods_type: 21,
-        date_range: "TODAY",
+        date_range: "ALL",
         article_id: this.articleId,
       }).then((res) => {
         if (res.status === 1) {
@@ -1796,7 +1796,7 @@ export default {
             this.loading = false;
             this.printManyFlag = false;
             this.isPrintMore = false;
-            this.$message.warning("今日打印次数已达上限");
+            this.$message.warning("每篇文章打印+下载次数共5次,现已达上限。");
           }
         }
       });