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
4f7d210b
Commit
4f7d210b
authored
Dec 18, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
看铺时间和地址
parent
5e16094f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
9 deletions
+23
-9
Evaluate.php
application/model/Evaluate.php
+18
-4
user_template_tpl.html
public/resource/template/user_template_tpl.html
+5
-5
No files found.
application/model/Evaluate.php
View file @
4f7d210b
...
...
@@ -42,8 +42,11 @@ class Evaluate extends Model
->
select
();
}
$sign
=
new
EvaluateSign
();
$sign
=
new
EvaluateSign
();
$applies
=
new
Applies
();
$house
=
new
HouseInfos
();
$user
=
new
Users
();
foreach
(
$result
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
->
getData
();
if
(
$v
[
'evaluate_sign'
])
{
...
...
@@ -51,9 +54,20 @@ class Evaluate extends Model
->
where
(
'id'
,
'in'
,
$v
[
'evaluate_sign'
])
->
where
(
'is_del'
,
0
)
->
select
();
}
}
//看铺时间
$receptiontime
=
$applies
->
field
(
'receptiontime'
)
->
where
(
'phpone'
,
$v
[
'user_phone'
])
->
find
();
$house_address
=
$house
->
field
(
'address'
)
->
where
(
'id'
,
$v
[
'house_id'
])
->
find
();
//商铺地址
$data
[
$k
][
'houserAddress'
]
=
$houseInfo
?
$houseInfo
:
''
;
$data
[
$k
][
'receptiontime'
]
=
$receptiontime
?
$receptiontime
:
''
;
}
return
$data
;
}
...
...
public/resource/template/user_template_tpl.html
View file @
4f7d210b
...
...
@@ -2,11 +2,11 @@
[
%
if
(
it
.
data
)
{
%
]
[
%
for
(
var
item
in
it
.
data
){
%
]
<
tr
>
<
td
>
[
%=
it
em
[
"create_time"
]
%
]
<
/td
>
<
td
>
[
%=
it
em
[
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
em
[
"user_nick"
]
%
][
%=
item
[
"user_pic"
]
%
]
<
/td
>
<
td
>
[
%=
it
em
[
"user_phone"
]
%
]
<
/td
>
<
td
><
/td
>
<
td
>
[
%=
it
.
data
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%=
it
.
data
[
item
]
[
"id"
]
%
]
<
/td
>
<
td
>
[
%=
it
.
data
[
item
][
"user_nick"
]
%
][
%=
it
.
data
[
item
]
[
"user_pic"
]
%
]
<
/td
>
<
td
>
[
%=
it
.
data
[
item
]
[
"user_phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
.
data
[
item
][
"realname"
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-do"
data
-
toggle
=
"modal"
>
编辑
...
...
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