app.controller('payController',function ($scope, payService,$location) {
//本地生产二维码
$scope.createNative=function () {
payService.createNative().success(
function (response) {
$scope.money=(response.total_fee/100).toFixed(2);
$scope.out_trade_no=response.out_trade_no;
var qr = new QRious({
element:document.getElementById('qrious'),
size:250,
level:'H',
value:response.code_url
});
queryPayStatus(response.out_trade_no)
}
);
} |
|