Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shuchengMiniPro
Project
Project
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
cfld-frontend
shuchengMiniPro
Commits
1557fd5a
Commit
1557fd5a
authored
Dec 18, 2023
by
王玉鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: tab样式修改
parent
eb4f29d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
index.vue
src/pages/investment/index.vue
+43
-2
No files found.
src/pages/investment/index.vue
View file @
1557fd5a
...
...
@@ -2,7 +2,18 @@
<div
class=
"invest-us"
:style=
"tabIndex === 1 ? 'background: #f4f4f4' : ''"
>
<u-sticky
bgColor=
"#fff"
>
<div
style=
"background: white"
>
<u-tabs
:list=
"tabList"
@
click=
"handleTab"
></u-tabs>
<view
class=
"tab_bar"
>
<view
class=
"tab_item"
:class=
"
{ active: tabIndex === index }"
@click="handleTab(index)"
v-for="(tab, index) in tabList"
:key="index"
>
<p>
{{
tab
.
name
}}
</p>
<span
class=
"line"
v-if=
"tabIndex === index"
></span>
</view>
</view>
</div>
</u-sticky>
<div
class=
"body"
>
...
...
@@ -233,7 +244,7 @@ export default {
changeShowPicker
(
b
)
{
this
.
showPicker
=
b
;
},
handleTab
(
{
index
}
)
{
handleTab
(
index
)
{
this
.
tabIndex
=
index
;
},
handleParams
()
{
...
...
@@ -328,6 +339,7 @@ export default {
.invest-us
{
background-color
:
white
;
.body
{
margin-top
:
80rpx
;
padding
:
40rpx
30rpx
;
font-size
:
24rpx
;
color
:
#333333
;
...
...
@@ -416,5 +428,34 @@ export default {
}
}
}
.tab_bar
{
border-bottom
:
1rpx
solid
#fff
;
display
:
flex
;
justify-content
:
center
;
padding
:
0
10rpx
;
padding-top
:
15rpx
;
background-color
:
#fff
;
position
:
fixed
;
top
:
0
;
width
:
100vw
;
box-sizing
:
border-box
;
}
.tab_item
{
margin-left
:
50rpx
;
margin-right
:
50rpx
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
align-items
:
center
;
}
.line
{
width
:
50rpx
;
height
:
6rpx
;
border-radius
:
3rpx
;
margin-top
:
15rpx
;
background-color
:
#bf0000
;
display
:
inline-block
;
overflow
:
hidden
;
}
}
</
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