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
772c36dc
Commit
772c36dc
authored
May 31, 2024
by
jyx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
64d49eb9
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
264 additions
and
181 deletions
+264
-181
warehousetemp.vue
vedio/components/warehouse/warehousetemp.vue
+160
-160
share.js
vedio/mixins/share.js
+2
-1
home.vue
vedio/pages/home.vue
+12
-12
loading.vue
vedio/pages/loading.vue
+8
-8
readiconfont.css
vedio/static/readiconfont.css
+81
-0
utils.js
vedio/utils/utils.js
+1
-0
No files found.
vedio/components/warehouse/warehousetemp.vue
View file @
772c36dc
vedio/mixins/share.js
View file @
772c36dc
...
...
@@ -4,7 +4,8 @@ export default {
share
:
{
title
:
'更多小说,等你来看'
,
imageUrl
:
'https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/book_bg_splash.png'
,
path
:
'/pages/loading?shareId='
+
getApp
().
globalData
.
userId
// path: '/pages/loading?shareId='+getApp().globalData.userId
path
:
'/pages/loading?shareId='
}
}
},
...
...
vedio/pages/home.vue
View file @
772c36dc
...
...
@@ -71,18 +71,18 @@
},
onShow
()
{
try
{
// 在子组件重写show()代替onShow()
if
(
this
.
currentPage
==
0
)
{
this
.
$refs
.
index
.
show
();
}
else
if
(
this
.
currentPage
==
1
)
{
this
.
$refs
.
recommend
.
show
();
}
else
if
(
this
.
currentPage
==
2
)
{
this
.
$refs
.
user
.
show
();
}
}
catch
(
e
)
{
//
try {
//
// 在子组件重写show()代替onShow()
//
if (this.currentPage == 0) {
//
this.$refs.index.show();
//
} else if (this.currentPage == 1) {
//
this.$refs.recommend.show();
//
} else if (this.currentPage == 2) {
//
this.$refs.user.show();
//
}
//
} catch (e) {
}
//
}
},
mounted
()
{
// 渲染完成 初始化首页数据
...
...
@@ -92,7 +92,7 @@
tabChange
(
index
)
{
if
(
this
.
currentPage
==
index
)
return
this
.
currentPage
=
index
;
this
.
loadComponentData
();
//
this.loadComponentData();
},
loadComponentData
()
{
if
(
this
.
currentPage
==
0
)
{
...
...
vedio/pages/loading.vue
View file @
772c36dc
...
...
@@ -70,14 +70,14 @@
}
// app.globalData.userId = data.idcode;
//
uni.setStorage({
//
key: 'token',
//
data: 'D6E76AC8E89ABE548B56568B8814D578D6980EAB68926EB1E7C07BF9E96A316F5F433703067DF5142735505C42F58997'
//
});
//
setTimeout(() => {
//
redirectTo('home');
//
}, 1000);
//
return
uni
.
setStorage
({
key
:
'token'
,
data
:
'D6E76AC8E89ABE548B56568B8814D578D6980EAB68926EB1E7C07BF9E96A316F5F433703067DF5142735505C42F58997'
});
setTimeout
(()
=>
{
redirectTo
(
'home'
);
},
1000
);
return
tt
.
login
({
force
:
true
,
...
...
vedio/static/readiconfont.css
0 → 100644
View file @
772c36dc
@font-face
{
font-family
:
"readiconfont"
;
/* Project id 4264833 */
src
:
url('/static/fonts/readiconfont.ttf')
format
(
'truetype'
);
}
.readiconfont
{
font-family
:
"readiconfont"
!important
;
font-size
:
16px
;
font-style
:
normal
;
-webkit-font-smoothing
:
antialiased
;
-moz-osx-font-smoothing
:
grayscale
;
}
.icon-vip
:before
{
content
:
"\e60d"
;
}
.icon-share
:before
{
content
:
"\e60e"
;
}
.icon-setting
:before
{
content
:
"\e64a"
;
}
.icon-undiss
:before
{
content
:
"\e686"
;
}
.icon-unlike
:before
{
content
:
"\ec7f"
;
}
.icon-like
:before
{
content
:
"\ec8c"
;
}
.icon-uncollection
:before
{
content
:
"\e602"
;
}
.icon-collection
:before
{
content
:
"\e7ef"
;
}
.icon-diss
:before
{
content
:
"\e68f"
;
}
.icon-love
:before
{
content
:
"\e638"
;
}
.icon-author
:before
{
content
:
"\e668"
;
}
.icon-server
:before
{
content
:
"\e6aa"
;
}
.icon-read
:before
{
content
:
"\e633"
;
}
.icon-logout
:before
{
content
:
"\e677"
;
}
.icon-bookshelf
:before
{
content
:
"\e604"
;
}
.icon-person
:before
{
content
:
"\e605"
;
}
.icon-cloud
:before
{
content
:
"\e606"
;
}
\ No newline at end of file
vedio/utils/utils.js
View file @
772c36dc
export
const
PAKEAGE_NAME
=
'com.duben.dybookhm'
// export const PAKEAGE_NAME = 'com.test.test'
export
function
trim
(
str
)
{
return
str
?
str
.
replace
(
/
(
^
\s
*
)
|
(\s
*$
)
/g
,
""
)
:
''
...
...
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