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
451b4511
Commit
451b4511
authored
Nov 03, 2023
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
0a6b9abd
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
53 deletions
+68
-53
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+15
-15
my.vue
vedio/pages/my/my.vue
+23
-20
follow.vue
vedio/pages/recommend/follow.vue
+1
-1
recommendVideo.vue
vedio/pages/recommend/recommendVideo.vue
+1
-1
newVideoDetail.vue
vedio/pagesC/video/newVideoDetail.vue
+3
-0
dotRecord.vue
vedio/pagesD/dotRecord/dotRecord.vue
+9
-5
useDotRecord.vue
vedio/pagesD/useDotRecord/useDotRecord.vue
+14
-9
watchRecord.vue
vedio/pagesD/watchRecord/watchRecord.vue
+2
-2
No files found.
vedio/components/coin-popup/coin-popup.vue
View file @
451b4511
<
template
>
<
template
>
<view>
<view>
<uni-popup
type=
"bottom"
ref=
"coinPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<uni-popup
type=
"bottom"
ref=
"coinPop"
:maskClick=
"false"
:isMaskClick=
"false"
>
<view
class=
"body"
>
<view
class=
"body"
style=
"width: 100%;height: 100%;"
>
<scroll-view
scroll-y
style=
"width: 100%;height: 100%;"
>
<scroll-view
scroll-y
>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
>
<view
style=
"display: flex;flex-direction: column;align-items: flex-end;"
>
<image
@
click=
"handleClose"
<image
@
click=
"handleClose"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
style=
"width: 30rpx;height: 30rpx;display: flex;align-items: right;margin-top: 20rpx;margin-right: 20rpx;margin-bottom: 10rpx;"
...
@@ -24,8 +24,8 @@
...
@@ -24,8 +24,8 @@
<view
class=
"price row"
>
<view
class=
"price row"
>
{{
item
.
firstPayPrice
}}
元
{{
item
.
firstPayPrice
}}
元
</view>
</view>
<view
class=
"name row"
>
<view
class=
"name row"
>
{{
item
.
title
}}
{{
item
.
title
}}
</view>
</view>
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
data
()
{
data
()
{
return
{
return
{
vipList
:
[],
vipList
:
[],
selectedIndex
:
0
,
selectedIndex
:
0
,
userBean
:
{},
userBean
:
{},
showClone
:
false
showClone
:
false
};
};
...
@@ -97,16 +97,16 @@
...
@@ -97,16 +97,16 @@
this
.
selectedIndex
=
data
.
list
[
0
].
activityType
;
this
.
selectedIndex
=
data
.
list
[
0
].
activityType
;
}
}
}
}
});
});
this
.
post
({
this
.
post
({
url
:
'/user/baseMsg'
,
url
:
'/user/baseMsg'
,
showLoading
:
false
,
showLoading
:
false
,
success
:
({
success
:
({
data
data
})
=>
{
})
=>
{
this
.
userBean
=
data
;
this
.
userBean
=
data
;
}
}
});
});
},
},
handleClose
()
{
handleClose
()
{
...
...
vedio/pages/my/my.vue
View file @
451b4511
<
template
>
<
template
>
<view
class=
"body"
>
<view
class=
"body"
>
<scroll-view
scroll-y=
"true"
:style=
"'height: '+(windowHeight -60)+'px;'"
>
<!--
<scroll-view
:scroll-y=
"true"
>
-->
<z-paging
style=
"height: 100%;"
>
<view
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+statusBarHeight+'px;'"
>
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+statusBarHeight+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
...
@@ -35,7 +36,8 @@
...
@@ -35,7 +36,8 @@
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip.png"
mode=
"scaleToFill"
></image>
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/bg_my_vip.png"
mode=
"scaleToFill"
></image>
</view>
</view>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"display: flex;height: 200rpx;margin: 20rpx;background: #f5ca86;border-radius: 20rpx;"
>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"display: flex;height: 200rpx;margin: 20rpx;background: #f5ca86;border-radius: 20rpx;"
>
<view
style=
"flex-grow: 2; margin-left: 20rpx;"
>
<view
style=
"flex-grow: 2; margin-left: 20rpx;"
>
<view
<view
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;"
>
style=
"width: 100%;height: 100%;display: flex;flex-direction: column;justify-content: center;"
>
...
@@ -60,10 +62,10 @@
...
@@ -60,10 +62,10 @@
</view>
</view>
</view>
</view>
<view
class=
"infobg"
style=
"margin: 20rpx;"
>
<view
class=
"infobg"
style=
"margin: 20rpx;"
>
<view
v-if=
"userBean.showVipInner"
class=
"item arrow"
@
click=
"handlePayRecord"
>
<view
v-if=
"userBean.showVipInner"
class=
"item arrow"
@
click=
"handlePayRecord"
>
我的订单
我的订单
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
</view>
<view
class=
"item arrow"
@
click=
"handleDotRecord"
>
<view
class=
"item arrow"
@
click=
"handleDotRecord"
>
看点记录
看点记录
...
@@ -86,7 +88,8 @@
...
@@ -86,7 +88,8 @@
<view
style=
"display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"
>
<view
style=
"display: flex;justify-content: center;margin-top: 20rpx;font-size: 26rpx;color: gray;"
>
{{
versionName
}}
{{
versionName
}}
</view>
</view>
</scroll-view>
</z-paging>
<!--
</scroll-view>
-->
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
@
paySuccess=
"paySuccess"
>
<coin-popup
:show=
"showAnimate"
@
close=
"showAnimate = false"
@
paySuccess=
"paySuccess"
>
</coin-popup>
</coin-popup>
...
@@ -119,13 +122,13 @@
...
@@ -119,13 +122,13 @@
return
{
return
{
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
userBean
:
{},
userBean
:
{},
showAnimate
:
false
,
showAnimate
:
false
,
windowHeight
:
0
,
windowHeight
:
0
,
versionName
:
app
.
globalData
.
versionName
versionName
:
app
.
globalData
.
versionName
};
};
},
},
methods
:
{
methods
:
{
show
()
{
show
()
{
this
.
windowHeight
=
uni
.
getSystemInfoSync
().
windowHeight
this
.
windowHeight
=
uni
.
getSystemInfoSync
().
windowHeight
// loadData() {
// loadData() {
this
.
post
({
this
.
post
({
...
@@ -184,16 +187,16 @@
...
@@ -184,16 +187,16 @@
// }
// }
// })
// })
// }
// }
// });
// });
wx
.
makePhoneCall
({
wx
.
makePhoneCall
({
phoneNumber
:
'4000969950'
,
phoneNumber
:
'4000969950'
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
'拨打电话成功!'
);
console
.
log
(
'拨打电话成功!'
);
},
},
fail
:
function
(
res
)
{
fail
:
function
(
res
)
{
console
.
log
(
'拨打电话失败!'
);
console
.
log
(
'拨打电话失败!'
);
}
}
})
})
},
},
paySuccess
()
{
paySuccess
()
{
...
...
vedio/pages/recommend/follow.vue
View file @
451b4511
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
this
.
$emit
(
"goRecommend"
)
this
.
$emit
(
"goRecommend"
)
},
},
click
(
detail
)
{
click
(
detail
)
{
navigateTo
(
`/pagesC/video/
v
ideoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
detail
)))
navigateTo
(
`/pagesC/video/
newV
ideoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
detail
)))
},
},
longClick
(
key
)
{
longClick
(
key
)
{
this
.
isEditStyle
=
true
this
.
isEditStyle
=
true
...
...
vedio/pages/recommend/recommendVideo.vue
View file @
451b4511
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
this
.
isqp
=
e
.
detail
.
show
this
.
isqp
=
e
.
detail
.
show
},
},
detail
(
detail
)
{
detail
(
detail
)
{
navigateTo
(
`/pagesC/video/
v
ideoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
detail
))
+
navigateTo
(
`/pagesC/video/
newV
ideoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
detail
))
+
`&playNext=1`
)
`&playNext=1`
)
},
},
collect
(
vedioId
,
index
)
{
collect
(
vedioId
,
index
)
{
...
...
vedio/pagesC/video/newVideoDetail.vue
View file @
451b4511
...
@@ -264,6 +264,7 @@
...
@@ -264,6 +264,7 @@
icon
:
'none'
icon
:
'none'
})
})
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
that
.
originList
[
that
.
originIndex
].
lock
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
createVideoContext
(
''
+
that
.
originList
[
that
.
originIndex
].
vedioId
,
uni
.
createVideoContext
(
''
+
that
.
originList
[
that
.
originIndex
].
vedioId
,
that
)
that
)
...
@@ -271,6 +272,7 @@
...
@@ -271,6 +272,7 @@
this
.
commitVideo
()
this
.
commitVideo
()
},
500
)
},
500
)
}
else
if
(
data
.
code
==
301
)
{
}
else
if
(
data
.
code
==
301
)
{
that
.
originList
[
that
.
originIndex
].
lock
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
createVideoContext
(
''
+
that
.
originList
[
that
.
originIndex
].
vedioId
,
uni
.
createVideoContext
(
''
+
that
.
originList
[
that
.
originIndex
].
vedioId
,
that
)
that
)
...
@@ -278,6 +280,7 @@
...
@@ -278,6 +280,7 @@
this
.
commitVideo
()
this
.
commitVideo
()
},
500
)
},
500
)
}
else
if
(
data
.
code
==
302
)
{
}
else
if
(
data
.
code
==
302
)
{
that
.
originList
[
that
.
originIndex
].
lock
=
false
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
createVideoContext
(
''
+
that
.
originList
[
that
.
originIndex
].
vedioId
,
uni
.
createVideoContext
(
''
+
that
.
originList
[
that
.
originIndex
].
vedioId
,
that
)
that
)
...
...
vedio/pagesD/dotRecord/dotRecord.vue
View file @
451b4511
...
@@ -7,13 +7,13 @@
...
@@ -7,13 +7,13 @@
<image
style=
"margin: auto 10rpx;width: 60rpx;height: 60rpx;"
src=
"../../static/ic_coin.png"
>
<image
style=
"margin: auto 10rpx;width: 60rpx;height: 60rpx;"
src=
"../../static/ic_coin.png"
>
</image>
</image>
<view
class=
"flex1 ml-10"
>
<view
class=
"flex1 ml-10"
>
<view
class=
"mt-10"
style=
"font-size: 28rpx;color: black;"
>
{{
'充值'
+
item
.
createtime
}}
</view>
<view
class=
"mt-10"
style=
"font-size: 28rpx;color: black;"
>
{{
item
.
remark
}}
</view>
<view
class=
"mt-10"
style=
"font-size: 26rpx;color: darkgray;"
>
<view
class=
"mt-10"
style=
"font-size: 26rpx;color: darkgray;"
>
{{
myFormateTime
(
1698911375977
)
}}
{{
item
.
time
}}
</view>
</view>
</view>
</view>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
3000看点
{{
'+'
+
item
.
subValue
+
'看点'
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
mixins
:
[
common
],
mixins
:
[
common
],
data
()
{
data
()
{
return
{
return
{
dataList
:
[
1
,
2
,
3
]
dataList
:
[]
};
};
},
},
methods
:
{
methods
:
{
...
@@ -47,7 +47,11 @@
...
@@ -47,7 +47,11 @@
},
},
queryList
(
page
,
size
)
{
queryList
(
page
,
size
)
{
this
.
post
({
this
.
post
({
url
:
'/vip/getOrderList'
,
url
:
'/vedio/assetsRecords/add'
,
data
:
{
page
,
size
},
showLoading
:
false
,
showLoading
:
false
,
success
:
({
success
:
({
data
data
...
...
vedio/pagesD/useDotRecord/useDotRecord.vue
View file @
451b4511
...
@@ -7,13 +7,14 @@
...
@@ -7,13 +7,14 @@
<image
style=
"margin: auto 10rpx;width: 60rpx;height: 60rpx;"
src=
"../../static/ic_shop.png"
>
<image
style=
"margin: auto 10rpx;width: 60rpx;height: 60rpx;"
src=
"../../static/ic_shop.png"
>
</image>
</image>
<view
class=
"flex1 ml-10"
>
<view
class=
"flex1 ml-10"
>
<view
class=
"mt-10"
style=
"font-size: 28rpx;color: black;"
>
{{
'购买《'
+
item
.
createtime
+
'》章节'
}}
<view
class=
"mt-10"
style=
"font-size: 28rpx;color: black;"
>
{{
item
.
remark
}}
</view>
</view>
<view
class=
"mt-10"
style=
"font-size: 26rpx;color: darkgray;"
>
<view
class=
"mt-10"
style=
"font-size: 26rpx;color: darkgray;"
>
{{
myFormateTime
(
1698911375977
)
}}
</view>
{{
item
.
time
}}
</view>
</view>
</view>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
3000看点
{{
'-'
+
item
.
subValue
+
'看点'
}}
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -21,10 +22,10 @@
...
@@ -21,10 +22,10 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
common
from
'@/mixins/common'
;
import
common
from
'@/mixins/common'
;
import
{
import
{
formateTime
formateTime
}
from
"@/utils/utils.js"
}
from
"@/utils/utils.js"
export
default
{
export
default
{
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
mixins
:
[
common
],
mixins
:
[
common
],
data
()
{
data
()
{
return
{
return
{
dataList
:
[
1
,
2
,
3
]
dataList
:
[]
};
};
},
},
methods
:
{
methods
:
{
...
@@ -46,7 +47,11 @@
...
@@ -46,7 +47,11 @@
},
},
queryList
(
page
,
size
)
{
queryList
(
page
,
size
)
{
this
.
post
({
this
.
post
({
url
:
'/vip/getOrderList'
,
url
:
'/vedio/assetsRecords/sub'
,
data
:
{
page
,
size
},
showLoading
:
false
,
showLoading
:
false
,
success
:
({
success
:
({
data
data
...
...
vedio/pagesD/watchRecord/watchRecord.vue
View file @
451b4511
<
template
>
<
template
>
<view
class=
"body"
>
<view
class=
"body"
>
<status-title
:showBack=
"true"
>
观看记录
</status-title>
<status-title
:showBack=
"true"
>
观看记录
</status-title>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<z-paging
class=
"flex-1"
ref=
"paging"
v-model=
"dataList"
@
query=
"queryList"
>
<view
style=
"font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;"
>
最近观看
</view>
<view
style=
"font-size: 30rpx;font-weight: 777;margin-left: 12rpx;margin-top: 10rpx;"
>
最近观看
</view>
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
});
});
},
},
handleInfo
(
item
)
{
handleInfo
(
item
)
{
navigateTo
(
`/pagesC/video/
videoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
item
)));
navigateTo
(
`/pagesC/video/
newVideoDetail?data=`
+
encodeURIComponent
(
JSON
.
stringify
(
item
)));
},
},
handleXing
(
item
)
{
handleXing
(
item
)
{
var
that
=
this
;
var
that
=
this
;
...
...
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