diff --git a/public/index.html b/public/index.html index ef18c32..e9ddc94 100644 --- a/public/index.html +++ b/public/index.html @@ -267,12 +267,18 @@ diff --git a/src/api/user.js b/src/api/user.js index 4f42679..21948d1 100644 --- a/src/api/user.js +++ b/src/api/user.js @@ -10,6 +10,13 @@ export function getTicketToken(params) { }) } +// 获取用户资料 +export function getUserInfoShequ(uid) { + return request({ + url: `/v1/user/getUserinfo/?uid=${uid}`, + method: "get", + }) +} // 获取用户资料(转发通行证v2接口) export function getUserInfo() { diff --git a/src/assets/fine_logo_dynamic.gif b/src/assets/fine_logo_dynamic.gif new file mode 100644 index 0000000..8b5bf4a Binary files /dev/null and b/src/assets/fine_logo_dynamic.gif differ diff --git a/src/components/AvatarDropDown.vue b/src/components/AvatarDropDown.vue new file mode 100644 index 0000000..f288cf9 --- /dev/null +++ b/src/components/AvatarDropDown.vue @@ -0,0 +1,146 @@ + + + + + diff --git a/src/components/Header-old.vue b/src/components/Header-old.vue new file mode 100644 index 0000000..181e0e7 --- /dev/null +++ b/src/components/Header-old.vue @@ -0,0 +1,905 @@ + + + + + + + + diff --git a/src/components/Header.vue b/src/components/Header.vue index 181e0e7..a2c57a4 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -2,148 +2,101 @@
- - - -
-
- 首页 - 学习路径 - 视频课 - 学习班 - 直播 - 城市课堂 - + 首页 + 学习路径 + 视频课 + 学习班 + 直播 + 城市课堂 +
@@ -201,33 +154,13 @@ >
- + @@ -306,10 +239,13 @@ import { getMenuList } from "@/api/nav"; import { getNotice, avatarMenu } from "@/api/user"; import store from "@/store"; import { onBeforeRouteUpdate } from "vue-router"; +import axios from "axios"; +import avatarDropDown from "@/components/AvatarDropDown"; export default defineComponent({ components: { teacherApplyModal, + avatarDropDown, }, name: "Header", setup() { @@ -369,14 +305,15 @@ export default defineComponent({ // 消息 const resNotice = async () => { - const res = await getNotice(); - if (res.code === 200) { - state.u_notice = res.data.system; + const res = await axios.get("https://home.fanruan.com/message/open/api/unread/" + store.getters.get_uid); + if (res.status === 200) { + state.u_notice = res.data.data; if (state.u_notice > 0) { state.is_dot = true; } } }; + if (store.getters.get_uid) { resNotice(); state.uid = store.getters.get_uid; @@ -425,224 +362,205 @@ export default defineComponent({ + + + + diff --git a/src/components/TeacherApply/TeacherApplyModal - old.vue b/src/components/TeacherApply/TeacherApplyModal - old.vue new file mode 100644 index 0000000..bbddabd --- /dev/null +++ b/src/components/TeacherApply/TeacherApplyModal - old.vue @@ -0,0 +1,305 @@ + + + + diff --git a/src/components/TeacherApply/TeacherApplyModal.vue b/src/components/TeacherApply/TeacherApplyModal.vue index bbddabd..beb406d 100644 --- a/src/components/TeacherApply/TeacherApplyModal.vue +++ b/src/components/TeacherApply/TeacherApplyModal.vue @@ -1,15 +1,16 @@ diff --git a/src/main.js b/src/main.js index 4c278de..c0608d9 100644 --- a/src/main.js +++ b/src/main.js @@ -33,17 +33,17 @@ app.use(VueWechatTitle) app.use(jsSeamlessScroll) app.mount('#app') router.afterEach(() => { - setTimeout(() => { - //百度统计 - var _hmt = _hmt || []; - (function () { - //每次执行前,先移除上次插入的代码 - document.getElementById('baidu_tj') && document.getElementById('baidu_tj').remove(); - var hm = document.createElement("script"); - hm.src = "https://hm.baidu.com/hm.js?f4d7d83c565e698bd7cedfe9c6297055"; - hm.id = "baidu_tj" - var s = document.getElementsByTagName("script")[0]; - s.parentNode.insertBefore(hm, s); - })(); - }, 0); + // setTimeout(() => { + // //百度统计 + // var _hmt = _hmt || []; + // (function () { + // //每次执行前,先移除上次插入的代码 + // document.getElementById('baidu_tj') && document.getElementById('baidu_tj').remove(); + // var hm = document.createElement("script"); + // hm.src = "https://hm.baidu.com/hm.js?f4d7d83c565e698bd7cedfe9c6297055"; + // hm.id = "baidu_tj" + // var s = document.getElementsByTagName("script")[0]; + // s.parentNode.insertBefore(hm, s); + // })(); + // }, 0); }); diff --git a/src/views/class/class.vue b/src/views/class/class.vue index aff0425..ffbd7c3 100644 --- a/src/views/class/class.vue +++ b/src/views/class/class.vue @@ -237,6 +237,7 @@ export default { } .end_time { + white-space: nowrap; height: 22px !important; padding: 0 8px !important; border-radius: 4px; diff --git a/src/views/class/play.vue b/src/views/class/play.vue index 6e257c9..4b38a11 100644 --- a/src/views/class/play.vue +++ b/src/views/class/play.vue @@ -10,6 +10,7 @@
+
@@ -39,7 +40,7 @@