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
afe8cef8
Commit
afe8cef8
authored
May 30, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
a232325f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
18 deletions
+12
-18
my.vue
vedio/components/home/my.vue
+3
-0
share.js
vedio/mixins/share.js
+2
-2
loading.vue
vedio/pages/loading.vue
+7
-16
No files found.
vedio/components/home/my.vue
View file @
afe8cef8
...
@@ -136,6 +136,9 @@
...
@@ -136,6 +136,9 @@
initHeight
()
{
initHeight
()
{
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
const
query
=
uni
.
createSelectorQuery
().
in
(
this
);
query
.
select
(
"#count"
).
boundingClientRect
();
query
.
select
(
"#count"
).
boundingClientRect
();
},
onShow
(){
},
},
show
()
{
show
()
{
// 更新阅读时间统计
// 更新阅读时间统计
...
...
vedio/mixins/share.js
View file @
afe8cef8
...
@@ -3,8 +3,8 @@ export default {
...
@@ -3,8 +3,8 @@ export default {
return
{
return
{
share
:
{
share
:
{
title
:
'更多小说,等你来看'
,
title
:
'更多小说,等你来看'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/
ic_movie
.png'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/
book_bg_splash
.png'
,
path
:
'/pages/loading?shareId='
path
:
'/pages/loading?shareId='
+
getApp
().
globalData
.
userId
}
}
}
}
},
},
...
...
vedio/pages/loading.vue
View file @
afe8cef8
...
@@ -48,20 +48,15 @@
...
@@ -48,20 +48,15 @@
ttLoging
()
{
ttLoging
()
{
var
that
=
this
;
var
that
=
this
;
var
obj
=
tt
.
getLaunchOptionsSync
()
var
obj
=
tt
.
getLaunchOptionsSync
()
var
tips2
=
''
;
// 投放测试
var
tips2
=
''
;
// 投放测试
var
remark1
=
''
;
// 预留
var
remark2
=
''
;
// 预留
var
remark3
=
''
;
// 预留
var
thirdParam
=
""
;
var
thirdParam
=
""
;
var
bookId
=
''
;
var
bookId
=
''
;
bookId
=
obj
.
query
.
book
_id
??
''
bookId
=
obj
.
query
.
vedio
_id
??
''
tips2
=
obj
.
query
.
tips2
??
''
tips2
=
obj
.
query
.
tips2
??
''
remark1
=
obj
.
query
.
remark1
??
''
remark2
=
obj
.
query
.
remark2
??
''
remark3
=
obj
.
query
.
remark3
??
''
thirdParam
=
JSON
.
stringify
(
obj
.
query
);
thirdParam
=
JSON
.
stringify
(
obj
.
query
);
// 打印渠道参数
// 打印渠道参数
if
(
this
.
tips1
==
'mints_
vedio'
||
tips2
==
'mints_vedio
'
)
{
if
(
this
.
tips1
==
'mints_
book'
||
tips2
==
'mints_book
'
)
{
this
.
slotParam
=
JSON
.
stringify
(
obj
.
query
);
this
.
slotParam
=
JSON
.
stringify
(
obj
.
query
);
this
.
$refs
.
select
.
open
(
'center'
);
this
.
$refs
.
select
.
open
(
'center'
);
}
}
...
@@ -80,19 +75,16 @@
...
@@ -80,19 +75,16 @@
that
.
post
({
that
.
post
({
url
:
'/user/ttLogin'
,
url
:
'/user/ttLogin'
,
data
:
{
data
:
{
bookId
:
bookId
,
vedioId
:
bookId
,
channel
:
'douyin'
,
code
:
res
.
code
,
code
:
res
.
code
,
anonymousCode
:
res
.
anonymousCode
,
anonymousCode
:
res
.
anonymousCode
,
remark1
:
remark1
,
remark2
:
remark2
,
remark3
:
remark3
,
thirdParam
:
thirdParam
thirdParam
:
thirdParam
},
},
showLoading
:
false
,
showLoading
:
false
,
success
:
({
success
:
({
data
data
})
=>
{
})
=>
{
app
.
globalData
.
userId
=
data
.
idcode
;
uni
.
setStorage
({
uni
.
setStorage
({
key
:
'token'
,
key
:
'token'
,
data
:
data
.
token
data
:
data
.
token
...
@@ -116,7 +108,6 @@
...
@@ -116,7 +108,6 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.body
{
.body
{
background-color
:
white
;
background-color
:
white
;
// background: linear-gradient(to bottom, #F2F1FF, #FBFBFF);
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
align-items
:
center
;
align-items
:
center
;
...
...
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