Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
e2a19b99
Commit
e2a19b99
authored
Jan 15, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
565ccaed
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
77 additions
and
10 deletions
+77
-10
index.vue
components/videopage/index.vue
+69
-6
goodsaction.vue
pages/goods/components/goodsaction.vue
+2
-2
index.vue
pages/index/index.vue
+1
-1
teacherDetails.vue
pages/school/teacherDetails.vue
+5
-1
No files found.
components/videopage/index.vue
View file @
e2a19b99
...
...
@@ -3,13 +3,32 @@
'background-image': 'url(' + (video.backgroundimage ? video.backgroundimage : '') + ')', backgroundSize: '100% 100%'
}">
<view
class=
"video-xbox"
:style=
"
{
'paddingLeft':video.left+'px',
'paddingRight':video.right+'px',
'paddingTop':video.top+'px',
'paddingBottom':video.bottom+'px',
'paddingLeft':video.left+'
r
px',
'paddingRight':video.right+'
r
px',
'paddingTop':video.top+'
r
px',
'paddingBottom':video.bottom+'
r
px',
}">
<video
:src=
"video.url"
:style=
"
{'width':'100%','height':'100%','border-radius':video.radius+'px'}" :poster="video.pic_url" :show-fullscreen-btn='video.isfullscreen'>
</video>
<video
:src=
"video.url"
:style=
"
{'width':'100%','height':'100%','border-radius':video.radius+'px'}"
:poster="video.pic_url"
:show-center-play-btn='false'
:id="'myVideo'+index"
@fullscreenchange='videoControl'
>
</video>
<view
v-if=
"show==true"
class=
"zzao"
:style=
"
{
'paddingLeft':video.left+'rpx',
'paddingRight':video.right+'rpx',
'paddingTop':video.top+'rpx',
'paddingBottom':video.bottom+'rpx',
}"
@click="enlarge()">
<u-icon
name=
"play-circle-o"
:size=
"50"
color=
"#FFF"
></u-icon>
</view>
</view>
</div>
...
...
@@ -17,7 +36,47 @@
<
script
>
export
default
{
props
:
[
"video"
]
props
:
[
"video"
,
'index'
],
data
(){
return
{
show
:
true
}
},
created
()
{
},
mounted
()
{
this
.
videoContext
=
uni
.
createVideoContext
(
'myVideo'
+
this
.
index
,
this
);
},
methods
:{
enlarge
(){
console
.
log
(
this
.
videoContext
)
this
.
show
=
false
;
console
.
log
(
this
.
video
.
isfullscreen
)
if
(
this
.
video
.
isfullscreen
==
true
){
console
.
log
(
'进入全屏'
)
this
.
videoContext
.
requestFullScreen
({
direction
:
0
,
})
}
else
{
console
.
log
(
'不是全屏播放'
)
this
.
videoContext
.
play
()
}
},
videoControl
(
e
){
if
(
e
.
detail
.
fullScreen
==
false
){
this
.
videoContext
.
stop
()
if
(
this
.
video
.
isfullscreen
==
true
){
this
.
show
=
true
;
}
}
else
{
this
.
videoContext
.
play
()
}
}
}
};
</
script
>
...
...
@@ -30,6 +89,10 @@ export default {
.video-xbox
{
width
:
100%
;
height
:
100%
;
position
:
relative
;
}
.zzao
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
</
style
>
\ No newline at end of file
pages/goods/components/goodsaction.vue
View file @
e2a19b99
...
...
@@ -4,12 +4,12 @@
<view
style=
"width: 22px; margin: auto;"
><u-icon
name=
"cart-o"
size=
"44"
:color=
"mc"
></u-icon></view>
<text
class=
"text"
:style=
"
{ color: mc }">购物车
</text>
</view>
<view
class=
"item"
v-if=
"formid!=1"
>
<view
class=
"item"
>
<view
style=
"width: 22px; margin: auto;"
><u-icon
name=
"chat-o"
size=
"44"
color=
"#333"
></u-icon></view>
<text
class=
"text"
>
客服
</text>
<button
open-type=
"contact"
:send-message-title=
"goodName"
:send-message-path=
"path"
:send-message-img=
"g.coverPic"
:show-message-card=
"true"
>
0
</button>
</view>
<view
class=
"item"
@
click=
"setFavorite"
v-if=
"formid!=1"
>
<view
class=
"item"
@
click=
"setFavorite"
>
<view
style=
"width: 22px; margin: auto;"
><u-icon
:name=
"favorStatus ? 'like' : 'like-o'"
size=
"44"
:color=
"favorStatus ? mc : '#333'"
></u-icon></view>
<text
class=
"text"
>
收藏
</text>
</view>
...
...
pages/index/index.vue
View file @
e2a19b99
...
...
@@ -32,7 +32,7 @@
<notice
v-if=
"d.id == 'notice'"
:notice=
"d.data"
:key=
"di"
></notice>
<gridnav
v-if=
"d.id == 'nav'"
:navs=
"d.data"
:key=
"di"
></gridnav>
<pagetitle
v-if=
"d.id == 'link'"
:ts=
"d.data"
:key=
"di"
></pagetitle>
<videopage
v-if=
"d.id == 'video'"
:video=
"d.data"
:key=
"di"
></videopage>
<videopage
v-if=
"d.id == 'video'"
:video=
"d.data"
:
index=
'di'
:
key=
"di"
></videopage>
<copyright
v-if=
"d.id == 'copyright'"
:cop=
"d.data"
:key=
"di"
></copyright>
<checkin
v-if=
"d.id == 'check-in'"
:check=
"d.data"
:key=
"di"
></checkin>
<userbox
v-if=
"d.id == 'user-info'"
:ts=
"d.data"
:key=
"di"
></userbox>
...
...
pages/school/teacherDetails.vue
View file @
e2a19b99
...
...
@@ -154,9 +154,13 @@
<text
style=
"font-size: 16px;color: #1B1D1E;margin-left: 5px;"
>
擅长课程
</text>
</view>
<view
style=
"width: 100%;padding:8px 15px;"
class=
"teacherbox-b"
>
<view
class=
"teacher-b-item2"
:style=
"
{background:mc,}" v-for="(x, i) in teacher.teacherResult.GoodCourseList" :key="ci">
<view
class=
"teacher-b-item2"
:style=
"
{background:mc,}" v-for="(x, i) in teacher.teacherResult.GoodCourseList" :key="ci"
v-if="teacher.teacherResult.GoodCourseList.length>0"
>
{{
x
}}
</view>
<!--
<u-empty
text=
"暂无课程"
font-size=
"36"
mode=
"list"
></u-empty>
-->
<view
v-if=
'teacher.teacherResult.GoodCourseList.length==0'
style=
"width: 100%;height: 50px;display: flex;align-items: center;justify-content: center;color:#c0c4cc ;"
>
暂无擅长课程
</view>
</view>
<view
class=
"tiaoti"
>
<view
class=
"tiaoti-l"
></view>
...
...
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