Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
ab9e8f0b
authored
2018-03-24 15:35:12 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
23988e35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
2 deletions
application/views/work/确认放款.php
application/views/work/确认放款.php
View file @
ab9e8f0
...
...
@@ -53,8 +53,8 @@
return
'<span class="dropDown dropDown_hover">\
<button class="btn radius size-M">请选择 <i class="Hui-iconfont"></i></button>\
<ul class="dropDown-menu menu radius box-shadow">\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.pbp/work/detail/
1
?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="loan(
1
)">线下已放款</a></li>\
<li><a href="javascript:;" onclick="layer_show(\'订单详情\', \'/index.pbp/work/detail/
'
+
data
+
'
?tab=0\')">查看详细</a></li>\
<li><a href="javascript:;" onclick="loan(
'
+
data
+
'
)">线下已放款</a></li>\
<li>\
<a href="#">退回订单<i class="arrow Hui-iconfont"></i></a>\
<ul class="menu">\
...
...
@@ -93,6 +93,41 @@
function
loan
(
id
)
{
layer_show
(
'线下已放款'
,
'/work/loan'
);
}
function
cancel
(
id
)
{
layer
.
confirm
(
'确定取消?'
,
{
btn
:
[
'是'
,
'否'
],
title
:
'确认'
,
icon
:
3
},
function
(){
var
targetUrl
=
'flow/cancelOrder/'
+
id
;
$
.
ajax
({
type
:
'put'
,
url
:
apiBaseUrl
+
targetUrl
,
cache
:
false
,
dataType
:
'json'
,
contentType
:
"application/json; charset=UTF-8"
,
success
:
function
(
data
)
{
if
(
data
.
msg
)
{
layer
.
alert
(
data
.
msg
);
}
else
if
(
data
.
code
!=
0
)
{
layer
.
alert
(
'请求失败'
);
}
else
{
layer
.
alert
(
'请求成功'
);
}
setTimeout
(
function
()
{
if
(
!
data
.
code
)
{
table
.
fnDraw
();
layer_close
();
}
},
500
);
},
error
:
function
()
{
layer
.
alert
(
"请求失败"
)
}
})
});
}
</script>
</body>
<html>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment