b124e651 by ex

支付

1 parent be7990ac
......@@ -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="'+amount+'" />' +
' <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,
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!