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
15a450ff
Commit
15a450ff
authored
Oct 10, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设置重盘
parent
368fec2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
16 deletions
+42
-16
user_genjing_modal.html
application/index/view/member/user_genjing_modal.html
+5
-14
user_genjing_modal.js
public/resource/js/user_genjing_modal.js
+37
-2
No files found.
application/index/view/member/user_genjing_modal.html
View file @
15a450ff
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
width
:
50%
;
width
:
50%
;
}
}
.user-detail-relational
>
div
>
span
,
.user-detail-relational
>
div
>
a
{
.user-detail-relational
>
div
>
span
,
.user-detail-relational
>
div
>
a
{
margin-left
:
10
px
;
margin-left
:
5
px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.user-ul-liu
{
.user-ul-liu
{
...
@@ -1086,25 +1086,16 @@
...
@@ -1086,25 +1086,16 @@
</h4>
</h4>
</div>
</div>
<div
class=
"modal-body"
style=
"padding: 25px;"
>
<div
class=
"modal-body"
style=
"padding: 25px;"
>
<div
class=
"left-phone-liu"
>
<div
class=
"left-phone-liu"
style=
"font-size: 16px;font-weight: 600;"
>
<select
class=
"user_heavyPlates"
style=
"font-size: 14px;font-weight: 500;float: right;margin-top: 8px;width:80px"
>
是否将该客户设置为原盘?设置后关联客户里的其他客户将变为重盘。
<!--<select class="user_heavyPlates" style="font-size: 14px;font-weight: 500;float: right;margin-top: 8px;width:80px">
<option value="1">原盘</option>
<option value="1">原盘</option>
<option value="2">重盘</option>
<option value="2">重盘</option>
</select>
</select>-->
</div>
</div>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
<br
/>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
...
...
public/resource/js/user_genjing_modal.js
View file @
15a450ff
...
@@ -244,7 +244,12 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
...
@@ -244,7 +244,12 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
user
.
watchShopLog
(
user
.
user_id
);
//客户浏览商铺
user
.
watchShopLog
(
user
.
user_id
);
//客户浏览商铺
}
}
});
});
//客户详情 关联客户 设置原盘
_doc
.
on
(
'click'
,
'.save-heavyPlates'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
user
.
saveHeavyPlates
()
});
//客户详情 关联客户
//客户详情 关联客户
_doc
.
on
(
'click'
,
'.save-relational'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.save-relational'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
...
@@ -1371,7 +1376,17 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
...
@@ -1371,7 +1376,17 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
//关联客户显示 解除关联
//关联客户显示 解除关联
var
user_bind_list
=
""
;
var
user_bind_list
=
""
;
$
.
each
(
data
[
'data'
][
'user_bind_list'
],
function
(
i
,
item
)
{
$
.
each
(
data
[
'data'
][
'user_bind_list'
],
function
(
i
,
item
)
{
user_bind_list
+=
'<div>'
+
item
.
user_name
+
',ID:'
+
item
.
user_id
+
','
+
hideTel
(
item
.
user_phone
)
+
'<span class="public-box-noleft-73 del-relational" data-id="'
+
item
.
user_id
+
'">解除关联</span>'
+
'<a class="public-box-noleft-73 user-detail" href="#modal-userDetail" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">客户详情</a>'
+
'<a class="public-box-noleft-33 user-detail" href="#modal-heavyPlates" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">设置</a>'
+
'</div>'
;
//判断原盘 重盘 0:未设置 1:原盘 2:重盘
if
(
item
.
bind_type
*
1
==
0
){
//未设置
var
yuanpan
=
'<a class="public-box-noleft-73" href="#modal-heavyPlates" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">设置原盘</a>'
}
else
if
(
item
.
bind_type
*
1
==
1
){
//原盘
var
yuanpan
=
'<a class="public-box-noleft-73" href="javascript:return false;" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">原盘</a>'
}
else
if
(
item
.
bind_type
*
1
==
2
){
//重盘
var
yuanpan
=
'<a class="public-box-noleft-73" href="#modal-heavyPlates" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">重盘</a>'
}
user_bind_list
+=
'<div>'
+
item
.
user_name
+
',ID:'
+
item
.
user_id
+
','
+
hideTel
(
item
.
user_phone
)
+
'<span class="public-box-noleft-73 del-relational" data-id="'
+
item
.
user_id
+
'">解除关联</span>'
+
'<a class="public-box-noleft-73 user-detail" href="#modal-userDetail" data-toggle="modal" data-id="'
+
item
.
user_id
+
'">客户详情</a>'
+
yuanpan
+
'</div>'
;
});
});
if
(
user_bind_list
){
if
(
user_bind_list
){
$
(
".user-detail-relational"
).
html
(
user_bind_list
);
$
(
".user-detail-relational"
).
html
(
user_bind_list
);
...
@@ -1387,6 +1402,26 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
...
@@ -1387,6 +1402,26 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
}
}
});
});
},
},
//关联客户设置原盘
saveHeavyPlates
:
function
()
{
$
.
ajax
({
url
:
'/index/setUserBindType'
,
type
:
'GET'
,
async
:
true
,
data
:
{
"user_id"
:
user
.
user_id
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
&&
data
.
data
!=
null
)
{
alert
(
data
.
msg
);
user
.
Caozuo
();
//更新关联客户
}
else
{
alert
(
data
.
msg
);
}
}
});
},
//新增关联客户
//新增关联客户
addRelational
:
function
()
{
addRelational
:
function
()
{
$
.
ajax
({
$
.
ajax
({
...
...
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