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
4d4dec0a
Commit
4d4dec0a
authored
Jul 09, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人修改手机号
parent
cff1c8ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
+5
-12
agent.js
public/resource/js/agent.js
+4
-11
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+1
-1
No files found.
public/resource/js/agent.js
View file @
4d4dec0a
...
@@ -124,12 +124,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -124,12 +124,12 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
});
});
$
(
document
).
on
(
"click"
,
".edit-phone-btn"
,
function
()
{
//点击修改手机号
$
(
document
).
on
(
"click"
,
".edit-phone-btn"
,
function
()
{
//点击修改手机号
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
Edit
();
//获取编辑内容
$
(
'#edit-phone'
).
val
(
$
(
this
).
attr
(
"data-phone"
));
});
});
$
(
document
).
on
(
"click"
,
".edit-phone-save"
,
function
()
{
//保存修改手机号
$
(
document
).
on
(
"click"
,
".edit-phone-save"
,
function
()
{
//保存修改手机号
agent
.
Submit_edit_phone
();
//获取编辑内容
agent
.
Submit_edit_phone
();
//获取编辑内容
});
});
$
(
document
).
on
(
"click"
,
".phone-bundling"
,
function
()
{
//点击绑定手机
$
(
document
).
on
(
"click"
,
".phone-bundling"
,
function
()
{
//点击绑定手机
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
getPhoneBindingList
(
browser_version
);
agent
.
getPhoneBindingList
(
browser_version
);
...
@@ -576,19 +576,11 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -576,19 +576,11 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
//提交编辑的信息
//提交编辑的信息
var
params
=
{}
var
params
=
{}
params
.
id
=
agent
.
agent_id
;
params
.
id
=
agent
.
agent_id
;
params
.
name
=
agent
.
editObj
.
name
;
params
.
password
=
agent
.
editObj
.
password
;
params
.
district_id
=
agent
.
editObj
.
district_id
;
params
.
store_id
=
agent
.
editObj
.
store_id
;
params
.
phone
=
$
(
"#edit-phone"
).
val
();
params
.
phone
=
$
(
"#edit-phone"
).
val
();
params
.
admin_off
=
agent
.
editObj
.
admin_off
;
params
.
sex
=
agent
.
editObj
.
sex
;
params
.
remarks
=
agent
.
editObj
.
remarks
;
if
(
params
.
phone
==
''
)
{
if
(
params
.
phone
==
''
)
{
alert
(
'手机号必填!'
);
alert
(
'手机号必填!'
);
return
false
;
return
false
;
}
}
if
(
params
.
phone
.
length
!=
11
)
{
if
(
params
.
phone
.
length
!=
11
)
{
alert
(
'手机号码错误!'
);
alert
(
'手机号码错误!'
);
return
false
;
return
false
;
...
@@ -596,13 +588,14 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -596,13 +588,14 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/
saveAgent
'
,
'url'
:
'/index/
updatePhone
'
,
data
:
params
,
data
:
params
,
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
alert
(
'提交成功'
);
$
(
"#modal-editPhone"
).
modal
(
'hide'
);
$
(
"#modal-editPhone"
).
modal
(
'hide'
);
agent
.
getList
(
agent
.
pageNo
);
}
else
if
(
data
.
code
==
101
){
}
else
if
(
data
.
code
==
101
){
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
else
{
}
else
{
...
...
public/resource/template/agent_template_tpl.html
View file @
4d4dec0a
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
<
a
class
=
"btn1 btn-default btn-default-hide-caozuo btn-default-hide-display"
><<<<
/a
>
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
a
class
=
"btn1 btn-success edit-phone-btn"
href
=
"#modal-editPhone"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
修改手机号
<
/a
>
<
a
class
=
"btn1 btn-success edit-phone-btn"
href
=
"#modal-editPhone"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
data
-
phone
=
'[%= it[item]["phone"] %]'
>
修改手机号
<
/a
>
[
%
}
%
]
[
%
}
%
]
...
...
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