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
220fbb00
Commit
220fbb00
authored
Jul 06, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款记录修改
parent
1766eb3a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
39 deletions
+13
-39
getCollection.html
application/index/view/collection/getCollection.html
+1
-1
getCollection.js
public/resource/js/getCollection.js
+7
-33
agent_template_tpl.html
public/resource/template/agent_template_tpl.html
+5
-5
No files found.
application/index/view/collection/getCollection.html
View file @
220fbb00
...
...
@@ -175,7 +175,6 @@
#container_body
{
position
:
relative
;
}
#file_input
{
opacity
:
0
;
position
:
absolute
;
...
...
@@ -193,6 +192,7 @@
}
.span-del2
,
.span-del
{
color
:
red
;
}
/*css样式*/
</style>
...
...
public/resource/js/getCollection.js
View file @
220fbb00
...
...
@@ -31,34 +31,23 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
_doc
.
on
(
'click'
,
'.span-del2'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
$
(
this
).
parent
().
remove
();
$
(
this
).
prev
().
attr
(
'class'
);
console
.
log
(
$
(
this
).
prev
().
attr
(
'class'
));
$
(
this
).
parent
().
remove
();
follow
.
spandelList
(
$
(
this
).
prev
().
attr
(
'class'
));
});
_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
);
});
//点击收款图片 2.2版本
// $(".add-pic").click(function() {
// //监听图片上传
// follow.getaddPicList();
// });
_doc
.
on
(
'click'
,
'.add-pic'
,
function
()
{
_doc
.
on
(
'click'
,
'.add-pic'
,
function
()
{
//区分收款记录的id 和 father-id 获取图片 和保存图片 都区分
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
house_fatherid
=
$
(
this
).
attr
(
"father-id"
);
follow
.
getaddPicList
();
});
$
(
"#reset"
).
click
(
function
()
{
//重置
...
...
@@ -71,7 +60,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
follow
.
house_id2
=
$
(
this
).
attr
(
"data-id"
);
console
.
log
(
follow
.
house_id2
);
$
(
"#real_money"
).
val
(
$
(
this
).
attr
(
"data-money"
));
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
Submit_follow
();
...
...
@@ -86,14 +74,9 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$
(
document
).
delegate
(
".addphone2"
,
"click"
,
function
()
{
//list2消失
follow
.
addphone2
(
this
);
});
//图片预览点击放大事件
//保存上传的图片
_doc
.
on
(
'click'
,
'#saveBtn'
,
function
(
e
)
{
console
.
log
(
555
);
var
_this
=
$
(
this
);
e
.
preventDefault
();
e
.
stopPropagation
();
var
imgname
=
[];
...
...
@@ -106,7 +89,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
id_pic
=
follow
.
house_fatherid
;
}
else
{
id_pic
=
follow
.
house_id
;
}
var
_data
=
{
img_id
:
id_pic
,
...
...
@@ -114,10 +96,9 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
//无新的图片上传 不调用接口
if
(
imgname
.
join
(
','
))
{
_data
[
'img_name'
]
=
imgname
.
join
(
','
);
}
else
{
}
else
{
return
}
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/addReceiptImg'
,
...
...
@@ -142,9 +123,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
});
});
//图片上传 2.2版本
},
addphone2
:
function
(
obj
)
{
var
user_ht
=
$
(
obj
).
html
();
...
...
@@ -194,7 +172,7 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
});
},
spandelList
:
function
(
n
)
{
//
提交
spandelList
:
function
(
n
)
{
//
删除已经保cun的时图片都调用
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'/index/deleteReceiptImg'
,
...
...
@@ -211,16 +189,13 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
},
getaddPicList
:
function
()
{
//获取收款图片
// container_body
var
id_pic
;
if
(
follow
.
house_fatherid
>
0
)
{
id_pic
=
follow
.
house_fatherid
;
}
else
{
id_pic
=
follow
.
house_id
;
}
$
(
'.result2,.result'
).
remove
();
$
(
'.result2,.result'
).
remove
();
//删除之前存在的图片 显示从接口获取的数据 用来区分新添加的 和 已经保存的
$
.
ajax
({
'type'
:
'GET'
,
'url'
:
'/index/receiptImgList'
,
...
...
@@ -242,7 +217,8 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
}
});
},
//点击收款图片 调用的接口 上传图片
//点击收款图片 上传新的图片 掉用全局上传图片
//点击input的时候 调用全局上传图片 然后渲染到页面
getaddPicList2
:
function
()
{
var
input
=
document
.
getElementById
(
"file_input"
);
var
result
,
div
;
...
...
@@ -303,7 +279,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
};
},
//删除图片
// 导出列表
exportList
:
function
(
pageNo
)
{
...
...
@@ -311,7 +286,6 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
follow
.
pageNo
=
pageNo
;
var
params
=
{};
var
excel_two
=
1
;
var
user_name
=
$
.
trim
(
$
(
'#customer_name'
).
val
());
var
start_time
=
$
(
'#start_date'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
...
...
public/resource/template/agent_template_tpl.html
View file @
220fbb00
...
...
@@ -12,11 +12,8 @@
<
td
>
[
%=
it
[
item
][
"name"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"phone"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"groupname"
]
%
]
<
/td
>
<!--
增加评价次数
分数
2.2
-->
<
td
class
=
"number-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<
td
class
=
"score-evaluation text-center"
data
-
id
=
'[%= it[item]["id"] %]'
>--<
/td
>
<!--<
td
><
span
class
=
"fa fa-check text-success"
><
/span></
td
>-->
<
td
>
<
a
class
=
"btn1 btn-success edit"
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
...
...
@@ -31,9 +28,12 @@
[
%
if
(
check_auth
(
'index/updateRole'
))
{
%
]
<
a
href
=
"#modal-user"
class
=
"btn1 btn-danger"
id
=
'role'
href
=
"#modal-edit"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
角色设置
<
/a
>
[
%
}
%
]
<!--
增加绑定手机号按钮
2.2
版本
-->
<!--
权限
-->
<!--
绑定手机权限
-->
[
%
if
(
check_auth
(
'index/updateDevice'
))
{
%
]
<
a
class
=
"btn1 btn-success phone-bundling"
href
=
"#modal-phonebundling"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
绑定手机
<
/a
>
[
%
}
%
]
<
/td
>
<
/tr
>
...
...
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