Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zuiketang
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
zuiketang
Commits
08059838
Commit
08059838
authored
Nov 22, 2016
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改vue文件
parent
35217efb
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
33 deletions
+49
-33
bus.vue
src/frontend/web/js/components/common/bus.vue
+5
-0
course-lists.vue
src/frontend/web/js/home/components/course-lists.vue
+7
-5
recommend.vue
src/frontend/web/js/home/components/recommend.vue
+5
-2
video-intro.vue
src/frontend/web/js/home/components/video-intro.vue
+6
-4
video-play.vue
src/frontend/web/js/home/components/video-play.vue
+24
-20
video.vue
src/frontend/web/js/home/components/video.vue
+2
-2
No files found.
src/frontend/web/js/components/common/bus.vue
0 → 100644
View file @
08059838
<
script
>
import
Vue
from
'vue'
;
export
default
new
Vue
();
</
script
>
src/frontend/web/js/home/components/course-lists.vue
View file @
08059838
<
template
>
<div
class=
"container v-list mx900"
v-show=
"lists.length > 0"
>
<div
class=
"row"
>
<div
v-for=
"(i
ndex,item
) in lists"
class=
"col-md-4"
>
<div
v-for=
"(i
tem,index
) in lists"
class=
"col-md-4"
>
<div
class=
"v-main-box"
>
<div
class=
"v-screen"
>
<a
@
click=
"itemClick(item.id)"
href=
"javascript:;"
>
...
...
@@ -111,11 +111,13 @@
classId
:
{
required
:
true
}
}
,
ready
()
},
mounted
()
{
this
.
getLists
(
this
.
classId
,
this
.
page
,
this
.
num
);
var
self
=
this
;
this
.
nextTick
(
function
(){
self
.
getLists
(
self
.
classId
,
self
.
page
,
self
.
num
);
});
}
}
</
script
>
src/frontend/web/js/home/components/recommend.vue
View file @
08059838
...
...
@@ -67,9 +67,12 @@
}
},
components
:
{},
ready
()
mounted
()
{
this
.
getLists
(
this
.
classId
);
var
self
=
this
;
this
.
$nextTick
(
function
()
{
self
.
getLists
(
this
.
classId
);
});
}
}
</
script
>
src/frontend/web/js/home/components/video-intro.vue
View file @
08059838
...
...
@@ -3,8 +3,7 @@
<div
class=
"container"
>
<div
class=
"video-description"
>
<div
class=
"title"
>
课程介绍
</div>
<div
class=
"text"
>
{{
{
coursewareInfo
.
intro
}}
}
<div
v-html=
"coursewareInfo.intro"
class=
"text"
>
</div>
</div>
...
...
@@ -147,8 +146,11 @@
});
}
},
ready
(){
this
.
getCommentlists
(
this
.
coursewareInfo
.
id
,
this
.
page
,
this
.
num
);
mounted
(){
var
self
=
this
;
this
.
$nextTick
(
function
()
{
self
.
getCommentlists
(
self
.
coursewareInfo
.
id
,
self
.
page
,
self
.
num
);
});
}
}
</
script
>
src/frontend/web/js/home/components/video-play.vue
View file @
08059838
<
template
xmlns:v-el
=
"http://www.w3.org/1999/xhtml"
>
<
template
xmlns:ref
=
"http://www.w3.org/1999/xhtml"
>
<div
class=
"container"
>
<div
class=
"cnt-tit"
>
<h3>
{{
coursewareInfo
.
courseName
}}
</h3>
...
...
@@ -23,8 +23,8 @@
</div>
</div>
<div
:class=
"
{'video-detail-info':true,'video-detail-phone':coursewareInfo.teachers.length == 0}">
<div
v-for=
"(i
ndex,item
) in coursewareInfo.teachers"
class=
"video-teacher"
>
<a
data-toggle=
"modal"
data-target=
"
{{
{
'#teacherInfo'
+
index
}}
}
"><img
<div
v-for=
"(i
tem,index
) in coursewareInfo.teachers"
class=
"video-teacher"
>
<a
data-toggle=
"modal"
:data-target=
"'#teacherInfo'+index
"
><img
:src=
"item.avatar"
></a>
<p><a
href=
"javascript:;"
data-toggle=
"modal"
data-target=
"#myModal2"
>
{{
item
.
name
}}
</a></p>
</div>
...
...
@@ -108,14 +108,14 @@
<div
class=
"top-back-a"
>
<a
href=
"javascript:;"
@
click=
"showQrcode = false"
><i
class=
"icon-navigate_before"
></i>
返回支付渠道选择
</a>
</div>
<div
v-el:weixin-q
rcode class="
qrcode
-
img
">
<div
ref:weixinQ
rcode
class=
"qrcode-img"
>
<span>
正在加载
</span>
</div>
</div>
</div>
</div>
<div v-for="
(
index
,
item
)
in
coursewareInfo
.
teachers
" class="
modal
fade
"
id="
{{{
'teacherInfo'
+
index
}}
}
" tabindex="
-
1
"
<div
v-for=
"(index,item) in coursewareInfo.teachers"
class=
"modal fade"
:id=
"'teacherInfo'+index
"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
...
...
@@ -128,7 +128,7 @@
<div
class=
"teacher-info text-center"
>
<img
:src=
"item.avatar"
>
<h3>
{{item.name}}
</h3>
<p class="
teacher
-
detail
"
>{{{item.intro
}}
}
</p>
<p
class=
"teacher-detail"
v-html=
"item.intro"
>
</p>
</div>
</div>
</div>
...
...
@@ -173,7 +173,7 @@
$
.
getJSON
(
url
,
function
(
response
)
{
if
(
response
.
status
!==
false
)
{
var
imgUrl
=
__BASE_URL__
+
'home/get-qrcode?number='
+
response
.
data
.
number
;
$(self.$
el
s.weixinQrcode).html('<img src="
' + imgUrl + '
"/> <p>请使用微信扫一扫付款</p>');
$
(
self
.
$
ref
s
.
weixinQrcode
).
html
(
'<img src="'
+
imgUrl
+
'"/> <p>请使用微信扫一扫付款</p>'
);
//添加监听
clearInterval
(
self
.
weixinCheckHandler
);
self
.
weixinCheckHandler
=
setInterval
(
function
()
{
...
...
@@ -313,21 +313,25 @@
components
:
{
myvideo
:
myvideo
},
ready
(){
mounted
(){
var
self
=
this
;
this.isMobile = this.coursewareInfo.isMobile;
this.isWeixin = Utils.isWeixin();
//判断是否要显示支付信息
var pay = getQueryString('pay');
if (pay == 1 && !this.coursewareInfo.isShop) {
if(this.isMobile == false && this.isWeixin == false){
$('#web-pay').trigger('click');
}
else if(this.isMobile == true && this.isWeixin == false){
this.mobileAliPay(this.coursewareInfo.course_id);
}
else if(this.isWeixin === true){
this.weixinJsPay(this.coursewareInfo.course_id);
this
.
$nextTick
(
function
(){
self
.
isMobile
=
self
.
coursewareInfo
.
isMobile
;
self
.
isWeixin
=
Utils
.
isWeixin
();
//判断是否要显示支付信息
var
pay
=
getQueryString
(
'pay'
);
if
(
pay
==
1
&&
!
self
.
coursewareInfo
.
isShop
)
{
if
(
self
.
isMobile
==
false
&&
self
.
isWeixin
==
false
){
$
(
'#web-pay'
).
trigger
(
'click'
);
}
else
if
(
self
.
isMobile
==
true
&&
self
.
isWeixin
==
false
){
self
.
mobileAliPay
(
self
.
coursewareInfo
.
course_id
);
}
else
if
(
self
.
isWeixin
===
true
){
self
.
weixinJsPay
(
self
.
coursewareInfo
.
course_id
);
}
}
}
});
}
}
...
...
src/frontend/web/js/home/components/video.vue
View file @
08059838
...
...
@@ -51,10 +51,10 @@
},
methods
:
{
pay
(){
this
.
$
dispatch
(
'pay-c
lick'
);
this
.
$
emit
(
'payC
lick'
);
}
},
ready
(){
mounted
(){
if
(
this
.
videoInfo
.
isShop
)
{
this
.
showTips
=
false
;
...
...
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