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
1b778b3a
Commit
1b778b3a
authored
Jul 07, 2020
by
刘海龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
65272668
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
10 deletions
+28
-10
apps/home/Tpl/default/Home/exams_w3g.html
+28
-10
No files found.
apps/home/Tpl/default/Home/exams_w3g.html
View file @
1b778b3a
...
...
@@ -117,7 +117,7 @@
<div
@
click=
"showYulan(index)"
v-else-if=
"item.price > 0"
class=
"button_orange layout_center"
>
下载预览
<!-- 下载预览提示 -->
<div
v-show=
"yulan==index"
v-model=
"yulan"
>
<
!-- <
div v-show="yulan==index" v-model="yulan">
<div class="yulanBox">
<div class="tips_box">
<img class="close_yulan" @click="close_yulan" src="/addons/theme/stv1/_static/img/guanbi@2x.png">
...
...
@@ -129,11 +129,25 @@
</div>
</div>
</div>
</div>
</div>
-->
</div>
</div>
</div>
<div
class=
"doneBox"
v-show=
"loadDone==1&&download.length>0"
>
<!-- 下载提示 -->
<div
v-show=
"yulan"
>
<div
class=
"yulanBox"
>
<div
class=
"tips_box"
>
<img
class=
"close_yulan"
@
click=
"close_yulan"
src=
"/addons/theme/stv1/_static/img/guanbi@2x.png"
>
<div
class=
"tips_title"
>
提示
</div>
<div
class=
"tips_body"
>
套餐下架后用户便无法找到该商品进行购买,你确定要下架吗?
</div>
<div
class=
"tips_foot"
>
<div
@
click=
"onDownload()"
class=
"tips_foot_L"
>
下载预览
</div>
<div
@
click=
"onPay()"
class=
"tips_foot_R"
>
下载全部
</div>
</div>
</div>
</div>
</div>
<div
class=
"doneBox"
v-show=
"loadDone==1&&download.length>0"
>
<div
class=
"hengxian"
></div>
<div
class=
"loadDone"
>
试题已全部加载
</div>
<div
class=
"hengxian"
></div>
...
...
@@ -248,9 +262,10 @@
download
:
[],
myYiZuo
:
[],
myCollect
:
[],
yulan
:
0
,
yulan
:
false
,
page
:
1
,
loadDone
:
0
,
// 0未加载完 1试题已全部加载
loadDone
:
0
,
//0未加载完 1试题已全部加载
index
:
0
,
// 当前选中的试题
}
},
created
:
function
()
{
...
...
@@ -340,7 +355,8 @@
window
.
location
.
href
=
url
},
onPay
:
function
(
item
)
{
onPay
:
function
()
{
var
item
=
this
.
download
[
this
.
index
]
console
.
log
(
item
)
// $.ajax({
// type: "POST",
...
...
@@ -360,8 +376,9 @@
// })
},
onDownload
:
function
(
index
){
console
.
log
(
index
)
onDownload
:
function
(){
console
.
log
(
this
.
index
)
var
index
=
this
.
index
// if (item.attach) {
// window.location.href = item.attach;
// }
...
...
@@ -384,13 +401,14 @@
if
(
!
this
.
download
[
index
].
attach
){
alert
(
'当前课程无文件下载'
);
}
else
{
this
.
yulan
=
index
;
this
.
yulan
=
true
;
this
.
index
=
index
}
},
// 关闭预览
close_yulan
:
function
(){
// console.log(this.yulan)
this
.
yulan
=
0
;
this
.
yulan
=
false
;
console
.
log
(
this
.
yulan
)
},
...
...
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