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
65f9965d
Commit
65f9965d
authored
Aug 14, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
乡村旅居筛选
parent
f4060838
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
15 deletions
+50
-15
DepartureDate.vue
src/Components/assistingAgriculture/index/DepartureDate.vue
+4
-0
ScenicSpots.vue
src/Components/assistingAgriculture/index/ScenicSpots.vue
+4
-0
Screen.vue
src/Components/assistingAgriculture/index/Screen.vue
+6
-1
Sort.vue
src/Components/assistingAgriculture/index/Sort.vue
+4
-0
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+32
-14
No files found.
src/Components/assistingAgriculture/index/DepartureDate.vue
View file @
65f9965d
...
...
@@ -64,6 +64,10 @@ function timestampToDateBasic(timestamp) {
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
year
}
/
${
month
}
/
${
day
}
`
;
}
const
reset
=
()
=>
{
selectedItem
.
value
=
null
;
};
defineExpose
({
reset
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/Components/assistingAgriculture/index/ScenicSpots.vue
View file @
65f9965d
...
...
@@ -50,6 +50,10 @@ const getTourList = () => {
placeList
.
value
=
res
.
data
;
});
};
const
reset
=
()
=>
{
selectedItem
.
value
=
[];
};
defineExpose
({
reset
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/Components/assistingAgriculture/index/Screen.vue
View file @
65f9965d
...
...
@@ -89,7 +89,12 @@ const getScreeningConditions = () => {
peopleList
.
value
=
res
.
data
.
forPeopleList
;
});
};
const
reset
=
()
=>
{};
const
reset
=
()
=>
{
selectedItem
.
value
=
[];
selectedItem1
.
value
=
[];
selectedItem2
.
value
=
[];
};
defineExpose
({
reset
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/Components/assistingAgriculture/index/Sort.vue
View file @
65f9965d
...
...
@@ -34,6 +34,10 @@ const selectItem = (index, item) => {
selectedItem
.
value
=
index
;
emit
(
'sortParams'
,
item
);
};
const
reset
=
()
=>
{
selectedItem
.
value
=
null
;
};
defineExpose
({
reset
});
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
65f9965d
...
...
@@ -124,10 +124,10 @@
<wd-icon
size=
"24rpx"
class=
"icons"
></wd-icon>
</view>
</view>
<Sort
v-show=
"rotate"
@
sortParams=
"sortParams"
/>
<DepartureDate
v-show=
"rotate2"
@
dataParams=
"dataParams"
/>
<ScenicSpots
v-show=
"rotate3"
@
placeParams=
"placeParams"
/>
<Screen
v-show=
"rotate4"
@
screenParams=
"screenParams"
/>
<Sort
v-show=
"rotate"
ref=
"sortRef"
@
sortParams=
"sortParams"
/>
<DepartureDate
v-show=
"rotate2"
ref=
"departureDateRef"
@
dataParams=
"dataParams"
/>
<ScenicSpots
v-show=
"rotate3"
ref=
"scenicSpotsRef"
@
placeParams=
"placeParams"
/>
<Screen
v-show=
"rotate4"
ref=
"screenRef"
@
screenParams=
"screenParams"
/>
</view>
<view
class=
"list-card"
>
<view
...
...
@@ -193,7 +193,10 @@ const allocateDate = ref(null);
const
serviceList
=
ref
([]);
const
keyword
=
ref
(
''
);
const
forPeopleList
=
ref
([]);
const
sortRef
=
ref
(
null
);
const
departureDateRef
=
ref
(
null
);
const
scenicSpotsRef
=
ref
(
null
);
const
screenRef
=
ref
(
null
);
const
locationFiltering
=
(
index
)
=>
{
switch
(
index
)
{
case
0
:
...
...
@@ -331,17 +334,32 @@ const getProd = (searchKeyword = '') => {
cardList
.
value
=
res
.
data
.
records
;
});
};
const
resetParams
=
()
=>
{
sortType
.
value
=
null
;
attractionIdList
.
value
=
[];
dateType
.
value
=
null
;
startCityList
.
value
=
[];
serviceList
.
value
=
[];
forPeopleList
.
value
=
[];
allocateDate
.
value
=
null
;
getProd
();
if
(
sortRef
.
value
||
departureDateRef
.
value
||
scenicSpotsRef
.
value
||
screenRef
.
value
)
{
sortType
.
value
=
null
;
dateType
.
value
=
null
;
allocateDate
.
value
=
null
;
attractionIdList
.
value
=
[];
startCityList
.
value
=
[];
serviceList
.
value
=
[];
forPeopleList
.
value
=
[];
sortRef
.
value
.
reset
();
departureDateRef
.
value
.
reset
();
scenicSpotsRef
.
value
.
reset
();
screenRef
.
value
.
reset
();
getProd
();
}
};
// const resetParams = () => {
// sortType.value = null;
// attractionIdList.value = [];
// dateType.value = null;
// startCityList.value = [];
// serviceList.value = [];
// forPeopleList.value = [];
// allocateDate.value = null;
// getProd();
// };
function
toRouteDetails
(
item
)
{
console
.
log
(
item
,
22222
);
// TODO: 跳转到线路详情
...
...
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