Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildingAgricultureSharing-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
彭佳妮(贵阳日报)
buildingAgricultureSharing-miniapp
Commits
b5120096
Commit
b5120096
authored
Aug 06, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选组件
parent
8cc41c87
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
241 additions
and
0 deletions
+241
-0
DepartureDate.vue
src/components/index/DepartureDate.vue
+58
-0
ScenicSpots.vue
src/components/index/ScenicSpots.vue
+58
-0
Screen.vue
src/components/index/Screen.vue
+58
-0
Sort.vue
src/components/index/Sort.vue
+58
-0
RuralTravel.vue
src/pages/RuralTravel/RuralTravel.vue
+9
-0
No files found.
src/components/index/DepartureDate.vue
0 → 100644
View file @
b5120096
<
template
>
<view
class=
"sort"
:style=
"
{ width: width }">
<ul
class=
"ul"
>
<li
v-for=
"(item, index) in items"
:key=
"index"
:class=
"
{ active: selectedItem === index }"
@tap="selectItem(index)"
>
{{
item
}}
</li>
</ul>
</view>
</
template
>
<
script
setup
>
import
{
defineProps
}
from
'vue'
;
const
items
=
reactive
([
'智能排序'
,
'距离优先'
,
'好评优先'
,
'销量优先'
,
'低价优先'
,
'低价优先'
]);
const
selectedItem
=
ref
(
null
);
const
props
=
defineProps
({
width
:
{
type
:
String
,
default
:
'100%'
,
},
});
const
selectItem
=
(
selectItem
)
=>
{
selectedItem
.
value
=
selectItem
;
};
</
script
>
<
style
lang=
"scss"
scoped
>
.sort
{
position
:
absolute
;
top
:
100%
;
// width: 100%;
// min-height: 212rpx;
border-radius
:
0rpx
0rpx
16rpx
16rpx
;
background
:
#ffffff
;
box-shadow
:
0rpx
16rpx
16rpx
0rpx
rgba
(
73
,
73
,
73
,
0
.14
);
margin
:
0
auto
;
z-index
:
99
;
display
:
flex
;
padding-bottom
:
20rpx
;
box-sizing
:
border-box
;
.ul
{
padding-left
:
60rpx
;
li
{
list-style-type
:
none
;
font-size
:
22rpx
;
color
:
#3d3d3d
;
margin-top
:
20rpx
;
}
.active
{
color
:
#fa5151
;
}
}
}
</
style
>
src/components/index/ScenicSpots.vue
0 → 100644
View file @
b5120096
<
template
>
<view
class=
"sort"
:style=
"
{ width: width }">
<ul
class=
"ul"
>
<li
v-for=
"(item, index) in items"
:key=
"index"
:class=
"
{ active: selectedItem === index }"
@tap="selectItem(index)"
>
{{
item
}}
</li>
</ul>
</view>
</
template
>
<
script
setup
>
import
{
defineProps
}
from
'vue'
;
const
items
=
reactive
([
'智能排序'
,
'距离优先'
,
'好评优先'
,
'销量优先'
,
'低价优先'
,
'低价优先'
]);
const
selectedItem
=
ref
(
null
);
const
props
=
defineProps
({
width
:
{
type
:
String
,
default
:
'100%'
,
},
});
const
selectItem
=
(
selectItem
)
=>
{
selectedItem
.
value
=
selectItem
;
};
</
script
>
<
style
lang=
"scss"
scoped
>
.sort
{
position
:
absolute
;
top
:
100%
;
// width: 100%;
// min-height: 212rpx;
border-radius
:
0rpx
0rpx
16rpx
16rpx
;
background
:
#ffffff
;
box-shadow
:
0rpx
16rpx
16rpx
0rpx
rgba
(
73
,
73
,
73
,
0
.14
);
margin
:
0
auto
;
z-index
:
99
;
display
:
flex
;
padding-bottom
:
20rpx
;
box-sizing
:
border-box
;
.ul
{
padding-left
:
60rpx
;
li
{
list-style-type
:
none
;
font-size
:
22rpx
;
color
:
#3d3d3d
;
margin-top
:
20rpx
;
}
.active
{
color
:
#fa5151
;
}
}
}
</
style
>
src/components/index/Screen.vue
0 → 100644
View file @
b5120096
<
template
>
<view
class=
"sort"
:style=
"
{ width: width }">
<ul
class=
"ul"
>
<li
v-for=
"(item, index) in items"
:key=
"index"
:class=
"
{ active: selectedItem === index }"
@tap="selectItem(index)"
>
{{
item
}}
</li>
</ul>
</view>
</
template
>
<
script
setup
>
import
{
defineProps
}
from
'vue'
;
const
items
=
reactive
([
'智能排序'
,
'距离优先'
,
'好评优先'
,
'销量优先'
,
'低价优先'
,
'低价优先'
]);
const
selectedItem
=
ref
(
null
);
const
props
=
defineProps
({
width
:
{
type
:
String
,
default
:
'100%'
,
},
});
const
selectItem
=
(
selectItem
)
=>
{
selectedItem
.
value
=
selectItem
;
};
</
script
>
<
style
lang=
"scss"
scoped
>
.sort
{
position
:
absolute
;
top
:
100%
;
// width: 100%;
// min-height: 212rpx;
border-radius
:
0rpx
0rpx
16rpx
16rpx
;
background
:
#ffffff
;
box-shadow
:
0rpx
16rpx
16rpx
0rpx
rgba
(
73
,
73
,
73
,
0
.14
);
margin
:
0
auto
;
z-index
:
99
;
display
:
flex
;
padding-bottom
:
20rpx
;
box-sizing
:
border-box
;
.ul
{
padding-left
:
60rpx
;
li
{
list-style-type
:
none
;
font-size
:
22rpx
;
color
:
#3d3d3d
;
margin-top
:
20rpx
;
}
.active
{
color
:
#fa5151
;
}
}
}
</
style
>
src/components/index/Sort.vue
0 → 100644
View file @
b5120096
<
template
>
<view
class=
"sort"
:style=
"
{ width: width }">
<ul
class=
"ul"
>
<li
v-for=
"(item, index) in items"
:key=
"index"
:class=
"
{ active: selectedItem === index }"
@tap="selectItem(index)"
>
{{
item
}}
</li>
</ul>
</view>
</
template
>
<
script
setup
>
import
{
defineProps
}
from
'vue'
;
const
items
=
reactive
([
'智能排序'
,
'距离优先'
,
'好评优先'
,
'销量优先'
,
'低价优先'
,
'低价优先'
]);
const
selectedItem
=
ref
(
null
);
const
props
=
defineProps
({
width
:
{
type
:
String
,
default
:
'100%'
,
},
});
const
selectItem
=
(
selectItem
)
=>
{
selectedItem
.
value
=
selectItem
;
};
</
script
>
<
style
lang=
"scss"
scoped
>
.sort
{
position
:
absolute
;
top
:
100%
;
// width: 100%;
// min-height: 212rpx;
border-radius
:
0rpx
0rpx
16rpx
16rpx
;
background
:
#ffffff
;
box-shadow
:
0rpx
16rpx
16rpx
0rpx
rgba
(
73
,
73
,
73
,
0
.14
);
margin
:
0
auto
;
z-index
:
99
;
display
:
flex
;
padding-bottom
:
20rpx
;
box-sizing
:
border-box
;
.ul
{
padding-left
:
60rpx
;
li
{
list-style-type
:
none
;
font-size
:
22rpx
;
color
:
#3d3d3d
;
margin-top
:
20rpx
;
}
.active
{
color
:
#fa5151
;
}
}
}
</
style
>
src/pages/RuralTravel/RuralTravel.vue
View file @
b5120096
...
...
@@ -91,6 +91,10 @@
>
</wd-icon>
</view>
</view>
<Sort
v-show=
"rotate"
/>
<DepartureDate
v-show=
"rotate2"
/>
<ScenicSpots
v-show=
"rotate3"
/>
<Screen
v-show=
"rotate4"
/>
</view>
<view
class=
"list-card"
>
<view
...
...
@@ -131,6 +135,11 @@
<
script
setup
lang=
"ts"
>
import
Search
from
'../../components/index/Search.vue'
;
import
Sort
from
'../../components/index/Sort.vue'
;
import
DepartureDate
from
'../../components/index/DepartureDate.vue'
;
import
ScenicSpots
from
'../../components/index/ScenicSpots.vue'
;
import
Screen
from
'../../components/index/Screen.vue'
;
const
rotate
=
ref
(
false
);
const
rotate2
=
ref
(
false
);
const
rotate3
=
ref
(
false
);
...
...
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