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
408de364
Commit
408de364
authored
Apr 20, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页轮播修改
parent
859dcacc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
58 additions
and
6 deletions
+58
-6
users_list.html
application/index/view/member/users_list.html
+3
-3
banner.js
public/resource/js/banner.js
+11
-0
user.js
public/resource/js/user.js
+41
-1
banner_template_tpl.html
public/resource/template/banner_template_tpl.html
+3
-2
No files found.
application/index/view/member/users_list.html
View file @
408de364
...
@@ -45,7 +45,7 @@
...
@@ -45,7 +45,7 @@
height
:
34px
;
height
:
34px
;
line-height
:
34px
;
line-height
:
34px
;
}
}
.
ld-Marheight
{
ld-Marheight
{
margin-top
:
15px
;
!
margin-top
:
15px
;
!
}
}
...
@@ -403,9 +403,9 @@
...
@@ -403,9 +403,9 @@
</div>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
>
<br>
<br>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"
user1
"
placeholder=
"请输入经纪人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"
old_agents
"
placeholder=
"请输入经纪人姓名"
type=
"text"
value=
""
>
<span
class=
"btn3"
id=
"batch"
>
批量修改为
</span>
<span
class=
"btn3"
id=
"batch"
>
批量修改为
</span>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"
phone1
"
placeholder=
"请输入经纪人姓名"
type=
"text"
value=
""
>
<input
class=
"form-control btn5"
data-rule-phoneus=
"false"
data-rule-required=
"false"
name=
"
new_agents
"
placeholder=
"请输入经纪人姓名"
type=
"text"
value=
""
>
<br><br><br>
<br><br><br>
</div>
</div>
<div
class=
"modal-footer"
>
<div
class=
"modal-footer"
>
...
...
public/resource/js/banner.js
View file @
408de364
...
@@ -94,6 +94,17 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
...
@@ -94,6 +94,17 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
$
(
"#title"
).
val
(
item
.
eq
(
0
).
html
());
$
(
"#title"
).
val
(
item
.
eq
(
0
).
html
());
$
(
"#url"
).
val
(
item
.
eq
(
3
).
html
());
$
(
"#url"
).
val
(
item
.
eq
(
3
).
html
());
$
(
"#cover_image"
).
val
(
item
.
eq
(
1
).
find
(
"input"
).
val
());
$
(
"#cover_image"
).
val
(
item
.
eq
(
1
).
find
(
"input"
).
val
());
console
.
log
(
$
.
trim
(
item
.
eq
(
2
).
html
()));
if
(
$
.
trim
(
item
.
eq
(
2
).
html
())
==
"用户app"
){
// $ ("#client").attr ("checked",true);/prop能够反复改变 attr不能反复改变属性
$
(
"#client"
).
prop
(
"checked"
,
true
);
// $ ("#agent_side").attr ("checked",false);
}
if
(
$
.
trim
(
item
.
eq
(
2
).
html
())
==
"经纪人app"
){
// $ ("#agent_side").attr ("checked",true)
$
(
"#agent_side"
).
prop
(
"checked"
,
true
);
console
.
log
(
66
)
}
$
(
"#sort"
).
val
(
item
.
eq
(
4
).
html
());
$
(
"#sort"
).
val
(
item
.
eq
(
4
).
html
());
});
});
...
...
public/resource/js/user.js
View file @
408de364
...
@@ -58,10 +58,16 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -58,10 +58,16 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
add_user
();
user
.
add_user
();
});
});
// 跟进的提交按钮 点击
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
$
(
document
).
delegate
(
"#edit_add"
,
"click"
,
function
()
{
user
.
edit_add
();
user
.
edit_add
();
});
});
// 批量修改客方
$
(
document
).
delegate
(
"#modify_add"
,
"click"
,
function
()
{
user
.
modify_add
();
});
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
$
(
document
).
delegate
(
".caozuo"
,
"click"
,
function
()
{
//点击操作跟进详情
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
user_id
=
$
(
this
).
attr
(
"data-id"
);
user
.
Caozuo
();
user
.
Caozuo
();
...
@@ -204,6 +210,40 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
...
@@ -204,6 +210,40 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
}
}
});
});
},
},
//
modify_add
:
function
()
{
//modify_add批量修改客方
var
old_agents_text
=
$
(
"input[name = 'old_agents']"
).
val
();
var
new_agents_text
=
$
(
"input[name = 'new_agents']"
).
val
();
if
(
old_agents_text
==
''
)
{
alert
(
'请输入经纪人内容为空'
);
return
false
;
}
if
(
new_agents_text
==
''
)
{
alert
(
'请输入经纪人内容为空'
);
return
false
;
}
$
.
ajax
({
url
:
'/index/batchEditCustomer'
,
type
:
'POST'
,
async
:
true
,
data
:
{
// "user_id" : user.user_id,
// "content" : genj_text,
// "user_status": user_status
},
dataType
:
'json'
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
console
.
log
(
data
);
alert
(
data
.
msg
);
}
}
});
},
// ====================新增客户页面==================
// ====================新增客户页面==================
Caozuo
:
function
(){
//获取跟进详情的数据
Caozuo
:
function
(){
//获取跟进详情的数据
$
.
ajax
({
$
.
ajax
({
...
...
public/resource/template/banner_template_tpl.html
View file @
408de364
...
@@ -8,6 +8,7 @@
...
@@ -8,6 +8,7 @@
<
img
src
=
'/resource/lib/Attachments/[%= it[item]["pic_path"] %]'
class
=
"diagram-image J_preview"
<
img
src
=
'/resource/lib/Attachments/[%= it[item]["pic_path"] %]'
class
=
"diagram-image J_preview"
data
-
bimg
=
'/resource/lib/Attachments/[%= it[item]["pic_path"] %]'
>
data
-
bimg
=
'/resource/lib/Attachments/[%= it[item]["pic_path"] %]'
>
<
/td
>
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"type"
]
==
0
||
it
[
item
][
"type"
]
==
1
)
{
%
]
[
%
if
(
it
[
item
][
"type"
]
==
0
||
it
[
item
][
"type"
]
==
1
)
{
%
]
用户
app
用户
app
...
@@ -88,11 +89,11 @@
...
@@ -88,11 +89,11 @@
<label
class=
"col-sm-3 control-label"
>
显示:
</label>
<label
class=
"col-sm-3 control-label"
>
显示:
</label>
<div
class=
"col-sm-9"
>
<div
class=
"col-sm-9"
>
<label>
<label>
<input
type=
"radio"
name=
"banner_type"
value=
"0"
checked
>
<input
type=
"radio"
name=
"banner_type"
value=
"0"
id=
"client"
>
用户端
用户端
</label>
</label>
<label>
<label>
<input
type=
"radio"
name=
"banner_type"
value=
"1"
>
<input
type=
"radio"
name=
"banner_type"
value=
"1"
id=
"agent_side"
>
经纪人端
经纪人端
</label>
</label>
</div>
</div>
...
...
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