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
360eeffa
Commit
360eeffa
authored
Jun 05, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增编辑客户
parent
b7cc9e7f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
174 additions
and
87 deletions
+174
-87
users_list.html
application/index/view/member/users_list.html
+131
-79
myCollectionUserList.html
...ion/index/view/myCollectionUser/myCollectionUserList.html
+6
-0
myCollectionUserList.js
public/resource/js/myCollectionUserList.js
+8
-0
user.js
public/resource/js/user.js
+29
-8
No files found.
application/index/view/member/users_list.html
View file @
360eeffa
{layout name="global/frame_two_tpl" /}
{layout name="global/frame_two_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"user"
/>
<input
type=
"hidden"
class=
"page-load"
id=
"user"
/>
<style>
<style>
.left-width
{
float
:
left
;
width
:
130px
;
}
/*改变搜索条件的margain的值*/
/*改变搜索条件的margain的值*/
.ld-Marheight
{
.ld-Marheight
{
margin-top
:
5px
!important
;
margin-top
:
5px
!important
;
...
@@ -66,7 +70,7 @@
...
@@ -66,7 +70,7 @@
width
:
850px
;
width
:
850px
;
}
}
.modal-body-new-user
{
.modal-body-new-user
{
width
:
639
px
;
width
:
788
px
;
}
}
.user-ul
,
.user-ul-new-introduce
{
.user-ul
,
.user-ul-new-introduce
{
width
:
100%
;
width
:
100%
;
...
@@ -429,6 +433,13 @@
...
@@ -429,6 +433,13 @@
<div
class=
"table-responsive"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<thead>
<tr>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
>
找商铺
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
找办公楼
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
全部
</a>
</td>
</tr>
<tr>
<tr>
<td
colspan=
"13"
>
<td
colspan=
"13"
>
<form
action=
""
method=
"get"
id=
"form_search"
>
<form
action=
""
method=
"get"
id=
"form_search"
>
...
@@ -616,7 +627,7 @@
...
@@ -616,7 +627,7 @@
<!-- /#wrapper -->
<!-- /#wrapper -->
<!-- /#新增客户模态框 -->
<!-- /#新增客户模态框 -->
<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
modal-body-new-user
"
>
<div
class=
"modal-content modal-body-new-user"
>
<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"
>
...
@@ -629,46 +640,39 @@
...
@@ -629,46 +640,39 @@
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<form
class=
"form-horizontal"
action=
"/agents/add_user"
id=
"add_user_form"
>
<form
class=
"form-horizontal"
action=
"/agents/add_user"
id=
"add_user_form"
>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
姓名:
</label>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
客户类型:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control btn5"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
<select
class=
"form-control left-width"
id=
"find-shop-type"
>
</div>
<option
value=
""
>
客户类型
</option>
</div>
<option
value=
"0"
>
找商铺
</option>
<div
class=
"form-group form-group-bottom"
>
<option
value=
"1"
>
找办公楼
</option>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
性别:
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn5"
id=
"user_sex"
>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
</select>
</select>
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
电话:
</label>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<div
class=
"col-sm-9"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
客户状态:
</label>
<input
type=
"number"
class=
"form-control btn5"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
placeholder=
"请输入电话"
>
<div
class=
"col-sm-8"
>
</div>
<select
class=
"form-control left-width"
id=
"add-user-staus"
>
</div>
<option
value=
""
>
客户状态
</option>
<div
class=
"form-group form-group-bottom"
>
<option
value=
"0"
>
求租
</option>
<label
for=
"inputEmail3"
class=
"col-sm-3 control-label"
>
客户所属城市(可多选):
</label>
<option
value=
"1"
>
已租
</option>
<div
class=
"col-sm-9"
id=
"shangpu_tags_area"
>
<option
value=
"-1"
>
无效
</option>
<!--<select class="form-control btn5" id="user_city_add">
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>
</select>
<select class="form-control btn5" id="user_area_add">
<option value="" selected="selected">请选择区域</option>
</select>-->
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<label
class=
"col-sm-3 control-label"
>
业态:
</label>
<div
class=
"col-sm-9"
>
<select
class=
"form-control btn5"
id=
"industry_type2"
>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
具体业态:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control left-width"
name=
""
id=
"concrete_industry"
placeholder=
"8个字以内(选填)"
>
</div>
</div>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
class=
"col-sm-4 control-label"
>
业态:
</label>
<div
class=
"col-sm-8"
>
<select
class=
"form-control left-width"
id=
"industry_type2"
>
<option
value=
""
>
业态选择
</option>
<option
value=
""
>
业态选择
</option>
<option>
轻餐饮
</option>
<option>
轻餐饮
</option>
<option>
重餐饮
</option>
<option>
重餐饮
</option>
...
@@ -676,23 +680,55 @@
...
@@ -676,23 +680,55 @@
<option>
服装
</option>
<option>
服装
</option>
<option>
亲子教育
</option>
<option>
亲子教育
</option>
<option>
休闲娱乐
</option>
<option>
休闲娱乐
</option>
</select>
</div>
</div>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
姓名:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control left-width"
name=
"user_name"
id=
"inputEmail3"
placeholder=
"请输入姓名"
>
</div>
</div>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
性别:
</label>
<div
class=
"col-sm-8"
>
<select
class=
"form-control left-width"
id=
"user_sex"
>
<option
value=
""
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
男
</option>
<option
value=
"2"
>
女
</option>
</select>
</select>
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
class=
"col-sm-3 control-label"
>
价格:
</label>
<label
class=
"col-sm-4 control-label"
>
电话:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-8"
>
<input
type=
"number"
class=
"form-control btn5"
id=
"price_type2"
placeholder=
"请输入价格"
/><span
class=
"use-span"
>
元/月
</span>
<input
type=
"number"
class=
"form-control left-width"
name=
"user_phone"
autocomplete=
"off"
id=
"set_father_id2"
placeholder=
"请输入电话"
>
</div>
</div>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
for=
"inputEmail3"
class=
"col-sm-4 control-label"
>
客户微信号:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control left-width"
name=
""
id=
"weixin_nick"
placeholder=
"选填"
>
</div>
</div>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
class=
"col-sm-4 control-label"
>
价格:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"number"
class=
"form-control left-width"
id=
"price_type2"
placeholder=
"请输入价格"
/><span
class=
"use-span"
>
元/月
</span>
</div>
</div>
<div
class=
"form-group form-group-bottom col-sm-6"
>
<label
class=
"col-sm-4 control-label"
>
面积:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"number"
class=
"form-control left-width"
id=
"area_type2"
placeholder=
"请输入面积"
/><span
class=
"use-span"
>
㎡
</span>
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom"
>
<label
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"
id=
"shangpu_tags_area"
>
<input
type=
"number"
class=
"form-control btn5"
id=
"area_type2"
placeholder=
"请输入面积"
/><span
class=
"use-span"
>
㎡
</span>
</div>
</div>
</div>
</div>
<div
class=
"form-group form-group-bottom"
>
<div
class=
"form-group form-group-bottom"
>
<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"
>
...
@@ -725,7 +761,6 @@
...
@@ -725,7 +761,6 @@
<option
value=
"5"
>
打跟进
</option>
<option
value=
"5"
>
打跟进
</option>
<option
value=
"6"
>
驻守
</option>
<option
value=
"6"
>
驻守
</option>
<option
value=
"7"
>
其他
</option>
<option
value=
"7"
>
其他
</option>
<!-- 网络 客户介绍 朋友介绍 上门挂牌 打跟进 驻守 其他-->
</select>
</select>
</div>
</div>
</div>
</div>
...
@@ -862,23 +897,49 @@
...
@@ -862,23 +897,49 @@
<div
class=
"modal-body modal-body1"
>
<div
class=
"modal-body modal-body1"
>
<table
class=
""
id=
"caozuo_hide"
border=
'0'
>
<table
class=
""
id=
"caozuo_hide"
border=
'0'
>
<thead>
<thead>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户类型:
</span>
<select
class=
"form-control left-width ld-Marheight"
id=
"find-shop-typeEdit"
>
<option
value=
""
>
客户类型
</option>
<option
value=
"0"
>
找商铺
</option>
<option
value=
"1"
>
找办公楼
</option>
</select>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
具体业态:
</span>
<input
class=
"form-control btn6 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"concrete_industryEdit"
name=
""
type=
"text"
placeholder=
"选填"
>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
业态:
</span>
<select
class=
"form-control btn6 ld-Marheight industry_type_two_1"
name=
"industry_type_two"
>
<option>
轻餐饮
</option>
<option>
重餐饮
</option>
<option>
百货零售
</option>
<option>
服装
</option>
<option>
亲子教育
</option>
<option>
休闲娱乐
</option>
</select>
</td>
</tr>
<tr>
<tr>
<td
width=
"40%"
>
<td
width=
"40%"
>
<span
class=
"fore-span"
>
产生类型:
</span>
<span
class=
"fore-span
ld-Marheight
"
>
产生类型:
</span>
<span
class=
"fore-span source_type"
></span>
<span
class=
"fore-span source_type
ld-Marheight
"
></span>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
VIP客户:
</span>
<span
class=
"fore-span
ld-Marheight
"
>
VIP客户:
</span>
<select
class=
"form-control btn6 user_vip2 user_vip2_1"
>
<select
class=
"form-control btn6 user_vip2 user_vip2_1
ld-Marheight
"
>
<option
value=
''
class=
"successModel"
>
请选择
</option>
<option
value=
''
class=
"successModel"
>
请选择
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
</select>
</select>
</td>
</td>
<td>
<td>
<span
class=
"fore-span"
>
客户编号:
</span>
<span
class=
"fore-span
ld-Marheight
"
>
客户编号:
</span>
<span
class=
"fore-span cus_id"
></span>
<span
class=
"fore-span cus_id
ld-Marheight
"
></span>
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -898,22 +959,9 @@
...
@@ -898,22 +959,9 @@
<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" data-toggle="modal">拨打</a>-->
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
业态:
</span>
<select
class=
"form-control btn6 ld-Marheight industry_type_two_1"
name=
"industry_type_two"
>
<option>
轻餐饮
</option>
<option>
重餐饮
</option>
<option>
百货零售
</option>
<option>
服装
</option>
<option>
亲子教育
</option>
<option>
休闲娱乐
</option>
</select>
</td>
<td>
<td>
<span
class=
"fore-span ld-Marheight"
>
价格:
</span>
<span
class=
"fore-span ld-Marheight"
>
价格:
</span>
<input
class=
"form-control btn6 ld-Marheight price_demand_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"price_demand"
type=
"number"
><span
class=
"fore-span ld-Marheight"
>
元/月
</span>
<input
class=
"form-control btn6 ld-Marheight price_demand_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"price_demand"
type=
"number"
><span
class=
"fore-span ld-Marheight"
>
元/月
</span>
...
@@ -923,6 +971,8 @@
...
@@ -923,6 +971,8 @@
<span
class=
"fore-span ld-Marheight"
>
面积:
</span>
<span
class=
"fore-span ld-Marheight"
>
面积:
</span>
<input
class=
"form-control btn6 ld-Marheight area_demand_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"area_demand"
type=
"number"
><span
class=
"fore-span ld-Marheight"
>
m²
</span>
<input
class=
"form-control btn6 ld-Marheight area_demand_1"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
""
name=
"area_demand"
type=
"number"
><span
class=
"fore-span ld-Marheight"
>
m²
</span>
</td>
</td>
<td></td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>
...
@@ -973,14 +1023,6 @@
...
@@ -973,14 +1023,6 @@
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<span
class=
"fore-span ld-Marheight"
>
客户所属城市:
</span>
<div
class=
"col-sm-9 shangpu_tags_area_edit ld-Marheight-tags"
>
<div
class=
"col-sm-9 shangpu_tags_area_edit ld-Marheight-tags"
>
</div>
</div>
<!--<select class="form-control btn4 ld-Marheight" id="user_city_edit">
<option value="">请选择城市</option>
<option value="310100">上海市</option>
<option value="330100">杭州市</option>
</select>
<select class="form-control btn4 ld-Marheight" id="user_area_edit">
<option value="">请选择区域</option>
</select>-->
</td>
</td>
</tr>
</tr>
<tr>
<tr>
...
@@ -1003,6 +1045,24 @@
...
@@ -1003,6 +1045,24 @@
</div>
</div>
</td>
</td>
</tr>
</tr>
<tr>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户微信号:
</span>
<input
class=
"form-control btn6 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"weixin_nickEdit"
name=
""
type=
"text"
>
</td>
<td>
<span
class=
"fore-span ld-Marheight"
>
客户状态:
</span>
<select
class=
"form-control btn6 fore-span ld-Marheight"
id=
"edit-user-staus"
>
<option
value=
''
>
请选择
</option>
<option
value=
"0"
>
求租
</option>
<option
value=
"1"
>
已租
</option>
<option
value=
"-1"
>
无效
</option>
</select>
</td>
<td>
</td>
</tr>
<tr
class=
"ld-Marheight"
>
<tr
class=
"ld-Marheight"
>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
<td
class=
"text-left"
><label>
客方修改记录:
</label></td>
</tr>
</tr>
...
@@ -1020,7 +1080,6 @@
...
@@ -1020,7 +1080,6 @@
<tbody
class=
"text-center"
id=
"caozuo_table_edit_introduce"
></tbody>
<tbody
class=
"text-center"
id=
"caozuo_table_edit_introduce"
></tbody>
</table>
</table>
</div>
</div>
<!--客户详情保存-->
<!--客户详情保存-->
<div
class=
"center-btn"
>
<div
class=
"center-btn"
>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
保存
</button>
<button
type=
"button"
class=
"btn btn-primary submit_edit"
>
保存
</button>
...
@@ -1028,13 +1087,6 @@
...
@@ -1028,13 +1087,6 @@
</div>
</div>
</div>
</div>
<!--<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
<button type="button" class="btn btn-primary submit_edit" data-dismiss="modal">
提交
</button>
</div>-->
</div>
</div>
<!-- /.modal-content -->
<!-- /.modal-content -->
</div>
</div>
...
...
application/index/view/myCollectionUser/myCollectionUserList.html
View file @
360eeffa
...
@@ -325,6 +325,12 @@
...
@@ -325,6 +325,12 @@
<table
class=
"table table-striped table-bordered table-hover table-condensed text-center"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed text-center"
>
<thead>
<thead>
<tr>
<td
colspan=
"14"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
>
找商铺
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
办公楼
</a>
</td>
</tr>
<tr>
<tr>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
客户ID
</th>
<th
class=
"text-center"
>
客户姓名
</th>
<th
class=
"text-center"
>
客户姓名
</th>
...
...
public/resource/js/myCollectionUserList.js
View file @
360eeffa
...
@@ -77,6 +77,14 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
...
@@ -77,6 +77,14 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
//收藏客户列表 区分商铺 办公楼
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
user
.
getList
(
1
);
});
//约带看列表 点击新增商铺
//约带看列表 点击新增商铺
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
_doc
.
on
(
'click'
,
'#bargaininfo_commission_add_btn>img'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'#bargaininfo_commission_add_btn>img'
,
function
(
e
)
{
...
...
public/resource/js/user.js
View file @
360eeffa
if
(
window
===
window
.
parent
){
//没有菜单 给提醒
//
if(window === window.parent){//没有菜单 给提醒
alert
(
'请清除缓存重新登录'
);
//
alert('请清除缓存重新登录');
location
.
replace
(
location
.
origin
);
//
location.replace(location.origin);
};
//
};
define
([
'doT'
,
'text!temp/user_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
,
'checkLogin'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/user_template_tpl.html'
,
'css!style/home.css'
,
'ckfinder'
,
'ckfinderStart'
,
"datetimepicker"
,
'pagination'
,
'bootstrapJs'
,
'blow-up'
,
'checkLogin'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
_doc
=
$
(
document
),
var
_doc
=
$
(
document
),
...
@@ -162,6 +162,15 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -162,6 +162,15 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
},
},
event
:
function
()
{
event
:
function
()
{
var
_doc
=
$
(
document
);
var
_doc
=
$
(
document
);
//办公楼 商铺 的客户列表切换
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
user
.
getList
(
1
);
});
$
(
'.J_preview'
).
preview
();
//预览图片
$
(
'.J_preview'
).
preview
();
//预览图片
//约带看列表 点击新增商铺
//约带看列表 点击新增商铺
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
var
_iYJAAObj
=
$
(
'.detail-modal-bargaininfo-commission-addarea'
);
...
@@ -1581,7 +1590,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1581,7 +1590,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
referrer_source
=
user
.
referrer_source
;
params
.
referrer_source
=
user
.
referrer_source
;
}
}
params
.
user_label
=
$
(
"#user_label_edit"
).
val
();
params
.
user_label
=
$
(
"#user_label_edit"
).
val
();
// checkLogin();
params
.
entrust_type
=
$
(
'#find-shop-typeEdit'
).
val
();
params
.
weixin_nick
=
$
(
"#weixin_nickEdit"
).
val
();
//微信号
params
.
user_status
=
$
(
"#edit-user-staus"
).
val
();
//客户状态
params
.
concrete_industry
=
$
(
"#concrete_industryEdit"
).
val
();
//具体业态
$
.
ajax
({
$
.
ajax
({
'type'
:
'POST'
,
'type'
:
'POST'
,
'url'
:
'/index/pcEditClient'
,
'url'
:
'/index/pcEditClient'
,
...
@@ -1675,7 +1687,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1675,7 +1687,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
console
.
log
(
666
);
}
else
{
}
else
{
alert
(
data
.
msg
)
alert
(
data
.
msg
)
}
}
...
@@ -1703,6 +1714,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1703,6 +1714,10 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
if
(
data
.
data
)
{
$
(
'#find-shop-typeEdit'
).
val
(
data
.
data
.
user_info
.
entrust_type
);
//客户类型 商铺 办公楼
$
(
"#weixin_nickEdit"
).
val
(
data
.
data
.
user_info
.
weixin_nick
);
//微信号
$
(
"#edit-user-staus"
).
val
(
data
.
data
.
user_info
.
user_status
);
//客户状态
$
(
"#concrete_industryEdit"
).
val
(
data
.
data
.
user_info
.
concrete_industry
);
//具体业态
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_name"
).
val
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".cus_name"
).
val
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".cus_nick"
).
html
(
data
.
data
.
user_info
.
user_nick
);
//昵称
$
(
".cus_nick"
).
html
(
data
.
data
.
user_info
.
user_nick
);
//昵称
...
@@ -2188,12 +2203,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -2188,12 +2203,19 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
type
=
'add'
;
params
.
type
=
'add'
;
params
.
referrer_id
=
user
.
user_id_new_introduce
;
params
.
referrer_id
=
user
.
user_id_new_introduce
;
params
.
referrer_source
=
10
;
params
.
referrer_source
=
10
;
params
.
weixin_nick
=
$
(
"#weixin_nick"
).
val
();
//微信号
params
.
user_status
=
$
(
"#add-user-staus"
).
val
();
//客户状态
params
.
concrete_industry
=
$
(
"#concrete_industry"
).
val
();
//具体业态
//站点标签验证
//站点标签验证
var
_siteTagArr
=
[];
var
_siteTagArr
=
[];
$
.
each
(
$
(
'.roomTag'
),
function
(
i
,
item
)
{
$
.
each
(
$
(
'.roomTag'
),
function
(
i
,
item
)
{
item
.
checked
&&
_siteTagArr
.
push
(
item
.
getAttribute
(
'data-id'
));
item
.
checked
&&
_siteTagArr
.
push
(
item
.
getAttribute
(
'data-id'
));
});
});
params
.
site_id
=
_siteTagArr
.
join
(
','
),
params
.
site_id
=
_siteTagArr
.
join
(
','
);
//客户类型
params
.
entrust_type
=
$
(
'#find-shop-type'
).
val
();
params
.
disc
=
$
(
"#user_area_add"
).
val
();
params
.
disc
=
$
(
"#user_area_add"
).
val
();
params
.
user_label
=
$
(
"#user_label_add"
).
val
();
params
.
user_label
=
$
(
"#user_label_add"
).
val
();
if
(
params
.
user_name
==
''
)
{
if
(
params
.
user_name
==
''
)
{
...
@@ -2259,7 +2281,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -2259,7 +2281,6 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
alert
(
'请选择正确的客方'
);
alert
(
'请选择正确的客方'
);
return
;
return
;
}
}
// checkLogin();
$
.
ajax
({
$
.
ajax
({
url
:
'/index/pcEditClient'
,
url
:
'/index/pcEditClient'
,
type
:
'POST'
,
type
:
'POST'
,
...
...
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