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
bdd2555c
Commit
bdd2555c
authored
Jun 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除旧转铺代码
parent
a6b694b8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
89 deletions
+0
-89
Transfer.php
application/index/controller/Transfer.php
+0
-44
route.php
application/route.php
+0
-1
transfer.js
public/resource/js/transfer.js
+0
-44
No files found.
application/index/controller/Transfer.php
View file @
bdd2555c
...
...
@@ -82,50 +82,6 @@ class Transfer extends Basic
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
);
}
/**
* 设置转为商铺
*
* @return array
*/
public
function
putAway
()
{
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$data
[
'data'
]
=
''
;
$params
=
$this
->
request
->
param
();
$sublet
=
new
SubletModel
();
$sublet_data
=
$sublet
->
field
(
'id,house_id'
)
->
where
(
'id'
,
$params
[
'id'
])
->
find
();
if
(
$sublet_data
[
'id'
])
{
if
(
$sublet_data
[
'house_id'
])
{
$status
=
2
;
}
else
{
/***客户自己填写的转铺信息,在B端后台发布商铺更改为2***/
$status
=
1
;
}
$sublet
->
update
([
'id'
=>
$sublet_data
[
'id'
],
'status'
=>
$status
]);
$house
=
Db
::
table
(
'houseinfos'
)
->
field
(
'id,room_num_left'
)
->
where
(
'id'
,
$sublet_data
[
'house_id'
])
->
find
();
if
(
$house
)
{
Db
::
table
(
'houseinfos'
)
->
where
(
'id'
,
$house
[
'id'
])
->
update
([
'room_num_left'
=>
$house
[
'room_num_left'
]
+
1
]);
//自增1
$data
[
'msg'
]
=
'剩余铺数+1'
;
}
else
{
$data
[
'msg'
]
=
'请在同联后台管理中心,根据客户手机号补充信息。'
;
}
}
else
{
$data
[
'status'
]
=
101
;
$data
[
'msg'
]
=
'没有该商铺信息'
;
}
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
/**
* 添加跟进信息
*
...
...
application/route.php
View file @
bdd2555c
...
...
@@ -82,7 +82,6 @@ Route::group('index', [
//transfer转铺列表
'transfer_list'
=>
[
'index/transfer/index'
,
[
'method'
=>
'get'
]
],
'get_transfer'
=>
[
'index/transfer/getlist'
,
[
'method'
=>
'get'
]
],
'putAway'
=>
[
'index/transfer/putAway'
,
[
'method'
=>
'post'
]
],
//上下架转租商铺
'addFollow'
=>
[
'index/transfer/addFollow'
,
[
'method'
=>
'post'
]
],
//添加跟进
'followList'
=>
[
'index/transfer/followList'
,
[
'method'
=>
'get'
]
],
//跟进记录
...
...
public/resource/js/transfer.js
View file @
bdd2555c
...
...
@@ -142,50 +142,6 @@ define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','pa
return
user
;
});
/**
* 编辑上架商铺
* @param obj
*/
function
edit
(
obj
)
{
if
(
!
confirm
(
'是否继续'
))
{
return
;
}
var
params
=
{};
var
arr
=
$
(
obj
).
attr
(
"data-id"
).
split
(
','
);
params
.
id
=
arr
[
0
];
params
.
status
=
arr
[
1
];
if
(
params
.
status
==
0
)
{
params
.
status
=
1
;
}
else
{
params
.
status
=
0
;
}
$
.
ajax
({
url
:
'/index/putAway'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
alert
(
data
.
msg
);
if
(
data
.
data
.
status
==
0
)
{
$
(
obj
).
html
(
'转为上架商铺'
);
$
(
obj
).
attr
(
'class'
,
'btn1 btn-danger'
);
$
(
obj
).
attr
(
'data-id'
,
arr
[
0
]
+
','
+
0
);
}
else
{
$
(
obj
).
removeAttr
(
"onclick"
);
$
(
obj
).
html
(
'已转为上架商铺'
);
$
(
obj
).
attr
(
'class'
,
'btn1 btn-info'
);
$
(
obj
).
attr
(
'data-id'
,
arr
[
0
]
+
','
+
data
.
data
.
status
);
}
}
else
{
alert
(
data
.
msg
);
}
}
});
}
var
id
;
function
alertFollow
(
obj
){
...
...
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