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
a9580391
Commit
a9580391
authored
May 28, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
2b7150a6
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
2451 additions
and
2450 deletions
+2451
-2450
ad-popup.vue
vedio/components/ad-popup/ad-popup.vue
+127
-127
coin-popup.vue
vedio/components/coin-popup/coin-popup.vue
+372
-372
index.vue
vedio/components/home/index.vue
+3
-3
my.vue
vedio/components/home/my.vue
+262
-262
manifest.json
vedio/manifest.json
+1
-1
share.js
vedio/mixins/share.js
+26
-26
pages.json
vedio/pages.json
+166
-166
loading.vue
vedio/pages/loading.vue
+2
-1
recommendVideo.vue
vedio/pages/recommend/recommendVideo.vue
+421
-421
ttVideoDetail.vue
vedio/pagesC/ttvideo/ttVideoDetail.vue
+800
-800
dotRecord.vue
vedio/pagesD/dotRecord/dotRecord.vue
+70
-70
useDotRecord.vue
vedio/pagesD/useDotRecord/useDotRecord.vue
+70
-70
watchRecord.vue
vedio/pagesD/watchRecord/watchRecord.vue
+131
-131
No files found.
vedio/components/ad-popup/ad-popup.vue
View file @
a9580391
...
...
@@ -10,7 +10,7 @@
<view
class=
"content"
>
<text
class=
"title"
>
恭喜你,获得免费看剧名额
</text>
<text
class=
"button"
@
click=
"handleClose"
>
看视频免费解锁1集
</text>
<text
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,
观看完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
<text
class=
"downtext"
>
{{
countDown
}}
s后自动进入广告,
阅读完成解锁第
{{
vedioIndex
+
1
}}
集剧情
</text>
</view>
</view>
</uni-popup>
...
...
vedio/components/coin-popup/coin-popup.vue
View file @
a9580391
...
...
@@ -7,9 +7,9 @@
style=
"width: 100%;height: 100%;background-color: black;opacity: 0.8;display: flex;position: absolute;z-index: 100;color: white;flex-direction: column;align-items: center;padding:40rpx 0;"
>
<text
style=
"font-size: 30rpx;"
>
付费须知 \n
1、
看点和会员属于虚拟商品,一经购买不可退换 \n
1、
书豆和会员属于虚拟商品,一经购买不可退换 \n
2、未满18岁的未成年人需要在监护人主导、同意下进行相关付费操作;\n
3、充值
看点一般5分钟内到账,如未到账请在“我的”页面联系客服;
3、充值
书豆一般5分钟内到账,如未到账请在“我的”页面联系客服;
</text>
<image
@
click=
"agreeFlag=false"
style=
"width: 30rpx;height: 30rpx;margin-top:150rpx;"
src=
"@/static/index/ic_quit_white.png"
></image>
...
...
@@ -32,7 +32,7 @@
<view
style=
"font-size: 28rpx;color: #644238;margin-top: 12rpx;"
>
解锁本集:
</view>
<view
style=
"font-size: 42rpx;color: red;font-weight: 777;"
>
{{
point
}}
</view>
<view
style=
"font-size: 28rpx;color: #644238;margin-top: 12rpx;margin-left: 6rpx;"
>
看点
书豆
</view>
</view>
<view
v-if=
"point>0"
style=
"width: 60rpx;"
></view>
...
...
@@ -41,7 +41,7 @@
<view
style=
"font-size: 42rpx;color: red;font-weight: 777;"
>
{{
userBean
.
point
}}
</view>
<view
style=
"font-size: 28rpx;color: #644238;margin-top: 12rpx;margin-left: 6rpx;"
>
看点
书豆
</view>
</view>
</view>
...
...
@@ -123,7 +123,7 @@
agreeFlag
:
false
,
userBean
:
{},
os
:
'android'
,
titleText
:
'超多精彩
好剧一键解锁'
,
titleText
:
'超多精彩
小说一键解锁'
,
showClone
:
false
};
},
...
...
@@ -142,7 +142,7 @@
}
this
.
post
({
url
:
'/vip/getVipProducts
/point'
,
url
:
'/vip/getVipProducts
'
,
data
:
{
vedioId
:
that
.
point
<=
0
?
null
:
that
.
vedioId
},
...
...
vedio/components/home/index.vue
View file @
a9580391
...
...
@@ -175,7 +175,7 @@
:src=
"newRecordBean.coverImage"
mode=
"aspectFill"
></image>
<view
style=
"margin: 20rpx;"
>
<view
style=
"font-size: 30rpx; color: white;"
>
{{
newRecordBean
.
title
}}
</view>
<view
style=
"font-size: 24rpx;margin-top: 6rpx;color: white;"
>
上次
观看
至第
{{
newRecordBean
.
seeIndex
}}
集
<view
style=
"font-size: 24rpx;margin-top: 6rpx;color: white;"
>
上次
阅读
至第
{{
newRecordBean
.
seeIndex
}}
集
</view>
<view
style=
"font-size: 22rpx;"
v-if=
"newRecordBean.orderTags!=null&&newRecordBean.orderTags.length>0"
>
...
...
@@ -202,7 +202,7 @@
color: white;
font-size: 24rpx;
margin-right: 20rpx;"
>
继续
观看
继续
阅读
</view>
</view>
...
...
@@ -306,7 +306,7 @@
this
.
topList
=
data
.
list
;
}
});
// 最近
观看
剧
// 最近
阅读
剧
this
.
post
({
url
:
'/vedio/newest'
,
data
:
{},
...
...
vedio/components/home/my.vue
View file @
a9580391
...
...
@@ -20,7 +20,7 @@
</view>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"font-size: 30rpx;color: #5b1500;margin-top: 12rpx;"
>
解锁全部
短剧
解锁全部
小说
</view>
<view
v-else
style=
"font-size: 30rpx;color: #5b1500;margin-top: 12rpx;"
>
到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
...
...
@@ -47,9 +47,9 @@
<image
style=
"width: 50rpx;height: 50rpx;display: flex;align-items: right;margin-right: 10rpx;"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_my_coin.png"
></image>
<view
style=
"font-size: 36rpx;font-weight: 777;"
>
看点充值
</view>
<view
style=
"font-size: 36rpx;font-weight: 777;"
>
书豆充值
</view>
</view>
<view
style=
"font-size: 28rpx;color: #5b1500;margin-top: 20rpx;"
>
海量
看点狂洒中,好剧等你来解锁
</view>
<view
style=
"font-size: 28rpx;color: #5b1500;margin-top: 20rpx;"
>
海量
书豆狂洒中,小说等你来解锁
</view>
</view>
</view>
<view
style=
"width: 220rpx;"
>
...
...
@@ -72,7 +72,7 @@
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
v-if=
"os === 'android' "
class=
"item arrow"
@
click=
"handleDotRecord"
>
看点记录
书豆记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
v-if=
"os === 'android' "
class=
"item arrow"
@
click=
"handleUseDotRecord"
>
...
...
@@ -80,7 +80,7 @@
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handleWatchRecord"
>
观看记录
阅读记录
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handlePhone"
>
...
...
@@ -153,11 +153,11 @@
},
handleDotRecord
()
{
//
看点记录
//
书豆记录
navigateTo
(
`/pagesD/dotRecord/dotRecord`
)
},
handleUseDotRecord
()
{
//
看点消费记录
//
书豆消费记录
navigateTo
(
`/pagesD/useDotRecord/useDotRecord`
)
},
handleWatchRecord
()
{
...
...
@@ -223,7 +223,7 @@
},
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买
看点
// largeType=point 购买
书豆
if
(
wx
.
getSystemInfoSync
().
platform
==
'ios'
){
message
.
notify
(
'支付成功'
);
}
...
...
vedio/manifest.json
View file @
a9580391
...
...
@@ -177,7 +177,7 @@
"enable"
:
true
}
},
"title"
:
"
短剧
"
,
"title"
:
"
小说
"
,
"router"
:
{
"base"
:
"./"
},
...
...
vedio/mixins/share.js
View file @
a9580391
...
...
@@ -2,7 +2,7 @@ export default {
data
()
{
return
{
share
:
{
title
:
'更多
好剧,等你来看'
,
title
:
'更多
小说,等你来看'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/ic_movie.png'
,
path
:
'/pages/loading?shareId='
}
...
...
vedio/pages.json
View file @
a9580391
...
...
@@ -101,7 +101,7 @@
"pages"
:
[{
"path"
:
"watchRecord/watchRecord"
,
"style"
:
{
"navigationBarTitleText"
:
"
观看记录"
,
"navigationBarTitleText"
:
"
阅读记录"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
...
...
@@ -117,7 +117,7 @@
},
{
"path"
:
"dotRecord/dotRecord"
,
"style"
:
{
"navigationBarTitleText"
:
"
看点记录"
,
"navigationBarTitleText"
:
"
书豆记录"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
...
...
vedio/pages/loading.vue
View file @
a9580391
...
...
@@ -5,7 +5,7 @@
<view
style=
"color: #A231EF;margin-top: 10rpx;font-size: 40rpx;font-size: 40rpx;"
>
欢迎使用
</view>
<view
style=
"bottom: 0;position: absolute;"
>
<image
style=
"width: 540rpx;height: 644rpx;display: flex;align-items: center;margin-bottom: 30%;"
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_splash.png"
mode=
"scaleToFill"
>
src=
"https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/b
ook_b
g_splash.png"
mode=
"scaleToFill"
>
</image>
</view>
...
...
@@ -40,6 +40,7 @@
},
onLoad
(
options
)
{
this
.
tips1
=
options
.
tips1
this
.
appName
=
'幻墨小说阁'
},
onShow
(
options
)
{
...
...
vedio/pages/recommend/recommendVideo.vue
View file @
a9580391
...
...
@@ -176,10 +176,10 @@
cloudType
:
1
,
version
:
1
,
success
:
()
=>
{
console
.
log
(
"
短剧
预加载成功"
+
this
.
displaySwiperList
[
preIndex
].
douyinEpisodeId
);
console
.
log
(
"
小说
预加载成功"
+
this
.
displaySwiperList
[
preIndex
].
douyinEpisodeId
);
},
fail
:
(
error
)
=>
{
console
.
log
(
"
短剧
预加载失败"
,
error
);
console
.
log
(
"
小说
预加载失败"
,
error
);
},
});
},
...
...
vedio/pagesC/ttvideo/ttVideoDetail.vue
View file @
a9580391
...
...
@@ -209,16 +209,16 @@
cloudType
:
1
,
version
:
1
,
success
:
()
=>
{
console
.
log
(
"
短剧预加载成功"
+
this
.
displaySwiperList
[
preIndex
].
douyinEpisodeId
);
console
.
log
(
"
小说预加载成功"
+
this
.
displaySwiperList
[
preIndex
].
douyinEpisodeId
);
},
fail
:
(
error
)
=>
{
console
.
log
(
"
短剧预加载失败"
,
error
);
console
.
log
(
"
小说预加载失败"
,
error
);
},
});
},
paySuccess
(
largeType
)
{
// largeType=vip 开通vip
// largeType=point 购买
看点
// largeType=point 购买
书豆
// largeType=curVedio 解锁当前剧所有集
if
(
largeType
==
'vip'
)
{
this
.
vipBackPage
=
this
.
originIndex
...
...
@@ -536,7 +536,7 @@
that
.
adUnlock
(
that
.
originIndex
,
''
)
}
else
{
uni
.
showToast
({
title
:
"未
观看完整视频"
title
:
"未
阅读完整视频"
})
that
.
$nextTick
(()
=>
{
...
...
vedio/pagesD/dotRecord/dotRecord.vue
View file @
a9580391
<
template
>
<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"
>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
class=
"flex m-20 pd-20"
style=
"background-color:white;border-radius:10rpx;"
>
...
...
@@ -13,7 +13,7 @@
</view>
</view>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
{{
'+'
+
item
.
subValue
+
'
看点'
}}
{{
'+'
+
item
.
subValue
+
'
书豆'
}}
</view>
</view>
</view>
...
...
vedio/pagesD/useDotRecord/useDotRecord.vue
View file @
a9580391
...
...
@@ -14,7 +14,7 @@
</view>
</view>
<view
style=
"margin:auto 10rpx auto auto;font-size: 36rpx;color: steelblue;"
>
{{
'-'
+
item
.
subValue
+
'
看点'
}}
{{
'-'
+
item
.
subValue
+
'
书豆'
}}
</view>
</view>
</view>
...
...
vedio/pagesD/watchRecord/watchRecord.vue
View file @
a9580391
<
template
>
<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"
:defaultPageNo=
"1"
:defaultPageSize=
"500"
>
<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>
<view
v-for=
"(item, i) in dataList"
:key=
"i"
>
<view
style=
"display: flex;flex-direction: row;justify-content:space-between;margin: 20rpx;"
>
...
...
@@ -12,7 +12,7 @@
<view
style=
"display: flex;flex-direction: column;margin-left: 20rpx;"
>
<view
style=
"font-size: 30rpx;color: black;"
>
{{
item
.
title
}}
</view>
<view
style=
"font-size: 22rpx;color: gray;margin-top: 16rpx;"
>
观看至第
{{
item
.
seeIndex
}}
集
</view>
<view
style=
"font-size: 22rpx;color: gray;margin-top: 16rpx;"
>
阅读至第
{{
item
.
seeIndex
}}
集
</view>
</view>
</view>
<view
style=
"display: flex;align-items: center;margin-right: 8rpx;"
>
...
...
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