Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uniapp_vedio
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
android
uniapp_vedio
Commits
6f528c20
Commit
6f528c20
authored
Nov 13, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
8ea814f5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
24 deletions
+22
-24
newVideoDetail.vue
vedio/pagesC/video/newVideoDetail.vue
+22
-24
ic_coin.png
vedio/static/ic_coin.png
+0
-0
ic_gift.png
vedio/static/ic_gift.png
+0
-0
ic_shop.png
vedio/static/ic_shop.png
+0
-0
No files found.
vedio/pagesC/video/newVideoDetail.vue
View file @
6f528c20
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
<view
@
click
.
stop=
"selectThisVideo(index2 + (index1%30*30))"
<view
@
click
.
stop=
"selectThisVideo(index2 + (index1%30*30))"
style=
"position: relative;width:16%;height: 120rpx; background: gray;border-radius: 10rpx;margin-left: 5rpx;margin-bottom: 5rpx;"
>
style=
"position: relative;width:16%;height: 120rpx; background: gray;border-radius: 10rpx;margin-left: 5rpx;margin-bottom: 5rpx;"
>
<image
v-if=
"originList[
<image
v-if=
"originList[
(index1 == 0 ? index2 : (index2
+1
+ (index1%30*30)))
(index1 == 0 ? index2 : (index2 + (index1%30*30)))
].lock"
src=
"@/static/video/lock.png"
].lock"
src=
"@/static/video/lock.png"
style=
"width:30rpx;height:30rpx;position:absolute;right:5rpx;top:5rpx;"
/>
style=
"width:30rpx;height:30rpx;position:absolute;right:5rpx;top:5rpx;"
/>
<view
class=
"flex"
<view
class=
"flex"
...
@@ -96,7 +96,8 @@
...
@@ -96,7 +96,8 @@
<text
v-else
<text
v-else
style=
"font-size: 36rpx;color: #FFFFFF;"
>
{{
list
.
vedioIndex
}}
</text>
style=
"font-size: 36rpx;color: #FFFFFF;"
>
{{
list
.
vedioIndex
}}
</text>
</view>
</view>
<image
v-if=
"(originIndex+1)==list.vedioIndex"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_playing.gif"
<image
v-if=
"(originIndex+1)==list.vedioIndex"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_playing.gif"
style=
"width:30rpx;height:30rpx;position:absolute;left:5rpx;bottom:5rpx;"
/>
style=
"width:30rpx;height:30rpx;position:absolute;left:5rpx;bottom:5rpx;"
/>
</view>
</view>
</block>
</block>
...
@@ -194,19 +195,20 @@
...
@@ -194,19 +195,20 @@
},
},
methods
:
{
methods
:
{
paySuccess
()
{
paySuccess
()
{
this
.
getData
()
this
.
unlock
(
this
.
originIndex
)
// this.getData()
},
},
showPayDialog
()
{
showPayDialog
()
{
let
isIOS
=
wx
.
getSystemInfoSync
().
platform
;
let
isIOS
=
wx
.
getSystemInfoSync
().
platform
;
if
(
isIOS
===
'ios'
)
{
if
(
isIOS
===
'ios'
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'暂不支持IOS系统'
,
title
:
'暂不支持IOS系统'
,
icon
:
'none'
icon
:
'none'
})
})
return
return
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
// 延迟渲染,否则位置错乱
// 延迟渲染,否则位置错乱
this
.
showCoinPop
=
true
this
.
showCoinPop
=
true
...
@@ -225,16 +227,12 @@
...
@@ -225,16 +227,12 @@
},
},
selectThisVideo
(
index
)
{
selectThisVideo
(
index
)
{
this
.
down
();
this
.
down
();
if
(
this
.
originList
[
this
.
originIndex
].
lock
)
{
this
.
duration
=
20
;
this
.
unlock
(
this
.
originIndex
)
this
.
originIndex
=
index
}
else
{
this
.
initSwiperData
(
this
.
originIndex
);
this
.
duration
=
20
;
setTimeout
(()
=>
{
this
.
originIndex
=
index
this
.
duration
=
500
;
this
.
initSwiperData
(
this
.
originIndex
);
},
500
)
setTimeout
(()
=>
{
this
.
duration
=
500
;
},
500
)
}
},
},
down
()
{
down
()
{
this
.
$refs
.
select2
.
close
();
this
.
$refs
.
select2
.
close
();
...
...
vedio/static/ic_coin.png
deleted
100644 → 0
View file @
8ea814f5
1.43 KB
vedio/static/ic_gift.png
deleted
100644 → 0
View file @
8ea814f5
1.02 KB
vedio/static/ic_shop.png
deleted
100644 → 0
View file @
8ea814f5
1.11 KB
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