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
ad37d1ba
Commit
ad37d1ba
authored
Apr 20, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客方批量修改
parent
e16655dd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
101 additions
and
12 deletions
+101
-12
houseList.html
application/index/view/houses/houseList.html
+3
-3
users_list.html
application/index/view/member/users_list.html
+13
-4
houseList.js
public/resource/js/houseList.js
+5
-0
user.js
public/resource/js/user.js
+80
-5
No files found.
application/index/view/houses/houseList.html
View file @
ad37d1ba
...
...
@@ -157,17 +157,17 @@
×
</button>
<h4
class=
"modal-title"
id=
"myModalLabel"
>
设置案场权限人
设置案场权限人
77
</h4>
</div>
<!--号码匹配名字 输入框666-->
<div
class=
"modal-body"
>
<form
id=
"submit_agent"
>
<div
class=
"jian_class"
>
<input
name=
"ues_id"
placeholder=
"请输入"
type=
"tel"
value=
""
class=
"phone_jia"
>
<!--号码匹配名字-->
<ul
class=
"phone_list"
></ul>
</div>
<
img
src=
"/resource/image/jia2@2x.png"
class=
"jia"
>
<
!-- <img src="/resource/image/jia2@2x.png" class="jia"> --
>
<input
type=
"hidden"
name=
"ues_id"
class=
"houseinfos_id"
>
</form>
</div>
...
...
application/index/view/member/users_list.html
View file @
ad37d1ba
...
...
@@ -45,8 +45,8 @@
height
:
34px
;
line-height
:
34px
;
}
ld-Marheight
{
margin-top
:
15px
;
!
.
ld-Marheight
{
margin-top
:
15px
;
}
</style>
...
...
@@ -403,9 +403,18 @@
</div>
<div
class=
"modal-body"
>
<br>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"old_agents"
placeholder=
"请输入经纪人姓名"
type=
"text"
value=
""
>
<!-- ============添加========== -->
<div
class=
"jian_class"
>
<input
name=
"ues_id"
placeholder=
"请输入"
type=
"tel"
value=
""
class=
"phone_jia old_agents"
>
<ul
class=
"phone_list"
></ul>
</div>
<span
class=
"btn3"
id=
"batch"
>
批量修改为
</span>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"new_agents"
placeholder=
"请输入经纪人姓名"
type=
"text"
value=
""
>
<div
class=
"jian_class"
>
<input
name=
"ues_id"
placeholder=
"请输入"
type=
"tel"
value=
""
class=
"phone_jia new_agents"
>
<ul
class=
"phone_list"
></ul>
</div>
<br><br><br>
</div>
<div
class=
"modal-footer"
>
...
...
public/resource/js/houseList.js
View file @
ad37d1ba
...
...
@@ -36,10 +36,12 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
});
$
(
document
).
delegate
(
".anch"
,
"click"
,
function
()
{
//点击设置案场权限人
// 传入data-id
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"1"
;
business
.
Anch
();
//获取手机号名字的
});
// 点击设置案场权限人(盘方)
$
(
document
).
delegate
(
".add_applies"
,
"click"
,
function
()
{
//点击设置案场权限人
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
business
.
type
=
"2"
;
...
...
@@ -57,6 +59,7 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
$
(
document
).
delegate
(
".submit_follow2"
,
"click"
,
function
()
{
//提交独家
business
.
Dujianew
();
});
// 提交按钮设置案场权限人
$
(
document
).
delegate
(
".submit_follow"
,
"click"
,
function
()
{
//提交按钮设置案场权限人
business
.
Submit_follow
();
});
...
...
@@ -136,6 +139,7 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
});
},
// 获取信息 手机号 名字
Anch
:
function
(){
//获取手机号名字的
$
.
ajax
({
'type'
:
'GET'
,
...
...
@@ -267,6 +271,7 @@ define (['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css','ckfin
business
.
ldHtml
.
html
(
''
);
business
.
stopstatus
=
true
;
},
// 下拉列表
loadMain
:
function
(
phone
,
obj
)
{
//手机号
business
.
ajaxObj
=
$
.
ajax
({
type
:
"GET"
,
...
...
public/resource/js/user.js
View file @
ad37d1ba
...
...
@@ -20,6 +20,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});*/
},
event
:
function
()
{
var
_doc
=
$
(
document
);
$
(
".Bannertu"
).
click
(
function
()
{
BrowseServer
(
'cover_image'
);
});
...
...
@@ -92,9 +93,70 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
user
.
addphone2
(
this
);
});
// =============================下拉列表===================
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
user
.
Submit_follow
();
});
// =============下拉列表========================
var
_ajaxObjTel
=
null
;
_doc
.
on
(
'input'
,
'.phone_jia'
,
function
(){
var
_this
=
$
(
this
),
_thisVal
=
$
.
trim
(
_this
.
val
());
_this
.
removeAttr
(
'data-id'
);
//移除之前携带的信息
if
(
_thisVal
!=
''
){
_ajaxObjTel
&&
_ajaxObjTel
.
abort
();
_ajaxObjTel
=
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getBroker_new'
,
data
:
{
'phone'
:
$
.
trim
(
_this
.
val
())
},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
[
'data'
].
length
>
0
){
var
_htmlTemp
=
''
;
$
.
each
(
data
[
'data'
],
function
(
i
,
item
)
{
_htmlTemp
+=
'<li data-id="{3}">{2}{0}-{1}<li>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
'1'
:
item
[
'phone'
],
'2'
:
_this
.
parent
().
nextAll
(
'.input-add-tel'
).
data
(
'hideid'
)?
''
:(
item
[
'id'
]
+
'-'
),
'3'
:
item
[
'id'
]
});
});
_this
.
next
().
show
().
html
(
_htmlTemp
);
}
else
{
_this
.
next
().
html
(
''
);
};
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
//alert('error');
},
complete
:
function
(
xhr
,
textStatus
){
if
(
textStatus
===
'timeout'
){
alert
(
'请求超时'
);
};
}
});
};
});
_doc
.
on
(
'click'
,
'.jian_class>ul>li'
,
function
(){
var
_this
=
$
(
this
);
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
});
},
addphone
:
function
(
obj
){
...
...
@@ -211,10 +273,14 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});
},
//
//
modify_add
:
function
()
{
//modify_add批量修改客方
var
old_agents_text
=
$
(
"input[name = 'old_agents']"
).
val
();
var
new_agents_text
=
$
(
"input[name = 'new_agents']"
).
val
();
var
old_agents_text
=
$
(
'.old_agents'
).
val
();
var
new_agents_text
=
$
(
'.new_agents'
).
val
();
console
.
log
(
$
(
'.old_agents'
).
attr
(
'name'
));
if
(
old_agents_text
==
''
)
{
alert
(
'请输入经纪人内容为空'
);
...
...
@@ -231,9 +297,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
type
:
'POST'
,
async
:
true
,
data
:
{
// "user_id" : user.user_id,
// "content" : genj_text,
// "user_status": user_status
"old_agents_id"
:
$
(
'.phone_jia:eq(0)'
).
attr
(
'data-id'
),
"agents_id"
:
$
(
'.phone_jia:eq(1)'
).
attr
(
'data-id'
),
},
dataType
:
'json'
,
success
:
function
(
data
)
{
...
...
@@ -272,6 +337,16 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}
});
},
// ================================搜索================================
// 下拉列表
// ================================================================
//筛选
getList
:
function
(
pageNo
)
{
user
.
pageNo
=
pageNo
;
...
...
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