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
facf6fd4
Commit
facf6fd4
authored
Aug 23, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增转介绍人
parent
0269ee40
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
335 additions
and
108 deletions
+335
-108
index.html
application/index/view/cell_phone/index.html
+9
-11
users_list.html
application/index/view/member/users_list.html
+44
-48
myCollectionUserList.html
...ion/index/view/myCollectionUser/myCollectionUserList.html
+26
-11
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+22
-8
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+58
-13
callPhoneIndex.js
public/resource/js/callPhoneIndex.js
+9
-0
myCollectionUserList.js
public/resource/js/myCollectionUserList.js
+57
-0
user.js
public/resource/js/user.js
+110
-17
No files found.
application/index/view/cell_phone/index.html
View file @
facf6fd4
...
@@ -388,7 +388,7 @@
...
@@ -388,7 +388,7 @@
<table
class=
""
id=
"caozuo_hide"
border=
'0'
>
<table
class=
""
id=
"caozuo_hide"
border=
'0'
>
<thead>
<thead>
<tr>
<tr>
<td
width=
"
40
%"
>
<td
width=
"
32
%"
>
<span
class=
"fore-span ld-Marheight"
>
产生类型:
</span>
<span
class=
"fore-span ld-Marheight"
>
产生类型:
</span>
<span
class=
"fore-span ld-Marheight source_type"
></span>
<span
class=
"fore-span ld-Marheight source_type"
></span>
</td>
</td>
...
@@ -423,8 +423,6 @@
...
@@ -423,8 +423,6 @@
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
电话:
</span>
<span
class=
"fore-span ld-Marheight"
>
电话:
</span>
<span
class=
"fore-span ld-Marheight cus_phone"
></span>
<span
class=
"fore-span ld-Marheight cus_phone"
></span>
<!--<a class="fore-span btn-primary ld-Marheight user_call" href="#modal-call" data-toggle="modal">拨打</a>-->
<!--<a class="fore-span btn-primary user_call" >拨打</a>-->
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -456,13 +454,11 @@
...
@@ -456,13 +454,11 @@
<span
class=
"fore-span ld-Marheight registration_time"
></span>
<span
class=
"fore-span ld-Marheight registration_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
邀请人
:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市
:
</span>
<span
class=
"
fore-span ld-Marheight referrer_user
"
></span>
<span
class=
"
user_details_city ld-Marheight fore-span
"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img
src=
""
alt=
""
class=
"fore-span ld-Marheight diagram-image J_preview user_pic"
data-bimg=
''
/>
<img
src=
""
alt=
""
class=
"fore-span ld-Marheight diagram-image J_preview user_pic"
data-bimg=
''
/>
<span
class=
"fore-span ld-Marheight cus_nick"
></span>
<span
class=
"fore-span ld-Marheight cus_nick"
></span>
</td>
</td>
...
@@ -491,14 +487,16 @@
...
@@ -491,14 +487,16 @@
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight cus_fang_edit"
name=
"pwd"
autocomplete=
"off"
disabled=
"disabled"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight cus_fang_edit"
name=
"pwd"
autocomplete=
"off"
disabled=
"disabled"
>
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</div>
</div>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"fore-span"
>
是否转介绍:
</span>
<span
class=
"user_details_city ld-Marheight fore-span"
>
<span
class=
"user-details-introduce fore-span"
></span>
</span>
</td>
<td>
<span
class=
"fore-span"
>
邀请人(介绍人):
</span>
<span
class=
"user-details-introduce-id fore-span"
></span>
</td>
</td>
</tr>
</tr>
...
...
application/index/view/member/users_list.html
View file @
facf6fd4
...
@@ -10,23 +10,23 @@
...
@@ -10,23 +10,23 @@
.modal-body-details
{
.modal-body-details
{
width
:
850px
;
width
:
850px
;
}
}
.modal-body-new-user
{
.user-ul
{
width
:
639px
;
}
.user-ul
,
.user-ul-new-introduce
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
/*padding-bottom: 15px;*/
float
:
left
;
float
:
left
;
position
:
relative
;
position
:
relative
;
left
:
-40px
;
left
:
-40px
;
}
}
.user-ul
li
,
.user-ul-new-introduce
li
,
.user-ul-edit-introduce
li
{
.user-ul
li
{
list-style
:
none
;
list-style
:
none
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.user-ul2
,
.user-ul2
,
.look-shop-ul
{
.look-shop-ul
,
.user-ul-edit-introduce
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
padding-bottom
:
6px
;
padding-bottom
:
6px
;
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
.left
{
.left
{
float
:
left
;
float
:
left
;
font-size
:
12px
;
/*font-size: 12px;*/
}
}
.bottom
{
.bottom
{
...
@@ -518,7 +518,7 @@
...
@@ -518,7 +518,7 @@
<!-- /#新增客户模态框 -->
<!-- /#新增客户模态框 -->
<div
class=
"modal fade"
id=
"modal_add_user"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal fade"
id=
"modal_add_user"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-content
modal-body-new-user
"
>
<div
class=
"modal-header"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
×
...
@@ -533,14 +533,13 @@
...
@@ -533,14 +533,13 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
姓名:
</label>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
姓名:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
<input
type=
"text"
class=
"form-control btn5"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
<!--<span class="use-span text-danger">(必填)</span>-->
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
性别:
</label>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
性别:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn
6
"
id=
"user_sex"
>
<select
class=
"form-control btn
5
"
id=
"user_sex"
>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
<option
value=
"2"
>
女
</option>
...
@@ -550,15 +549,13 @@
...
@@ -550,15 +549,13 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
电话:
</label>
<label
class=
"col-sm-3 control-label"
>
电话:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"number"
class=
"form-control btn6"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
>
<input
type=
"number"
class=
"form-control btn5"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
placeholder=
"请输入电话"
>
<!--<span class="use-span text-danger">(必填)</span>-->
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
客户所属城市:
</label>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
客户所属城市:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn5"
id=
"user_city_add"
>
<select
class=
"form-control btn5"
id=
"user_city_add"
>
<!--<option value="" selected="selected">请选择城市</option>-->
<option
value=
"310100"
selected=
"selected"
>
上海市
</option>
<option
value=
"310100"
selected=
"selected"
>
上海市
</option>
<option
value=
"330100"
>
杭州市
</option>
<option
value=
"330100"
>
杭州市
</option>
</select>
</select>
...
@@ -572,7 +569,7 @@
...
@@ -572,7 +569,7 @@
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn
6
"
id=
"industry_type2"
>
<select
class=
"form-control btn
5
"
id=
"industry_type2"
>
<option
value=
""
>
业态选择
</option>
<option
value=
""
>
业态选择
</option>
<option>
轻餐饮
</option>
<option>
轻餐饮
</option>
<option>
重餐饮
</option>
<option>
重餐饮
</option>
...
@@ -586,36 +583,21 @@
...
@@ -586,36 +583,21 @@
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
价格:
</label>
<label
class=
"col-sm-3 control-label"
>
价格:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"number"
class=
"form-control btn5"
id=
"price_type2"
placeholder=
"请输入价格"
/><span
class=
"use-span"
>
元/月
</span>
<input
type=
"number"
class=
"form-control btn6"
id=
"price_type2"
/><span
class=
"use-span"
>
元/月
</span>
<!--<select class="form-control btn6" name="price_type2">-->
<!--<option value="0">价格需求</option>
<option value="1">10000元/月以下</option>
<option value="2">10000元/月--30000元/月</option>
<option value="3">30000元/月以上</option>
</select>-->
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
面积:
</label>
<label
class=
"col-sm-3 control-label"
>
面积:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"number"
class=
"form-control btn5"
id=
"area_type2"
placeholder=
"请输入面积"
/><span
class=
"use-span"
>
㎡
</span>
<input
type=
"number"
class=
"form-control btn6"
id=
"area_type2"
/><span
class=
"use-span"
>
㎡
</span>
<!--<option value="0">面积需求</option>
<option value="1">100㎡以下</option>
<option value="2">100㎡-500㎡</option>
<option value="3">500㎡以上</option>-->
</div>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-3 control-label"
>
客方:
</label>
<label
class=
"col-sm-3 control-label"
>
客方:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"agent_id"
autocomplete=
"off"
id=
"set_father_id3"
>
<input
type=
"text"
class=
"form-control btn6"
name=
"agent_id"
autocomplete=
"off"
id=
"set_father_id3"
placeholder=
"请输入"
>
<ul
class=
"user-ul"
>
<ul
class=
"user-ul"
>
</ul>
</ul>
...
@@ -624,8 +606,7 @@
...
@@ -624,8 +606,7 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
VIP客户:
</label>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
VIP客户:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn6"
id=
"user_vip"
>
<select
class=
"form-control btn5"
id=
"user_vip"
>
<!--<option value='' class="successModel">请选择</option>-->
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
</select>
</select>
...
@@ -635,14 +616,21 @@
...
@@ -635,14 +616,21 @@
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
客户标签(选填):
</label>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
客户标签(选填):
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn6"
id=
"user_label_add"
>
<select
class=
"form-control btn5"
id=
"user_label_add"
>
<!--<option value='' class="successModel">请选择</option>-->
<option
value=
''
>
请选择
</option>
<option
value=
''
>
请选择
</option>
<option
value=
"1"
>
是租客也是房东
</option>
<option
value=
"1"
>
是租客也是房东
</option>
<option
value=
"2"
>
纯房东
</option>
<option
value=
"2"
>
纯房东
</option>
</select>
</select>
</div>
</div>
</div>
</div>
<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=
""
autocomplete=
"off"
id=
"introduce_new_user"
placeholder=
"请输入客户编号"
>
<ul
class=
"user-ul-new-introduce"
>
</ul>
</div>
</div>
</form>
</form>
</div>
</div>
...
@@ -715,7 +703,6 @@
...
@@ -715,7 +703,6 @@
<td>
<td>
<span
class=
"fore-span"
>
电话:
</span>
<span
class=
"fore-span"
>
电话:
</span>
<span
class=
"fore-span cus_phone"
></span>
<span
class=
"fore-span cus_phone"
></span>
<!--<a class="fore-span btn-primary user_call" data-toggle="modal">拨打</a>-->
<a
class=
"fore-span btn-primary user_call"
>
拨打
</a>
<a
class=
"fore-span btn-primary user_call"
>
拨打
</a>
</td>
</td>
</tr>
</tr>
...
@@ -752,13 +739,12 @@
...
@@ -752,13 +739,12 @@
<span
class=
"fore-span registration_time"
></span>
<span
class=
"fore-span registration_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
邀请人:
</span>
<span
class=
"fore-span"
>
客户所属城市:
</span>
<span
class=
"fore-span referrer_user"
></span>
<span
class=
"user_details_city fore-span"
>
</span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
昵称:
</span>
<span
class=
"fore-span"
>
昵称:
</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img
src=
""
alt=
""
class=
"fore-span diagram-image J_preview user_pic"
data-bimg=
''
/>
<img
src=
""
alt=
""
class=
"fore-span diagram-image J_preview user_pic"
data-bimg=
''
/>
<span
class=
"fore-span cus_nick"
></span>
<span
class=
"fore-span cus_nick"
></span>
</td>
</td>
...
@@ -792,9 +778,12 @@
...
@@ -792,9 +778,12 @@
</div>
</div>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
客户所属城市:
</span>
<span
class=
"fore-span"
>
是否转介绍:
</span>
<span
class=
"user_details_city fore-span"
>
<span
class=
"user-details-introduce fore-span"
></span>
</span>
</td>
<td>
<span
class=
"fore-span"
>
邀请人(介绍人):
</span>
<span
class=
"user-details-introduce-id fore-span"
></span>
</td>
</td>
</tr>
</tr>
...
@@ -1261,8 +1250,6 @@
...
@@ -1261,8 +1250,6 @@
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<img src='' class="diagram-image J_preview" data-bimg=''>-->
<img
src=
""
alt=
""
class=
"fore-span ld-Marheight diagram-image J_preview user_pic"
data-bimg=
''
/>
<img
src=
""
alt=
""
class=
"fore-span ld-Marheight diagram-image J_preview user_pic"
data-bimg=
''
/>
<span
class=
"fore-span ld-Marheight cus_nick"
></span>
<span
class=
"fore-span ld-Marheight cus_nick"
></span>
</td>
</td>
...
@@ -1279,7 +1266,7 @@
...
@@ -1279,7 +1266,7 @@
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户标签:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户标签
(选填)
:
</span>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<option
value=
''
>
请选择
</option>
<option
value=
''
>
请选择
</option>
<option
value=
"1"
>
是租客也是房东
</option>
<option
value=
"1"
>
是租客也是房东
</option>
...
@@ -1310,6 +1297,15 @@
...
@@ -1310,6 +1297,15 @@
</div>
</div>
</div>
</div>
</td>
</td>
<td
colspan=
"2"
>
<div
class=
"form-group"
>
<span
class=
"fore-span ld-Marheight"
>
邀请人:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight"
name=
"pwd"
autocomplete=
"off"
id=
"introduce_edit_user"
>
<ul
class=
"user-ul-edit-introduce"
></ul>
</div>
</div>
</td>
</tr>
</tr>
<tr
class=
"ld-Marheight"
>
<tr
class=
"ld-Marheight"
>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
...
...
application/index/view/myCollectionUser/myCollectionUserList.html
View file @
facf6fd4
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
width
:
850px
;
width
:
850px
;
}
}
.user-ul
{
.user-ul
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
/*padding-bottom: 15px;*/
/*padding-bottom: 15px;*/
...
@@ -21,13 +21,13 @@
...
@@ -21,13 +21,13 @@
left
:
-40px
;
left
:
-40px
;
}
}
.user-ul
li
{
.user-ul
li
,
.user-ul-edit-introduce
li
{
list-style
:
none
;
list-style
:
none
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.user-ul2
,
.user-ul2
,
.look-shop-ul
{
.look-shop-ul
,
.user-ul-edit-introduce
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
padding-bottom
:
6px
;
padding-bottom
:
6px
;
...
@@ -433,8 +433,9 @@
...
@@ -433,8 +433,9 @@
<span
class=
"fore-span ld-Marheight registration_time"
></span>
<span
class=
"fore-span ld-Marheight registration_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
邀请人:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"fore-span ld-Marheight referrer_user"
></span>
<span
class=
"user_details_city ld-Marheight fore-span"
>
</span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
...
@@ -468,15 +469,20 @@
...
@@ -468,15 +469,20 @@
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<span
class=
"fore-span ld-Marheight"
>
客方:
</span>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight cus_fang_edit"
name=
"pwd"
autocomplete=
"off"
disabled=
"disabled"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight cus_fang_edit"
name=
"pwd"
autocomplete=
"off"
disabled=
"disabled"
>
<!--<ul class="user-ul2"></ul>-->
</div>
</div>
</div>
</div>
</td>
</td>
<td>
<td>
<span
class=
"fore-span
ld-Marheight"
>
客户所属城市
:
</span>
<span
class=
"fore-span
"
>
是否转介绍
:
</span>
<span
class=
"user
_details_city ld-Marheight
fore-span"
>
<span
class=
"user
-details-introduce
fore-span"
>
</span>
</span>
</td>
</td>
<td>
<span
class=
"fore-span"
>
邀请人(介绍人):
</span>
<span
class=
"user-details-introduce-id fore-span"
>
</span>
</td>
</tr>
</tr>
<!--<tr class="ld-Marheight">
<!--<tr class="ld-Marheight">
...
@@ -933,10 +939,10 @@
...
@@ -933,10 +939,10 @@
<span
class=
"fore-span ld-Marheight"
>
注册时间:
</span>
<span
class=
"fore-span ld-Marheight"
>
注册时间:
</span>
<span
class=
"fore-span ld-Marheight registration_time"
></span>
<span
class=
"fore-span ld-Marheight registration_time"
></span>
</td>
</td>
<td>
<
!--<
td>
<span class="fore-span ld-Marheight">邀请人:</span>
<span class="fore-span ld-Marheight">邀请人:</span>
<span class="fore-span ld-Marheight referrer_user"></span>
<span class="fore-span ld-Marheight referrer_user"></span>
</td>
</td>
-->
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<span
class=
"fore-span ld-Marheight"
>
昵称:
</span>
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
<!--<input type="hidden" value='[%= it[item]["agent_img"] %]'>-->
...
@@ -957,7 +963,7 @@
...
@@ -957,7 +963,7 @@
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户标签:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户标签
(选填)
:
</span>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<option
value=
''
>
请选择
</option>
<option
value=
''
>
请选择
</option>
<option
value=
"1"
>
是租客也是房东
</option>
<option
value=
"1"
>
是租客也是房东
</option>
...
@@ -988,6 +994,15 @@
...
@@ -988,6 +994,15 @@
</div>
</div>
</div>
</div>
</td>
</td>
<td
colspan=
"2"
>
<div
class=
"form-group"
>
<span
class=
"fore-span ld-Marheight"
>
邀请人:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight"
name=
"pwd"
autocomplete=
"off"
id=
"introduce_edit_user"
>
<ul
class=
"user-ul-edit-introduce"
></ul>
</div>
</div>
</td>
</tr>
</tr>
<tr
class=
"ld-Marheight"
>
<tr
class=
"ld-Marheight"
>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
...
...
application/index/view/remark/remark_follow_index.html
View file @
facf6fd4
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
width
:
850px
;
width
:
850px
;
}
}
.user-ul
{
.user-ul
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
float
:
left
;
float
:
left
;
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
left
:
-40px
;
left
:
-40px
;
}
}
.user-ul
li
{
.user-ul
li
,
.user-ul-edit-introduce
li
{
list-style
:
none
;
list-style
:
none
;
line-height
:
30px
;
line-height
:
30px
;
}
}
.user-ul2
,
.user-ul2
,
.look-shop-ul
{
.look-shop-ul
,
.user-ul-edit-introduce
{
width
:
100%
;
width
:
100%
;
height
:
auto
;
height
:
auto
;
padding-bottom
:
6px
;
padding-bottom
:
6px
;
...
@@ -459,8 +459,8 @@
...
@@ -459,8 +459,8 @@
<span
class=
"fore-span registration_time"
></span>
<span
class=
"fore-span registration_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
邀请人
:
</span>
<span
class=
"fore-span"
>
客户所属城市
:
</span>
<span
class=
"
fore-span referrer_user
"
></span>
<span
class=
"
user_details_city fore-span
"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
昵称:
</span>
<span
class=
"fore-span"
>
昵称:
</span>
...
@@ -495,8 +495,13 @@
...
@@ -495,8 +495,13 @@
</div>
</div>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
客户所属城市:
</span>
<span
class=
"fore-span"
>
是否转介绍:
</span>
<span
class=
"user_details_city fore-span"
>
<span
class=
"user-details-introduce fore-span"
>
</span>
</td>
<td>
<span
class=
"fore-span"
>
邀请人(介绍人):
</span>
<span
class=
"user-details-introduce-id fore-span"
>
</span>
</span>
</td>
</td>
...
@@ -791,7 +796,7 @@
...
@@ -791,7 +796,7 @@
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
<span
class=
"fore-span ld-Marheight firstlogin_time"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户标签:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户标签
(选填)
:
</span>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"user_label_edit"
>
<option
value=
''
>
请选择
</option>
<option
value=
''
>
请选择
</option>
<option
value=
"1"
>
是租客也是房东
</option>
<option
value=
"1"
>
是租客也是房东
</option>
...
@@ -822,6 +827,15 @@
...
@@ -822,6 +827,15 @@
</div>
</div>
</div>
</div>
</td>
</td>
<td
colspan=
"2"
>
<div
class=
"form-group"
>
<span
class=
"fore-span ld-Marheight"
>
邀请人:
</span>
<div
class=
"col-sm-9"
>
<input
type=
"text"
class=
"form-control btn6-1 ld-Marheight"
name=
"pwd"
autocomplete=
"off"
id=
"introduce_edit_user"
>
<ul
class=
"user-ul-edit-introduce"
></ul>
</div>
</div>
</td>
</tr>
</tr>
<tr
class=
"ld-Marheight"
>
<tr
class=
"ld-Marheight"
>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
...
...
public/resource/js/RemarkFollowIndex.js
View file @
facf6fd4
...
@@ -37,6 +37,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -37,6 +37,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
baohu
:
''
,
baohu
:
''
,
agentbaohu
:
''
,
agentbaohu
:
''
,
remark_id
:
''
,
remark_id
:
''
,
user_id_edit_introduce
:
''
,
isAjaxSaving
:
false
,
isAjaxSaving
:
false
,
customerInfo
:
{},
customerInfo
:
{},
init
:
function
()
{
init
:
function
()
{
...
@@ -331,6 +332,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -331,6 +332,14 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
search_phone
();
user
.
search_phone
();
}
}
});
});
$
(
document
).
on
(
"input"
,
"#introduce_edit_user"
,
function
()
{
//编辑客户 转介绍人 搜索客户
if
(
$
(
"#introduce_edit_user"
).
val
()
==
''
)
{
user
.
user_id_edit_introduce
=
''
;
$
(
".user-ul-edit-introduce"
).
html
(
''
);
}
else
{
user
.
introduce_userIdEdit
();
}
});
//拨打手机号
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
user
.
user_Call
();
user
.
user_Call
();
...
@@ -378,6 +387,9 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -378,6 +387,9 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphone
(
this
);
user
.
addphone
(
this
);
});
});
$
(
document
).
delegate
(
".add-user-edit-li"
,
"click"
,
function
()
{
//list消失编辑客户 点击li事件 获取客户id ul消失
user
.
addUserEditLi
(
this
);
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
user
.
addphone2
(
this
);
user
.
addphone2
(
this
);
});
});
...
@@ -452,15 +464,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -452,15 +464,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
prev
().
val
(
_this
.
html
()).
attr
(
'data-id'
,
_this
.
attr
(
'data-id'
));
_this
.
parent
().
html
(
''
).
hide
();
_this
.
parent
().
html
(
''
).
hide
();
});
});
//拨打电话相关
//跟进模态框,列表标签的点击事件
//跟进模态框,列表标签的点击事件
_doc
.
on
(
'click'
,
'.genjin-mark-area-alink>a'
,
function
(
e
){
_doc
.
on
(
'click'
,
'.genjin-mark-area-alink>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -885,6 +889,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -885,6 +889,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
agent_id2
=
$
(
obj
).
attr
(
"data-id"
);
user
.
agent_id2
=
$
(
obj
).
attr
(
"data-id"
);
},
},
addUserEditLi
:
function
(
obj
)
{
//编辑客户 input赋值 搜索客户id
var
user_ht
=
$
(
obj
).
html
();
$
(
"#introduce_edit_user"
).
val
(
user_ht
);
$
(
".user-ul-edit-introduce"
).
html
(
''
);
user
.
user_id_edit_introduce
=
$
(
obj
).
attr
(
"data-id"
);
},
//约带看 商铺名称搜索
//约带看 商铺名称搜索
addphone3
:
function
(
obj
)
{
addphone3
:
function
(
obj
)
{
var
_obj
=
$
(
obj
);
var
_obj
=
$
(
obj
);
...
@@ -986,6 +996,31 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -986,6 +996,31 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}
}
});
});
},
},
introduce_userIdEdit
:
function
()
{
//编辑客户 转介绍 客户id搜索
$
.
ajax
({
url
:
'/broker/searchUser'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'AuthToken'
:
_token
,
"id"
:
$
(
"#introduce_edit_user"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-edit-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
$
(
".user-ul-edit-introduce"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
// console.log($(".cus_fang").val());
// console.log($(".cus_fang").val());
$
.
ajax
({
$
.
ajax
({
...
@@ -1078,6 +1113,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -1078,6 +1113,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
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
();
params
.
referrer_id
=
user
.
user_id_edit_introduce
;
params
.
referrer_source
=
10
;
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
params
.
city
=
'上海市'
;
params
.
province
=
'上海市'
;
params
.
province
=
'上海市'
;
...
@@ -1230,16 +1267,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -1230,16 +1267,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
customerInfo
=
data
.
data
.
user_info
;
user
.
customerInfo
=
data
.
data
.
user_info
;
$
(
".cus_phone"
).
html
(
hideTel
(
data
.
data
.
user_info
.
user_phone
));
//电话
$
(
".cus_phone"
).
html
(
hideTel
(
data
.
data
.
user_info
.
user_phone
));
//电话
$
(
".cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//创建时间
$
(
".cus_date"
).
html
(
data
.
data
.
user_info
.
create_time
);
//创建时间
$
(
".referrer_user"
).
html
(
data
.
data
.
user_info
.
referrer_user
);
//上传时间
$
(
".cus_fang_edit"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方详情
$
(
".cus_fang_edit"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方详情
$
(
".cus_fang"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方编辑
$
(
".cus_fang"
).
val
(
data
.
data
.
user_info
.
agentinfo
);
//客方编辑
$
(
"select[name=industry_type_two]"
).
val
(
data
.
data
.
user_info
.
industry_type
);
$
(
"select[name=industry_type_two]"
).
val
(
data
.
data
.
user_info
.
industry_type
);
$
(
"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
);
//客方详情 城市
$
(
".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
...
@@ -1283,6 +1316,18 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
...
@@ -1283,6 +1316,18 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
".user_details_label"
).
html
(
'纯房东'
);
$
(
".user_details_label"
).
html
(
'纯房东'
);
$
(
"#user_label_edit"
).
val
(
2
);
$
(
"#user_label_edit"
).
val
(
2
);
}
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
console
.
log
(
1
)
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
console
.
log
(
10
)
}
}
var
caozuo_table
=
""
;
var
caozuo_table
=
""
;
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
][
'user_history'
],
function
(
i
,
item
)
{
...
...
public/resource/js/callPhoneIndex.js
View file @
facf6fd4
...
@@ -1252,6 +1252,15 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'css!style/home.css', 'c
...
@@ -1252,6 +1252,15 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'css!style/home.css', 'c
$
(
"#user_label_edit"
).
val
(
2
);
$
(
"#user_label_edit"
).
val
(
2
);
}
}
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
}
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>'
;
...
...
public/resource/js/myCollectionUserList.js
View file @
facf6fd4
...
@@ -34,6 +34,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -34,6 +34,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
agent_id_two
:
''
,
agent_id_two
:
''
,
agent_id2
:
0
,
agent_id2
:
0
,
agent_id_infor
:
0
,
agent_id_infor
:
0
,
user_id_edit_introduce
:
''
,
isAjaxSaving
:
false
,
isAjaxSaving
:
false
,
customerInfo
:
{},
customerInfo
:
{},
init
:
function
()
{
init
:
function
()
{
...
@@ -334,6 +335,14 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -334,6 +335,14 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
user
.
search_phone
();
user
.
search_phone
();
}
}
});
});
$
(
document
).
on
(
"input"
,
"#introduce_edit_user"
,
function
()
{
//编辑客户 转介绍人 搜索客户
if
(
$
(
"#introduce_edit_user"
).
val
()
==
''
)
{
user
.
user_id_edit_introduce
=
''
;
$
(
".user-ul-edit-introduce"
).
html
(
''
);
}
else
{
user
.
introduce_userIdEdit
();
}
});
//拨打手机号
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
user
.
user_Call
();
user
.
user_Call
();
...
@@ -381,6 +390,9 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -381,6 +390,9 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphone
(
this
);
user
.
addphone
(
this
);
});
});
$
(
document
).
delegate
(
".add-user-edit-li"
,
"click"
,
function
()
{
//list消失编辑客户 点击li事件 获取客户id ul消失
user
.
addUserEditLi
(
this
);
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
user
.
addphone2
(
this
);
user
.
addphone2
(
this
);
});
});
...
@@ -886,6 +898,12 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -886,6 +898,12 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
user
.
agent_id2
=
$
(
obj
).
attr
(
"data-id"
);
user
.
agent_id2
=
$
(
obj
).
attr
(
"data-id"
);
},
},
addUserEditLi
:
function
(
obj
)
{
//编辑客户 input赋值 搜索客户id
var
user_ht
=
$
(
obj
).
html
();
$
(
"#introduce_edit_user"
).
val
(
user_ht
);
$
(
".user-ul-edit-introduce"
).
html
(
''
);
user
.
user_id_edit_introduce
=
$
(
obj
).
attr
(
"data-id"
);
},
//约带看 商铺名称搜索
//约带看 商铺名称搜索
addphone3
:
function
(
obj
)
{
addphone3
:
function
(
obj
)
{
var
_obj
=
$
(
obj
);
var
_obj
=
$
(
obj
);
...
@@ -987,6 +1005,31 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -987,6 +1005,31 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
}
}
});
});
},
},
introduce_userIdEdit
:
function
()
{
//编辑客户 转介绍 客户id搜索
$
.
ajax
({
url
:
'/broker/searchUser'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'AuthToken'
:
_token
,
"id"
:
$
(
"#introduce_edit_user"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-edit-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
$
(
".user-ul-edit-introduce"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
// console.log($(".cus_fang").val());
// console.log($(".cus_fang").val());
$
.
ajax
({
$
.
ajax
({
...
@@ -1079,6 +1122,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -1079,6 +1122,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
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
();
params
.
referrer_id
=
user
.
user_id_edit_introduce
;
params
.
referrer_source
=
10
;
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
params
.
city
=
'上海市'
;
params
.
province
=
'上海市'
;
params
.
province
=
'上海市'
;
...
@@ -1267,6 +1312,18 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -1267,6 +1312,18 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
$
(
"#user_label_edit"
).
val
(
2
);
$
(
"#user_label_edit"
).
val
(
2
);
};
};
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
console
.
log
(
1
)
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
console
.
log
(
10
)
}
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>'
;
...
...
public/resource/js/user.js
View file @
facf6fd4
...
@@ -37,6 +37,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -37,6 +37,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
isAjaxSaving
:
false
,
isAjaxSaving
:
false
,
baohu
:
''
,
baohu
:
''
,
agentbaohu
:
''
,
agentbaohu
:
''
,
user_id_new_introduce
:
''
,
user_id_edit_introduce
:
''
,
customerInfo
:
{},
customerInfo
:
{},
all_custom
:
true
,
// true :所有客户 ,false :当前客户
all_custom
:
true
,
// true :所有客户 ,false :当前客户
init
:
function
()
{
init
:
function
()
{
...
@@ -412,7 +414,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -412,7 +414,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user
.
Caozuo
();
user
.
Caozuo
();
});
});
//
点击缓存
//
点击缓存
$
(
document
).
delegate
(
".caozuo-add-color"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
".caozuo-add-color"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
$
(
this
).
removeClass
(
'btn-success'
);
$
(
this
).
removeClass
(
'btn-success'
);
...
@@ -447,6 +449,24 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -447,6 +449,24 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
user
.
search_phone
();
user
.
search_phone
();
}
}
});
});
$
(
document
).
on
(
"input"
,
"#introduce_new_user"
,
function
()
{
//新增客户 转介绍人 搜索客户
if
(
$
(
"#introduce_new_user"
).
val
()
==
''
)
{
user
.
user_id_new_introduce
=
''
;
$
(
".user-ul-new-introduce"
).
html
(
''
);
}
else
{
user
.
introduce_userId
();
}
});
$
(
document
).
on
(
"input"
,
"#introduce_edit_user"
,
function
()
{
//编辑客户 转介绍人 搜索客户
if
(
$
(
"#introduce_edit_user"
).
val
()
==
''
)
{
user
.
user_id_edit_introduce
=
''
;
$
(
".user-ul-edit-introduce"
).
html
(
''
);
}
else
{
user
.
introduce_userIdEdit
();
}
});
//拨打手机号
//拨打手机号
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
$
(
document
).
on
(
"click"
,
".user_call"
,
function
()
{
user
.
user_Call
();
user
.
user_Call
();
...
@@ -494,6 +514,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -494,6 +514,12 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
$
(
document
).
delegate
(
".addphone"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphone
(
this
);
user
.
addphone
(
this
);
});
});
$
(
document
).
delegate
(
".add-user-new-li"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取客户id ul消失
user
.
addUserNewLi
(
this
);
});
$
(
document
).
delegate
(
".add-user-edit-li"
,
"click"
,
function
()
{
//list消失编辑客户 点击li事件 获取客户id ul消失
user
.
addUserEditLi
(
this
);
});
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
user
.
addphone2
(
this
);
user
.
addphone2
(
this
);
});
});
...
@@ -974,21 +1000,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -974,21 +1000,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
};
};
});
});
//拨打电话相关
},
},
addphone
:
function
(
obj
)
{
//新增客户 input赋值
addphone
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
();
var
user_ht
=
$
(
obj
).
html
();
...
@@ -996,6 +1007,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -996,6 +1007,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
".user-ul"
).
html
(
''
);
$
(
".user-ul"
).
html
(
''
);
user
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
user
.
agent_id
=
$
(
obj
).
attr
(
"data-id"
);
},
},
addUserNewLi
:
function
(
obj
)
{
//新增客户 input赋值 搜索客户id
var
user_ht
=
$
(
obj
).
html
();
$
(
"#introduce_new_user"
).
val
(
user_ht
);
$
(
".user-ul-new-introduce"
).
html
(
''
);
user
.
user_id_new_introduce
=
$
(
obj
).
attr
(
"data-id"
);
},
addUserEditLi
:
function
(
obj
)
{
//编辑客户 input赋值 搜索客户id
var
user_ht
=
$
(
obj
).
html
();
$
(
"#introduce_edit_user"
).
val
(
user_ht
);
$
(
".user-ul-edit-introduce"
).
html
(
''
);
user
.
user_id_edit_introduce
=
$
(
obj
).
attr
(
"data-id"
);
},
addphone2
:
function
(
obj
)
{
addphone2
:
function
(
obj
)
{
var
user_ht
=
$
(
obj
).
html
();
var
user_ht
=
$
(
obj
).
html
();
$
(
".cus_fang"
).
val
(
user_ht
);
$
(
".cus_fang"
).
val
(
user_ht
);
...
@@ -1104,6 +1128,58 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1104,6 +1128,58 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
}
});
});
},
},
introduce_userId
:
function
()
{
//新增客户 转介绍 客户id搜索
$
.
ajax
({
url
:
'/broker/searchUser'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'AuthToken'
:
_token
,
"id"
:
$
(
"#introduce_new_user"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-new-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
$
(
".user-ul-new-introduce"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
introduce_userIdEdit
:
function
()
{
//编辑客户 转介绍 客户id搜索
$
.
ajax
({
url
:
'/broker/searchUser'
,
type
:
'GET'
,
async
:
true
,
data
:
{
'AuthToken'
:
_token
,
"id"
:
$
(
"#introduce_edit_user"
).
val
()
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
.
user_date
,
function
(
i
,
item
)
{
user_ul
+=
'<li class="add-user-edit-li" data-id="'
+
item
.
user_id
+
'">'
+
item
.
user_name
+
'-'
+
item
.
user_phone
+
'-'
+
item
.
user_id
+
'</li>'
;
});
$
(
".user-ul-edit-introduce"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
search_phone2
:
function
()
{
//手机号 编辑是 客方搜索
// console.log($(".cus_fang").val());
// console.log($(".cus_fang").val());
$
.
ajax
({
$
.
ajax
({
...
@@ -1220,7 +1296,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1220,7 +1296,8 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
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
();
params
.
referrer_id
=
user
.
user_id_edit_introduce
;
params
.
referrer_source
=
10
;
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
if
(
$
(
'#user_city_edit'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
params
.
city
=
'上海市'
;
params
.
province
=
'上海市'
;
params
.
province
=
'上海市'
;
...
@@ -1424,6 +1501,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1424,6 +1501,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
"#user_label_edit"
).
val
(
2
);
$
(
"#user_label_edit"
).
val
(
2
);
}
}
if
(
data
.
data
.
user_info
.
referrer_id
>
0
){
$
(
".user-details-introduce"
).
html
(
'是'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
data
.
data
.
user_info
.
referrer_user
+
'-'
+
data
.
data
.
user_info
.
referrer_id
);
//转介绍编辑
console
.
log
(
1
)
}
else
{
$
(
".user-details-introduce"
).
html
(
'否'
);
//转介绍详情
$
(
".user-details-introduce-id"
).
html
(
''
);
//转介绍详情
$
(
"#introduce_edit_user"
).
val
(
''
);
//转介绍编辑
console
.
log
(
10
)
}
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>'
;
...
@@ -1564,6 +1654,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1564,6 +1654,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
industry_type
=
$
(
"#industry_type2"
).
val
();
params
.
industry_type
=
$
(
"#industry_type2"
).
val
();
params
.
vip
=
$
(
"#user_vip"
).
val
();
params
.
vip
=
$
(
"#user_vip"
).
val
();
params
.
type
=
'add'
;
params
.
type
=
'add'
;
params
.
referrer_id
=
user
.
user_id_new_introduce
;
params
.
referrer_source
=
10
;
if
(
$
(
'#user_city_add'
).
val
()
==
310100
){
if
(
$
(
'#user_city_add'
).
val
()
==
310100
){
params
.
city
=
'上海市'
;
params
.
city
=
'上海市'
;
params
.
province
=
'上海市'
;
params
.
province
=
'上海市'
;
...
...
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