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
8109a489
Commit
8109a489
authored
Apr 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增客户修改
parent
68327ce9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
23 deletions
+18
-23
Member.php
application/index/controller/Member.php
+8
-8
users_list.html
application/index/view/member/users_list.html
+2
-3
user.js
public/resource/js/user.js
+8
-5
user_template_tpl.html
public/resource/template/user_template_tpl.html
+0
-7
No files found.
application/index/controller/Member.php
View file @
8109a489
...
...
@@ -111,14 +111,14 @@ class Member extends Basic{
}
if
(
empty
(
$user_data
)
&&
$params
[
'type'
]
==
'add'
)
{
$inser_data
[
'user_nick'
]
=
$params
[
'realname'
];
$inser_data
[
'user_phone'
]
=
$params
[
'user_phone'
];
$inser_data
[
'user_pswd'
]
=
md5
(
md5
(
$params
[
'pwd'
])
.
'+123'
);
$inser_data
[
'status'
]
=
0
;
$inser_data
[
'create_time'
]
=
$date
;
$inser_data
[
'update_time'
]
=
$date
;
$this
->
user
->
save
(
$inser_data
);
$inser
t
_data
[
'user_nick'
]
=
$params
[
'realname'
];
$inser
t
_data
[
'user_phone'
]
=
$params
[
'user_phone'
];
$inser
t
_data
[
'user_pswd'
]
=
md5
(
md5
(
$params
[
'pwd'
])
.
'+123'
);
$inser
t
_data
[
'status'
]
=
0
;
$inser
t
_data
[
'create_time'
]
=
$date
;
$inser
t
_data
[
'update_time'
]
=
$date
;
$insert_data
[
'agent_id'
]
=
$params
[
'agent_id'
];
//客方
$this
->
user
->
save
(
$inser
t
_data
);
if
(
$this
->
user
->
id
)
{
$status
=
200
;
$data
=
[
'id'
=>
$this
->
user
->
id
];
...
...
application/index/view/member/users_list.html
View file @
8109a489
...
...
@@ -95,7 +95,6 @@
<th
class=
"text-center"
>
客户电话
</th>
<th
class=
"text-center"
>
创建时间
</th>
<th
class=
"text-center"
>
最后跟进时间
</th>
<th
class=
"text-center"
>
产生类型
</th>
<th
class=
"text-center"
>
App状态
</th>
<th
class=
"text-center"
>
是否登录过
</th>
<th
class=
"text-center"
>
昵称
</th>
...
...
@@ -137,7 +136,7 @@
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
姓名:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"
realname
"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"
user_nick
"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
<span
class=
"use-span text-danger"
>
(必填)
</span>
</div>
</div>
...
...
@@ -161,7 +160,7 @@
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
客方:
</label>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"
pw
d"
autocomplete=
"off"
id=
"set_father_id3"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"
agent_i
d"
autocomplete=
"off"
id=
"set_father_id3"
>
<ul
class=
"user-ul"
>
</ul>
...
...
public/resource/js/user.js
View file @
8109a489
...
...
@@ -250,11 +250,12 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
},
add_user
:
function
()
{
var
params
=
{};
params
.
id
=
user
.
house_id
;
params
.
user_nick
=
$
(
"#add_user_form input[name='realname']"
).
val
();
params
.
user_nick
=
$
(
"#add_user_form input[name='user_nick']"
).
val
();
params
.
user_phone
=
$
(
"#add_user_form input[name='user_phone']"
).
val
();
params
.
agent_id
=
$
(
"#add_user_form input[name='agent_id']"
).
val
();
//客方
params
.
sex
=
$
(
"#user_sex option:selected"
).
val
();
params
.
agent_id
=
user
.
agent_id
;
params
.
type
=
'add'
;
if
(
params
.
realname
==
''
)
{
alert
(
'姓名不能为空'
);
$
(
"input[name='realname']"
).
focus
();
...
...
@@ -272,15 +273,17 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}
$
.
ajax
({
url
:
'/index/
pcEditClient
'
,
url
:
'/index/
user_add
'
,
type
:
'POST'
,
async
:
true
,
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
user
.
getList
(
1
);
document
.
getElementById
(
"add_user_form"
).
reset
();
}
else
{
alert
(
data
.
msg
);
}
}
});
...
...
public/resource/template/user_template_tpl.html
View file @
8109a489
...
...
@@ -13,13 +13,6 @@
[
%=
it
[
item
][
"follow_time"
]
%
]
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"referrer_source"
]
==
10
)
{
%
]
客户
C
端注册
[
%
}
else
if
(
it
[
item
][
"referrer_source"
]
==
20
)
{
%
]
报备时添加
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"status"
]
==
-
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