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
400e1e37
Commit
400e1e37
authored
Jun 05, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
财务修改
parent
6a42e204
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
9 deletions
+11
-9
Collection.php
application/index/controller/Collection.php
+2
-2
getCollection.js
public/resource/js/getCollection.js
+7
-5
get_collection_template_tpl.html
public/resource/template/get_collection_template_tpl.html
+2
-2
No files found.
application/index/controller/Collection.php
View file @
400e1e37
...
...
@@ -92,13 +92,13 @@ class Collection extends Basic
if
(
!
isset
(
$params
[
"collection_id"
])
||
$params
[
"collection_id"
]
<=
0
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
if
(
!
isset
(
$params
[
"
collection_id"
])
||
$params
[
"collection_id
"
]
<=
0
){
if
(
!
isset
(
$params
[
"
real_money"
])
||
$params
[
"real_money
"
]
<=
0
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
$where_
[
"id"
]
=
$params
[
"collection_id"
];
$where_
[
"real_money"
]
=
$params
[
"real_money"
];
$order
=
new
OPayLogModel
();
$id
=
$order
->
updatePayLog
(
$
params
);
$id
=
$order
->
updatePayLog
(
$
where_
);
if
(
$id
>
0
){
return
$this
->
response
(
"200"
,
"编辑成功"
);
}
else
{
...
...
public/resource/js/getCollection.js
View file @
400e1e37
...
...
@@ -33,9 +33,12 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
$
(
"#reset"
).
click
(
function
()
{
//重置
document
.
getElementById
(
"form_search"
).
reset
();
});
$
(
document
).
delegate
(
".submit_edit2"
,
"click"
,
function
()
{
//提交
follow
.
house_id2
=
$
(
this
).
attr
(
"data-id"
);
console
.
log
(
follow
.
house_id2
);
});
$
(
document
).
delegate
(
".submit_edit"
,
"click"
,
function
()
{
//提交
follow
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
follow
.
Submit_follow
();
});
$
(
document
).
on
(
"input"
,
"#cus_fang"
,
function
()
{
//手机号搜索客方2
...
...
@@ -85,16 +88,15 @@ define(['doT', 'text!temp/get_collection_template_tpl.html', 'css!style/home.css
Submit_follow
:
function
()
{
//提交
$
.
ajax
({
'type'
:
'POST'
,
'url'
:
'index/addRealMoney'
,
'url'
:
'
/
index/addRealMoney'
,
data
:
{
"collection_id"
:
follow
.
house_id
,
"collection_id"
:
follow
.
house_id
2
,
"real_money"
:
$
(
"#real_money"
).
val
(),
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
data
)
{
}
follow
.
getList
(
0
);
}
else
{
}
}
...
...
public/resource/template/get_collection_template_tpl.html
View file @
400e1e37
...
...
@@ -6,14 +6,14 @@
<
td
>
[
%=
it
[
item
][
'user_name'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'user_phone'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'money'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'
real_
money'
]
%
]
<
/td
>
<
td
class
=
"pay_type"
>
[
%=
it
[
item
][
'pay_type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'type'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_address'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'house_number'
]
%
]
<
/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 "
href
=
"#modal-linetime"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-info
submit_edit2
"
href
=
"#modal-linetime"
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