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
4319849c
Commit
4319849c
authored
Aug 19, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
委托转铺图片
parent
b1420971
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
2 deletions
+17
-2
Transfer.php
application/index/controller/Transfer.php
+14
-1
transfer_template_tpl.html
public/resource/template/transfer_template_tpl.html
+3
-1
No files found.
application/index/controller/Transfer.php
View file @
4319849c
...
...
@@ -13,6 +13,7 @@ use app\index\extend\Basic;
use
app\model\AAgents
;
use
app\model\AdminModel
;
use
app\model\FollowUp
;
use
app\model\SubletImgModel
;
use
app\model\SubletModel
;
use
think\Db
;
use
think\Session
;
...
...
@@ -90,11 +91,23 @@ class Transfer extends Basic
$fields
=
'a.id,a.shop_name,a.manage_type,a.address_detail,a.province,a.city,a.district,FORMAT(a.expected_rent/100,2) as expected_rent,
if(b.status=2,"3",a.status) as status,a.appellation,a.tel,a.create_time,a.status'
;
$
data
[
'list'
]
=
$sublet
->
getSubletAgent
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
$
list
=
$sublet
->
getSubletAgent
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
$data
[
'total'
]
=
$sublet
->
getSubletAgentTotal
(
$where
);
$m_img
=
new
SubletImgModel
();
foreach
(
$list
as
$k
=>
$v
)
{
$image
=
$m_img
->
getSubletImg
(
'file_name'
,
[
'sublet_id'
=>
$v
[
'sublet_id'
],
'status'
=>
0
]);
if
(
$image
)
{
foreach
(
$image
as
$kk
=>
$vv
)
{
$list
[
$k
][
'image'
][
$kk
]
=
'static/chat_image/'
.
$vv
[
'file_name'
];
}
}
else
{
$list
[
$k
][
'image'
]
=
[];
}
}
$data
[
'list'
]
=
$list
;
return
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
);
}
...
...
public/resource/template/transfer_template_tpl.html
View file @
4319849c
...
...
@@ -22,7 +22,9 @@
<
td
>
[
%=
it
[
item
][
"expected_rent"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
<
a
class
=
"review-images"
href
=
"#modal-report-img"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["img_file_path"] %]'
>
查看
<
/a
>
[
%
for
(
var
key
in
it
[
item
][
"image"
]){
%
]
<
a
class
=
"review-images"
href
=
"#modal-report-img"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["image"][key]%]'
>
查看
<
/a
>
[
%
}
%
]
<
/td
>
<
td
>
...
...
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