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
f6875c62
Commit
f6875c62
authored
Aug 08, 2024
by
石建新(贵阳日报)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索页面
parent
125973f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
0 deletions
+111
-0
pages.json
src/pages.json
+7
-0
searchPage.vue
src/pages/searchPage/searchPage.vue
+104
-0
No files found.
src/pages.json
View file @
f6875c62
...
@@ -13,6 +13,13 @@
...
@@ -13,6 +13,13 @@
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
}
}
},
},
{
"path"
:
"pages/searchPage/searchPage"
,
"style"
:
{
"navigationBarTitleText"
:
"搜索"
,
"navigationStyle"
:
"custom"
}
},
{
{
"path"
:
"pages/index/index"
,
"path"
:
"pages/index/index"
,
"style"
:
{
"style"
:
{
...
...
src/pages/searchPage/searchPage.vue
0 → 100644
View file @
f6875c62
<
template
>
<view
class=
"search-page"
>
<view
class=
"search"
:style=
"
{ background: '#FF0101' }">
<wd-icon
name=
"thin-arrow-left"
class=
"icon"
@
tap=
"back"
:style=
"
{ color: '#FFFAE8' }"
>
</wd-icon>
<slot></slot>
<view
class=
"searchBox"
>
<wd-icon
name=
"search"
size=
"22rpx"
></wd-icon>
<input
type=
"text"
:value=
"test"
class=
"text"
@
confirm=
"toSearch"
placeholder=
"请输入搜索内容"
confirm-type=
"搜索"
/>
</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>
</wd-tab>
</block>
</wd-tabs>
</view>
</
template
>
<
script
setup
>
function
toSearch
(
keyword
)
{}
const
tab
=
ref
(
0
);
</
script
>
<
style
lang=
"scss"
scoped
>
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
;
opacity
:
0
.8
;
margin
:
0
auto
;
display
:
flex
;
align-items
:
center
;
padding-left
:
20rpx
;
box-sizing
:
border-box
;
.arrow
{
width
:
15rpx
;
height
:
24rpx
;
}
.icon
{
font-size
:
28rpx
;
}
.searchBox
{
opacity
:
1
;
width
:
350rpx
;
height
:
56rpx
;
background
:
#ffffff
;
border-radius
:
28rpx
28rpx
28rpx
28rpx
;
display
:
flex
;
align-items
:
center
;
padding-left
:
20rpx
;
margin-left
:
20rpx
;
.magnifyingGlass
{
width
:
26rpx
;
height
:
26rpx
;
}
.text
{
margin-left
:
10rpx
;
font-size
:
24rpx
;
}
}
}
.content
{
line-height
:
120px
;
text-align
:
center
;
}
}
</
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