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
a232325f
Commit
a232325f
authored
May 30, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加匹配用户跳转小说逻辑
parent
b24c9eb5
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
19 deletions
+69
-19
my.vue
vedio/components/home/my.vue
+40
-6
warehouse.vue
vedio/components/warehouse/warehouse.vue
+8
-3
loading.vue
vedio/pages/loading.vue
+15
-4
readerRecord.vue
vedio/pagesD/readerRecord/readerRecord.vue
+6
-6
No files found.
vedio/components/home/my.vue
View file @
a232325f
<
template
>
<
template
>
<view
class=
"body"
>
<view
class=
"body"
>
<!--
<scroll-view
:scroll-y=
"true"
>
-->
<!--
<z-paging
style=
"height: 100%;"
>
-->
<z-paging
style=
"height: 100%;"
>
<view
v-if=
"showMask"
class=
"show-mask flex-v"
@
click=
"showMask=false"
>
<view
class=
"mt-30"
style=
"width: 90%;text-align: right;"
>
<image
style=
"width: 30rpx;height: 30rpx;padding:6rpx;
border-radius: 40rpx;border: 2px solid darkgray;"
src=
"@/static/index/ic_quit_white.png"
/>
</view>
<text
class=
"mt-10"
style=
"font-size: 46rpx;"
>
如何继续使用?
</text>
<text
class=
"m-10"
>
找到“幻墨小说阁”小程序
</text>
<image
class=
"mt-30"
mode=
"widthFix"
:src=
"maskImage1"
></image>
<image
:src=
"maskImage2"
mode=
"widthFix"
></image>
</view>
<view
<view
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
:style=
"'display: flex;flex-direction: row;align-items: center;margin: 20rpx;padding-left: 10rpx;margin-top:'+10+'px;'"
>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
<image
class=
"avatar"
src=
"@/static/logo-about.png"
></image>
...
@@ -26,7 +37,7 @@
...
@@ -26,7 +37,7 @@
</view>
</view>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;"
>
<view
v-if=
"userBean.expireTime
<
=
0
"
style=
"font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;"
>
开通会员
畅读VIP
享更多福利
</view>
开通会员享更多福利
</view>
<view
v-else
style=
"font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;"
>
<view
v-else
style=
"font-size: 28rpx;color: #b5b5b5;margin-top: 20rpx;"
>
到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
</view>
到期时间:
{{
userBean
.
expireTime
*
1000
|
formatDate
(
'yyyy-MM-dd'
)
}}
</view>
</view>
</view>
...
@@ -59,6 +70,10 @@
...
@@ -59,6 +70,10 @@
阅读记录
阅读记录
<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=
"handleFind"
>
如何找到我
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
</view>
<view
class=
"item arrow"
@
click=
"handlePhone"
>
<view
class=
"item arrow"
@
click=
"handlePhone"
>
联系客服
联系客服
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
<view
class=
"item_bd ellipsis"
style=
"margin-left: 58rpx;"
></view>
...
@@ -68,8 +83,7 @@
...
@@ -68,8 +83,7 @@
<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>
</z-paging>
<!--
</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>
...
@@ -100,6 +114,9 @@
...
@@ -100,6 +114,9 @@
mixins
:
[
common
],
mixins
:
[
common
],
data
()
{
data
()
{
return
{
return
{
showMask
:
false
,
maskImage1
:
'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find1.png'
,
maskImage2
:
'https://mints-web.oss-cn-beijing.aliyuncs.com/images/bg_find2.png'
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
statusBarHeight
:
app
.
globalData
.
statusBarHeight
,
userBean
:
{},
userBean
:
{},
showAnimate
:
false
,
showAnimate
:
false
,
...
@@ -154,6 +171,9 @@
...
@@ -154,6 +171,9 @@
handlePayRecord
()
{
handlePayRecord
()
{
navigateTo
(
`/pagesD/payRecord/payRecord`
)
navigateTo
(
`/pagesD/payRecord/payRecord`
)
},
},
handleFind
(){
this
.
showMask
=
true
},
handlePhone
()
{
handlePhone
()
{
wx
.
makePhoneCall
({
wx
.
makePhoneCall
({
phoneNumber
:
'4000969950'
,
phoneNumber
:
'4000969950'
,
...
@@ -263,4 +283,18 @@
...
@@ -263,4 +283,18 @@
font-style
:
italic
;
font-style
:
italic
;
}
}
}
}
.show-mask
{
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0
.6
);
position
:
absolute
;
z-index
:
999
;
color
:
white
;
align-items
:
center
;
image
{
width
:
90%
;
}
}
</
style
>
</
style
>
\ No newline at end of file
vedio/components/warehouse/warehouse.vue
View file @
a232325f
...
@@ -89,8 +89,13 @@
...
@@ -89,8 +89,13 @@
show
()
{
show
()
{
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// 匹配用户直接跳转小说
// 匹配用户直接跳转小说
if
(
options
.
bookId
!=
''
&&
options
.
bookId
!=
undefined
)
{
var
bookId
=
uni
.
getStorageSync
(
'firstBookId'
)
gotoBookContentPage
(
options
.
bookId
);
if
(
bookId
!=
''
)
{
gotoBookContentPage
(
bookId
);
uni
.
setStorage
({
key
:
'firstBookId'
,
data
:
''
});
}
}
},
800
);
},
800
);
this
.
getCategoryData
();
this
.
getCategoryData
();
...
...
vedio/pages/loading.vue
View file @
a232325f
...
@@ -53,6 +53,8 @@
...
@@ -53,6 +53,8 @@
var
remark2
=
''
;
// 预留
var
remark2
=
''
;
// 预留
var
remark3
=
''
;
// 预留
var
remark3
=
''
;
// 预留
var
thirdParam
=
""
;
var
thirdParam
=
""
;
var
bookId
=
''
;
bookId
=
obj
.
query
.
book_id
??
''
tips2
=
obj
.
query
.
tips2
??
''
tips2
=
obj
.
query
.
tips2
??
''
remark1
=
obj
.
query
.
remark1
??
''
remark1
=
obj
.
query
.
remark1
??
''
remark2
=
obj
.
query
.
remark2
??
''
remark2
=
obj
.
query
.
remark2
??
''
...
@@ -64,12 +66,21 @@
...
@@ -64,12 +66,21 @@
this
.
$refs
.
select
.
open
(
'center'
);
this
.
$refs
.
select
.
open
(
'center'
);
}
}
// 首次跳转进小书页面
if
(
bookId
!=
''
)
{
uni
.
setStorage
({
key
:
'firstBookId'
,
data
:
bookId
});
}
tt
.
login
({
tt
.
login
({
force
:
true
,
force
:
true
,
success
(
res
)
{
success
(
res
)
{
that
.
post
({
that
.
post
({
url
:
'/user/ttLogin'
,
url
:
'/user/ttLogin'
,
data
:
{
data
:
{
bookId
:
bookId
,
channel
:
'douyin'
,
channel
:
'douyin'
,
code
:
res
.
code
,
code
:
res
.
code
,
anonymousCode
:
res
.
anonymousCode
,
anonymousCode
:
res
.
anonymousCode
,
...
...
vedio/pagesD/readerRecord/readerRecord.vue
View file @
a232325f
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
},
},
queryList
(
page
,
size
)
{
queryList
(
page
,
size
)
{
this
.
post
({
this
.
post
({
url
:
'/
readSystem/system/readRecord/l
ist'
,
url
:
'/
book/readRecordL
ist'
,
data
:
{
data
:
{
page
,
page
,
size
size
...
@@ -80,11 +80,11 @@
...
@@ -80,11 +80,11 @@
handleXing
(
item
)
{
handleXing
(
item
)
{
var
that
=
this
;
var
that
=
this
;
//0未收藏,1收藏
//0未收藏,1收藏
if
(
item
.
isCollect
==
0
)
{
if
(
!
item
.
isCollect
)
{
this
.
post
({
this
.
post
({
url
:
'/
vedio
/collect'
,
url
:
'/
book
/collect'
,
data
:
{
data
:
{
vedioId
:
item
.
vedio
Id
,
articleId
:
item
.
article
Id
,
},
},
showLoading
:
false
,
showLoading
:
false
,
success
:
({
success
:
({
...
@@ -95,9 +95,9 @@
...
@@ -95,9 +95,9 @@
});
});
}
else
{
}
else
{
this
.
post
({
this
.
post
({
url
:
'/
vedio
/cancelCollect'
,
url
:
'/
book
/cancelCollect'
,
data
:
{
data
:
{
vedioId
:
item
.
vedio
Id
,
articleId
:
item
.
article
Id
,
},
},
showLoading
:
false
,
showLoading
:
false
,
success
:
({
success
:
({
...
...
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