|
@@ -51,26 +51,32 @@
|
|
</div>
|
|
</div>
|
|
</a> -->
|
|
</a> -->
|
|
<el-tooltip
|
|
<el-tooltip
|
|
- placement="bottom"
|
|
|
|
- effect="light"
|
|
|
|
|
|
+ placement="bottom-end"
|
|
v-model="msgShow"
|
|
v-model="msgShow"
|
|
:hide-after="0"
|
|
:hide-after="0"
|
|
manual
|
|
manual
|
|
|
|
+ popper-class="tooltipStyle"
|
|
>
|
|
>
|
|
- <el-badge :is-dot="msgCount > 0 ? true : false" class="item">
|
|
|
|
|
|
+ <el-badge
|
|
|
|
+ :is-dot="msgCount > 0 ? true : false"
|
|
|
|
+ class="item"
|
|
|
|
+ style="vertical-align: baseline"
|
|
|
|
+ >
|
|
<el-button
|
|
<el-button
|
|
- style="font-size: 18px; padding: 0px"
|
|
|
|
|
|
+ style="font-size: 20px; padding: 0px"
|
|
icon="el-icon-message-solid"
|
|
icon="el-icon-message-solid"
|
|
type="text"
|
|
type="text"
|
|
@click="go('/person-center/my-message')"
|
|
@click="go('/person-center/my-message')"
|
|
></el-button>
|
|
></el-button>
|
|
</el-badge>
|
|
</el-badge>
|
|
- <div slot="content">
|
|
|
|
- {{ msgData.text }}
|
|
|
|
- <div>
|
|
|
|
- <el-button type="text" @click="newGoToStudy">立即学习</el-button
|
|
|
|
- ><el-button type="text" @click="clearMsg">关闭</el-button>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <div slot="content" class="dis_plays">
|
|
|
|
+ <p style="max-width: 247px">{{ msgData.text }}</p>
|
|
|
|
+ <div class="toolbth" @click="newGoToStudy">立即学习</div>
|
|
|
|
+ <i
|
|
|
|
+ style="font-size: 18px; cursor: pointer"
|
|
|
|
+ class="el-icon-close"
|
|
|
|
+ @click="clearMsg"
|
|
|
|
+ ></i>
|
|
</div>
|
|
</div>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
<el-dropdown @command="handleCommand">
|
|
<el-dropdown @command="handleCommand">
|
|
@@ -315,64 +321,66 @@ export default {
|
|
// });
|
|
// });
|
|
// return;
|
|
// return;
|
|
// }
|
|
// }
|
|
- if (
|
|
|
|
- this.sysTime <= items.serviceStartTime ||
|
|
|
|
- this.sysTime >= items.serviceEndTime
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: "不在学习服务期,不能进入学习",
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ if (items.goodsType !== 6) {
|
|
|
|
+ if (
|
|
|
|
+ this.sysTime <= items.serviceStartTime ||
|
|
|
|
+ this.sysTime >= items.serviceEndTime
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "不在学习服务期,不能进入学习",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
- if (
|
|
|
|
- (items.classStartTime && this.sysTime <= items.classStartTime) ||
|
|
|
|
- (items.classEndTime && this.sysTime >= items.classEndTime)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: "不在班级有效期,不能进入学习",
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ if (
|
|
|
|
+ (items.classStartTime &&
|
|
|
|
+ this.sysTime <= items.classStartTime) ||
|
|
|
|
+ (items.classEndTime && this.sysTime >= items.classEndTime)
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "不在班级有效期,不能进入学习",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
- if (items.learningStatus == 2) {
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: "开放学习时间待定,不能进入学习",
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ if (items.learningStatus == 2) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "开放学习时间待定,不能进入学习",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
- if (items.classStatus == 0) {
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: "尚未开班,不能进入学习",
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- items.learningStatus == 3 &&
|
|
|
|
- this.sysTime < items.learningTimeStart
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- type: "warning",
|
|
|
|
- message: "不在开放学习时间,不能进入学习",
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+ if (items.classStatus == 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "尚未开班,不能进入学习",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ items.learningStatus == 3 &&
|
|
|
|
+ this.sysTime < items.learningTimeStart
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ type: "warning",
|
|
|
|
+ message: "不在开放学习时间,不能进入学习",
|
|
|
|
+ });
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
|
|
- let rebuildStatus = await this.courseGoodsRebuildStatus(
|
|
|
|
- items.goodsId,
|
|
|
|
- items.gradeId
|
|
|
|
- );
|
|
|
|
|
|
+ let rebuildStatus = await this.courseGoodsRebuildStatus(
|
|
|
|
+ items.goodsId,
|
|
|
|
+ items.gradeId
|
|
|
|
+ );
|
|
|
|
|
|
- if (rebuildStatus == 0) {
|
|
|
|
- this.$refs.rebuildModal.showModal(items);
|
|
|
|
- return;
|
|
|
|
|
|
+ if (rebuildStatus == 0) {
|
|
|
|
+ this.$refs.rebuildModal.showModal(items);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
-
|
|
|
|
// if (item.educationName == "继续教育") {
|
|
// if (item.educationName == "继续教育") {
|
|
this.$request
|
|
this.$request
|
|
.lockLockStatus({
|
|
.lockLockStatus({
|
|
@@ -469,7 +477,7 @@ export default {
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: "refresh", //refresh路由地址和当前要刷新路由地址同级即可
|
|
path: "refresh", //refresh路由地址和当前要刷新路由地址同级即可
|
|
});
|
|
});
|
|
- return
|
|
|
|
|
|
+ return;
|
|
}
|
|
}
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path,
|
|
path,
|
|
@@ -789,4 +797,30 @@ export default {
|
|
.fade-leave-active {
|
|
.fade-leave-active {
|
|
transition: all 0.3s;
|
|
transition: all 0.3s;
|
|
}
|
|
}
|
|
|
|
+.dis_plays {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
|
|
+}
|
|
|
|
+.toolbth {
|
|
|
|
+ border-radius: 55px;
|
|
|
|
+ background-color: #fff;
|
|
|
|
+ color: #3f8dfd;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+ padding: 5px 14px;
|
|
|
|
+ margin-right: 16px;
|
|
|
|
+ user-select: none;
|
|
|
|
+ cursor: pointer;
|
|
|
|
+}
|
|
|
|
+</style>
|
|
|
|
+<style lang="scss">
|
|
|
|
+.tooltipStyle {
|
|
|
|
+ background-color: #3f8dfd !important;
|
|
|
|
+ color: #fff;
|
|
|
|
+}
|
|
|
|
+.tooltipStyle .popper__arrow {
|
|
|
|
+ border-bottom-color: #3f8dfd!important;
|
|
|
|
+}
|
|
|
|
+.tooltipStyle .popper__arrow::after {
|
|
|
|
+ border-bottom-color: #3f8dfd!important;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|