44ac3cfc by ex

微信支付

1 parent 53c5e611
angular.module('myApp.services')
.service('wechatPayment',['$http', '$q', '$rootScope','$location',function($http, $q, $rootScope,$location) {
.service('wechatPayment',['$http', '$q', '$rootScope','$location','$state',function($http, $q, $rootScope,$location) {
// var host = 'http://finance.api.dingdachuxing.com/service';
// var host = 'http://finance.dy.dingdatech.com/service';
......@@ -58,7 +58,8 @@ angular.module('myApp.services')
var wxh5ApiCall = function (sign, q) {
// console.log('sign', sign);
// window.location.href = sign.mwebUrl;
$state.go('bond');
window.location.href = sign.mwebUrl;
}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!