|
|
|
@ -33,12 +33,30 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$scope.serviceAll = res.data.all_service;
|
|
|
|
|
$scope.serviceAll.forEach(function(service){
|
|
|
|
|
service.logo_url = '/static/images/'+service.channel+'.jpg'
|
|
|
|
|
service.logo_url = $scope.CheckImgExists(service.logo_url)?service.logo_url:'/static/images/royalpay_sign.png'
|
|
|
|
|
})
|
|
|
|
|
res.data.incremental_channel.forEach(function(channel){
|
|
|
|
|
$scope.channelOptions.push({name:channel,logo_url:'/static/images/'+channel+'.jpg'})
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
$scope.CheckImgExists =function (url) {
|
|
|
|
|
var xmlHttp ;
|
|
|
|
|
if (window.ActiveXObject)
|
|
|
|
|
{
|
|
|
|
|
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
}
|
|
|
|
|
else if (window.XMLHttpRequest)
|
|
|
|
|
{
|
|
|
|
|
xmlHttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
xmlHttp.open("Get",url,false);
|
|
|
|
|
xmlHttp.send();
|
|
|
|
|
if(xmlHttp.status==404)
|
|
|
|
|
return false;
|
|
|
|
|
else
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
$scope.initDate();
|
|
|
|
|
}]);
|
|
|
|
@ -50,9 +68,26 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
|
|
|
|
$http.get("/client/partner_info/"+partner.data.client_moniker+"/incremental_service/"+$stateParams.channel+"/info").then(function(res){
|
|
|
|
|
$scope.serviceInfo =res.data
|
|
|
|
|
$scope.serviceInfo.logo_url = '/static/images/'+$scope.serviceInfo.channel+'.jpg'
|
|
|
|
|
|
|
|
|
|
$scope.serviceInfo.logo_url = $scope.CheckImgExists($scope.serviceInfo.logo_url)?$scope.serviceInfo.logo_url:'/static/images/royalpay_sign.png'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
$scope.CheckImgExists =function (url) {
|
|
|
|
|
var xmlHttp ;
|
|
|
|
|
if (window.ActiveXObject)
|
|
|
|
|
{
|
|
|
|
|
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
|
|
|
|
|
}
|
|
|
|
|
else if (window.XMLHttpRequest)
|
|
|
|
|
{
|
|
|
|
|
xmlHttp = new XMLHttpRequest();
|
|
|
|
|
}
|
|
|
|
|
xmlHttp.open("Get",url,false);
|
|
|
|
|
xmlHttp.send();
|
|
|
|
|
if(xmlHttp.status==404)
|
|
|
|
|
return false;
|
|
|
|
|
else
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
$scope.initDate();
|
|
|
|
|
$scope.params = {source: $stateParams.channel,status: 'PAID', channel :'ALL' ,textType: 'all', datefrom: new Date(), dateto: new Date()};
|
|
|
|
|
$scope.pagination = {};
|
|
|
|
|