|
@@ -115,7 +115,7 @@
|
|
|
src="../assets/login/Vector2.png"
|
|
|
alt=""
|
|
|
/>
|
|
|
- <span class="redDot"></span>
|
|
|
+ <span class="redDot" v-if="is_exist == 'true'"></span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -125,7 +125,7 @@
|
|
|
import { mapGetters } from "vuex";
|
|
|
import { getToken, removeToken } from "@/utils/auth";
|
|
|
import Cookies from "js-cookie";
|
|
|
-import { getContent, getStaticContent } from "@/api/api";
|
|
|
+import { getContent, getStaticContent, getLearnWebContent } from "@/api/api";
|
|
|
import { setI18nLang } from "@/utils/i18n";
|
|
|
export default {
|
|
|
name: "LayoutHeader",
|
|
@@ -135,6 +135,7 @@ export default {
|
|
|
activeIndex: "2", // 主导航索引
|
|
|
LoginNavIndex: 0, //下拉框导航索引
|
|
|
projectName: "学习中心",
|
|
|
+ is_exist: "false",
|
|
|
projectList: [],
|
|
|
teacherProList: [
|
|
|
//普通教师
|
|
@@ -367,6 +368,13 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
+ projectList.push({
|
|
|
+ id: 6,
|
|
|
+ // Teacher training center
|
|
|
+ name: "个人中心",
|
|
|
+ img: "project7",
|
|
|
+ text: "您收集和购买的所有资源都可以在这里轻松找到。",
|
|
|
+ });
|
|
|
}
|
|
|
// 排序
|
|
|
for (var i = 0; i < projectList.length - 1; i++) {
|
|
@@ -382,6 +390,13 @@ export default {
|
|
|
console.log(projectList);
|
|
|
return projectList;
|
|
|
},
|
|
|
+ getNotReadMessage() {
|
|
|
+ let MethodName = "message-message_manager-IsExistMyMessage_NotRead";
|
|
|
+ let data = {};
|
|
|
+ getLearnWebContent(MethodName, data).then((res) => {
|
|
|
+ this.is_exist = res.is_exist;
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
created() {},
|
|
|
mounted() {
|
|
@@ -402,6 +417,10 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
_this.getLangList();
|
|
|
+ _this.getNotReadMessage();
|
|
|
+ setInterval(() => {
|
|
|
+ _this.getNotReadMessage();
|
|
|
+ }, 10000);
|
|
|
},
|
|
|
};
|
|
|
</script>
|