Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sport-train
Overview
Overview
Details
Activity
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
tangjiale
sport-train
Commits
74a19195
Commit
74a19195
authored
Jun 01, 2022
by
tangjiale
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
框架优化
parent
d5c92708
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
7 deletions
+15
-7
README.md
README.md
+1
-1
xb-head.vue
components/xb-head.vue
+4
-4
pages.json
pages.json
+2
-1
index.vue
pages/index/index.vue
+8
-1
No files found.
README.md
View file @
74a19195
...
@@ -20,6 +20,6 @@
...
@@ -20,6 +20,6 @@
# 开发文档
# 开发文档
-
[
uni-app官方文档
](
https://uniapp.dcloud.net.cn/
)
-
[
uni-app官方文档
](
https://uniapp.dcloud.net.cn/
)
-
[
uview-ui官方文档
](
https://www.uviewui.com/
components/intro.html
)
-
[
uview-ui官方文档
](
https://www.uviewui.com/
)
-
[
api接口文档
](
)
-
[
api接口文档
](
)
-
[
ui交互地址
](
)
-
[
ui交互地址
](
)
com
mon/curstom
-head.vue
→
com
ponents/xb
-head.vue
View file @
74a19195
<
template
>
<
template
>
<div>
<div
v-show=
"capsule && capsule.top"
>
<div
class=
"user-card"
:class=
"showBack?'between' : 'center'"
:style=
"
{marginTop:(capsule.top)+'px',height:capsule.height+'px'}">
<div
class=
"user-card"
:class=
"showBack?'between' : 'center'"
:style=
"
{marginTop:(capsule.top)+'px',height:capsule.height+'px'}">
<div
@
click=
"gotoBack"
v-if=
"showBack"
>
<div
@
click=
"gotoBack"
v-if=
"showBack"
>
<u-icon
name=
"arrow-left"
color=
"#fff"
size=
"
16
"
></u-icon>
<u-icon
name=
"arrow-left"
color=
"#fff"
size=
"
32
"
></u-icon>
</div>
</div>
{{
title
}}
{{
title
}}
<div
style=
"opacity: 0;"
v-if=
"showBack"
><u-icon
name=
"arrow-left"
color=
"#fff"
size=
"16"
></u-icon></div>
<div
style=
"opacity: 0;"
v-if=
"showBack"
><u-icon
name=
"arrow-left"
color=
"#fff"
size=
"16"
></u-icon></div>
...
@@ -42,8 +42,8 @@
...
@@ -42,8 +42,8 @@
position
:
relative
;
position
:
relative
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
width
:
calc
(
100%
-
6
0
upx
);
width
:
calc
(
100%
-
7
0
upx
);
padding
:
0
upx
30
upx
;
padding
:
0
upx
40
upx
0
upx
30
upx
;
font-size
:
34
upx
;
font-size
:
34
upx
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
font-weight
:
400
;
...
...
pages.json
View file @
74a19195
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
"style"
:
"style"
:
{
{
"navigationBarTitleText"
:
"首页"
,
"navigationBarTitleText"
:
"首页"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
},{
},{
...
@@ -41,7 +42,7 @@
...
@@ -41,7 +42,7 @@
"autoscan"
:
true
,
"autoscan"
:
true
,
"custom"
:
{
"custom"
:
{
"^u-(.*)"
:
"uview-ui/components/u-$1/u-$1.vue"
,
"^u-(.*)"
:
"uview-ui/components/u-$1/u-$1.vue"
,
"^b-(.*)"
:
"@/components/xb-$1.vue"
"^
x
b-(.*)"
:
"@/components/xb-$1.vue"
}
}
},
},
"globalStyle"
:
{
"globalStyle"
:
{
...
...
pages/index/index.vue
View file @
74a19195
<
template
>
<
template
>
<view
class=
"page-bg"
>
<view
class=
"page-bg"
>
首页
<div
class=
"head-bg"
>
<xb-head
showBack
title=
"自定义头部"
></xb-head>
</div>
<xb-icon
type=
"icon-icon_txzy"
color=
"#1DA47B"
></xb-icon>
<xb-icon
type=
"icon-icon_txzy"
color=
"#1DA47B"
></xb-icon>
...
@@ -26,5 +28,10 @@ export default {
...
@@ -26,5 +28,10 @@ export default {
min-height
:
100vh
;
min-height
:
100vh
;
width
:
100%
;
width
:
100%
;
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
.head-bg{
height
:
200
rpx
;
overflow
:
hidden
;
background-color
:
#1DA47B
;
}
}
}
</
style
>
</
style
>
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