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
7fb60e4c
Commit
7fb60e4c
authored
Aug 16, 2024
by
张娇(东信)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
筛选修改
parent
259481ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
DepartureDate.vue
src/Components/assistingAgriculture/index/DepartureDate.vue
+1
-1
Sort.vue
src/Components/assistingAgriculture/index/Sort.vue
+5
-5
RuralTravel.vue
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
+4
-4
No files found.
src/Components/assistingAgriculture/index/DepartureDate.vue
View file @
7fb60e4c
...
@@ -69,7 +69,7 @@ function timestampToDateBasic(timestamp) {
...
@@ -69,7 +69,7 @@ function timestampToDateBasic(timestamp) {
const
year
=
date
.
getFullYear
();
const
year
=
date
.
getFullYear
();
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
month
=
(
date
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
const
day
=
date
.
getDate
().
toString
().
padStart
(
2
,
'0'
);
return
`
${
year
}
/
${
month
}
/
${
day
}
`
;
return
`
${
year
}
-
${
month
}
-
${
day
}
00:00:00
`
;
}
}
</
script
>
</
script
>
...
...
src/Components/assistingAgriculture/index/Sort.vue
View file @
7fb60e4c
...
@@ -16,11 +16,11 @@
...
@@ -16,11 +16,11 @@
<
script
setup
>
<
script
setup
>
import
{
ref
}
from
'vue'
;
import
{
ref
}
from
'vue'
;
const
items
=
ref
([
const
items
=
ref
([
{
name
:
'距离优先'
,
sortMode
:
1
},
{
name
:
'距离优先'
,
sortMode
:
'1'
},
{
name
:
'好评优先'
,
sortMode
:
2
},
{
name
:
'好评优先'
,
sortMode
:
'2'
},
{
name
:
'销量优先'
,
sortMode
:
3
},
{
name
:
'销量优先'
,
sortMode
:
'3'
},
{
name
:
'低价优先'
,
sortMode
:
4
},
{
name
:
'低价优先'
,
sortMode
:
'4'
},
{
name
:
'高价优先'
,
sortMode
:
5
},
{
name
:
'高价优先'
,
sortMode
:
'5'
},
]);
]);
const
emit
=
defineEmits
([
'sortParams'
]);
const
emit
=
defineEmits
([
'sortParams'
]);
const
selectedItem
=
ref
(
null
);
const
selectedItem
=
ref
(
null
);
...
...
src/pages/assistingAgriculture/RuralTravel/RuralTravel.vue
View file @
7fb60e4c
...
@@ -340,10 +340,10 @@ const sortParams = (sortMode) => {
...
@@ -340,10 +340,10 @@ const sortParams = (sortMode) => {
// };
// };
const
dataParams
=
(
item
,
datePart
)
=>
{
const
dataParams
=
(
item
,
datePart
)
=>
{
if
(
item
)
{
if
(
item
)
{
dateType
.
value
=
item
.
key
;
dateType
.
value
=
item
.
key
.
toString
()
;
getProd
();
getProd
();
}
else
{
}
else
{
dateType
.
value
=
8
;
dateType
.
value
=
'8'
;
if
(
datePart
&&
datePart
!==
'NaN/NaN/NaN'
)
{
if
(
datePart
&&
datePart
!==
'NaN/NaN/NaN'
)
{
allocateDate
.
value
=
datePart
;
allocateDate
.
value
=
datePart
;
rotate2
.
value
=
false
;
rotate2
.
value
=
false
;
...
@@ -355,7 +355,7 @@ const dataParams = (item, datePart) => {
...
@@ -355,7 +355,7 @@ const dataParams = (item, datePart) => {
const
placeParams
=
(
item
)
=>
{
const
placeParams
=
(
item
)
=>
{
const
ids
=
item
.
map
((
i
)
=>
i
.
id
);
const
ids
=
item
.
map
((
i
)
=>
i
.
id
);
const
arr
=
ids
.
join
(
','
);
const
arr
=
ids
.
join
(
','
);
attractionIdList
.
value
=
arr
.
split
(
','
).
map
(
Number
);
attractionIdList
.
value
=
arr
.
split
(
','
).
map
(
String
);
getProd
();
getProd
();
};
};
...
@@ -406,7 +406,7 @@ const getProd = (searchKeyword = '') => {
...
@@ -406,7 +406,7 @@ const getProd = (searchKeyword = '') => {
// ...(startCityList.value && { startCityList: startCityList.value.split(',') }),
// ...(startCityList.value && { startCityList: startCityList.value.split(',') }),
// ...(serviceList.value && { serviceList: serviceList.value.split(',') }),
// ...(serviceList.value && { serviceList: serviceList.value.split(',') }),
// ...(forPeopleList.value && { forPeopleList: forPeopleList.value.split(',') }),
// ...(forPeopleList.value && { forPeopleList: forPeopleList.value.split(',') }),
...(
dateType
.
value
===
8
&&
{
allocateDate
:
allocateDate
.
value
}),
...(
dateType
.
value
===
'8'
&&
{
allocateDate
:
allocateDate
.
value
}),
...(
searchKeyword
&&
{
keyword
:
searchKeyword
}),
...(
searchKeyword
&&
{
keyword
:
searchKeyword
}),
};
};
getProdList
(
params
).
then
((
res
)
=>
{
getProdList
(
params
).
then
((
res
)
=>
{
...
...
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