Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
45086c3d
Commit
45086c3d
authored
May 16, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
0b60bd44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
10 deletions
+38
-10
apps/course/Tpl/default/Video/view_w3g.html
+38
-10
No files found.
apps/course/Tpl/default/Video/view_w3g.html
View file @
45086c3d
<include
file=
"__THEME__/public_header_w3g"
/>
<style>
body
{
padding
:
0
!important
;
}
...
...
@@ -30,7 +31,7 @@
</van-tab>
</van-tabs>
<div
class=
"layout_h course_detail_share"
>
<van-icon
size=
"16"
:name=
"shareIcon"
style=
"margin-right: 1rem;"
></van-icon>
<van-icon
@
click=
"onCollect"
size=
"16"
:name=
"shareIcon"
style=
"margin-right: 1rem;"
></van-icon>
<van-icon
size=
"16"
name=
"__THEME__/img/share_line.png"
></van-icon>
</div>
</van-sticky>
...
...
@@ -102,6 +103,42 @@
this
.
section
.
push
(
p
[
k
])
}
},
methods
:
{
onCollect
:
function
()
{
let
that
=
this
if
(
uid
<=
0
)
{
ui
.
confirm
(
'请先登录'
,
{
yes
:
that
.
onLogin
})
}
else
{
$
.
ajax
({
type
:
'POST'
,
url
:
"{:U('classroom/Public/collect')}"
,
data
:
{
type
:
this
.
isCollect
?
0
:
1
,
sctype
:
2
,
source_id
:
this
.
info
.
id
,
is_video
:
1
},
dataType
:
"json"
,
cache
:
false
,
success
:
function
(
data
)
{
if
(
data
.
status
==
'0'
)
{
ui
.
error
(
data
.
info
)
}
else
{
ui
.
success
(
data
.
info
)
}
},
})
}
},
onTapCourse
:
function
(
course
)
{
},
onLogin
:
function
()
{
window
.
location
.
href
=
"{:U('basic/Passport/login')}"
}
},
computed
:
{
isCollect
:
function
()
{
return
this
.
info
.
iscollect
==
1
...
...
@@ -160,15 +197,6 @@
<script
type=
"text/javascript"
>
//window.location.href = "{:U('basic/Passport/login')}";
// function payCourseHour() {
// if (uid
<=
0
)
{
// ui.confirm('请先登录', {
// yes: login_fun()
// });
// return false;
// }
// }
//解锁课时提示
// $(".learn_note").click(function(){
// ui.error('请先购买课程');
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment