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
86d031bf
Commit
86d031bf
authored
Aug 23, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增本人客户选择项
parent
4fe21e7e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
10 deletions
+8
-10
users_list.html
application/index/view/member/users_list.html
+1
-5
user.js
public/resource/js/user.js
+7
-5
No files found.
application/index/view/member/users_list.html
View file @
86d031bf
...
@@ -468,17 +468,13 @@
...
@@ -468,17 +468,13 @@
<option value="330100">杭州市</option>
<option value="330100">杭州市</option>
</select>-->
</select>-->
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"search"
>
搜索
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
<span
class=
"btn btn-info btn3 margin-top-ld"
id=
"reset"
>
重置
</span>
<!--<a class="btn btn-info btn3 margin-top-ld user-favorites"> 收藏夹 </a>-->
<!--<a class="btn btn-info btn3 margin-top-ld user-favorites"> 收藏夹 </a>-->
<a
href=
"#modal_modify_user"
data-toggle=
"modal"
class=
"btn btn-info btn3 margin-top-ld"
><i
class=
"icon-plus"
></i>
批量修改客方
<a
href=
"#modal_modify_user"
data-toggle=
"modal"
class=
"btn btn-info btn3 margin-top-ld"
><i
class=
"icon-plus"
></i>
批量修改客方
</a>
</a>
<!-- 本人商铺 -->
<!-- 本人商铺 -->
<
!--<span class="btn btn-info btn3 ld-Marheight" id="persional_custom">本人客户</span>--
>
<
span
class=
"btn btn-info btn3 ld-Marheight"
id=
"persional_custom"
>
本人客户
</span
>
<!-- <span class="btn btn-info btn3 margin-top-ld" id="modify">批量修改客方</span> -->
<!-- <span class="btn btn-info btn3 margin-top-ld" id="modify">批量修改客方</span> -->
</form>
</form>
...
...
public/resource/js/user.js
View file @
86d031bf
...
@@ -320,9 +320,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -320,9 +320,9 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
$
(
'#persional_custom'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
$
(
'#persional_custom'
).
unbind
(
'click'
).
bind
(
'click'
,
function
(){
if
(
user
.
all_custom
){
if
(
user
.
all_custom
){
$
(
'#persional_custom'
).
html
(
"个人客户"
);
}
else
{
$
(
'#persional_custom'
).
html
(
"所有客户"
);
$
(
'#persional_custom'
).
html
(
"所有客户"
);
}
else
{
$
(
'#persional_custom'
).
html
(
"个人客户"
);
}
}
user
.
all_custom
=
!
user
.
all_custom
;
user
.
all_custom
=
!
user
.
all_custom
;
user
.
getList
(
1
);
user
.
getList
(
1
);
...
@@ -1445,10 +1445,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1445,10 +1445,11 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
//筛选
//筛选
getList
:
function
(
pageNo
)
{
getList
:
function
(
pageNo
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
console
.
log
(
user_info_obj
)
user
.
pageNo
=
pageNo
;
user
.
pageNo
=
pageNo
;
var
params
=
{};
var
params
=
{};
// params.agent_id=user_info_obj.id;
/*params.agent_id = user_info_obj.id;*/
params
.
agent_id
=
this
.
all_custom
?
''
:
user_info_obj
.
id
;
params
.
user_nick
=
$
.
trim
(
$
(
"input[name='user']"
).
val
());
params
.
user_nick
=
$
.
trim
(
$
(
"input[name='user']"
).
val
());
params
.
phone
=
$
.
trim
(
$
(
"input[name='phone']"
).
val
());
params
.
phone
=
$
.
trim
(
$
(
"input[name='phone']"
).
val
());
params
.
id
=
$
.
trim
(
$
(
"input[name='userID']"
).
val
());
params
.
id
=
$
.
trim
(
$
(
"input[name='userID']"
).
val
());
...
@@ -1482,7 +1483,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1482,7 +1483,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
params
.
first_login_end
=
$
.
trim
(
$
(
"#first_login_end"
).
val
());
params
.
first_login_end
=
$
.
trim
(
$
(
"#first_login_end"
).
val
());
//添加个人商铺和所有商铺选择功能
//添加个人商铺和所有商铺选择功能
/*params.userinfo = this.all_custom ? '' : JSON.parse(decodeURIComponent(localStorage.getItem('userinfo'))).id ;*/
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
if
(
$
(
'#user_city_choose'
).
val
()
==
310100
){
//城市
params
.
city
=
'上海市'
;
params
.
city
=
'上海市'
;
...
@@ -1679,6 +1680,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
...
@@ -1679,6 +1680,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
}
}
});
});
},
},
getInfor
:
function
(
params
)
{
//上一页 下一页 调用接口
getInfor
:
function
(
params
)
{
//上一页 下一页 调用接口
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{};
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