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
7f3bf94a
Commit
7f3bf94a
authored
Jul 08, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
a039f927
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
+22
-7
No files found.
apps/classroom/Tpl/default/Index/theme_x7_w3g.html
View file @
7f3bf94a
...
...
@@ -119,9 +119,9 @@
</if>
<else
/>
<if
condition=
"$vo['price'] eq 0 or $vo['is_buy'] eq 1"
>
<div
@
click=
"onDownload({$vo['exams_paper_id']})"
class=
"home_button_green layout_center"
>
下载试题
</div>
<div
@
click=
"onDownload(
'{$vo['exams_paper_title']}',
{$vo['exams_paper_id']})"
class=
"home_button_green layout_center"
>
下载试题
</div>
<else
/>
<div
@
click=
"
onDownload
({$vo['exams_paper_id']})"
class=
"home_button_orange layout_center"
>
下载预览
</div>
<div
@
click=
"
showYulan
({$vo['exams_paper_id']})"
class=
"home_button_orange layout_center"
>
下载预览
</div>
</if>
</if>
...
...
@@ -239,11 +239,26 @@
close_yulan
:
function
()
{
this
.
exams_paper_id
=
0
;
},
onDownload
:
function
(
isBuy
,
price
,
path
)
{
// if ( path ) {
// window.location.href = path;
// }
this
.
exams_paper_id
=
isBuy
;
onDownload
:
function
(
title
,
path
)
{
if
(
path
)
{
var
link
=
document
.
createElement
(
'a'
);
// 设置下载的文件名
link
.
download
=
title
;
link
.
style
.
display
=
'none'
;
//设置下载路径
link
.
href
=
path
;
//触发点击
document
.
body
.
appendChild
(
link
);
link
.
click
();
//移除节点
document
.
body
.
removeChild
(
link
);
this
.
close_yulan
();
}
else
{
alert
(
'当前课程无文件下载'
);
}
},
showYulan
:
function
(
id
)
{
this
.
exams_paper_id
=
id
;
},
onPay
:
function
(
id
)
{
if
(
MID
<=
0
)
{
...
...
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