微信支付
Showing
1 changed file
with
3 additions
and
2 deletions
| 1 | angular.module('myApp.services') | 1 | angular.module('myApp.services') |
| 2 | .service('wechatPayment',['$http', '$q', '$rootScope','$location',function($http, $q, $rootScope,$location) { | 2 | .service('wechatPayment',['$http', '$q', '$rootScope','$location','$state',function($http, $q, $rootScope,$location) { |
| 3 | 3 | ||
| 4 | // var host = 'http://finance.api.dingdachuxing.com/service'; | 4 | // var host = 'http://finance.api.dingdachuxing.com/service'; |
| 5 | // var host = 'http://finance.dy.dingdatech.com/service'; | 5 | // var host = 'http://finance.dy.dingdatech.com/service'; |
| ... | @@ -58,7 +58,8 @@ angular.module('myApp.services') | ... | @@ -58,7 +58,8 @@ angular.module('myApp.services') |
| 58 | 58 | ||
| 59 | var wxh5ApiCall = function (sign, q) { | 59 | var wxh5ApiCall = function (sign, q) { |
| 60 | // console.log('sign', sign); | 60 | // console.log('sign', sign); |
| 61 | // window.location.href = sign.mwebUrl; | 61 | $state.go('bond'); |
| 62 | window.location.href = sign.mwebUrl; | ||
| 62 | } | 63 | } |
| 63 | 64 | ||
| 64 | 65 | ... | ... |
-
Please register or sign in to post a comment