Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
7bb4abbb
提交
7bb4abbb
编写于
12月 19, 2019
作者:
huangwensu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加讲师介绍组件
上级
c6dd8279
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
151 行增加
和
52 行删除
+151
-52
item-intro.vue
src/components/cme/item-intro.vue
+1
-1
teacter-intro.vue
src/components/cme/teacter-intro.vue
+80
-0
merge-detail.vue
src/views/merge-detail.vue
+70
-51
未找到文件。
src/components/cme/item-intro.vue
浏览文件 @
7bb4abbb
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
this
.
btnText
=
'收起'
;
this
.
btnText
=
'收起'
;
this
.
allTextFlag
=
true
;
this
.
allTextFlag
=
true
;
}
else
{
}
else
{
this
.
newText
=
this
.
textContent
.
slice
(
0
,
69
)
+
"..."
;
;
this
.
newText
=
this
.
textContent
.
slice
(
0
,
69
)
+
"..."
;
this
.
btnText
=
'详情'
;
this
.
btnText
=
'详情'
;
this
.
allTextFlag
=
false
;
this
.
allTextFlag
=
false
;
}
}
...
...
src/components/cme/teacter-intro.vue
0 → 100644
浏览文件 @
7bb4abbb
<
template
>
<div
class=
"teacter-intro-container"
>
<div
class=
"basic-title"
>
讲师介绍
</div>
<div
class=
"leader-info"
>
<img
src=
"../../images/video-cover.png"
/>
<div
class=
"leader-text"
>
<span>
王荣英
</span>
<span>
主任医师 教授 硕士生导师
</span>
<div
class=
"address"
>
河北医科大学第二医院
</div>
</div>
</div>
<div
class=
"leader-info"
>
<img
src=
"../../images/video-cover.png"
/>
<div
class=
"leader-text"
>
<span>
王荣英
</span>
<span>
主任医师 教授 硕士生导师
</span>
<div
class=
"address"
>
河北医科大学第二医院
</div>
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
}
},
created
()
{
},
mounted
()
{
},
methods
:
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.teacter-intro-container
{
margin
:
px2rem
(
30px
)
px2rem
(
15px
)
0px
;
.basic-title
{
font-size
:
px2rem
(
18px
);
line-height
:
px2rem
(
18px
);
color
:
#373839
;
font-weight
:
700
;
}
.leader-info
{
display
:
flex
;
flex-direction
:
row
;
margin-top
:
px2rem
(
16px
);
padding-bottom
:
px2rem
(
16px
);
img
{
display
:
inline-block
;
width
:
px2rem
(
44px
);
height
:
px2rem
(
44px
);
border-radius
:
50%
;
}
.leader-text
{
margin-left
:
px2rem
(
16px
);
span
{
font-size
:
px2rem
(
16px
);
color
:
#676869
;
}
span
:first-child
{
font-size
:
px2rem
(
16px
);
color
:
#373839
;
font-weight
:
700
;
}
.address
{
margin-top
:
px2rem
(
5px
);
font-size
:
px2rem
(
13px
);
color
:
#979899
;
}
}
}
}
</
style
>
\ No newline at end of file
src/views/merge-detail.vue
浏览文件 @
7bb4abbb
...
@@ -26,18 +26,23 @@
...
@@ -26,18 +26,23 @@
<CmeStep></CmeStep>
<CmeStep></CmeStep>
<!-- 简介和目录 -->
<!-- 简介和目录 -->
<div
class=
"intro-catalogue-container"
>
<div
class=
"intro-catalogue-container"
>
<div
class=
"title
"
>
<div
id=
"content-title"
class=
"title"
:class=
"
{'fixed-title': fixedFlag}
">
<span
class=
"focus
"
>
简介
</span>
<span
:class=
"
{'focus': tabFlag}" @click="jumpIntro
">简介
</span>
<span>
目录
</span>
<span
:class=
"
{'focus': !tabFlag}" @click="jumpCatalogue"
>目录
</span>
</div>
</div>
<div
class=
"intro-content"
>
<div
id=
"intro-content"
class=
"intro-content"
>
<BasicInfo></BasicInfo>
<BasicInfo></BasicInfo>
<LearnKnow></LearnKnow>
<LearnKnow></LearnKnow>
<CommonSpliteLine></CommonSpliteLine>
<CommonSpliteLine></CommonSpliteLine>
<ItemIntro></ItemIntro>
<ItemIntro></ItemIntro>
<ItemLeader></ItemLeader>
<ItemLeader></ItemLeader>
<TeacterIntro></TeacterIntro>
</div>
</div>
<div
class=
"catalogue-content"
>
<CommonSpliteLine></CommonSpliteLine>
<div
id=
"catalogue-content"
class=
"catalogue-content"
>
<div
class=
"catalogue-title"
>
目录
</div>
<div
class=
"catalogue-title"
>
目录
</div>
<div
class=
"catalogue-title"
>
目录
</div>
<CellListDetail
<CellListDetail
v-if=
"visibleFlag == 1"
v-if=
"visibleFlag == 1"
:projectComponent=
"projectComponentDTOS"
:projectComponent=
"projectComponentDTOS"
...
@@ -74,6 +79,7 @@ import BasicInfo from "@/components/cme/basic-info";
...
@@ -74,6 +79,7 @@ import BasicInfo from "@/components/cme/basic-info";
import
LearnKnow
from
"@/components/cme/learn-know"
;
import
LearnKnow
from
"@/components/cme/learn-know"
;
import
ItemIntro
from
"@/components/cme/item-intro"
;
import
ItemIntro
from
"@/components/cme/item-intro"
;
import
ItemLeader
from
"@/components/cme/item-leader"
;
import
ItemLeader
from
"@/components/cme/item-leader"
;
import
TeacterIntro
from
"@/components/cme/teacter-intro"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
import
vueFilters
from
'@/utils/filter'
;
import
vueFilters
from
'@/utils/filter'
;
...
@@ -81,6 +87,8 @@ import vueFilters from '@/utils/filter';
...
@@ -81,6 +87,8 @@ import vueFilters from '@/utils/filter';
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
tabFlag
:
true
,
fixedFlag
:
false
,
from
:
"inner"
,
from
:
"inner"
,
isBlack
:
false
,
isBlack
:
false
,
showLoading
:
false
,
showLoading
:
false
,
...
@@ -148,7 +156,8 @@ export default {
...
@@ -148,7 +156,8 @@ export default {
BasicInfo
,
BasicInfo
,
LearnKnow
,
LearnKnow
,
ItemIntro
,
ItemIntro
,
ItemLeader
ItemLeader
,
TeacterIntro
},
},
computed
:
{
computed
:
{
...
mapGetters
([
"userInfo"
])
...
mapGetters
([
"userInfo"
])
...
@@ -161,22 +170,13 @@ export default {
...
@@ -161,22 +170,13 @@ export default {
this
.
moduleId
=
this
.
$route
.
query
.
moduleId
;
this
.
moduleId
=
this
.
$route
.
query
.
moduleId
;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
moduleName
=
this
.
$route
.
query
.
moduleName
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
this
.
courseRequire
=
this
.
$route
.
query
.
courseRequire
;
// window.__refresh = function() {
// console.log('created __refresh');
// // _this.getContentList(_this.moduleId);
// _this.getProjectParticularsV2();
// };
window
.
__getUserInfo64Comp
=
function
(
param
)
{
window
.
__getUserInfo64Comp
=
function
(
param
)
{
// alert('__getUserInfo64Comp');
// alert('__getUserInfo64Comp');
// console.log('__getUserInfo64Comp');
// console.log('__getUserInfo64Comp');
_this
.
token
=
param
.
userToken
;
_this
.
token
=
param
.
userToken
;
_this
.
setUserInfo
(
param
);
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
_this
.
checkToken
();
// _this.getContentList(_this.moduleId);
// _this.getComponentInfoById(_this.componentId);
_this
.
getCoopNoticeInfo
()
_this
.
getProjectParticularsV2
();
_this
.
getProjectParticularsV2
();
};
};
_this
.
getUserInfo
();
_this
.
getUserInfo
();
...
@@ -207,6 +207,26 @@ export default {
...
@@ -207,6 +207,26 @@ export default {
__funcName
:
"__getUserInfo64Comp"
__funcName
:
"__getUserInfo64Comp"
});
});
},
},
// 锚点到简介
jumpIntro
()
{
this
.
tabFlag
=
true
;
this
.
fixedFlag
=
true
;
const
intro
=
document
.
getElementById
(
'intro-content'
);
const
h
=
intro
.
offsetTop
-
120
;
window
.
scrollTo
(
0
,
h
);
this
.
isBlack
=
true
;
this
.
bgColor
=
"#fff"
;
},
// 锚点到目录
jumpCatalogue
()
{
this
.
tabFlag
=
false
;
this
.
fixedFlag
=
true
;
const
catalogue
=
document
.
getElementById
(
'catalogue-content'
);
const
h
=
catalogue
.
offsetTop
;
window
.
scrollTo
(
0
,
h
);
this
.
isBlack
=
true
;
this
.
bgColor
=
"#fff"
;
},
// 获取单个模块信息
// 获取单个模块信息
getComponentInfoById
(
componentId
)
{
getComponentInfoById
(
componentId
)
{
let
_this
=
this
;
let
_this
=
this
;
...
@@ -347,9 +367,9 @@ export default {
...
@@ -347,9 +367,9 @@ export default {
getProjectParticularsV2
()
{
getProjectParticularsV2
()
{
let
_this
=
this
;
let
_this
=
this
;
let
param
=
{
let
param
=
{
token
:
_this
.
userInfo
.
userToken
,
token
:
_this
.
userInfo
.
userToken
||
'AAA613F74B7A4746AEE8354458FF4896'
,
setEntry
:
true
,
setEntry
:
true
,
portalProjectId
:
_this
.
projectId
,
portalProjectId
:
_this
.
projectId
||
164
,
};
};
_this
.
showLoading
=
true
;
_this
.
showLoading
=
true
;
this
.
NEW_GET
(
"portal/portalApp/queryProjectParticularsV2"
,
param
).
then
(
res
=>
{
this
.
NEW_GET
(
"portal/portalApp/queryProjectParticularsV2"
,
param
).
then
(
res
=>
{
...
@@ -378,8 +398,9 @@ export default {
...
@@ -378,8 +398,9 @@ export default {
});
});
},
},
scrollFun
()
{
scrollFun
()
{
let
scrollTop
=
let
scrollTop
=
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
;
document
.
body
.
scrollTop
||
document
.
documentElement
.
scrollTop
;
const
catalogue
=
document
.
getElementById
(
'catalogue-content'
);
const
h
=
catalogue
.
offsetTop
-
600
;
if
(
scrollTop
>
20
)
{
if
(
scrollTop
>
20
)
{
this
.
isBlack
=
true
;
this
.
isBlack
=
true
;
this
.
bgColor
=
"#fff"
;
this
.
bgColor
=
"#fff"
;
...
@@ -387,46 +408,27 @@ export default {
...
@@ -387,46 +408,27 @@ export default {
this
.
isBlack
=
false
;
this
.
isBlack
=
false
;
this
.
bgColor
=
"none"
;
this
.
bgColor
=
"none"
;
}
}
},
if
(
scrollTop
>
300
)
{
clickNotice
()
{
this
.
fixedFlag
=
true
;
this
.
isShowNotice
=
false
}
else
{
},
this
.
fixedFlag
=
false
;
clickNoticeItem
()
{
}
this
.
isShowNotice
=
true
if
(
scrollTop
>
h
)
{
this
.
tabFlag
=
false
;
}
else
{
this
.
tabFlag
=
true
;
}
},
},
// 获取单个项目公告信息
getCoopNoticeInfo
()
{
let
_this
=
this
;
let
param
=
{
projectId
:
_this
.
projectId
,
token
:
_this
.
userInfo
.
userToken
,
setEntry
:
true
};
this
.
GET
(
"portal/portalApp/getNotice"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
let
cData
=
res
.
data
// if(cData.noticeId) {
if
(
cData
.
noticeId
)
{
this
.
noticeData
=
cData
;
this
.
isShowNoticeItem
=
true
;
if
(
cData
.
readFlag
==
2
)
{
this
.
isShowNotice
=
true
;
}
}
}
});
},
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
@import
"../style/mixin"
;
@import
"../style/mixin"
;
.page-container-merge
{
.page-container-merge
{
.nav-top
.nav-title
{
.nav-top
.nav-title
{
height
:
px2rem
(
0px
);
height
:
px2rem
(
0px
);
padding
:
px2rem
(
18px
);
//
padding: px2rem(18px);
}
}
.banner-img
{
.banner-img
{
display
:
inherit
;
display
:
inherit
;
...
@@ -484,6 +486,23 @@ export default {
...
@@ -484,6 +486,23 @@ export default {
left
:
px2rem
(
7px
);
left
:
px2rem
(
7px
);
}
}
}
}
.title.fixed-title
{
position
:
fixed
;
left
:
0
;
top
:
px2rem
(
60px
);
background
:
#fff
;
width
:
100%
;
z-index
:
999
;
}
.catalogue-content
{
padding
:
px2rem
(
30px
)
px2rem
(
15px
)
0
;
.catalogue-title
{
font-size
:
px2rem
(
18px
);
color
:
#373839
;
font-weight
:
700
;
margin-bottom
:
px2rem
(
16px
);
}
}
}
}
}
}
</
style
>
</
style
>
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录