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
0fb67f81
Commit
0fb67f81
authored
Jul 17, 2024
by
mengcuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码优化
parent
75dfbac4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
11 deletions
+42
-11
pages.json
vedio/pages.json
+15
-5
home.vue
vedio/pages/home.vue
+24
-4
loading.vue
vedio/pages/loading.vue
+3
-2
No files found.
vedio/pages.json
View file @
0fb67f81
...
@@ -21,9 +21,10 @@
...
@@ -21,9 +21,10 @@
{
{
"path"
:
"pages/home"
,
"path"
:
"pages/home"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"河狸小故事"
,
"navigationStyle"
:
"default"
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"
#000000
"
"navigationBarTextStyle"
:
"
black
"
}
}
},
{
},
{
"path"
:
"pages/brower/brower"
,
"path"
:
"pages/brower/brower"
,
...
@@ -59,21 +60,30 @@
...
@@ -59,21 +60,30 @@
"path"
:
"book-search/book-search"
,
"path"
:
"book-search/book-search"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"书籍搜索"
,
"navigationBarTitleText"
:
"书籍搜索"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
}
},
{
},
{
"path"
:
"book-content/book-content"
,
"path"
:
"book-content/book-content"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"阅读"
,
"navigationBarTitleText"
:
"阅读"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
}
},
{
},
{
"path"
:
"book-cover/book-cover"
,
"path"
:
"book-cover/book-cover"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"封面"
,
"navigationBarTitleText"
:
"封面"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
,
"navigationStyle"
:
"default"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarTextStyle"
:
"black"
}
}
}]
}]
...
...
vedio/pages/home.vue
View file @
0fb67f81
...
@@ -38,7 +38,17 @@
...
@@ -38,7 +38,17 @@
</view>
</view>
<view
v-else
class=
"body"
>
<view
v-else
class=
"body"
>
<view
style=
"height: 95%;"
>
<view
: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>
<view>
<view
style=
"font-size: 34rpx;color: black;margin-left: 30rpx;"
>
用户ID:
{{
localIdcode
}}
</view>
<view
style=
"font-size: 26rpx;color: #b5b5b5;margin-left: 30rpx;margin-top: 10rpx;"
>
书中自有颜如玉,书中自有黄金屋,书中自有千钟黍
</view>
</view>
</view>
<view
style=
"height: 92%;"
>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
<warehouse
v-show=
"currentPage==1"
ref=
"recommend"
/>
</view>
</view>
</view>
</view>
...
@@ -67,13 +77,14 @@
...
@@ -67,13 +77,14 @@
data
()
{
data
()
{
return
{
return
{
currentPage
:
1
,
currentPage
:
1
,
localActiviteFlag
:
0
localActiviteFlag
:
0
,
localIdcode
:
0
,
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
let
index
=
options
.
index
??
''
let
index
=
options
.
index
??
''
this
.
localActiviteFlag
=
options
.
activiteFlag
;
this
.
localActiviteFlag
=
options
.
activiteFlag
;
console
.
log
(
"activiteFlag===="
,
options
.
activiteFlag
)
this
.
localIdcode
=
options
.
idcode
;
if
(
index
!=
''
&&
index
!=
undefined
)
{
if
(
index
!=
''
&&
index
!=
undefined
)
{
this
.
currentPage
=
index
this
.
currentPage
=
index
}
}
...
@@ -134,4 +145,13 @@
...
@@ -134,4 +145,13 @@
height
:
100%
;
height
:
100%
;
background-color
:
whitesmoke
;
background-color
:
whitesmoke
;
}
}
.avatar
{
background-color
:
#d8d8d8
;
width
:
100rpx
;
height
:
100rpx
;
border-radius
:
50%
;
overflow
:
hidden
;
//box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1)
}
</
style
>
</
style
>
\ No newline at end of file
vedio/pages/loading.vue
View file @
0fb67f81
...
@@ -90,8 +90,9 @@
...
@@ -90,8 +90,9 @@
app
.
globalData
.
userId
=
data
.
idcode
;
app
.
globalData
.
userId
=
data
.
idcode
;
saveToken
(
data
.
token
)
saveToken
(
data
.
token
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
// redirectTo('home?activiteFlag='+data.activiteFlag);
// redirectTo('home?activiteFlag='+data.activiteFlag+"&idcode="+data.idcode);
redirectTo
(
'home?activiteFlag='
+
0
);
redirectTo
(
'home?activiteFlag='
+
1
+
"&idcode="
+
data
.
idcode
);
},
1000
);
},
1000
);
}
}
});
});
...
...
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