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
513fd6f0
Commit
513fd6f0
authored
Jun 12, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
0d4102dd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
buildingDictionary.js
public/resource/js/buildingDictionary.js
+1
-4
user_genjing_modal.js
public/resource/js/user_genjing_modal.js
+13
-9
No files found.
public/resource/js/buildingDictionary.js
View file @
513fd6f0
...
...
@@ -471,16 +471,13 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
});
//地铁 获取地铁站
_doc
.
on
(
'input'
,
'.shop_city_choose_site_list_line'
,
function
()
{
// var arr_ = JSON.parse($(this).val());
var
arr_
=
JSON
.
parse
(
$
(
"option:selected"
,
this
).
attr
(
"data-id"
));
var
_str
=
'<option value="">请选择</option>'
;
$
.
each
(
arr_
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'" data-latitude="'
+
item
.
latitude
+
'" data-longitude="'
+
item
.
longitude
+
'">'
+
item
.
name
+
'</option>'
;
});
$
(
this
).
next
().
html
(
_str
);
if
(
business
.
isAdd
==
0
){
$
(
$
(
this
).
find
(
'option'
).
eq
(
0
)).
remove
();
//删除第一个option
}
});
//点击 区域 获取 商圈(新增)
_doc
.
on
(
'input'
,
'#shop_area_id_add'
,
function
()
{
...
...
public/resource/js/user_genjing_modal.js
View file @
513fd6f0
...
...
@@ -142,8 +142,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
user
.
Caozuo
();
$
(
'#caozuo_table2'
).
html
(
''
);
user
.
pageNoUser
=
1
;
user
.
getGenjincon
();
user
.
getUserLogNew
();
//客户详情获取最近一条带看动态
//
user.getGenjincon();
//
user.getUserLogNew();//客户详情获取最近一条带看动态
// user.getGenjinLabel();
_doc
.
delegate
(
".caozuo-yue"
,
"click"
,
function
()
{
//约带看初始化
...
...
@@ -895,7 +895,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
,
"type"
:
type
"type"
:
type
,
"entrust_type"
:
user
.
entrustType
},
dataType
:
'json'
,
success
:
function
(
data
)
{
...
...
@@ -1000,7 +1001,6 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
getPhoneLabelLiu
:
function
(
n
)
{
//拨打电话 获取普通标签
var
_htmlTemp
=
''
;
var
_data
=
[{
"id"
:
"1"
,
"name"
:
"未打通"
,
"operation_id"
:
"314"
,
"update_time"
:
"2018-08-06 13:45:52"
,
"create_time"
:
"2018-03-01 16:11:38"
,
"type"
:
"1"
,
"free"
:
"1"
},{
"id"
:
"2"
,
"name"
:
"无意向"
,
"operation_id"
:
"1"
,
"update_time"
:
"2018-03-02 16:14:03"
,
"create_time"
:
"2018-03-01 16:15:35"
,
"type"
:
"1"
,
"free"
:
"1"
},{
"id"
:
"3"
,
"name"
:
"有意向"
,
"operation_id"
:
"314"
,
"update_time"
:
"2018-08-07 17:14:15"
,
"create_time"
:
"2018-03-01 16:15:35"
,
"type"
:
"1"
,
"free"
:
"0"
},{
"id"
:
"4"
,
"name"
:
"取消拨打"
,
"operation_id"
:
"288"
,
"update_time"
:
"2018-08-05 20:24:06"
,
"create_time"
:
"2018-03-01 16:11:38"
,
"type"
:
"1"
,
"free"
:
"1"
}];
console
.
log
(
666
)
$
.
each
(
_data
,
function
(
i
,
item
)
{
_htmlTemp
+=
'<a data-markid="{1}" data-free="{2}">{0}</a>'
.
stringFormatObj
({
'0'
:
item
[
'name'
],
...
...
@@ -1057,7 +1057,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
,
"type"
:
1
"type"
:
1
,
"entrust_type"
:
user
.
entrustType
},
dataType
:
'json'
,
success
:
function
(
data
)
{
...
...
@@ -1149,6 +1150,9 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
user
.
entrustType
=
data
.
data
.
user_info
.
entrust_type
;
//跟进 带看 6666
user
.
getGenjincon
();
user
.
getUserLogNew
();
//客户详情获取最近一条带看动态
$
(
".cus_id"
).
html
(
data
.
data
.
user_info
.
user_id
);
//客户编号
$
(
".cus_name"
).
html
(
data
.
data
.
user_info
.
user_name
);
//姓名
$
(
".area_demand"
).
html
(
data
.
data
.
user_info
.
area_demand
*
1
);
...
...
@@ -1431,7 +1435,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
"user_id"
:
user
.
user_id
,
"page_no"
:
user
.
pageNoUser
,
"page_size"
:
30
,
"entrust_type"
:
user
.
entrustType
},
dataType
:
'json'
,
...
...
@@ -1492,7 +1496,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
"user_id"
:
user
.
user_id
,
"page_no"
:
user
.
pageNoUser
,
"page_size"
:
30
,
"entrust_type"
:
user
.
entrustType
},
dataType
:
'json'
,
...
...
@@ -1569,7 +1573,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
getInfor
:
function
(
params
)
{
//上一页 下一页 调用接口
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{};
params
.
entrust
T
ype
=
user
.
entrustType
;
//商铺类型 上一条 下一条筛选
params
.
entrust
_t
ype
=
user
.
entrustType
;
//商铺类型 上一条 下一条筛选
params
.
user_nick
=
$
.
trim
(
$
(
parent
.
document
.
querySelector
(
"input[name='user']"
)).
val
());
params
.
phone
=
$
.
trim
(
$
(
parent
.
document
.
querySelector
(
"input[name='phone']"
)).
val
());
params
.
id
=
$
.
trim
(
$
(
parent
.
document
.
querySelector
(
"input[name='userID']"
)).
val
());
...
...
@@ -1727,7 +1731,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
data
:
{
"user_id"
:
user
.
user_id
,
"content"
:
genj_text
,
// "user_status": user.detailTabIndexFollowRent
"entrust_type"
:
user
.
entrustType
},
beforeSend
:
function
()
{},
dataType
:
'json'
,
...
...
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