|
|
@@ -1,17 +1,18 @@
|
|
|
<template>
|
|
|
<div id="rebuild-modal">
|
|
|
<el-dialog
|
|
|
- width="800px"
|
|
|
+ width="680px"
|
|
|
class="rebuild"
|
|
|
:visible.sync="showRebuildDetailModal"
|
|
|
:close-on-click-modal="false"
|
|
|
:close-on-press-escape="false"
|
|
|
+ append-to-body
|
|
|
:show-close="false"
|
|
|
>
|
|
|
<div class="rebuild__content">
|
|
|
- <div class="rebuild__close" @click="showRebuildDetailModal = false">
|
|
|
+ <!-- <div class="rebuild__close" @click="showRebuildDetailModal = false">
|
|
|
X
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
<div class="rebuild__header">审核详情</div>
|
|
|
<div class="rebuild__body">
|
|
|
<div class="content">
|
|
|
@@ -30,36 +31,12 @@
|
|
|
:key="index"
|
|
|
>
|
|
|
<div class="title">
|
|
|
- <span class="note" v-if="item.type == 0"> 测试 </span>
|
|
|
- <span class="note note--yellow" v-if="item.type == 1"
|
|
|
- >视频</span
|
|
|
- >
|
|
|
- <span class="note note--yellow" v-if="item.type == 2"
|
|
|
- >直播</span
|
|
|
- >
|
|
|
- <span class="note note--yellow" v-if="item.type == 3"
|
|
|
- >回放</span
|
|
|
- >
|
|
|
- {{ index + 1 }}、{{ item.name }}
|
|
|
- </div>
|
|
|
- <div class="desc">
|
|
|
- <!-- <div class="imgs">
|
|
|
- <div
|
|
|
- class="img"
|
|
|
- v-for="(items, indexs) in item.userStudyRecordPhoto"
|
|
|
- :key="indexs"
|
|
|
- >
|
|
|
- <img :src="$tools.splitImgHost(items.photo)" />
|
|
|
- <div class="note">
|
|
|
- {{ $tools.timestampToTime(items.createTime, false) }}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
- </div>
|
|
|
- <div class="desc">
|
|
|
- 原因:
|
|
|
- <span class="note">{{ item.auditReason }}</span>
|
|
|
+ <span class="note">{{
|
|
|
+ ["测试", "视频", "直播", "回放"][item.type]
|
|
|
+ }}</span>
|
|
|
+ <span class="title-name">{{ item.name }}</span>
|
|
|
</div>
|
|
|
+ <div class="desc">原因:{{ item.auditReason }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -86,7 +63,7 @@ export default {
|
|
|
return {
|
|
|
showRebuildDetailModal: false,
|
|
|
rebuildItem: {},
|
|
|
- rebuildItems: {},
|
|
|
+ rebuildItems: [],
|
|
|
rebuildShow: false,
|
|
|
};
|
|
|
},
|
|
|
@@ -107,17 +84,15 @@ export default {
|
|
|
let sysTime = this.$tools.timest();
|
|
|
//学习服务期没过
|
|
|
if (item.serviceEndTime && item.serviceEndTime > +sysTime) {
|
|
|
- console.log(1);
|
|
|
this.rebuildShow = true;
|
|
|
} else {
|
|
|
//已过学习服务期
|
|
|
- console.log(2);
|
|
|
+
|
|
|
this.rebuildShow = false;
|
|
|
this.showRebuildDetailModal = true;
|
|
|
return;
|
|
|
}
|
|
|
- console.log(item.classEndTime, "item.classEndTime");
|
|
|
- console.log(sysTime, "sysTime");
|
|
|
+
|
|
|
//有班级有效期
|
|
|
if (item.classEndTime) {
|
|
|
//班级有效期没过
|
|
|
@@ -147,45 +122,7 @@ export default {
|
|
|
.then((res) => {
|
|
|
this.showRebuildDetailModal = false;
|
|
|
this.$emit("rebuildSubmit", this.rebuildItem);
|
|
|
- // this.$router.push({
|
|
|
- // path: `/my-course-detail/${this.rebuildItem.goodsId}`,
|
|
|
- // query: {
|
|
|
- // gradeId: this.rebuildItem.gradeId,
|
|
|
- // orderGoodsId: this.rebuildItem.orderGoodsId,
|
|
|
- // },
|
|
|
- // });
|
|
|
});
|
|
|
- // this.$confirm(
|
|
|
- // "如对审核结果有异议,请勿点击确认重学。致电020-87085982咨询",
|
|
|
- // "注意",
|
|
|
- // {
|
|
|
- // confirmButtonText: "确认重学",
|
|
|
- // cancelButtonText: "取消",
|
|
|
- // closeOnClickModal: false,
|
|
|
- // closeOnPressEscape: false,
|
|
|
- // distinguishCancelAndClose: false,
|
|
|
- // showClose: false,
|
|
|
- // }
|
|
|
- // )
|
|
|
- // .then((_) => {
|
|
|
- // this.$request
|
|
|
- // .courseperiodrebuild({
|
|
|
- // goodsId: this.rebuildItem.goodsId,
|
|
|
- // gradeId: this.rebuildItem.gradeId,
|
|
|
- // })
|
|
|
- // .then((res) => {
|
|
|
- // this.showRebuildDetailModal = false;
|
|
|
- // this.$emit("rebuildSubmit", this.rebuildItem);
|
|
|
- // // this.$router.push({
|
|
|
- // // path: `/my-course-detail/${this.rebuildItem.goodsId}`,
|
|
|
- // // query: {
|
|
|
- // // gradeId: this.rebuildItem.gradeId,
|
|
|
- // // orderGoodsId: this.rebuildItem.orderGoodsId,
|
|
|
- // // },
|
|
|
- // // });
|
|
|
- // });
|
|
|
- // })
|
|
|
- // .catch((_) => {});
|
|
|
},
|
|
|
},
|
|
|
};
|
|
|
@@ -217,18 +154,17 @@ export default {
|
|
|
}
|
|
|
|
|
|
&__header {
|
|
|
- height: 40px;
|
|
|
- border-bottom: 1px solid #eee;
|
|
|
- line-height: 40px;
|
|
|
- font-size: 16px;
|
|
|
+ line-height: 76px;
|
|
|
+ font-size: 20px;
|
|
|
font-family: Microsoft YaHei;
|
|
|
font-weight: bold;
|
|
|
- color: #333333;
|
|
|
+ color: #222222;
|
|
|
padding-left: 24px;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
|
|
|
&__body {
|
|
|
- height: 400px;
|
|
|
+ height: 300px;
|
|
|
padding: 0 24px;
|
|
|
|
|
|
.content {
|
|
|
@@ -236,24 +172,21 @@ export default {
|
|
|
overflow-y: auto;
|
|
|
|
|
|
&__header {
|
|
|
- padding: 16px 0;
|
|
|
- border-bottom: 1px solid #eee;
|
|
|
-
|
|
|
+ background: #f8f8f8;
|
|
|
+ border-radius: 8px;
|
|
|
+ padding: 24px;
|
|
|
+ color: #eb445a;
|
|
|
+ margin-bottom: 26px;
|
|
|
.title {
|
|
|
- font-size: 16px;
|
|
|
+ font-size: 18px;
|
|
|
font-family: Microsoft YaHei;
|
|
|
- font-weight: bold;
|
|
|
- color: #ff3b30;
|
|
|
- line-height: 24px;
|
|
|
}
|
|
|
|
|
|
.desc {
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: 6px;
|
|
|
font-size: 16px;
|
|
|
font-family: Microsoft YaHei;
|
|
|
font-weight: 400;
|
|
|
- color: #ff3b30;
|
|
|
- line-height: 24px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -261,55 +194,32 @@ export default {
|
|
|
.list {
|
|
|
&__item {
|
|
|
padding: 16px 0;
|
|
|
- border-bottom: 1px solid #eee;
|
|
|
-
|
|
|
.title {
|
|
|
- font-size: 14px;
|
|
|
- font-family: Microsoft YaHei;
|
|
|
- font-weight: 400;
|
|
|
- color: #333333;
|
|
|
-
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
.note {
|
|
|
- display: inline-block;
|
|
|
text-align: center;
|
|
|
- line-height: 18px;
|
|
|
width: 32px;
|
|
|
- height: 20px;
|
|
|
+ height: 18px;
|
|
|
border: 1px solid #3f8dfd;
|
|
|
- border-radius: 4px;
|
|
|
- color: #3f8dfd;
|
|
|
+ background: #3f8dfd;
|
|
|
+ color: #ffffff;
|
|
|
font-size: 12px;
|
|
|
-
|
|
|
- &--yellow {
|
|
|
- border: 1px solid #ff9500;
|
|
|
- color: #ff9500;
|
|
|
- }
|
|
|
+ border-radius: 6px 3px 6px 3px;
|
|
|
+ }
|
|
|
+ .title-name {
|
|
|
+ padding-left: 8px;
|
|
|
+ color: #222222;
|
|
|
+ font-size: 18px;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.desc {
|
|
|
- margin-top: 10px;
|
|
|
+ margin-top: 6px;
|
|
|
font-size: 14px;
|
|
|
font-family: Microsoft YaHei;
|
|
|
font-weight: 400;
|
|
|
- color: #333333;
|
|
|
-
|
|
|
- .note {
|
|
|
- color: #ff3b30;
|
|
|
- line-height: 20px;
|
|
|
- }
|
|
|
-
|
|
|
- .img {
|
|
|
- width: 100px;
|
|
|
- height: 100px;
|
|
|
- display: inline-block;
|
|
|
- text-align: center;
|
|
|
-
|
|
|
- img {
|
|
|
- max-width: 100%;
|
|
|
- max-height: 100%;
|
|
|
- }
|
|
|
- }
|
|
|
+ color: #606266;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -318,18 +228,17 @@ export default {
|
|
|
}
|
|
|
|
|
|
&__footer {
|
|
|
- height: 90px;
|
|
|
- border-top: 1px solid #eee;
|
|
|
text-align: center;
|
|
|
- .confirm {
|
|
|
- width: 200px;
|
|
|
- height: 40px;
|
|
|
+ .el-button {
|
|
|
+ width: 260px;
|
|
|
+ height: 44px;
|
|
|
padding: 0;
|
|
|
border-radius: 20px;
|
|
|
text-align: center;
|
|
|
- line-height: 40px;
|
|
|
+ line-height: 44px;
|
|
|
color: #fff;
|
|
|
- margin: 24px auto;
|
|
|
+ margin: 34px auto;
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
}
|