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
e7f2998f
Commit
e7f2998f
authored
Jun 13, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
拜访列表修改
parent
bcbd5e11
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
48 deletions
+24
-48
visitShop.html
application/index/view/supervise/visitShop.html
+1
-28
visitShop.js
public/resource/js/visitShop.js
+7
-10
visit_shop_template_tpl.html
public/resource/template/visit_shop_template_tpl.html
+16
-10
No files found.
application/index/view/supervise/visitShop.html
View file @
e7f2998f
...
...
@@ -101,34 +101,7 @@
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<div
class=
"modal fade"
id=
"modal-linetime"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
收付金额
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
实付金额:
<input
type=
"number"
id=
'real_money'
/>
元
</div>
</div>
<div
class=
"modal-footer"
>
<!--<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>-->
<button
type=
"button"
class=
"btn btn-primary submit_edit"
id=
" "
data-dismiss=
"modal"
>
保存
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
...
...
public/resource/js/visitShop.js
View file @
e7f2998f
...
...
@@ -20,19 +20,17 @@ define(['doT', 'text!temp/visit_shop_template_tpl.html', 'css!style/home.css', '
},
event
:
function
()
{
var
_doc
=
$
(
document
);
_doc
.
on
(
'click'
,
'a[href="#modal-time"]'
,
function
(
e
){
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
e
.
preventDefault
();
e
.
stopPropagation
();
// console.log('follow.house_id');
$
(
'.iframe-time-line'
).
attr
(
'src'
,
'/app_broker/timeline_pc?order_id='
+
follow
.
house_id
);
});
$
(
"#search"
).
click
(
function
()
{
follow
.
getList
(
1
);
});
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".review-images"
,
"click"
,
function
()
{
//提交
console
.
log
(
$
(
this
).
attr
(
"data-img"
));
});
$
(
"#export"
).
click
(
function
()
{
//导出列表
follow
.
exportList
();
});
...
...
@@ -145,19 +143,18 @@ define(['doT', 'text!temp/visit_shop_template_tpl.html', 'css!style/home.css', '
params
.
pageSize
=
follow
.
pageSize
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/
getCollection
'
,
//拜访列表
url
:
'/index/
evaluationList
'
,
//拜访列表
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
console
.
log
(
'拜访'
)
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'visit_shop_tpl'
).
innerHTML
);
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#follow_list"
).
html
(
doTtmpl
(
data
.
data
.
data
));
// 支付方式 10支付宝 20 微信 30pos机器 40转账 50现金 60其他
$
(
"#follow_list tr"
).
each
(
function
(
e
)
{
//e代表索引 从0开始 eq(0)就是第一行
...
...
public/resource/template/visit_shop_template_tpl.html
View file @
e7f2998f
...
...
@@ -2,16 +2,15 @@
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'create
_time
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
use
r_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
user_phon
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
money
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
real_money
'
]
%
]
<
/td
>
<
td
class
=
"pay_type"
>
[
%=
it
[
item
][
'
type
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
pay_typ
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create
d
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
visito
r_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
agentshopnam
e'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
shop_address
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
address
'
]
%
]
<
/td
>
<
td
class
=
"pay_type"
>
[
%=
it
[
item
][
'
remarks
'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
distanc
e'
]
%
]
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-info timeline"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["order_id"] %]'
>
查看
<
/a
>
<
a
class
=
"btn1 btn-info review-images"
href
=
"#modal-time"
data
-
toggle
=
"modal"
data
-
img
=
'[%= it[item]["scene_photo"] %]'
>
查看
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
@@ -23,7 +22,14 @@
</script>
<!--remarks string 跟进
scene_photo string 图片路径
address string 打卡地址
shop_address string 门店地址
agentshopname string 部门
distance int 距离
created string 拜访时间
visitor_name string 拜访人-->
...
...
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