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

画刊预定不显示升学按钮

natasha 3 недель назад
Родитель
Сommit
618a46fee5
1 измененных файлов с 16 добавлено и 8 удалено
  1. 16 8
      src/views/bookStore/Subscribe.vue

+ 16 - 8
src/views/bookStore/Subscribe.vue

@@ -1236,16 +1236,24 @@ export default {
               if (res.status === 1 && res.issue_no_start) {
                 this.orderList[5].label =
                   "年订阅(当月起订," + res.issue_no_start + "期起)";
-                this.orderList[6].label =
-                  "年订阅(当月起订," +
-                  res.issue_no_start +
-                  "期起)(" +
-                  this.studyTips +
-                  ")";
+                if (this.bookType === "huakan") {
+                  this.orderList = this.orderList.slice(0, 6);
+                } else if (this.bookType === "baozhi") {
+                  this.orderList[6].label =
+                    "年订阅(当月起订," +
+                    res.issue_no_start +
+                    "期起)(" +
+                    this.studyTips +
+                    ")";
+                }
               } else {
                 this.orderList[5].label = "年订阅(当月起订)";
-                this.orderList[5].label =
-                  "年订阅(当月起订)(" + this.studyTips + ")";
+                if (this.bookType === "huakan") {
+                  this.orderList = this.orderList.slice(0, 6);
+                } else if (this.bookType === "baozhi") {
+                  this.orderList[6].label =
+                    "年订阅(当月起订)(" + this.studyTips + ")";
+                }
               }
             })
             .catch(() => {});