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
47250ce0
Commit
47250ce0
authored
Aug 08, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户列表修改
parent
5468e77f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
5 deletions
+45
-5
users_list.html
application/index/view/member/users_list.html
+3
-5
user.js
public/resource/js/user.js
+42
-0
No files found.
application/index/view/member/users_list.html
View file @
47250ce0
...
@@ -444,7 +444,7 @@
...
@@ -444,7 +444,7 @@
</select>
</select>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
<
a
class=
"btn btn-info btn3 margin-top-ld user-favorites"
>
收藏夹
</a
>
<
!--<a class="btn btn-info btn3 margin-top-ld user-favorites"> 收藏夹 </a>--
>
<a
href=
"#modal_modify_user"
data-toggle=
"modal"
class=
"btn btn-info btn3 margin-top-ld"
><i
class=
"icon-plus"
></i>
批量修改客方
<a
href=
"#modal_modify_user"
data-toggle=
"modal"
class=
"btn btn-info btn3 margin-top-ld"
><i
class=
"icon-plus"
></i>
批量修改客方
</a>
</a>
...
@@ -747,7 +747,6 @@
...
@@ -747,7 +747,6 @@
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户标签:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户标签:
</span>
<span
class=
"user_details_label ld-Marheight fore-span"
>
<span
class=
"user_details_label ld-Marheight fore-span"
>
纯房东
</span>
</span>
</td>
</td>
...
@@ -765,7 +764,6 @@
...
@@ -765,7 +764,6 @@
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"user_details_city ld-Marheight fore-span"
>
<span
class=
"user_details_city ld-Marheight fore-span"
>
上海黄浦
</span>
</span>
</td>
</td>
...
@@ -1206,12 +1204,12 @@
...
@@ -1206,12 +1204,12 @@
<td
colspan=
"3"
>
<td
colspan=
"3"
>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<select
class=
"form-control btn4 ld-Marheight"
id=
"user_city_edit"
>
<select
class=
"form-control btn4 ld-Marheight"
id=
"user_city_edit"
>
<option
value=
""
selected=
"selected"
>
请选择城市
</option>
<option
value=
""
>
请选择城市
</option>
<option
value=
"310100"
>
上海市
</option>
<option
value=
"310100"
>
上海市
</option>
<option
value=
"330100"
>
杭州市
</option>
<option
value=
"330100"
>
杭州市
</option>
</select>
</select>
<select
class=
"form-control btn4 ld-Marheight"
id=
"user_area_edit"
>
<select
class=
"form-control btn4 ld-Marheight"
id=
"user_area_edit"
>
<option
value=
""
selected=
"selected"
>
请选择区域
</option>
<option
value=
""
>
请选择区域
</option>
</select>
</select>
</td>
</td>
</tr>
</tr>
...
...
public/resource/js/user.js
View file @
47250ce0
...
@@ -207,6 +207,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -207,6 +207,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
user
.
modify_add
();
user
.
modify_add
();
});
});
$
(
document
).
delegate
(
".caozuo-yue"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
".caozuo-yue"
,
"click"
,
function
()
{
//约带看初始化
$
(
'#look_shop_date'
).
val
(
''
);
$
(
'#note_look'
).
val
(
''
);
$
(
'.look-shop'
).
val
(
''
);
$
(
'.look-shop'
).
removeAttr
(
'data-id'
);
user
.
Caozuo
();
user
.
Caozuo
();
});
});
...
@@ -457,6 +462,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -457,6 +462,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
alert
(
'提交成功'
);
alert
(
'提交成功'
);
$
(
'#look_shop_date'
).
val
(
''
);
$
(
'#note_look'
).
val
(
''
);
$
(
'.look-shop'
).
val
(
''
);
$
(
'.look-shop'
).
removeAttr
(
'data-id'
);
user
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
user
.
isAjaxSaving
=
false
;
//请求结束,再改为初始状态
$
(
"#modal-takeLook"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
$
(
"#modal-takeLook"
).
modal
(
'hide'
);
//提交成功后 关闭弹窗
}
else
{
}
else
{
...
@@ -609,6 +618,18 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -609,6 +618,18 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
params
.
industry_type
=
$
(
".industry_type_two_1"
).
val
();
params
.
industry_type
=
$
(
".industry_type_two_1"
).
val
();
params
.
price_demand
=
$
(
".price_demand_1"
).
val
();
params
.
price_demand
=
$
(
".price_demand_1"
).
val
();
params
.
area_demand
=
$
(
".area_demand_1"
).
val
();
params
.
area_demand
=
$
(
".area_demand_1"
).
val
();
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
}
if
(
$
(
'#user_city_edit'
).
val
()
==
330100
){
params
.
city
=
'杭州市'
;
}
// params.city = $("#user_city_edit").val();
params
.
disc
=
$
(
"#user_area_edit"
).
val
();
params
.
source
=
$
(
"#user_label_edit"
).
val
();
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
'url'
:
'/index/pcEditClient'
,
...
@@ -730,9 +751,20 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -730,9 +751,20 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
$
(
"input[name=price_demand]"
).
val
(
data
.
data
.
user_info
.
price_demand
*
1
);
$
(
"input[name=price_demand]"
).
val
(
data
.
data
.
user_info
.
price_demand
*
1
);
$
(
"input[name=area_demand]"
).
val
(
data
.
data
.
user_info
.
area_demand
*
1
);
$
(
"input[name=area_demand]"
).
val
(
data
.
data
.
user_info
.
area_demand
*
1
);
// $(".user_details_label").val(data.data.user_info.source); //客方详情 标签
$
(
".user_details_city"
).
html
(
data
.
data
.
user_info
.
city
+
data
.
data
.
user_info
.
disc
);
//客方详情 城市
$
(
"#take_look_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//约带看姓名
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_phone"
).
html
(
data
.
data
.
user_info
.
user_phone
);
//约带看手机号
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
$
(
"#take_look_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//约带看id
if
(
data
.
data
.
user_info
.
city
==
'上海市'
){
$
(
"#user_city_edit"
).
val
(
310100
);
//编辑客方
}
if
(
data
.
data
.
user_info
.
city
==
'杭州市'
){
$
(
"#user_city_edit"
).
val
(
330100
);
//编辑客方
}
$
(
"#user_area_edit"
).
val
(
data
.
data
.
user_info
.
disc
);
//编辑区域
user
.
agent_id_two
=
data
.
data
.
user_info
.
agent_id
;
user
.
agent_id_two
=
data
.
data
.
user_info
.
agent_id
;
if
(
data
.
data
.
user_info
.
source
==
10
)
{
if
(
data
.
data
.
user_info
.
source
==
10
)
{
...
@@ -744,6 +776,16 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
...
@@ -744,6 +776,16 @@ define(['doT', 'text!temp/user_template_tpl.html', 'ckfinder', 'ckfinderStart',
if
(
data
.
data
.
user_info
.
source
==
30
)
{
if
(
data
.
data
.
user_info
.
source
==
30
)
{
$
(
".source_type"
).
html
(
'老数据报备客户'
);
$
(
".source_type"
).
html
(
'老数据报备客户'
);
}
}
if
(
data
.
data
.
user_info
.
source
==
40
)
{
$
(
".user_details_label"
).
html
(
'是租客也是房东'
);
$
(
"#user_label_edit"
).
val
(
40
);
}
if
(
data
.
data
.
user_info
.
source
==
41
)
{
$
(
".user_details_label"
).
html
(
'纯房东'
);
$
(
"#user_label_edit"
).
val
(
41
);
}
var
caozuo_table
=
""
;
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
caozuo_table
+=
'<tr><td>'
+
item
.
remark
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
caozuo_table
+=
'<tr><td>'
+
item
.
remark
+
'</td><td>'
+
item
.
name
+
'</td><td>'
+
item
.
create_time
+
'</td></tr>'
;
...
...
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