Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
learn-online-pc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
learn-online-pc
Commits
91924b9f
提交
91924b9f
authored
4月 24, 2020
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'enterprise-wmp' of…
Merge branch 'enterprise-wmp' of
https://gitlab.ezijing.com/zhangyanxin/learn-mbaOnline
into enterprise-wmp
上级
4d53eadd
fc2982eb
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
8 行增加
和
7 行删除
+8
-7
sidebar.vue
client/src/components/learnSysLayout/sidebar.vue
+1
-1
learningTips.vue
client/src/pages/tips/learningTips.vue
+7
-6
没有找到文件。
client/src/components/learnSysLayout/sidebar.vue
浏览文件 @
91924b9f
...
@@ -53,7 +53,7 @@ export default {
...
@@ -53,7 +53,7 @@ export default {
data
()
{
data
()
{
const
_global
=
this
.
$GLOBAL
const
_global
=
this
.
$GLOBAL
const
_path
=
(
_global
&&
_global
.
sidebar
&&
_global
.
sidebar
.
defaultPath
)
||
'/'
const
_path
=
(
_global
&&
_global
.
sidebar
&&
_global
.
sidebar
.
defaultPath
)
||
'/'
let
defaultActive
=
'
1-1
'
let
defaultActive
=
''
switch
(
_path
)
{
switch
(
_path
)
{
case
'/app/tips/learning-tips'
:
defaultActive
=
'1-1'
;
break
case
'/app/tips/learning-tips'
:
defaultActive
=
'1-1'
;
break
case
'/app/tips/examina-tips'
:
defaultActive
=
'1-2'
;
break
case
'/app/tips/examina-tips'
:
defaultActive
=
'1-2'
;
break
...
...
client/src/pages/tips/learningTips.vue
浏览文件 @
91924b9f
<
template
>
<
template
>
<div
class=
"mian"
id=
"catalog1"
>
<div
class=
"mian"
ref=
"catalog1"
id=
"catalog1"
>
<div
class=
"content fl"
>
<div
class=
"content fl"
>
<div
class=
"title"
>
学习须知
</div>
<div
class=
"title"
>
学习须知
</div>
<div
class=
"cont-left"
>
<div
class=
"cont-left"
>
<div
class=
"h2"
>
学习须知
</div>
<div
class=
"h2"
>
学习须知
</div>
<div
class=
"explain"
ref=
"catalog1"
>
<div
class=
"explain"
>
<div
class=
"tits"
>
尊敬的学员:
</div>
<div
class=
"tits"
>
尊敬的学员:
</div>
<div
class=
"txt"
>
您好!欢迎您参加中国银行业协会“高级财富管理师”证书培训项目。为顺利完成学习及考试,请您阅读以下事项。预祝大家学习愉快,学有所获!
</div>
<div
class=
"txt"
>
您好!欢迎您参加中国银行业协会“高级财富管理师”证书培训项目。为顺利完成学习及考试,请您阅读以下事项。预祝大家学习愉快,学有所获!
</div>
</div>
</div>
...
@@ -140,13 +140,14 @@ export default {
...
@@ -140,13 +140,14 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
window
.
addEventListener
(
'scroll'
,
this
.
handleScrollx
,
true
)
document
.
addEventListener
(
'scroll'
,
this
.
handleScrollx
,
true
)
},
},
methods
:
{
methods
:
{
handleScrollx
()
{
handleScrollx
()
{
this
.
catalogList
.
map
((
item
,
index
)
=>
{
this
.
catalogList
.
map
((
item
,
index
)
=>
{
if
(
!
this
.
$refs
[
item
.
id
])
{
return
}
const
offH
=
this
.
$refs
[
item
.
id
].
getBoundingClientRect
().
top
const
offH
=
this
.
$refs
[
item
.
id
].
getBoundingClientRect
().
top
if
(
offH
<
200
&&
offH
>
-
20
0
)
{
if
(
offH
<
150
&&
offH
>
-
15
0
)
{
for
(
let
i
=
0
;
i
<
this
.
catalogList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
catalogList
.
length
;
i
++
)
{
this
.
catalogList
[
i
].
active
=
''
this
.
catalogList
[
i
].
active
=
''
}
}
...
@@ -271,11 +272,11 @@ export default {
...
@@ -271,11 +272,11 @@ export default {
.cont-right.susp
{
.cont-right.susp
{
position
:
fixed
;
position
:
fixed
;
right
:
-10px
;
right
:
-10px
;
top
:
10
0px
;
top
:
8
0px
;
}
}
.cont-right
{
.cont-right
{
position
:
absolute
;
position
:
absolute
;
top
:
10
0px
;
top
:
8
0px
;
right
:
0
;
right
:
0
;
width
:
30%
;
width
:
30%
;
.cont
{
.cont
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论