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
0d03a35e
Commit
0d03a35e
authored
Mar 07, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
3abfe355
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
186 additions
and
165 deletions
+186
-165
App.vue
vedio/App.vue
+1
-1
ad-popup.vue
vedio/components/ad-popup/ad-popup.vue
+132
-128
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+20
-15
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+32
-20
adConstant.js
vedio/utils/adConstant.js
+1
-1
No files found.
vedio/App.vue
View file @
0d03a35e
...
...
@@ -97,7 +97,7 @@
versionName
:
'v 1.0.0'
,
auth
:
false
,
// 三要素实名认证
userInfo
:
null
,
pkgName
:
'com.mints.dy
bright
video'
pkgName
:
'com.mints.dy
mini
video'
}
};
</
script
>
...
...
vedio/components/ad-popup/ad-popup.vue
View file @
0d03a35e
...
...
@@ -10,7 +10,7 @@
<view
class=
"content"
>
<text
class=
"title"
>
恭喜你,获得免费看剧名额
</text>
<text
class=
"button"
@
click=
"handleClose"
>
看视频免费解锁1集
</text>
<text
class=
"downtext"
>
{{
countDown
+
's后自动进入广告页面解锁后续'
}}
</text>
<text
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,观看完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
</view>
</view>
</uni-popup>
...
...
@@ -29,6 +29,10 @@
type
:
Boolean
,
default
:
false
,
},
vedioIndex
:
{
type
:
[
Number
,
String
],
default
:
0
}
},
data
()
{
return
{
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
0d03a35e
...
...
@@ -243,6 +243,11 @@
return
}
if
(
ttData
.
imId
==
null
)
{
message
.
notify
(
'暂不支付ios支付,请更换设备'
);
return
}
tt
.
getOrderPayment
({
orderId
:
oid
,
imId
:
ttData
.
imId
,
...
...
@@ -260,7 +265,7 @@
that
.
queryOrderStatus
(
largeType
,
ttData
.
tidStr
);
},
fail
(
res
)
{
message
.
notify
(
res
.
errMsg
);
//
message.notify(res.errMsg);
},
});
}
...
...
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
0d03a35e
...
...
@@ -68,7 +68,7 @@
:originIndex=
"originIndex"
/>
<coin-popup
:show=
"showCoinPop"
:point=
"data.point"
:vedioId=
"data.vedioId"
@
close=
"showCoinPop = false"
@
clickClose=
"coinPopupClose"
@
paySuccess=
"paySuccess"
/>
<ad-popup
:show=
"showAdPop"
@
close=
"adPopupClose"
/>
<ad-popup
:show=
"showAdPop"
@
close=
"adPopupClose"
:vedioIndex=
"originIndex"
/>
</view>
</
template
>
...
...
@@ -129,6 +129,7 @@
showTap
:
false
,
showCoinPop
:
false
,
showAdPop
:
false
,
showAdForServer
:
false
,
vipBackPage
:
''
,
canUseTTPlayer
:
true
,
};
...
...
@@ -168,6 +169,16 @@
});
}
this
.
post
({
url
:
'/vedio/confs'
,
showLoading
:
false
,
success
:
({
data
})
=>
{
this
.
showAdForServer
=
data
.
douyinAdTipOpen
;
}
});
},
// 分享
// onShareAppMessage() {
...
...
@@ -444,9 +455,6 @@
this
.
isqp
=
e
.
detail
.
show
},
collect
(
vedioId
,
index
)
{
this
.
showAdPop
=
true
return
this
.
data
.
collect
=
1
// 收藏
this
.
post
({
...
...
@@ -546,7 +554,11 @@
this
.
ad
.
load
();
},
coinPopupClose
()
{
if
(
this
.
showAdForServer
)
{
this
.
showAdPop
=
true
}
else
{
this
.
showCoinPop
=
false
}
},
adPopupClose
()
{
this
.
showAdPop
=
false
...
...
vedio/utils/adConstant.js
View file @
0d03a35e
export
const
EXPRESS_ID
=
'q1031ievmv1z3j28gs'
export
const
REWARD_ID
=
'm1qtdoeeqq9txgahk4'
\ No newline at end of file
export
const
REWARD_ID
=
'jgv3yh3ma725kbclev'
\ No newline at end of file
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