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
d2c64206
Commit
d2c64206
authored
Apr 27, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
52d53167
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
13 deletions
+7
-13
Member.php
application/index/controller/Member.php
+1
-1
Users.php
application/model/Users.php
+2
-1
user.js
public/resource/js/user.js
+2
-7
user_template_tpl.html
public/resource/template/user_template_tpl.html
+2
-4
No files found.
application/index/controller/Member.php
View file @
d2c64206
...
...
@@ -177,7 +177,7 @@ class Member extends Basic{
$type
=
3
;
}
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.registration_time,a.user_name,a.last_login_ip,a.status
,b.create_time as follow_time
'
;
$fields
=
'a.id,a.user_nick,a.user_phone,a.user_pic,a.create_time,a.user_pswd,a.referrer_id,a.registration_time,a.user_name,a.last_login_ip,a.status'
;
$data
[
'list'
]
=
$this
->
user
->
getUserAgent
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
,
$type
);
$data
[
'total'
]
=
$this
->
user
->
getUserAgentTotal
(
$where
,
$type
);
$return
=
$this
->
response
(
$data
[
'status'
],
$data
[
'msg'
],
$data
);
...
...
application/model/Users.php
View file @
d2c64206
...
...
@@ -96,7 +96,6 @@ class Users extends Model
->
select
();
}
else
{
$result
=
$this
->
field
(
$fields
)
->
alias
(
'a'
)
->
join
(
'u_phone_follow_up b'
,
'a.id = b.user_id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
...
...
@@ -104,6 +103,7 @@ class Users extends Model
->
select
();
}
$user_follow
=
new
UPhoneFollowPp
();
foreach
(
$result
as
$k
=>
$v
)
{
$data
[
$k
]
=
$v
->
getData
();
...
...
@@ -116,6 +116,7 @@ class Users extends Model
$user_data
=
$this
->
field
(
'id,user_nick,user_phone'
)
->
where
(
'id'
,
$data
[
$k
][
'referrer_id'
])
->
find
();
$data
[
$k
][
'name'
]
=
$user_data
[
'user_nick'
];
$data
[
$k
][
'phone'
]
=
$user_data
[
'user_phone'
];
$data
[
$k
][
'follow_time'
]
=
$user_follow
->
where
(
'user_id'
,
$data
[
$k
][
'id'
])
->
order
(
'id desc'
)
->
value
(
'create_time'
);
}
return
$data
;
}
...
...
public/resource/js/user.js
View file @
d2c64206
...
...
@@ -56,9 +56,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
$
(
document
).
delegate
(
".genj_ure"
,
"click"
,
function
()
{
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
$
(
"#genj_text"
).
val
(
''
);
// $("input[name = 'user_status']:checked").removeAttr("checked");
$
(
"input[name = 'user_status']:checked"
).
attr
(
"checked"
,
true
);
$
(
"input[name = 'user_status']:checked"
).
removeAttr
(
"checked"
);
user
.
getGenjinLabel
();
});
// ===========================新增客户====================
...
...
@@ -472,15 +470,12 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
//
// user.user_id = $ (this).attr ("data-id");
console
.
log
(
user
.
user_id
);
$
(
"input[type='radio'][name='user_status'][value="
+
data
.
data
+
"]"
).
prop
(
"checked"
,
"checked"
);
}
}
});
}
}
}
;
return
user
;
});
...
...
public/resource/template/user_template_tpl.html
View file @
d2c64206
...
...
@@ -11,10 +11,8 @@
<
td
>
[
%=
it
[
item
][
"user_phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"create_time"
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"follow_time"
]
==
null
)
{
%
]
--
[
%
}
else
{
%
]
[
%=
it
[
item
][
"follow_time"
]
%
]
[
%
if
(
it
[
item
][
"follow_time"
]
!=
null
)
{
%
]
[
%=
it
[
item
][
"follow_time"
]
%
]
[
%
}
%
]
<
/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