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
9b3b81f7
Commit
9b3b81f7
authored
Dec 25, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台新增功能
parent
b4d045dd
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
200 additions
and
17 deletions
+200
-17
HouseFollowUp.html
application/index/view/houses/HouseFollowUp.html
+25
-2
edit.html
application/index/view/houses/edit.html
+3
-1
marchin_list.html
application/index/view/marchin/marchin_list.html
+1
-1
remark_follow_index.html
application/index/view/remark/remark_follow_index.html
+25
-4
shop_detail_pc.js
public/app/js/shop_detail_pc.js
+4
-1
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+69
-1
houseFollowUp.js
public/resource/js/houseFollowUp.js
+68
-7
shop_edit.js
public/resource/js/shop_edit.js
+3
-0
house_template_tpl.html
public/resource/template/house_template_tpl.html
+2
-0
No files found.
application/index/view/houses/HouseFollowUp.html
View file @
9b3b81f7
...
...
@@ -61,6 +61,23 @@
overflow
:
hidden
;
display
:
none
;
}
/*跟进人 下拉式搜索*/
.user-ul-liu
{
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul-liu
li
{
list-style
:
none
;
line-height
:
30px
;
}
.left-phone-liu
{
float
:
left
;
margin-top
:
7px
;
margin-left
:
10px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -96,7 +113,11 @@
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"guest_stores"
value=
""
>
</select>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="跟进人姓名" type="text" value="">-->
<input
class=
"form-control btn4 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"user_phone"
placeholder=
"跟进人姓名/电话"
type=
"text"
value=
""
>
<!--<input class="form-control btn4 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="跟进人姓名/电话" type="text" value="">-->
<div
class=
"left-phone-liu"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"partical_name"
placeholder=
"跟进人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul-liu"
></ul>
</div>
<!--<div class="clear"></div>-->
<!--<select class="form-control btn2 ld-Marheight" id="shop_city_id">
...
...
@@ -105,7 +126,9 @@
<option value="330100">杭州市</option>
</select>-->
<div
class=
"clear"
>
</div>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
</form>
...
...
application/index/view/houses/edit.html
View file @
9b3b81f7
...
...
@@ -343,8 +343,10 @@
<select
class=
"form-control"
name=
"zujinType"
id=
"zujinType"
>
<option
value=
"1"
selected=
"selected"
>
月租金
</option>
<option
value=
"2"
>
营业额扣点
</option>
<option
value=
"3"
>
每平方米租金
</option>
<option
value=
"3"
>
每平方米
日
租金
</option>
<option
value=
"4"
>
年租金
</option>
<option
value=
"5"
>
每平方米月租金
</option>
</select>
</div>
<div
class=
"form-group"
>
...
...
application/index/view/marchin/marchin_list.html
View file @
9b3b81f7
...
...
@@ -75,7 +75,7 @@
<option
value=
"0"
>
商场
</option>
<option
value=
"1"
>
街铺
</option>
</select>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"bargain_id"
placeholder=
"带看订单ID"
type=
"text"
value=
""
>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 ld-Marheight"
id=
"reset"
>
重置
</span>
</form>
...
...
application/index/view/remark/remark_follow_index.html
View file @
9b3b81f7
...
...
@@ -338,6 +338,22 @@
font-weight
:
600
;
cursor
:
pointer
;
}
/*下拉式*/
.user-ul-liu
{
height
:
auto
;
float
:
left
;
position
:
relative
;
left
:
-40px
;
}
.user-ul-liu
li
{
list-style
:
none
;
line-height
:
30px
;
}
.left-phone-liu
{
float
:
left
;
margin-top
:
15px
;
margin-left
:
10px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
...
...
@@ -365,10 +381,15 @@
<input
class=
"form-control btn4 ld-Marheight"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"end_date"
name=
"end_date"
type=
"date"
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"customer_name_id"
placeholder=
"客户编号"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"follow_content"
placeholder=
"跟进内容"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"remark_name"
placeholder=
"跟进人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn2 ld-Marheight"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"remark_phone"
placeholder=
"跟进人手机号"
type=
"text"
value=
""
>
<div
class=
"left-phone-liu"
>
<input
class=
"form-control"
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"partical_name"
placeholder=
"跟进人姓名"
type=
"text"
value=
""
>
<ul
class=
"user-ul-liu"
></ul>
</div>
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_name" placeholder="跟进人姓名" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="remark_phone" placeholder="跟进人手机号" type="text" value="">-->
<div
class=
"clear"
>
</div>
<select
class=
"form-control btn4 ld-Marheight input"
name=
""
id=
"district_id"
>
<option
value=
""
>
跟进人所在部门
</option>
</select>
...
...
public/app/js/shop_detail_pc.js
View file @
9b3b81f7
...
...
@@ -477,8 +477,11 @@ require(['vue', 'css!style/shop_detail_pc.css', 'jquery0325', 'common'], functio
return
'营业额扣点 :'
+
_this
.
d
.
rent_price
+
'%'
;
}
else
if
(
_this
.
d
.
rent_type
==
'3'
)
{
return
'租金均价 :'
+
_this
.
d
.
rent_price
+
'元/天/m²'
;
}
else
{
}
else
if
(
_this
.
d
.
rent_type
==
'4'
)
{
return
'租金均价 :'
+
_this
.
d
.
rent_price
+
'元/年'
;
}
else
{
return
'租金均价 :'
+
_this
.
d
.
rent_price
+
'元/月/m²'
;
}
},
dealArea
:
function
()
{
...
...
public/resource/js/RemarkFollowIndex.js
View file @
9b3b81f7
...
...
@@ -44,6 +44,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
customerInfo
:
{},
agent_id_call
:
""
,
//拨打电话 相关
agent_id_call_vip
:
""
,
agent_id_phone
:
''
,
init
:
function
()
{
//初始化dot
$
(
"body"
).
append
(
template
);
...
...
@@ -239,6 +240,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
"#reset"
).
click
(
function
()
{
document
.
getElementById
(
"form_search"
).
reset
();
user
.
agent_id_phone
=
''
;
//重置搜索
$
(
'#guest_stores'
).
html
(
''
);
$
(
'#guest_stores2'
).
html
(
''
);
});
...
...
@@ -259,7 +261,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
getGenjinLabel
();
});
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
//重置搜索
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
document
.
getElementById
(
"add_user_form"
).
reset
();
});
...
...
@@ -418,6 +420,20 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
user
.
getGenjincon
();
}
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
user
.
agent_id_phone
=
''
;
$
(
".user-ul-liu"
).
html
(
''
);
}
else
{
user
.
search_phone_liu
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphoneliu"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
user
.
addphoneliu
(
this
);
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
".cus_fang"
,
function
()
{
//手机号搜索客方2 编辑
if
(
$
(
".cus_fang"
).
val
()
==
''
)
{
user
.
agent_id2
=
''
;
...
...
@@ -1499,6 +1515,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
params
.
remark_phone
=
$
.
trim
(
$
(
"#remark_phone"
).
val
());
params
.
remark_store_id
=
$
.
trim
(
$
(
"#guest_stores"
).
val
());
params
.
remark_district_id
=
$
.
trim
(
$
(
"#district_id"
).
val
());
params
.
agent_id
=
user
.
agent_id_phone
;
//跟进人 下拉式搜索
if
(
params
.
remark_name
.
length
==
1
){
alert
(
'跟进人姓名的搜索必须2字及2字以上'
);
return
;
...
...
@@ -1978,6 +1996,56 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}
});
},
//跟进人 姓名搜索
search_phone_liu
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#partical_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
};
if
(
item
.
status
==
4
){
var
status
=
'-黑名单'
;
}
user_ul
+=
'<li class="addphoneliu" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul-liu"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphoneliu
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#partical_name"
).
val
(
user_ht_str
);
$
(
".user-ul-liu"
).
html
(
''
);
user
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
};
return
user
;
...
...
public/resource/js/houseFollowUp.js
View file @
9b3b81f7
...
...
@@ -17,7 +17,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
stopstatus
:
true
,
boxphoto
:
''
,
detailTabIndex
:
0
,
//查看 弹出框 tab切换 初始化
agent_id_phone
:
''
,
//下拉跟进人id
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
...
...
@@ -92,6 +92,7 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
$
(
'#guest_stores'
).
html
(
''
);
house
.
agent_id_phone
=
''
;
//重置经纪人id
});
//查看弹出框里的tab点击事件,查看商铺,商铺跟进
_doc
.
on
(
'click'
,
'.detail-modal-header-tab>a'
,
function
(
e
){
...
...
@@ -121,7 +122,19 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
$
(
'.followup-modal-comment-area>textarea'
).
val
(
''
);
//清空跟进框内容
house
.
getFollowupList
();
});
//跟进姓名 下拉式搜索
$
(
document
).
on
(
"input"
,
"#partical_name"
,
function
()
{
//手机号新增搜索客方
if
(
$
(
"#partical_name"
).
val
()
==
''
)
{
house
.
agent_id_phone
=
''
;
$
(
".user-ul-liu"
).
html
(
''
);
}
else
{
house
.
search_phone_liu
();
}
});
//点击li 列表消失
$
(
document
).
delegate
(
".addphoneliu"
,
"click"
,
function
()
{
//list消失新增客户 点击li事件 获取id ul消失
house
.
addphoneliu
(
this
);
});
//点击商铺跟进保存按钮,保存数据的接口
_doc
.
on
(
'click'
,
'#modal_followup_submit_btn'
,
function
(
e
){
e
.
preventDefault
();
...
...
@@ -197,11 +210,8 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
// params.user_name = $('#user_name').val();
params
.
name_or_phone
=
$
(
'#user_phone'
).
val
();
if
(
params
.
name_or_phone
.
length
==
1
){
alert
(
'跟进人姓名的搜素必须2字及2字以上'
);
return
;
}
params
.
agent_id
=
house
.
agent_id_phone
;
//下拉搜索 跟进人id
// params.report_agent_phone = $('#report_agent_phone').val();
params
.
search_content
=
$
(
'#follow_up_con'
).
val
();
params
.
pageNo
=
house
.
pageNo
;
...
...
@@ -433,6 +443,56 @@ define(['doT', 'text!temp/followHouseUp_template_tpl.html', 'css!style/home.css'
}
});
},
//跟进人 姓名搜索
search_phone_liu
:
function
()
{
//手机号新增客户
$
.
ajax
({
url
:
'/index/getBroker_new'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"phone"
:
$
(
"#partical_name"
).
val
(),
'all'
:
1
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
var
user_ul
=
""
;
$
.
each
(
data
.
data
,
function
(
i
,
item
)
{
if
(
item
.
status
==
0
){
var
status
=
' '
;
};
if
(
item
.
status
==
1
){
var
status
=
'-长假'
;
};
if
(
item
.
status
==
2
){
var
status
=
'-离职'
;
};
if
(
item
.
status
==
3
){
var
status
=
'-转勤'
;
};
if
(
item
.
status
==
4
){
var
status
=
'-黑名单'
;
}
user_ul
+=
'<li class="addphoneliu" data-id="'
+
item
.
id
+
'">'
+
item
.
id
+
'-'
+
item
.
name
+
'-'
+
item
.
phone
+
status
+
'</li>'
;
});
$
(
".user-ul-liu"
).
html
(
user_ul
);
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//将li里的值 赋给input(分佣方姓名)
addphoneliu
:
function
(
obj
)
{
//新增客户 input赋值
var
user_ht
=
$
(
obj
).
html
()
+
''
;
var
user_ht_str
=
user_ht
.
substring
(
0
,
user_ht
.
length
-
3
);
$
(
"#partical_name"
).
val
(
user_ht_str
);
$
(
".user-ul-liu"
).
html
(
''
);
house
.
agent_id_phone
=
$
(
obj
).
attr
(
"data-id"
);
},
};
return
house
;
});
\ No newline at end of file
public/resource/js/shop_edit.js
View file @
9b3b81f7
...
...
@@ -940,6 +940,9 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
}
else
if
(
_this
.
val
()
==
'4'
)
{
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/年'
);
}
else
if
(
_this
.
val
()
==
'5'
)
{
_moonPriceObj
.
prev
().
hide
();
_moonPriceObj
.
next
().
html
(
'元/月/㎡'
);
}
else
{
console
.
log
(
'other value租金模式'
);
};
...
...
public/resource/template/house_template_tpl.html
View file @
9b3b81f7
...
...
@@ -33,6 +33,8 @@
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
天
/
㎡
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
4
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
年
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
5
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
%
]
元
/
月
/
㎡
[
%
}
%
]
<
/td
>
<
td
>
...
...
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