Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
fb32958c
Commit
fb32958c
authored
Nov 07, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺列表 修改
parent
39bd622b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
34 deletions
+35
-34
shopList.vue
public/appnew/src/components/shop/shopList.vue
+35
-34
No files found.
public/appnew/src/components/shop/shopList.vue
View file @
fb32958c
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<p
class=
"rent-choose"
>
租金(单选)
</p>
<p
class=
"rent-choose"
>
租金(单选)
</p>
<span
v-for=
"(item6, index6) in mainDataChooseLi.money"
class=
"li-choose-span li-choose-span-rent"
:class=
"
{active:index6 === initTabNumRent}" @click="tabRent(index6)">
{{
item6
.
value
}}
</span>
<span
v-for=
"(item6, index6) in mainDataChooseLi.money"
class=
"li-choose-span li-choose-span-rent"
:class=
"
{active:index6 === initTabNumRent}" @click="tabRent(index6)">
{{
item6
.
value
}}
</span>
<p
class=
"lable-choose"
>
特色标签(多选)
</p>
<p
class=
"lable-choose"
>
特色标签(多选)
</p>
<span
v-for=
"(item3, index3) in mainDataChooseLi.more"
class=
"li-choose-span li-choose-span-sign"
@
click=
"tabShopSign(item3)"
>
{{
item3
}}
</span>
<span
v-for=
"(item3, index3) in mainDataChooseLi.more"
class=
"li-choose-span li-choose-span-sign"
:class=
"
{active:arrShop.indexOf(item3) > -1}"
@click="tabShopSign(item3)">
{{
item3
}}
</span>
<div
class=
"more-button"
>
<div
class=
"more-button"
>
<span
class=
"clear-btn"
>
清空
</span>
<span
class=
"clear-btn"
>
清空
</span>
<span
class=
"save-btn"
>
保存
</span>
<span
class=
"save-btn"
>
保存
</span>
...
@@ -128,14 +128,13 @@
...
@@ -128,14 +128,13 @@
icon_address
,
icon_address
,
icon_down02
,
icon_down02
,
icon_down
,
icon_down
,
_ajaxDisc
:
''
,
ajaxDisc
:
''
,
_ajaxBusiness
:
''
,
ajaxBusiness
:
''
,
_ajaxYeTai
:
''
,
ajaxYeTai
:
''
,
_ajaxArea
:
''
,
ajaxArea
:
''
,
_ajax_shop_area_start
:
''
,
ajax_shop_area_start
:
''
,
_ajax_shop_area_end
:
''
,
ajax_shop_area_end
:
''
,
_arrShop
:
[],
arrShop
:
[
'全部'
],
_oo
:
'333'
,
mainDataChoose
:[{
mainDataChoose
:[{
'title'
:
'区域'
,
'title'
:
'区域'
,
'isShow'
:
false
,
'isShow'
:
false
,
...
@@ -151,7 +150,6 @@
...
@@ -151,7 +150,6 @@
}],
}],
}),
}),
created
()
{
created
()
{
let
_this
=
this
;
let
_this
=
this
;
_this
.
getChooseList
();
_this
.
getChooseList
();
_this
.
common
.
duringRequest
({
_this
.
common
.
duringRequest
({
...
@@ -181,16 +179,21 @@
...
@@ -181,16 +179,21 @@
_data
.
is_carefully_chosen
=
_this
.
mainData
[
_index
].
page
;
_data
.
is_carefully_chosen
=
_this
.
mainData
[
_index
].
page
;
_data
.
shop_type
=
_this
.
mainData
[
_index
].
page
;
_data
.
shop_type
=
_this
.
mainData
[
_index
].
page
;
_data
.
city
=
_this
.
initSelectCity
;
_data
.
city
=
_this
.
initSelectCity
;
_data
.
disc
=
_this
.
_ajaxDisc
;
if
(
_this
.
ajax_shop_area_start
){
_data
.
business_id
=
_this
.
_ajaxBusiness
;
_data
.
shop_area_start
=
_this
.
ajax_shop_area_start
;
_data
.
industry_type
=
_this
.
_ajaxYeTai
;
if
(
_this
.
_ajax_shop_area_start
){
_data
.
shop_area_start
=
_this
.
_ajax_shop_area_start
;
};
};
if
(
_this
.
_ajax_shop_area_end
){
if
(
_this
.
ajax_shop_area_end
){
_data
.
shop_area_end
=
_this
.
_ajax_shop_area_end
;
_data
.
shop_area_end
=
_this
.
ajax_shop_area_end
;
};
if
(
_this
.
ajaxDisc
){
_data
.
disc
=
_this
.
ajaxDisc
;
};
if
(
_this
.
ajaxBusiness
){
_data
.
business_id
=
_this
.
ajaxBusiness
;
};
if
(
_this
.
ajaxYeTai
){
_data
.
industry_type
=
_this
.
ajaxYeTai
;
};
};
_this
.
axios
({
_this
.
axios
({
method
:
'get'
,
method
:
'get'
,
...
@@ -273,7 +276,7 @@
...
@@ -273,7 +276,7 @@
tabYeTai
(
index
,
yetai
){
tabYeTai
(
index
,
yetai
){
let
_this
=
this
;
let
_this
=
this
;
_this
.
initTabNumYeTai
=
index
;
_this
.
initTabNumYeTai
=
index
;
_this
.
_
ajaxYeTai
=
yetai
_this
.
ajaxYeTai
=
yetai
_this
.
mainDataChoose
[
_this
.
initTabNumMainChoose
].
isShow
=
false
;
_this
.
mainDataChoose
[
_this
.
initTabNumMainChoose
].
isShow
=
false
;
_this
.
resetConditions
();
_this
.
resetConditions
();
_this
.
getList
();
_this
.
getList
();
...
@@ -282,25 +285,25 @@
...
@@ -282,25 +285,25 @@
tabArea
(
index
,
area
){
tabArea
(
index
,
area
){
let
_this
=
this
;
let
_this
=
this
;
_this
.
initTabNumArea
=
index
;
_this
.
initTabNumArea
=
index
;
_this
.
_
ajaxArea
=
area
;
_this
.
ajaxArea
=
area
;
if
(
area
[
0
]
!=
'全部'
){
if
(
area
[
0
]
!=
'全部'
){
var
parseIntStart
=
parseInt
(
area
[
0
]);
var
parseIntStart
=
parseInt
(
area
[
0
]);
}
}
if
(
area
[
0
]
==
'全部'
){
if
(
area
[
0
]
==
'全部'
){
_this
.
_
ajax_shop_area_start
=
''
;
_this
.
ajax_shop_area_start
=
''
;
_this
.
_
ajax_shop_area_end
=
''
;
_this
.
ajax_shop_area_end
=
''
;
}
else
if
((
area
.
length
==
1
)
&&
(
area
[
0
]
!=
'全部'
)){
}
else
if
((
area
.
length
==
1
)
&&
(
area
[
0
]
!=
'全部'
)){
if
(
parseIntStart
>
30
){
if
(
parseIntStart
>
30
){
_this
.
_
ajax_shop_area_start
=
parseIntStart
;
_this
.
ajax_shop_area_start
=
parseIntStart
;
_this
.
_
ajax_shop_area_end
=
''
;
_this
.
ajax_shop_area_end
=
''
;
}
else
{
}
else
{
_this
.
_ajax_shop_area_start
=
'0'
;
_this
.
_ajax_shop_area_start
=
'0'
;
_this
.
_ajax_shop_area_end
=
parseIntStart
;
_this
.
_ajax_shop_area_end
=
parseIntStart
;
};
};
}
else
{
}
else
{
var
parseIntEnd
=
parseInt
(
area
[
1
]);
var
parseIntEnd
=
parseInt
(
area
[
1
]);
_this
.
_
ajax_shop_area_start
=
parseIntStart
;
_this
.
ajax_shop_area_start
=
parseIntStart
;
_this
.
_
ajax_shop_area_end
=
parseIntEnd
;
_this
.
ajax_shop_area_end
=
parseIntEnd
;
}
}
_this
.
mainDataChoose
[
_this
.
initTabNumMainChoose
].
isShow
=
false
;
_this
.
mainDataChoose
[
_this
.
initTabNumMainChoose
].
isShow
=
false
;
...
@@ -310,13 +313,13 @@
...
@@ -310,13 +313,13 @@
tabAreaCity
(
index
,
district
){
tabAreaCity
(
index
,
district
){
let
_this
=
this
;
let
_this
=
this
;
_this
.
initTabNumAreaCity
=
index
;
_this
.
initTabNumAreaCity
=
index
;
_this
.
_
ajaxDisc
=
district
;
_this
.
ajaxDisc
=
district
;
},
},
tabAreaBusiness
(
index
,
business
){
tabAreaBusiness
(
index
,
business
){
let
_this
=
this
;
let
_this
=
this
;
_this
.
initTabNumBusiness
=
index
;
_this
.
initTabNumBusiness
=
index
;
_this
.
mainDataChoose
[
_this
.
initTabNumMainChoose
].
isShow
=
false
;
_this
.
mainDataChoose
[
_this
.
initTabNumMainChoose
].
isShow
=
false
;
_this
.
_
ajaxBusiness
=
business
;
_this
.
ajaxBusiness
=
business
;
_this
.
resetConditions
();
_this
.
resetConditions
();
_this
.
getList
();
_this
.
getList
();
...
@@ -327,14 +330,12 @@
...
@@ -327,14 +330,12 @@
},
},
tabShopSign
(
item
){
tabShopSign
(
item
){
let
_this
=
this
;
let
_this
=
this
;
let
_arrShop
=
[
'全部'
];
var
_shopIndex
=
_this
.
arrShop
.
indexOf
(
item
);
var
_shopIndex
=
_arrShop
.
indexOf
(
item
);
if
(
_shopIndex
>
-
1
){
if
(
_shopIndex
>
-
1
){
_arrShop
.
splice
(
_shopIndex
,
1
);
_
this
.
arrShop
.
splice
(
_shopIndex
,
1
);
}
else
{
}
else
{
_arrShop
.
push
(
item
);
_this
.
arrShop
.
push
(
item
);
}
}
console
.
log
(
_arrShop
);
},
},
tabLable
(
index
){
tabLable
(
index
){
let
_this
=
this
;
let
_this
=
this
;
...
...
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