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
6b0dca51
Commit
6b0dca51
authored
Oct 30, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺列表 加vip盘 搜索 设置vip盘
parent
941e78fe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
2 deletions
+54
-2
houseList.html
application/index/view/houses/houseList.html
+5
-0
houseList.js
public/resource/js/houseList.js
+38
-1
house_template_tpl.html
public/resource/template/house_template_tpl.html
+11
-1
No files found.
application/index/view/houses/houseList.html
View file @
6b0dca51
...
@@ -286,6 +286,11 @@
...
@@ -286,6 +286,11 @@
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
</select>
</select>
<select
class=
"form-control btn2 ld-Marheight"
id=
"is_vip_plate"
>
<option
value=
""
>
是否VIP盘
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
</select>
</div>
</div>
<div
class=
"col-xs-12"
style=
"padding : 0px;"
>
<div
class=
"col-xs-12"
style=
"padding : 0px;"
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
...
...
public/resource/js/houseList.js
View file @
6b0dca51
...
@@ -282,7 +282,44 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -282,7 +282,44 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
}
});
});
});
});
//vip盘 取消vip盘
$
(
document
).
delegate
(
".is_vip_plate"
,
"click"
,
function
()
{
//点击禁用
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"VIP盘"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-default is_vip_plate btn-default-hide-display'
);
params
.
type
=
1
;
$
(
this
).
html
(
'取消VIP盘'
);
}
else
if
(
str
==
"取消VIP盘"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-info is_vip_plate btn-default-hide-display'
);
params
.
type
=
0
;
$
(
this
).
html
(
'VIP盘'
);
}
else
{
}
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/index/lockHouse'
,
//商铺vip,取消vip盘
data
:
{
"is_lock"
:
params
.
type
,
"house_id"
:
business
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
data
.
msg
)
}
}
});
});
//城市 区域 二级联动 筛选
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
$
(
'#shop_area_id'
).
val
(
''
);
$
(
'#shop_area_id'
).
val
(
''
);
...
...
public/resource/template/house_template_tpl.html
View file @
6b0dca51
...
@@ -97,7 +97,17 @@
...
@@ -97,7 +97,17 @@
[
%
if
(
check_auth
(
'index/houseDel'
))
{
%
]
[
%
if
(
check_auth
(
'index/houseDel'
))
{
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal btn-default-hide-display"
>
删除
<
/a
>
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal btn-default-hide-display"
>
删除
<
/a
>
[
%
}
%
]
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
[
%
if
(
check_auth
(
'index/lockHouse'
))
{
%
]
<
a
class
=
"btn1 is_vip_plate btn-default-hide-display [%= sw2(it[item]['is_lock']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_lock"
]
==
0
)
{
%
]
VIP
盘
[
%
}
else
if
(
it
[
item
][
"is_lock"
]
==
1
)
{
%
]
取消
VIP
盘
[
%
}
%
]
<
/a
>
[
%
}
%
]
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
...
...
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