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
d0bcb4c2
Commit
d0bcb4c2
authored
Jan 14, 2019
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
6041f1bf
6798d511
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
67 additions
and
19 deletions
+67
-19
RemarkFollowIndex.js
public/resource/js/RemarkFollowIndex.js
+12
-3
callPhoneIndex.js
public/resource/js/callPhoneIndex.js
+9
-1
myCollectionUserList.js
public/resource/js/myCollectionUserList.js
+8
-1
user_genjing_modal.js
public/resource/js/user_genjing_modal.js
+38
-14
No files found.
public/resource/js/RemarkFollowIndex.js
View file @
d0bcb4c2
...
...
@@ -219,7 +219,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
'.modal-title-genjing-con>span:nth-of-type(1)'
).
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
//初始化客户动态 带看动态两个表格切换
$
(
'.follow-up-modal-list-area:nth-of-type(1)'
).
show
().
siblings
().
hide
();
user
.
getInfor
();
user
.
getInfor
New
();
});
//下一页 获取客户详情
_doc
.
on
(
'click'
,
'#user_down'
,
function
()
{
...
...
@@ -228,7 +228,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
$
(
'.modal-title-genjing-con>span:nth-of-type(1)'
).
addClass
(
'text-info'
).
siblings
().
removeClass
(
'text-info'
);
//初始化客户动态 带看动态两个表格切换
$
(
'.follow-up-modal-list-area:nth-of-type(1)'
).
show
().
siblings
().
hide
();
user
.
getInfor
();
user
.
getInfor
New
();
});
//客户列表 收藏夹
_doc
.
on
(
'click'
,
'.user-favorites'
,
function
()
{
...
...
@@ -325,7 +325,7 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
//客户列表操作
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
var
_$this
=
$
(
this
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id='
+
_$this
.
attr
(
'data-id'
));
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id
index='
+
_$this
.
attr
(
'data-index'
)
+
'&id
='
+
_$this
.
attr
(
'data-id'
));
});
//查看弹出框里的tab点击事件,客户动态 带看动态
_doc
.
on
(
'click'
,
'.modal-title-genjing-con>span'
,
function
(
e
){
...
...
@@ -1620,6 +1620,12 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
data
.
list
));
$
(
'[href="#modal-record"]'
).
each
(
function
(
i
,
v
){
$
(
v
).
attr
(
'data-index'
,
i
);
});
localStorage
.
setItem
(
'pc_user_current_list'
,
JSON
.
stringify
(
data
.
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
...
...
@@ -1894,6 +1900,9 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}
});
},
getInforNew
:
function
()
{
console
.
log
(
user_type
);
},
getInfor
:
function
(
params
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{};
...
...
public/resource/js/callPhoneIndex.js
View file @
d0bcb4c2
...
...
@@ -249,7 +249,7 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'css!style/home.css', 'c
// user.user_id = $(this).attr("data-id");
// user.getGenjinLabel();
var
_$this
=
$
(
this
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id
='
+
_$this
.
attr
(
'data-id'
)).
show
(
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id
index='
+
_$this
.
attr
(
'data-index'
)
+
'&id='
+
_$this
.
attr
(
'data-id'
)
);
});
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
//重置搜索
...
...
@@ -1348,6 +1348,14 @@ define(['doT', 'text!temp/callPhone_template_tpl.html', 'css!style/home.css', 'c
var
temp
=
document
.
getElementById
(
'callPhone_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#callPhone_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
'[href="#modal-record"]'
).
each
(
function
(
i
,
v
){
$
(
v
).
attr
(
'data-index'
,
i
);
});
localStorage
.
setItem
(
'pc_user_current_list'
,
JSON
.
stringify
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
},
...
...
public/resource/js/myCollectionUserList.js
View file @
d0bcb4c2
...
...
@@ -243,7 +243,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
// user.user_id = $(this).attr("data-id");
// user.getGenjinLabel();
var
_$this
=
$
(
this
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id
='
+
_$this
.
attr
(
'data-id'
)).
show
(
);
$
(
'#modal-record iframe'
).
attr
(
'src'
,
'/index/userModalList?data='
+
_$this
.
attr
(
'data-item'
)
+
'&id
index='
+
_$this
.
attr
(
'data-index'
)
+
'&id='
+
_$this
.
attr
(
'data-id'
)
);
});
$
(
document
).
delegate
(
".add_alert"
,
"click"
,
function
()
{
//重置搜索
...
...
@@ -1461,6 +1461,13 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
var
temp
=
document
.
getElementById
(
'my_collection_user_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#label_list"
).
html
(
doTtmpl
(
data
.
data
.
user_date
));
$
(
'[href="#modal-record"]'
).
each
(
function
(
i
,
v
){
$
(
v
).
attr
(
'data-index'
,
i
);
});
localStorage
.
setItem
(
'pc_user_current_list'
,
JSON
.
stringify
(
data
.
data
.
user_date
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
user
.
pageSize
,
user
.
getList
);
}
...
...
public/resource/js/user_genjing_modal.js
View file @
d0bcb4c2
...
...
@@ -22,8 +22,8 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
is_outpace_call_num
=
1
;
//拨打电话0:未超过限制 1:超过限制
var
cus_obj
=
JSON
.
parse
(
getUrlParam
(
'data'
));
console
.
log
(
parent
.
location
.
pathname
);
var
idIndex
=
getUrlParam
(
'idindex'
);
var
_tempUrl
=
parent
.
location
.
pathname
;
if
((
_tempUrl
===
'/index/users_list'
)
||
(
_tempUrl
===
'/index/RemarkFollowList'
)){
...
...
@@ -309,7 +309,7 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
if
(
_tempUrl
===
'/index/users_list'
){
user
.
getInfor
();
}
else
if
(
_tempUrl
===
'/index/RemarkFollowList'
){
user
.
getInfor
2
();
user
.
getInfor
New
();
}
else
{}
});
//下一页 获取客户详情
...
...
@@ -322,7 +322,7 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
if
(
_tempUrl
===
'/index/users_list'
){
user
.
getInfor
();
}
else
if
(
_tempUrl
===
'/index/RemarkFollowList'
){
user
.
getInfor
2
();
user
.
getInfor
New
();
}
else
{}
});
...
...
@@ -1083,11 +1083,11 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
Caozuo
:
function
()
{
//获取跟进详情的数据
//隐藏拨打电话 如果客户在保护期 并且客户不是我的
if
((
user_info_obj
.
id
*
1
==
user
.
agentbaohu
*
1
)
||
user
.
baohu
*
1
){
$
(
'.user_call'
).
show
();
}
else
{
$
(
'.user_call'
).
hide
();
};
//
if((user_info_obj.id*1 == user.agentbaohu*1) || user.baohu*1){
//
$('.user_call').show();
//
}else{
//
$('.user_call').hide();
//
};
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/userDetail'
,
...
...
@@ -1141,13 +1141,11 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
}
else
{
$
(
'#user_is_collect'
).
html
(
'取消收藏'
);
};
//vip客户 查看权限
if
(
user
.
agent_id_call_vip
*
1
==
1
){
if
(
check_auth
(
'auth_vip'
)
||
(
user
.
agent_id_call
*
1
==
user
.
agent_id_call_current
*
1
)
||
(
data
.
data
.
is_can_look
==
0
)){
$
(
'.user_call'
).
show
();
}
else
{
//拨打电话显示 隐藏
if
(
data
.
data
.
is_outpace_call_num
*
1
==
1
){
$
(
'.user_call'
).
hide
();
};
}
else
{
$
(
'.user_call'
).
show
();
};
//获取 站点城市(编辑)
data
.
data
.
user_info
[
'site_ids'
]
&&
$
.
each
(
$
(
'.roomTagEdit'
),
function
(
i
,
item
)
{
...
...
@@ -1459,6 +1457,32 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
}
});
},
getInforNew
:
function
()
{
if
(
user_type
==
'next'
){
++
idIndex
;
}
else
{
--
idIndex
;
};
console
.
log
(
idIndex
);
if
(
idIndex
>
14
){
alert
(
'请翻页'
);
idIndex
=
14
;
return
false
;
}
else
if
(
idIndex
<
0
){
alert
(
'请翻页'
);
idIndex
=
0
;
return
false
;
}
else
{
var
_tempListObj
=
JSON
.
parse
(
localStorage
.
getItem
(
'pc_user_current_list'
));
var
_tempUserId
=
_tempListObj
[
idIndex
].
user_id
;
if
(
_tempUrl
===
'/index/users_list'
){
_tempUserId
=
_tempListObj
[
idIndex
].
id
;
};
var
aa
=
location
.
origin
+
location
.
pathname
+
'?data='
+
JSON
.
stringify
(
_tempListObj
[
idIndex
])
+
'&idindex='
+
idIndex
+
'&id='
+
_tempUserId
;
location
.
replace
(
aa
);
}
},
getInfor
:
function
(
params
)
{
//上一页 下一页 调用接口
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{};
...
...
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