Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
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
zhengke
jz_Travel
Commits
a9865006
Commit
a9865006
authored
Jan 18, 2023
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
a030d60a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
71 deletions
+5
-71
list.vue
pages/restaurant/list.vue
+5
-71
No files found.
pages/restaurant/list.vue
View file @
a9865006
...
...
@@ -166,7 +166,7 @@ export default {
OrderBy
:
0
,
FoodTypeIds
:
0
,
DiningPriceType
:
0
,
City
:
262
,
City
:
0
,
District
:
0
,
},
page_count
:
1
,
...
...
@@ -294,7 +294,7 @@ export default {
this
.
getPriceEnum
();
this
.
getFoodList
();
this
.
getCity
();
this
.
getDistrict
(
262
);
//
this.getDistrict(262);
},
created
()
{
uni
.
setNavigationBarTitle
({
...
...
@@ -335,70 +335,17 @@ export default {
setRestaurantPrice
(
rateId
,
name
)
{
this
.
msg
.
DiningPriceType
=
rateId
;
this
.
optionsTitle
[
3
]
=
name
;
// if(rateId==-1){
// this.tempRateAndPrice.rate=[-1]
// }else{
// if(this.tempRateAndPrice.rate.indexOf(-1)!=-1){
// this.tempRateAndPrice.rate.splice(this.tempRateAndPrice.rate.indexOf(-1),1)
// }
// let temp=this.tempRateAndPrice.rate.indexOf(rateId)
// if(temp==-1){
// this.tempRateAndPrice.rate.push(rateId)
// }else{
// this.tempRateAndPrice.rate.splice(temp,1)
// }
// }
},
// setRestaurant(typeId){
// if(typeId==-1){
// this.tempRateAndPrice.types=[-1]
// }else{
// if(this.tempRateAndPrice.types.indexOf(-1)!=-1){
// this.tempRateAndPrice.types.splice(this.tempRateAndPrice.types.indexOf(-1),1)
// }
// let temp=this.tempRateAndPrice.types.indexOf(typeId)
// if(temp==-1){
// this.tempRateAndPrice.types.push(typeId)
// }else{
// this.tempRateAndPrice.types.splice(temp,1)
// }
// }
// },
resetPrice
()
{
this
.
optionsTitle
[
3
]
=
"筛选"
;
// this.searchObj.rateAndPrice={
// types:[-1],
// priceText:"不限",
// rate:[-1]
// }
this
.
msg
.
DiningPriceType
=
0
;
this
.
msg
.
pageIndex
=
1
;
this
.
getFoodList
();
this
.
closeDropdown
();
},
surePrice
()
{
// let result=""
// if(this.tempRateAndPrice.types.length>0){
// this.options2.forEach(x=>{
// if(this.tempRateAndPrice.types.indexOf(x.value)!=-1){
// result+=x.label+","
// }
// })
// }
// if(this.tempRateAndPrice.rate.length>0){
// this.rates.forEach(x=>{
// if(this.tempRateAndPrice.rate.indexOf(x.value)!=-1){
// result+=x.label+","
// }
// })
// }
// result=result==""?"筛选":result
// console.log(296,result)
// this.optionsTitle[2]=result
// this.$forceUpdate()
// this.searchObj.rateAndPrice=this.tempRateAndPrice
// this.msg.DiningPriceType=this.tempRateAndPrice.rate.toString();
this
.
msg
.
pageIndex
=
1
;
this
.
getFoodList
();
this
.
closeDropdown
();
...
...
@@ -414,19 +361,6 @@ export default {
this
.
getFoodList
();
this
.
closeDropdown
();
},
// rangechange4(e){
// if(e.minValue==0){
// if(e.maxValue==1000){
// this.tempRateAndPrice.priceText="不限"
// }else{
// this.tempRateAndPrice.priceText=`¥${e.maxValue}以下`
// }
// }else if(e.maxValue==1000){
// this.tempRateAndPrice.priceText=`¥${e.minValue}以上`
// }else{
// this.tempRateAndPrice.priceText=`¥${e.minValue} - ¥${e.maxValue}之间`
// }
// },
closeDropdown
()
{
this
.
$refs
.
uDropdown
.
close
();
},
...
...
@@ -522,7 +456,7 @@ export default {
this
.
showCityList
=
false
;
this
.
msg
.
City
=
val
.
ID
;
this
.
city
=
val
.
Name
;
this
.
getDistrict
(
val
.
ID
);
//
this.getDistrict(val.ID);
this
.
msg
.
District
=
0
;
this
.
optionsTitle
[
2
]
=
"区域"
;
this
.
msg
.
pageIndex
=
1
;
...
...
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