|
|
@ -70,6 +70,13 @@ define(['angular', 'decimal', 'uiRouter', 'ngBootSwitch', 'ngFileUpload'], funct
|
|
|
|
$scope.partner = partner.data;
|
|
|
|
$scope.partner = partner.data;
|
|
|
|
$scope.partner.partner_type = $scope.partner.website ? 'website' : 'photo';
|
|
|
|
$scope.partner.partner_type = $scope.partner.website ? 'website' : 'photo';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$scope.getMerchantLocation = function () {
|
|
|
|
|
|
|
|
$http.get('/sys/partners/' + $scope.partner.client_moniker + '/location').then(function (resp) {
|
|
|
|
|
|
|
|
$scope.merchant_location = resp.data;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
$scope.getMerchantLocation();
|
|
|
|
|
|
|
|
|
|
|
|
$scope.uploadLogo = function (file) {
|
|
|
|
$scope.uploadLogo = function (file) {
|
|
|
|
if (file != null) {
|
|
|
|
if (file != null) {
|
|
|
|
if (file.size > 1 * 1024 * 1024) {
|
|
|
|
if (file.size > 1 * 1024 * 1024) {
|
|
|
|