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
d6041f1c
Commit
d6041f1c
authored
Jul 10, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
一些修改
parent
a7db5fa1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
12 deletions
+30
-12
agent.js
public/resource/js/agent.js
+4
-3
houseList.js
public/resource/js/houseList.js
+11
-3
storeList.js
public/resource/js/storeList.js
+5
-2
user.js
public/resource/js/user.js
+10
-4
No files found.
public/resource/js/agent.js
View file @
d6041f1c
...
@@ -88,7 +88,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -88,7 +88,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
agent_id
=
$
(
this
).
attr
(
"data-id"
);
agent
.
getPhoneBindingList
();
agent
.
getPhoneBindingList
();
});
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交编辑
e
.
preventDefault
();
e
.
stopPropagation
();
agent
.
Submit_edit
();
agent
.
Submit_edit
();
});
});
...
@@ -198,7 +200,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -198,7 +200,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
agent
.
getList
(
1
);
}
else
{
}
else
{
alert
(
"重复提交"
);
alert
(
"重复提交"
);
}
}
...
@@ -298,8 +299,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
...
@@ -298,8 +299,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
$
(
"#modal-edit"
).
modal
(
'hide'
);
$
(
"#modal-edit"
).
modal
(
'hide'
);
agent
.
getList
(
1
);
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
...
...
public/resource/js/houseList.js
View file @
d6041f1c
...
@@ -95,7 +95,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -95,7 +95,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
Caozuo
();
business
.
Caozuo
();
});
});
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
(
e
)
{
//提交独家
e
.
preventDefault
();
e
.
stopPropagation
();
business
.
Dujianew
();
business
.
Dujianew
();
});
});
...
@@ -110,7 +112,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -110,7 +112,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
}
});
});
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#confirm_delete"
,
"click"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
business
.
delBusiness
();
business
.
delBusiness
();
});
});
$
(
document
).
delegate
(
".jia"
,
"click"
,
function
()
{
//加号
$
(
document
).
delegate
(
".jia"
,
"click"
,
function
()
{
//加号
...
@@ -350,7 +354,10 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -350,7 +354,10 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
},
},
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{}
else
{
if
(
data
.
code
==
200
)
{
alert
(
'修改成功'
);
$
(
"#modal-dujia"
).
modal
(
'hide'
);
}
else
{
alert
(
'获取失败!'
);
alert
(
'获取失败!'
);
}
}
...
@@ -652,6 +659,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -652,6 +659,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
alert
(
'删除成功'
);
$
(
"#modal-delete"
).
modal
(
'hide'
);
$
(
"#modal-delete"
).
modal
(
'hide'
);
}
else
{
}
else
{
$
(
"#del_msg"
).
html
(
'<span style="color: red">删除失败!</span>'
);
$
(
"#del_msg"
).
html
(
'<span style="color: red">删除失败!</span>'
);
...
...
public/resource/js/storeList.js
View file @
d6041f1c
...
@@ -66,7 +66,9 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -66,7 +66,9 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
store
.
Edit
();
store
.
Edit
();
});
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交编辑
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交编辑
e
.
preventDefault
();
e
.
stopPropagation
();
store
.
Submit_edit
();
store
.
Submit_edit
();
});
});
$
(
document
).
delegate
(
".mend"
,
"click"
,
function
()
{
//点击业务员列表
$
(
document
).
delegate
(
".mend"
,
"click"
,
function
()
{
//点击业务员列表
...
@@ -259,7 +261,8 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
...
@@ -259,7 +261,8 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
){
success
:
function
(
data
){
if
(
data
.
code
==
200
){
if
(
data
.
code
==
200
){
store
.
getList
(
1
);
alert
(
'修改成功'
);
$
(
"#modal-edit"
).
modal
(
'hide'
);
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
...
...
public/resource/js/user.js
View file @
d6041f1c
...
@@ -113,7 +113,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -113,7 +113,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});
});
// 跟进的提交按钮 点击
// 跟进的提交按钮 点击
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
user
.
edit_add
();
user
.
edit_add
();
});
});
// 批量修改客方
// 批量修改客方
...
@@ -147,7 +149,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -147,7 +149,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});
});
// =============================下拉列表===================
// =============================下拉列表===================
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
(
e
)
{
//提交
e
.
preventDefault
();
e
.
stopPropagation
();
user
.
Submit_follow
();
user
.
Submit_follow
();
});
});
// =============下拉列表========================
// =============下拉列表========================
...
@@ -290,7 +294,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -290,7 +294,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType
:
"json"
,
dataType
:
"json"
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
user
.
getList
(
1
);
alert
(
'修改成功'
);
$
(
"#modal-record"
).
modal
(
'hide'
);
}
else
{
}
else
{
alert
(
data
.
msg
)
alert
(
data
.
msg
)
}
}
...
@@ -323,7 +328,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -323,7 +328,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
user
.
getList
(
1
);
alert
(
'修改成功'
);
$
(
"#modal-add"
).
modal
(
'hide'
);
}
else
{
}
else
{
alert
(
data
.
msg
);
alert
(
data
.
msg
);
}
}
...
...
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