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
a76dd303
Commit
a76dd303
authored
Nov 23, 2023
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
4c988da6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
launch.json
vedio/.hbuilderx/launch.json
+4
-0
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+10
-2
newVideoDetail.vue
vedio/pagesC/video/newVideoDetail.vue
+6
-2
No files found.
vedio/.hbuilderx/launch.json
View file @
a76dd303
...
...
@@ -14,6 +14,10 @@
{
"launchtype"
:
"local"
},
"quickapp-union"
:
{
"launchtype"
:
"local"
},
"type"
:
"uniCloud"
}
]
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
a76dd303
...
...
@@ -83,6 +83,10 @@
point
:
{
type
:
[
Number
,
String
],
default
:
0
},
vedioId
:
{
type
:
[
Number
,
String
],
default
:
0
}
},
data
()
{
...
...
@@ -104,6 +108,9 @@
this
.
post
({
url
:
'/vip/getVipProducts/point'
,
data
:
{
vedioId
:
this
.
vedioId
},
showLoading
:
false
,
success
:
({
data
...
...
@@ -147,6 +154,7 @@
this
.
post
({
url
:
'/vip/getVipPayParams'
,
data
:
{
vedioId
:
this
.
vedioId
,
pid
:
vipBean
.
pid
,
payChannel
:
'WEIXIN'
},
...
...
vedio/pagesC/video/newVideoDetail.vue
View file @
a76dd303
...
...
@@ -107,7 +107,7 @@
</swiper>
</view>
</uni-popup>
<coin-popup
:show=
"showCoinPop"
:point=
"data.point"
@
close=
"showCoinPop = false"
@
paySuccess=
"paySuccess"
>
<coin-popup
:show=
"showCoinPop"
:point=
"data.point"
:vedioId=
"data.vedioId"
@
close=
"showCoinPop = false"
@
paySuccess=
"paySuccess"
>
</coin-popup>
</view>
</
template
>
...
...
@@ -198,11 +198,15 @@
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买看点
// largeType=curVedio 解锁当前剧所有集
if
(
largeType
==
'vip'
)
{
this
.
vipBackPage
=
this
.
originIndex
this
.
getData
()
}
else
{
}
else
if
(
largeType
==
'point'
)
{
this
.
unlock
(
this
.
originIndex
)
}
else
{
this
.
vipBackPage
=
this
.
originIndex
this
.
getData
()
}
},
showPayDialog
()
{
...
...
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