Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
groupPurchase-miniapp
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
彭佳妮(贵阳日报)
groupPurchase-miniapp
Commits
b5664774
Commit
b5664774
authored
Aug 10, 2024
by
陈宗胤(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4d8c1287
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
24 deletions
+15
-24
searchPage.vue
src/pages/assistingAgriculture/searchPage/searchPage.vue
+15
-24
No files found.
src/pages/assistingAgriculture/searchPage/searchPage.vue
View file @
b5664774
...
...
@@ -20,22 +20,21 @@
/>
</view>
</view>
</view>
<wd-tabs
v-model=
"tab"
>
<block>
<wd-tab
title=
"商品"
>
<view
class=
"content"
>
内容1
</view>
</wd-tab>
<wd-tab
title=
"店铺"
>
<view
class=
"content"
>
内容2
</view>
<block
v-for=
"(item, index) in tabs"
:key=
"index"
>
<wd-tab
:title=
"item"
>
<view
class=
"content"
v-show=
"tab === 0"
>
内容1
</view>
<view
class=
"content"
v-show=
"tab === 1"
>
内容2
</view>
</wd-tab>
</block>
</wd-tabs>
</view>
</
template
>
<
script
setup
>
function
toSearch
(
keyword
)
{}
const
tab
=
ref
(
0
);
const
tabs
=
ref
([
'商品'
,
'店铺'
]);
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
@@ -43,23 +42,6 @@ page {
background
:
#f6f6f6
;
}
.search-page
{
display
:
flex
;
width
:
750rpx
;
flex-direction
:
column
;
align-items
:
center
;
.wd-tabs
{
background-color
:
#fff
;
}
&
:deep
(
.wd-tabs__nav
)
{
background-color
:
#fff
;
}
&
:deep
(
.wd-tabs__line
)
{
background-color
:
#e9231b
;
bottom
:
2px
;
}
.search
{
width
:
100%
;
height
:
124rpx
;
...
...
@@ -103,4 +85,13 @@ page {
gap
:
20rpx
;
}
}
:deep
(
.wd-tabs__line
)
{
background-color
:
#e9231b
;
bottom
:
2px
;
}
.content
{
line-height
:
120px
;
text-align
:
center
;
background
:
#f6f6f6
;
}
</
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