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
73282844
Commit
73282844
authored
Aug 13, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乡村旅居搜索
parent
4e2c1512
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
Search.vue
src/Components/assistingAgriculture/index/Search.vue
+6
-1
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+2
-1
No files found.
src/Components/assistingAgriculture/index/Search.vue
View file @
73282844
...
@@ -11,10 +11,11 @@
...
@@ -11,10 +11,11 @@
/>
/>
<input
<input
type=
"text"
type=
"text"
:value=
"test"
class=
"text"
class=
"text"
:placeholder=
"placeholderText"
:placeholder=
"placeholderText"
placeholder-style=
"font-size:16rpx;"
placeholder-style=
"font-size:16rpx;"
:value=
"modelValue"
@
input=
"updateModelValue"
@
blur=
"toSearch"
@
blur=
"toSearch"
@
keyup
.
enter=
"toSearch"
@
keyup
.
enter=
"toSearch"
@
focus=
"toSearch"
@
focus=
"toSearch"
...
@@ -35,7 +36,11 @@ const props = defineProps({
...
@@ -35,7 +36,11 @@ const props = defineProps({
type
:
String
,
type
:
String
,
default
:
''
,
default
:
''
,
},
},
modelValue
:
String
,
});
});
const
updateModelValue
=
(
event
)
=>
{
emit
(
'update:modelValue'
,
event
.
target
.
value
);
};
const
toSearch
=
(
test
)
=>
{
const
toSearch
=
(
test
)
=>
{
emit
(
'search'
,
test
);
emit
(
'search'
,
test
);
};
};
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
73282844
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
iconSrc=
"/static/assistingAgriculture/assets/left.png"
iconSrc=
"/static/assistingAgriculture/assets/left.png"
placeholderText=
"请输入要搜索的关键词"
placeholderText=
"请输入要搜索的关键词"
@
search=
"toSearch"
@
search=
"toSearch"
v-model=
"keyword"
></Search>
></Search>
</view>
</view>
<view
class=
"bac-img"
>
<view
class=
"bac-img"
>
...
@@ -229,8 +230,8 @@ const locationFiltering = (index) => {
...
@@ -229,8 +230,8 @@ const locationFiltering = (index) => {
}
}
};
};
onPullDownRefresh
(()
=>
{
onPullDownRefresh
(()
=>
{
keyword
.
value
=
''
;
getProd
();
getProd
();
getPopular
();
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
stopPullDownRefresh
();
uni
.
stopPullDownRefresh
();
},
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