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
a2b2c10b
Commit
a2b2c10b
authored
Jun 04, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我收藏的办公楼
parent
61ee9b10
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
+14
-12
myCollectionOfficeList.js
public/resource/js/myCollectionOfficeList.js
+2
-3
officeBuildingList.js
public/resource/js/officeBuildingList.js
+1
-1
officeEdit.js
public/resource/js/officeEdit.js
+8
-5
my_collection_office_template_tpl.html
.../resource/template/my_collection_office_template_tpl.html
+1
-1
office_building_list_template_tpl.html
.../resource/template/office_building_list_template_tpl.html
+2
-2
No files found.
public/resource/js/myCollectionOfficeList.js
View file @
a2b2c10b
...
@@ -92,7 +92,7 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
...
@@ -92,7 +92,7 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/
broker
/addCollectHouse'
,
//商铺收藏 取消收藏
'url'
:
'/
office
/addCollectHouse'
,
//商铺收藏 取消收藏
data
:
{
data
:
{
"agents_id"
:
user_info_obj
.
id
,
"agents_id"
:
user_info_obj
.
id
,
"status"
:
params
.
type
,
"status"
:
params
.
type
,
...
@@ -224,10 +224,9 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
...
@@ -224,10 +224,9 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
params
.
agents_id
=
user_info_obj
.
id
;
params
.
agents_id
=
user_info_obj
.
id
;
params
.
from
=
1
;
params
.
from
=
1
;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/
broker
/getCollectHouseList'
,
//商铺跟进 对接接口
url
:
'/
office
/getCollectHouseList'
,
//商铺跟进 对接接口
data
:
params
,
data
:
params
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
...
public/resource/js/officeBuildingList.js
View file @
a2b2c10b
...
@@ -342,7 +342,7 @@ define(['doT', 'text!temp/office_building_list_template_tpl.html', 'css!style/ho
...
@@ -342,7 +342,7 @@ define(['doT', 'text!temp/office_building_list_template_tpl.html', 'css!style/ho
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/
broker
/addCollectHouse'
,
//商铺收藏 取消收藏
'url'
:
'/
office
/addCollectHouse'
,
//商铺收藏 取消收藏
data
:
{
data
:
{
"agents_id"
:
user_info_obj
.
id
,
"agents_id"
:
user_info_obj
.
id
,
"status"
:
params
.
type
,
"status"
:
params
.
type
,
...
...
public/resource/js/officeEdit.js
View file @
a2b2c10b
...
@@ -122,11 +122,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -122,11 +122,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data
[
'source'
]
=
_source
;
_data
[
'source'
]
=
_source
;
_data
[
'sublet_id'
]
=
_sublet_id
;
_data
[
'sublet_id'
]
=
_sublet_id
;
}
else
{};
}
else
{};
_data
[
'AuthToken'
]
=
user_info_obj
.
AuthToken
;
//
_data['AuthToken'] = user_info_obj.AuthToken;
$
.
ajax
({
$
.
ajax
({
type
:
'GET'
,
type
:
'GET'
,
url
:
'/office/houseEdit'
,
//获取楼盘详情
// url: '/office/houseEdit',//获取楼盘详情
url
:
'/office_index/houseEdit'
,
//获取楼盘详情
data
:
_data
,
data
:
_data
,
timeout
:
30000
,
timeout
:
30000
,
dataType
:
'json'
,
dataType
:
'json'
,
...
@@ -1110,13 +1111,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -1110,13 +1111,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if
(
_id
!=
null
)
{
if
(
_id
!=
null
)
{
_data
[
'id'
]
=
_id
;
_data
[
'id'
]
=
_id
;
_data
[
'upload_id'
]
=
_objThis
.
upload_id
;
_data
[
'upload_id'
]
=
_objThis
.
upload_id
;
user
.
urlBuilding
=
"/office/houseEdit"
;
//编辑接口
// user.urlBuilding = "/office/houseEdit";//编辑接口
user
.
urlBuilding
=
"/office_index/houseEdit"
;
//编辑接口
}
else
{
}
else
{
// _data['id'] = '';//新增时id传空
// _data['id'] = '';//新增时id传空
user
.
urlBuilding
=
"/office/houseAdd"
;
//新增接口
// user.urlBuilding = "/office/houseAdd";//新增接口
user
.
urlBuilding
=
"/office_index/houseAdd"
;
//新增接口
}
}
_data
[
'AuthToken'
]
=
user_info_obj
.
AuthToken
;
//
_data['AuthToken'] = user_info_obj.AuthToken;
_data
[
'building_id'
]
=
1
;
_data
[
'building_id'
]
=
1
;
//当为委托转铺新增时,需要传这两个参数
//当为委托转铺新增时,需要传这两个参数
if
(
_source
)
{
if
(
_source
)
{
...
...
public/resource/template/my_collection_office_template_tpl.html
View file @
a2b2c10b
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
tr
>
<
tr
>
<
td
colspan
=
"1
0
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"1
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
...
...
public/resource/template/office_building_list_template_tpl.html
View file @
a2b2c10b
...
@@ -62,13 +62,13 @@
...
@@ -62,13 +62,13 @@
[
%
if
(
it
[
item
][
"is_lock"
]
==
0
||
check_auth
(
'index/lockHouse'
)
||
it
[
item
][
"auth_edit_exclusive"
]
==
1
||
it
[
item
][
"auth_edit_house"
]
==
1
)
{
%
]
[
%
if
(
it
[
item
][
"is_lock"
]
==
0
||
check_auth
(
'index/lockHouse'
)
||
it
[
item
][
"auth_edit_exclusive"
]
==
1
||
it
[
item
][
"auth_edit_house"
]
==
1
)
{
%
]
<
a
class
=
"btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]"
href
=
"#modal_shop_detail"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
跟进
/
查看
<
/a
>
<
a
class
=
"btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]"
href
=
"#modal_shop_detail"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
toggle
=
"modal"
>
跟进
/
查看
<
/a
>
<
!--<
a
class
=
"btn1 is_show_shoucang [%= sw(it[item]['is_collect']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
a
class
=
"btn1 is_show_shoucang [%= sw(it[item]['is_collect']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_collect"
]
==
1
)
{
%
]
[
%
if
(
it
[
item
][
"is_collect"
]
==
1
)
{
%
]
取消收藏
取消收藏
[
%
}
else
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
[
%
}
else
if
(
it
[
item
][
"is_collect"
]
==
2
)
{
%
]
收藏
收藏
[
%
}
%
]
[
%
}
%
]
<
/a>
--
>
<
/a
>
[
%
}
%
]
[
%
}
%
]
[
%
if
(
it
[
item
][
"is_vip"
]
==
1
)
{
%
]
[
%
if
(
it
[
item
][
"is_vip"
]
==
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