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
22830e42
Commit
22830e42
authored
Nov 20, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
92fa688d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
111 additions
and
95 deletions
+111
-95
follow.vue
vedio/components/home/follow.vue
+1
-1
index.vue
vedio/components/home/index.vue
+2
-3
my.vue
vedio/components/home/my.vue
+1
-1
player.vue
vedio/components/player/player.vue
+8
-3
pages.json
vedio/pages.json
+8
-2
home.vue
vedio/pages/home.vue
+6
-7
vipPay.vue
vedio/pagesA/vipPay/vipPay.vue
+85
-78
No files found.
vedio/components/home/follow.vue
View file @
22830e42
...
...
@@ -74,7 +74,7 @@
mounted
()
{
uni
.
getSystemInfo
({
success
:
(
res
=>
{
this
.
clientHeight
=
res
.
windowHeight
-
42
;
this
.
clientHeight
=
res
.
windowHeight
-
50
;
})
});
},
...
...
vedio/components/home/index.vue
View file @
22830e42
...
...
@@ -182,8 +182,7 @@
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin: 10rpx;"
src=
"../../static/index/ic_quit_white.png"
mode=
"aspectFill"
></image>
<view
@
click=
"handleBottomPlay(newRecordBean)"
style=
"width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;"
>
继续观看
style=
"width: 160rpx;height: 50rpx;line-height: 50rpx;text-align: center;background-color: red;border-radius:30rpx;color: white;font-size: 24rpx;margin-right: 20rpx;"
>
继续观看
</view>
</view>
...
...
@@ -242,7 +241,7 @@
mounted
()
{
uni
.
getSystemInfo
({
success
:
(
res
=>
{
this
.
clientHeight
=
res
.
windowHeight
-
42
;
this
.
clientHeight
=
res
.
windowHeight
-
50
;
})
});
// 匹配视频
...
...
vedio/components/home/my.vue
View file @
22830e42
...
...
@@ -162,7 +162,7 @@
mounted
()
{
uni
.
getSystemInfo
({
success
:
(
res
=>
{
this
.
clientHeight
=
res
.
windowHeight
-
42
;
this
.
clientHeight
=
res
.
windowHeight
-
50
;
})
});
},
...
...
vedio/components/player/player.vue
View file @
22830e42
...
...
@@ -295,6 +295,10 @@
var
countDownSeconds
=
3
that
.
countDown
=
countDownSeconds
const
timer
=
setInterval
(()
=>
{
if
(
!
that
.
showRewardAdPop
)
{
clearInterval
(
timer
)
}
if
(
countDownSeconds
>
0
)
{
that
.
countDown
=
countDownSeconds
countDownSeconds
--
...
...
@@ -315,6 +319,7 @@
},
closeAdPop
()
{
this
.
showRewardAdPop
=
false
this
.
pm
.
toggleCustomDialog
()
},
closeAdMorePop
()
{
this
.
showRewardAdMorePop
=
false
...
...
vedio/pages.json
View file @
22830e42
...
...
@@ -37,8 +37,10 @@
"root"
:
"pagesC"
,
"pages"
:
[{
"path"
:
"ttvideo/ttVideoDetail"
,
"usingComponents"
:
{
"tt-video-player"
:
"ext://industry/video-player"
"style"
:
{
"backgroundColor"
:
"#000000"
,
"navigationBarBackgroundColor"
:
"#000000"
,
"navigationBarTextStyle"
:
"#ffffff"
}
},
{
"path"
:
"playlet/index"
,
...
...
@@ -99,9 +101,13 @@
"backgroundColor"
:
"#f5f5f5"
,
"navigationStyle"
:
"default"
,
"navigationBarTextStyle"
:
"black"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"app-plus"
:
{
"bounce"
:
"none"
,
"scrollIndicator"
:
"none"
},
"usingComponents"
:
{
"tt-video-player"
:
"ext://industry/video-player"
}
},
"condition"
:
{
//模式配置,仅开发期间生效
...
...
vedio/pages/home.vue
View file @
22830e42
...
...
@@ -43,8 +43,7 @@
</view>
</view>
<view
v-if=
"showEditBar"
class=
"editBar"
:style=
"'padding-top:35rpx;padding-bottom:' + bottomSafePadding + 'px;'"
>
<view
v-if=
"showEditBar"
class=
"editBar"
>
<view
class=
"editItem"
@
click=
"!isFullChoice?fullChoice():noChoice()"
>
{{
!
isFullChoice
?
'全选'
:
'全不选'
}}
</view>
...
...
@@ -194,13 +193,13 @@
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
height
:
60
r
px
;
height
:
60px
;
background
:
white
;
display
:
flex
;
.editItem
{
height
:
60
r
px
;
line-height
:
60
r
px
;
height
:
60px
;
line-height
:
60px
;
text-align
:
center
;
width
:
50%
;
}
...
...
@@ -210,12 +209,12 @@
display
:
flex
;
align-items
:
center
;
background-color
:
white
;
height
:
42
px
;
height
:
50
px
;
.tab
{
flex
:
1
;
text-align
:
center
;
font-size
:
1
2
px
;
font-size
:
1
4
px
;
font-weight
:
bold
;
color
:
black
;
...
...
vedio/pagesA/vipPay/vipPay.vue
View file @
22830e42
...
...
@@ -62,17 +62,17 @@
<view
v-else
style=
"display: flex;align-items: center;font-size: 40rpx;
color: #f2b068;
font-weight: 700;"
>
{{
multiply
(
item
.
firstPayPrice
)
}}
<image
style=
"width: 50rpx;height: 50rpx;display: flex;margin-right: 10rpx;"
src=
"@/static/ic_zuan.png"
>
</image>
+
{{
multiply
(
item
.
firstPayPrice
)
}}
</view>
<view
class=
"name row"
v-if=
"item.title!=null&&item.title!=''"
>
{{
item
.
title
}}
</view>
<view
class=
"origin row"
v-if=
"item.remarks!=null&&item.remarks!=''"
>
<view
class=
"origin row"
v-if=
"item.remarks!=null&&item.remarks!=''
&&os=='android'
"
>
{{
item
.
remarks
}}
</view>
</view>
...
...
@@ -289,7 +289,8 @@
.
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
...
...
@@ -305,10 +306,12 @@
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
this
.
selectedIndex
]
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
}
...
...
@@ -335,7 +338,8 @@
.
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
that
.
btnText
=
"立即支付"
+
that
.
vipList
[
this
.
selectedVipIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
}
...
...
@@ -350,10 +354,12 @@
let
tempYhq
=
new
Decimal
(
cashStr
).
sub
(
new
Decimal
(
that
.
pointList
[
this
.
selectedIndex
]
.
yhqRateBalance
)).
toNumber
()
if
(
that
.
os
==
'ios'
)
{
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
btnText
=
"立即支付"
+
that
.
multiply
(
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
)
+
"钻石,已优惠"
+
that
.
multiply
(
tempYhq
)
+
"钻石"
}
else
{
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
that
.
btnText
=
"立即支付"
+
that
.
pointList
[
this
.
selectedIndex
].
yhqRateBalance
+
"元,已优惠"
+
tempYhq
+
"元"
}
}
...
...
@@ -573,6 +579,7 @@
color
:
#2c2c2c
;
}
}
.text-box
{
word-break
:
break-all
;
margin
:
10rpx
;
...
...
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