Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
dy-wx2
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b124e651
authored
2018-08-25 17:32:29 +0800
by
ex
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
支付
1 parent
be7990ac
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
js/service/wechatPaymentService.js
js/service/wechatPaymentService.js
View file @
b124e65
...
...
@@ -80,6 +80,12 @@ angular.module('myApp.services')
return
q
.
promise
;
}
var
callUnifiedOrderApiAliPay
=
function
(
msg
){
var
q
=
$q
.
defer
();
q
.
reject
(
msg
)
return
q
.
promise
;
}
return
{
/**
...
...
@@ -118,7 +124,7 @@ angular.module('myApp.services')
// form.querySelector('#ok').click()
document
.
body
.
appendChild
(
form
)
document
.
querySelector
(
'#ok'
).
click
()
return
null
return
callUnifiedOrderApiAliPay
(
'支付'
)
case
101
:
var
param
=
Object
.
assign
(
$location
.
search
(),{
amount
:
amount
,
...
...
@@ -163,7 +169,7 @@ angular.module('myApp.services')
var
html
=
' <form action="'
+
host
+
'/h5/alipay/balance/'
+
token
+
'" method="post">'
+
' <input type="text" name="amount" value="'
+
amout
+
'" />'
+
' <input type="text" name="amount" value="'
+
amou
n
t
+
'" />'
+
' <input type="text" name="body" value="保证金充值"/>'
+
' <input type="text" name="type" value="100" />'
+
' <input type="submit" id="ok">\n'
+
...
...
@@ -175,7 +181,7 @@ angular.module('myApp.services')
// form.querySelector('#ok').click()
document
.
body
.
appendChild
(
form
)
document
.
querySelector
(
'#ok'
).
click
()
return
null
return
callUnifiedOrderApiAliPay
(
'支付'
)
case
101
:
var
param
=
Object
.
assign
(
$location
.
search
(),{
amount
:
amount
,
...
...
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