提交 b7692483 authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 11405ede
module.exports = { module.exports = {
domain: 'dev.ezijing.com', domain: 'dev.ezijing.com',
url: 'https://transport.ezijing.com/api', url: 'https://x-learning2.ezijing.com/api',
webpack: { webpack: {
externals: { externals: {
CKEDITOR: 'window.CKEDITOR', CKEDITOR: 'window.CKEDITOR',
......
...@@ -71,6 +71,7 @@ export default { ...@@ -71,6 +71,7 @@ export default {
} }
.course-item__title { .course-item__title {
font-size: 18px; font-size: 18px;
font-weight: bold;
color: #222; color: #222;
display: -webkit-box; display: -webkit-box;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
......
<template> <template>
<div class="app-aside"> <div class="app-aside">
<div class="user" v-if="showUser"> <div class="inner">
<div class="user-avatar"><img :src="avatar" /></div> <div class="user" v-if="showUser">
<div class="user-tools"> <div class="user-avatar"><img :src="avatar" /></div>
<span><router-link to="/account/password">修改密码</router-link></span> <div class="user-tools">
<span @click="logout">退出登录</span> <span><router-link to="/account/password">修改密码</router-link></span>
<span @click="logout">退出登录</span>
</div>
</div> </div>
<ul class="nav">
<li v-for="(item, index) in datalist" :key="index" :class="genClasses(item)">
<router-link :to="item.path">
<i class="iconfont" :class="item.icon" v-if="item.icon"></i>
<span>{{ item.title }}</span>
</router-link>
</li>
</ul>
</div> </div>
<ul class="nav">
<li v-for="(item, index) in datalist" :key="index" :class="genClasses(item)">
<router-link :to="item.path">{{ item.title }}</router-link>
</li>
</ul>
</div> </div>
</template> </template>
...@@ -27,14 +32,14 @@ export default { ...@@ -27,14 +32,14 @@ export default {
data() { data() {
return { return {
defaultMenus: [ defaultMenus: [
{ title: '考前摸底', icon: '', path: '/testExam' }, { title: '考前摸底', icon: 'icon-bianzuhong', path: '/testExam' },
{ title: '真题实战', icon: '', path: '/mock' }, { title: '真题实战', icon: 'icon-kaoshihong', path: '/mock' },
{ title: '错题集合', icon: '', path: '/my/questions/wrong' }, { title: '错题集合', icon: 'icon-guanlizhongxinbeifen-hong', path: '/my/questions/wrong' },
{ title: '收藏试题', icon: '', path: '/my/questions/collection' }, { title: '收藏试题', icon: 'icon-shoucang-hong', path: '/my/questions/collection' },
{ title: '必考考点', icon: '', path: '/course/test' }, { title: '必考考点', icon: 'icon-kaozheng-hong', path: '/course/test' },
{ title: '考证课程', icon: '', path: '/course/learn' }, { title: '考证课程', icon: 'icon-bianzu6-hong', path: '/course/learn' },
{ title: '意见反馈', icon: '', path: '/feedback' }, { title: '意见反馈', icon: 'icon-fankui-hong', path: '/feedback' },
{ title: '联系客服', icon: '', path: '/contact' } { title: '联系客服', icon: 'icon-bianzu8-hong', path: '/contact' }
] ]
} }
}, },
...@@ -71,7 +76,10 @@ export default { ...@@ -71,7 +76,10 @@ export default {
.app-aside { .app-aside {
width: 200px; width: 200px;
background-color: #fff; background-color: #fff;
.inner {
position: sticky;
top: 0;
}
.user { .user {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
...@@ -116,6 +124,13 @@ export default { ...@@ -116,6 +124,13 @@ export default {
&.is-active { &.is-active {
color: #c01540; color: #c01540;
background-color: #fff4f7; background-color: #fff4f7;
.iconfont {
color: #c01540;
}
}
.iconfont {
margin-right: 4px;
color: #ccc;
} }
} }
} }
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no, viewport-fit=cover" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no, viewport-fit=cover"
/> />
<link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.9.1/skins/default/aliplayer-min.css" /> <link rel="stylesheet" href="https://g.alicdn.com/de/prismplayer/2.9.1/skins/default/aliplayer-min.css" />
<link rel="stylesheet" href="//at.alicdn.com/t/font_2173492_ctgt96uojqw.css" />
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>
......
...@@ -261,6 +261,9 @@ export default { ...@@ -261,6 +261,9 @@ export default {
this.getChapterVideo() this.getChapterVideo()
// 获取视频进度 // 获取视频进度
this.getChapterVideoProgress() this.getChapterVideoProgress()
},
beforeDestroy() {
this.throttled && this.throttled.cancel()
} }
} }
</script> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论