|
|
@@ -191,16 +191,6 @@
|
|
|
><svg-icon icon-class="icon-mark"></svg-icon
|
|
|
></el-button>
|
|
|
</el-tooltip>
|
|
|
- <el-tooltip
|
|
|
- placement="right"
|
|
|
- style="height: 32px"
|
|
|
- v-if="studyTips"
|
|
|
- >
|
|
|
- <div slot="content">{{ studyTips }}</div>
|
|
|
- <el-button class="tooltip-btn"
|
|
|
- ><svg-icon icon-class="icon-mark"></svg-icon
|
|
|
- ></el-button>
|
|
|
- </el-tooltip>
|
|
|
</ul>
|
|
|
<div
|
|
|
v-if="
|
|
|
@@ -282,9 +272,7 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <template
|
|
|
- v-if="orderTotalNumber !== -1 && orderTotalNumber !== -3"
|
|
|
- >
|
|
|
+ <template v-if="orderTotalNumber !== -1">
|
|
|
<template v-if="orderTotalNumber === -2">
|
|
|
<el-input-number
|
|
|
v-model="customizeNum"
|
|
|
@@ -397,19 +385,6 @@
|
|
|
<span class="old-price">¥30.20</span>
|
|
|
</div>
|
|
|
</div> -->
|
|
|
- <!-- <div class="info-item order-item" v-if="orderTotalNumber === -1">
|
|
|
- <label>自动升学</label>
|
|
|
- <el-radio-group v-model="is_auto" class="is-auto-box">
|
|
|
- <el-radio label="false">否</el-radio>
|
|
|
- <el-radio label="true">是</el-radio>
|
|
|
- </el-radio-group>
|
|
|
- <el-tooltip placement="right">
|
|
|
- <div slot="content">双刊、特辑、寒暑假合刊除外</div>
|
|
|
- <el-button class="tooltip-btn"
|
|
|
- ><svg-icon icon-class="icon-mark"></svg-icon
|
|
|
- ></el-button>
|
|
|
- </el-tooltip>
|
|
|
- </div> -->
|
|
|
</div>
|
|
|
<div class="btn-box">
|
|
|
<el-button
|
|
|
@@ -544,12 +519,54 @@ export default {
|
|
|
label: "年订阅(当月起订)",
|
|
|
value: -1,
|
|
|
},
|
|
|
+ ],
|
|
|
+ orderTable: [
|
|
|
{
|
|
|
- label: "年订阅(当月起订)",
|
|
|
- value: -3,
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: "915 期(合刊)",
|
|
|
+ date: "2023-06-26",
|
|
|
+ price: 12,
|
|
|
},
|
|
|
],
|
|
|
- orderTable: [],
|
|
|
customizeNum: 1, // 自定义期数
|
|
|
customPage: 0,
|
|
|
custonList: [
|
|
|
@@ -676,8 +693,6 @@ export default {
|
|
|
coverObj: [], // 存放选中期数的封面图
|
|
|
coverSrc: "", // 显示的封面图
|
|
|
coverNew: "", // 新的封面图
|
|
|
- is_auto: "true", // 自动升学
|
|
|
- studyTips: "",
|
|
|
};
|
|
|
},
|
|
|
//计算属性 类似于data概念
|
|
|
@@ -722,7 +737,7 @@ export default {
|
|
|
}
|
|
|
this.tips = "";
|
|
|
if (this.bookType === "baozhi") {
|
|
|
- if (this.orderTotalNumber !== -1 && this.orderTotalNumber !== -3) {
|
|
|
+ if (this.orderTotalNumber !== -1) {
|
|
|
let MethodName =
|
|
|
"/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
|
|
|
let data = {
|
|
|
@@ -732,8 +747,6 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
- : this.orderTotalNumber === -3
|
|
|
- ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
is_custom_select_issue_no:
|
|
|
@@ -788,8 +801,6 @@ export default {
|
|
|
(this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
- : this.orderTotalNumber === -3
|
|
|
- ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length)
|
|
|
) {
|
|
|
@@ -799,7 +810,7 @@ export default {
|
|
|
}
|
|
|
} else if (this.bookType === "huakan") {
|
|
|
this.loading = false;
|
|
|
- if (this.orderTotalNumber !== -1 && this.orderTotalNumber !== -3) {
|
|
|
+ if (this.orderTotalNumber !== -1) {
|
|
|
let MethodName =
|
|
|
"/ShopServer/Client/ReservationQuery/GetReservationInfo_Issue";
|
|
|
let data = {
|
|
|
@@ -809,8 +820,6 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
- : this.orderTotalNumber === -3
|
|
|
- ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
is_custom_select_issue_no:
|
|
|
@@ -896,8 +905,6 @@ export default {
|
|
|
(this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
- : this.orderTotalNumber === -3
|
|
|
- ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length)
|
|
|
) {
|
|
|
@@ -949,8 +956,6 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
- : this.orderTotalNumber === -3
|
|
|
- ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
is_custom_select_issue_no:
|
|
|
@@ -999,7 +1004,6 @@ export default {
|
|
|
this.handleCoverSrc();
|
|
|
this.handleOrderYearStartNO();
|
|
|
await this.handleIssueLength();
|
|
|
- this.handleBeginDate();
|
|
|
},
|
|
|
changeOrderNumber(item, flag) {
|
|
|
if (flag && item.value !== -2) return false;
|
|
|
@@ -1052,12 +1056,8 @@ export default {
|
|
|
this.orderTotalNumber !== 10000
|
|
|
? this.orderTotalNumber === -2
|
|
|
? this.customizeNum
|
|
|
- : this.orderTotalNumber === -3
|
|
|
- ? -1
|
|
|
: this.orderTotalNumber
|
|
|
: this.customOrderNumberList.length,
|
|
|
- is_auto_adjust_study_phase:
|
|
|
- this.orderTotalNumber === -3 ? "true" : "false",
|
|
|
is_custom_select_issue_no:
|
|
|
this.orderTotalNumber !== 10000 ? "false" : "true",
|
|
|
issue_no_list: this.customOrderNumberList,
|
|
|
@@ -1209,20 +1209,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 计算学段的下一学段与起始日期
|
|
|
- handleBeginDate() {
|
|
|
- let MethodName =
|
|
|
- "/ShopServer/Client/ReservationQuery/ComputeNextStudyPhaseAndBeginDate";
|
|
|
- let data = {
|
|
|
- study_phase: this.bookType === "baozhi" ? this.studyType : 1,
|
|
|
- };
|
|
|
- getLogin(MethodName, data)
|
|
|
- .then((res) => {
|
|
|
- this.studyTips =
|
|
|
- res.begin_date + "自动升学为" + res.next_study_phase_name + "内容";
|
|
|
- })
|
|
|
- .catch(() => {});
|
|
|
- },
|
|
|
// 计算年订阅起始期数
|
|
|
handleOrderYearStartNO() {
|
|
|
let MethodName =
|
|
|
@@ -1236,11 +1222,8 @@ 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 + "期起)(自动升学)";
|
|
|
} else {
|
|
|
this.orderList[5].label = "年订阅(当月起订)";
|
|
|
- this.orderList[5].label = "年订阅(当月起订)(自动升学)";
|
|
|
}
|
|
|
})
|
|
|
.catch(() => {});
|
|
|
@@ -1297,7 +1280,6 @@ export default {
|
|
|
this.handleOrder();
|
|
|
}
|
|
|
this.getTotalSales();
|
|
|
- this.handleBeginDate();
|
|
|
},
|
|
|
//生命周期 - 挂载完成(可以访问DOM元素)
|
|
|
mounted() {
|
|
|
@@ -1783,12 +1765,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-.is-auto-box {
|
|
|
- display: flex;
|
|
|
- :deep .el-radio {
|
|
|
- width: 40px !important;
|
|
|
- }
|
|
|
-}
|
|
|
</style>
|
|
|
<style lang="scss">
|
|
|
.bookItem {
|