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
e174e0f4
Commit
e174e0f4
authored
Mar 23, 2021
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6bf1af19
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
363 additions
and
4 deletions
+363
-4
detail.vue
pages/kotra/brand/detail.vue
+334
-0
detail.vue
pages/kotra/carrier/detail.vue
+29
-4
No files found.
pages/kotra/brand/detail.vue
View file @
e174e0f4
This diff is collapsed.
Click to expand it.
pages/kotra/carrier/detail.vue
View file @
e174e0f4
...
...
@@ -5,10 +5,16 @@
<u-swiper
:list=
"imgsList"
:effect3d=
"false"
:height=
"700"
:interval=
"5000"
:border-radius=
"0"
@
click=
"previewImage"
name=
"url"
v-if=
"active==1"
></u-swiper>
<view
style=
"background-color: #111;height: 700rpx;position: relative;"
v-if=
"active==0"
>
<image
<
!--
<
image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1616398636000_211.png"
style=
"width: 100%;height: 100%;"
mode=
"aspectFill"
></image>
<view
style=
"width: 100%;height: 100%;"
mode=
"aspectFill"
></image>
-->
<video
id=
"myVideo"
:src=
"files"
style=
"width: 100%;height: 100%;"
:controls=
'controls'
:show-center-play-btn=
'false'
:show-fullscreen-btn=
'false'
@
fullscreenchange=
'videoControl'
></video>
<view
@
click=
"enlarge(files)"
style=
"position: absolute;left: 50%;top: 50%;margin-top: -49rpx;margin-left: -49rpx;width: 98rpx;height: 98rpx;border-radius: 20rpx;background-color: rgba(255,255,255,.4);display: flex;align-items: center;justify-content: center;"
>
<image
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Test/Upload/Goods/1616471847000_345.png"
...
...
@@ -190,6 +196,8 @@
active
:
0
,
mainColor
:
''
,
likeStatus
:
false
,
controls
:
false
,
//显示默认控件
files
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/SaleBefore/Goods/637515953765903034.mp4'
,
}
},
onLoad
(
options
)
{
...
...
@@ -259,7 +267,24 @@
name
,
address
:
"武侯区科华中路 2 号"
})
},
enlarge
(
file
)
{
// 全屏
this
.
videoContext
=
uni
.
createVideoContext
(
'myVideo'
);
this
.
videoContext
.
requestFullScreen
({
direction
:
0
})
},
videoControl
(
e
){
if
(
e
.
detail
.
fullScreen
==
false
){
this
.
videoContext
.
stop
()
this
.
controls
=
false
}
else
{
this
.
videoContext
.
play
()
this
.
controls
=
true
}
},
}
}
...
...
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