|
@@ -154,13 +154,15 @@
|
|
|
>
|
|
|
直播时间{{
|
|
|
$tools.timestampToTime(
|
|
|
- section.liveStartTime
|
|
|
+ section.liveStartTime,
|
|
|
+ false
|
|
|
)
|
|
|
}}
|
|
|
-
|
|
|
{{
|
|
|
$tools.timestampToTime(
|
|
|
- section.liveEndTime
|
|
|
+ section.liveEndTime,
|
|
|
+ false
|
|
|
)
|
|
|
}}
|
|
|
</div>
|
|
@@ -224,13 +226,15 @@
|
|
|
直播时间
|
|
|
{{
|
|
|
$tools.timestampToTime(
|
|
|
- section.liveStartTime
|
|
|
+ section.liveStartTime,
|
|
|
+ false
|
|
|
)
|
|
|
}}
|
|
|
-
|
|
|
{{
|
|
|
$tools.timestampToTime(
|
|
|
- section.liveEndTime
|
|
|
+ section.liveEndTime,
|
|
|
+ false
|
|
|
)
|
|
|
}}
|
|
|
</div>
|
|
@@ -262,13 +266,15 @@
|
|
|
>
|
|
|
直播时间{{
|
|
|
$tools.timestampToTime(
|
|
|
- item.liveStartTime
|
|
|
+ item.liveStartTime,
|
|
|
+ false
|
|
|
)
|
|
|
}}
|
|
|
-
|
|
|
{{
|
|
|
$tools.timestampToTime(
|
|
|
- item.liveEndTime
|
|
|
+ item.liveEndTime,
|
|
|
+ false
|
|
|
)
|
|
|
}}
|
|
|
</div>
|
|
@@ -1387,48 +1393,39 @@ export default {
|
|
|
},
|
|
|
buyNow() {
|
|
|
if (this.$tools.isLogin()) {
|
|
|
- if (this.goodsDetail.templateType) {
|
|
|
- this.selectClassModal = true;
|
|
|
- } else {
|
|
|
- let selectGoodsList = JSON.parse(JSON.stringify([this.goodsDetail]));
|
|
|
- selectGoodsList.forEach((item) => {
|
|
|
- if (item.goodsType == 1) {
|
|
|
- if (item.templateType == "class") {
|
|
|
- let goodsInputData = {
|
|
|
- type: "class",
|
|
|
- gradeId: this.gradeId,
|
|
|
- gradeJson: JSON.stringify(
|
|
|
- this.gradeList.find(
|
|
|
- (grade) => grade.gradeId == this.gradeId
|
|
|
- )
|
|
|
- ),
|
|
|
- };
|
|
|
- item.goodsInputData = goodsInputData;
|
|
|
- }
|
|
|
- if (item.templateType == "apply") {
|
|
|
- let goodsInputData = {
|
|
|
- type: "apply",
|
|
|
- applyAreasJson: JSON.stringify(this.applyAreas),
|
|
|
- examDateJson: JSON.stringify(
|
|
|
- this.examineList.find(
|
|
|
- (exam) => exam.educationId == this.educationId
|
|
|
- )
|
|
|
- ),
|
|
|
- };
|
|
|
- item.goodsInputData = goodsInputData;
|
|
|
- }
|
|
|
+ let selectGoodsList = JSON.parse(JSON.stringify([this.goodsDetail]));
|
|
|
+ selectGoodsList.forEach((item) => {
|
|
|
+ if (item.goodsType == 1) {
|
|
|
+ if (item.templateType == "class") {
|
|
|
+ let goodsInputData = {
|
|
|
+ type: "class",
|
|
|
+ gradeId: this.gradeId,
|
|
|
+ gradeJson: JSON.stringify(
|
|
|
+ this.gradeList.find((grade) => grade.gradeId == this.gradeId)
|
|
|
+ ),
|
|
|
+ };
|
|
|
+ item.goodsInputData = goodsInputData;
|
|
|
}
|
|
|
- });
|
|
|
+ if (item.templateType == "apply") {
|
|
|
+ let goodsInputData = {
|
|
|
+ type: "apply",
|
|
|
+ applyAreasJson: JSON.stringify(this.applyAreas),
|
|
|
+ examDateJson: JSON.stringify(
|
|
|
+ this.examineList.find(
|
|
|
+ (exam) => exam.educationId == this.educationId
|
|
|
+ )
|
|
|
+ ),
|
|
|
+ };
|
|
|
+ item.goodsInputData = goodsInputData;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
- localStorage.setItem(
|
|
|
- "checkGoodsList",
|
|
|
- JSON.stringify(selectGoodsList)
|
|
|
- );
|
|
|
+ localStorage.setItem("checkGoodsList", JSON.stringify(selectGoodsList));
|
|
|
|
|
|
- this.$router.push({
|
|
|
- path: "/payment",
|
|
|
- });
|
|
|
- }
|
|
|
+ this.$router.push({
|
|
|
+ path: "/payment",
|
|
|
+ });
|
|
|
} else {
|
|
|
this.setCurrentRouter(this.$route);
|
|
|
this.$router.push({
|