Ver Fonte

期刊可订阅期数

natasha há 10 meses atrás
pai
commit
e41f3dc8d3
1 ficheiros alterados com 3 adições e 10 exclusões
  1. 3 10
      src/views/bookStore/Subscribe.vue

+ 3 - 10
src/views/bookStore/Subscribe.vue

@@ -1013,24 +1013,17 @@ export default {
     },
     // 获取已发行期数
     handleIssueLength() {
+      this.totalLength = 0;
       let MethodName =
-        "/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
+        "/ShopServer/Client/ReservationQuery/GetCanReservationPeriodCount_Issue";
       let data = {
         goods_type: this.bookType === "baozhi" ? 2 : 4,
         study_phase: this.bookType === "baozhi" ? this.studyType : 1,
-        period_count:
-          this.orderTotalNumber !== 1000
-            ? this.orderTotalNumber
-            : this.customOrderNumberList.length,
-        is_custom_select_issue_no: "true",
       };
       getLogin(MethodName, data)
         .then((res) => {
           if (res.status === 1) {
-            this.totalLength = 0;
-            res.issue_no_school_year_list.forEach((item) => {
-              this.totalLength += item.issue_no_list.length;
-            });
+            this.totalLength = res.period_count_max;
             this.getInfo();
           }
         })