Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
aa21ae23
提交
aa21ae23
编写于
8月 27, 2020
作者:
guofeng.chen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改简介
上级
4f130a94
变更
5
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
42 行增加
和
6 行删除
+42
-6
course-intro.vue
src/components/course/course-intro.vue
+35
-4
course-ware.vue
src/components/course/course-ware.vue
+1
-1
pica-video.vue
src/components/course/pica-video.vue
+1
-1
wxShare.js
src/utils/wxShare.js
+2
-0
course-detail.vue
src/views/course-detail.vue
+3
-0
未找到文件。
src/components/course/course-intro.vue
浏览文件 @
aa21ae23
...
@@ -3,11 +3,12 @@
...
@@ -3,11 +3,12 @@
<CommonTitle></CommonTitle>
<CommonTitle></CommonTitle>
<div
class=
"body"
>
<div
class=
"body"
>
<p
class=
"content"
:class=
"
{'ellipsis': isUp}">
{{
intro
}}
</p>
<p
class=
"content"
:class=
"
{'ellipsis': isUp}">
{{
intro
}}
</p>
<div
class=
"toggle-btn"
@
click=
"isUp=!isUp"
>
<div
class=
"toggle-btn"
v-show=
"showArrow"
@
click=
"isUp=!isUp"
>
<span
class=
"action"
>
{{
isUp
?
"详情"
:
"收起"
}}
</span>
<span
class=
"action"
>
{{
isUp
?
"详情"
:
"收起"
}}
</span>
<img
v-show=
"isUp"
src=
"~@/images/down.png"
alt=
""
/>
<img
v-show=
"isUp"
src=
"~@/images/down.png"
alt=
""
/>
<img
v-show=
"!isUp"
src=
"~@/images/up.png"
alt=
""
/>
<img
v-show=
"!isUp"
src=
"~@/images/up.png"
alt=
""
/>
</div>
</div>
<div
class=
"offset"
>
{{
intro
}}
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -25,10 +26,31 @@ export default {
...
@@ -25,10 +26,31 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
isUp
:
true
isUp
:
true
,
showArrow
:
true
,
}
},
watch
:
{
intro
(
val
)
{
this
.
countH
();
}
},
mounted
()
{
this
.
countH
();
},
methods
:
{
countH
()
{
if
(
this
.
intro
)
{
this
.
$nextTick
(()
=>
{
const
content
=
this
.
$el
.
querySelector
(
'.content'
).
getBoundingClientRect
();
const
offset
=
this
.
$el
.
querySelector
(
'.offset'
).
getBoundingClientRect
();
if
(
offset
.
height
<
(
content
.
height
-
1
))
{
this
.
showArrow
=
false
;
}
})
}
}
}
},
},
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
...
@@ -37,7 +59,7 @@ export default {
...
@@ -37,7 +59,7 @@ export default {
position: relative;
position: relative;
color: #676869;
color: #676869;
font-size: 14px;
font-size: 14px;
padding
: 0 15px;
margin
: 0 15px;
.content {
.content {
display: block;
display: block;
text-align: justify;
text-align: justify;
...
@@ -73,5 +95,14 @@ export default {
...
@@ -73,5 +95,14 @@ export default {
}
}
}
}
}
}
.offset{
position: absolute;
left: 0;
top: 0;
width: 100%;
opacity: 0;
visibility: hidden;
pointer-events: none;
}
}
}
</
style
>
</
style
>
src/components/course/course-ware.vue
浏览文件 @
aa21ae23
...
@@ -85,7 +85,7 @@ export default {
...
@@ -85,7 +85,7 @@ export default {
cover
.
style
.
height
=
'100%'
;
cover
.
style
.
height
=
'100%'
;
cover
.
style
.
background
=
`url(
${
coverImg
}
) no-repeat center center`
;
cover
.
style
.
background
=
`url(
${
coverImg
}
) no-repeat center center`
;
cover
.
style
.
backgroundSize
=
'50px auto'
;
cover
.
style
.
backgroundSize
=
'50px auto'
;
cover
.
style
.
backgroundColor
=
'rgba(255, 255, 255, .9
5
)'
;
cover
.
style
.
backgroundColor
=
'rgba(255, 255, 255, .9
8
)'
;
cover
.
onclick
=
()
=>
{
cover
.
onclick
=
()
=>
{
if
(
!
this
.
$store
.
getters
.
logged
)
{
if
(
!
this
.
$store
.
getters
.
logged
)
{
this
.
$store
.
dispatch
(
'goLogin'
);
this
.
$store
.
dispatch
(
'goLogin'
);
...
...
src/components/course/pica-video.vue
浏览文件 @
aa21ae23
...
@@ -145,7 +145,7 @@ export default {
...
@@ -145,7 +145,7 @@ export default {
this
.
vid
=
`video_${this._uid
}
`
;
this
.
vid
=
`video_${this._uid
}
`
;
this
.
playTime
=
0
;
this
.
playTime
=
0
;
const
ua
=
navigator
.
userAgent
;
const
ua
=
navigator
.
userAgent
;
//
this.isWechat = ua.match(/(MicroMessenger)\/([\d.]+)/);
this
.
isWechat
=
ua
.
match
(
/
(
MicroMessenger
)\/([\d
.
]
+
)
/
);
this
.
isAndroid
=
ua
.
match
(
/
(
Android
)
;
?[\s\/]
+
([\d
.
]
+
)?
/
);
this
.
isAndroid
=
ua
.
match
(
/
(
Android
)
;
?[\s\/]
+
([\d
.
]
+
)?
/
);
}
,
}
,
mounted
()
{
mounted
()
{
...
...
src/utils/wxShare.js
浏览文件 @
aa21ae23
...
@@ -43,6 +43,7 @@ export const wxConfig = (link) => {
...
@@ -43,6 +43,7 @@ export const wxConfig = (link) => {
export
const
wxShare
=
(
option
=
{},
successCB
=
()
=>
{})
=>
{
export
const
wxShare
=
(
option
=
{},
successCB
=
()
=>
{})
=>
{
wx
.
ready
(()
=>
{
wx
.
ready
(()
=>
{
WeixinJSBridge
.
call
(
'showOptionMenu'
);
WeixinJSBridge
.
call
(
'showOptionMenu'
);
wx
.
showAllNonBaseMenuItem
();
// 分享给朋友
// 分享给朋友
wx
.
onMenuShareAppMessage
({
wx
.
onMenuShareAppMessage
({
title
:
option
.
title
,
title
:
option
.
title
,
...
@@ -77,6 +78,7 @@ export const wxShare = (option = {}, successCB = () => {}) => {
...
@@ -77,6 +78,7 @@ export const wxShare = (option = {}, successCB = () => {}) => {
function
wxHideMenu
()
{
function
wxHideMenu
()
{
wx
.
ready
(()
=>
{
wx
.
ready
(()
=>
{
WeixinJSBridge
.
call
(
'hideOptionMenu'
);
WeixinJSBridge
.
call
(
'hideOptionMenu'
);
wx
.
hideAllNonBaseMenuItem
();
});
});
}
}
...
...
src/views/course-detail.vue
浏览文件 @
aa21ae23
...
@@ -314,6 +314,9 @@ export default {
...
@@ -314,6 +314,9 @@ export default {
this
.
$toast
(
'请前往云鹊医APP进行考试'
);
this
.
$toast
(
'请前往云鹊医APP进行考试'
);
return
;
return
;
}
}
if
(
lecture
.
lectureId
===
this
.
curtLectureId
)
{
return
;
}
let
enable
=
true
;
let
enable
=
true
;
if
(
showFlag
===
10
||
(
trySeeFlag
&&
!
trySeeTime
))
{
if
(
showFlag
===
10
||
(
trySeeFlag
&&
!
trySeeTime
))
{
this
.
coverType
=
2
;
this
.
coverType
=
2
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录