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
abb53a01
Commit
abb53a01
authored
Jun 24, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改投放小说
parent
8fd218ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
24 deletions
+27
-24
index.js
vedio/components/warehouse/services/index.js
+9
-1
warehouse.vue
vedio/components/warehouse/warehouse.vue
+17
-12
loading.vue
vedio/pages/loading.vue
+1
-11
No files found.
vedio/components/warehouse/services/index.js
View file @
abb53a01
...
...
@@ -10,6 +10,14 @@ function getCategorys(callback) {
})
}
function
getFirstShow
(
callback
)
{
apiPOST
({
url
:
"/book/firstArticle"
,
callback
})
}
module
.
exports
=
{
getCategorys
getCategorys
,
getFirstShow
}
\ No newline at end of file
vedio/components/warehouse/warehouse.vue
View file @
abb53a01
...
...
@@ -29,7 +29,8 @@
gotoBookContentPage
}
from
'../../common/services/page-route'
import
{
getCategorys
getCategorys
,
getFirstShow
}
from
"./services/index.js"
import
{
isEmpty
...
...
@@ -92,17 +93,8 @@
},
methods
:
{
show
()
{
setTimeout
(()
=>
{
// 匹配用户直接跳转小说
var
bookId
=
uni
.
getStorageSync
(
'firstBookId'
)
if
(
bookId
!=
''
)
{
gotoBookContentPage
(
bookId
);
uni
.
setStorage
({
key
:
'firstBookId'
,
data
:
''
});
}
},
800
);
this
.
getFirstShowData
();
this
.
getCategoryData
();
if
(
wx
.
setVisualEffectOnCapture
)
{
...
...
@@ -121,6 +113,19 @@
setTimeout
(()
=>
{
this
.
initHeight
()
},
300
)
},
getFirstShowData
(){
getFirstShow
((
success
,
data
)
=>
{
if
(
success
)
{
setTimeout
(()
=>
{
// 匹配用户直接跳转小说
if
(
data
.
articleMsg
!=
null
)
{
gotoBookContentPage
(
data
.
articleMsg
.
id
);
}
},
800
);
}
})
},
getCategoryData
()
{
getCategorys
((
success
,
data
)
=>
{
...
...
vedio/pages/loading.vue
View file @
abb53a01
...
...
@@ -67,17 +67,7 @@
key
:
'firstBookId'
,
data
:
bookId
});
}
// app.globalData.userId = data.idcode;
// uni.setStorage({
// key: 'token',
// data: 'D6E76AC8E89ABE548B56568B8814D578D6980EAB68926EB1E7C07BF9E96A316F5F433703067DF5142735505C42F58997'
// });
// setTimeout(() => {
// redirectTo('home');
// }, 1000);
// return
}
tt
.
login
({
force
:
true
,
...
...
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