offer and discount

MOE_DEV_NEW_TEMPORARY_DESIGN
Sultan Khan 4 years ago
parent 1b2824f5c1
commit fe341aaca6

@ -27,8 +27,8 @@ export class ConnectorService {
public static retryTimes = 0;
public static timeOut = 180 * 1000;
public static host = 'https://uat.hmgwebservices.com/';
// public static host = 'https://hmgwebservices.com/';
// public static host = 'https://uat.hmgwebservices.com/';
public static host = 'https://hmgwebservices.com/';
constructor(public httpClient: HttpClient,
public cs: CommonService,

@ -205,7 +205,8 @@ export class HomeComponent implements AfterViewInit {
this.offersService.getOffers({}, () => { }, this.ts.trPK('general', 'retry'), this.itemCounter).subscribe((res) => {
const data = JSON.parse(res['Mohemm_ITG_ResponseItem']);
if (data['result']) {
const allItem = JSON.parse(data.result['data']);
var allItem = JSON.parse(data.result['data']);
allItem = this.filterActiveItems(allItem);
if (allItem) {
allItem.forEach(element => {
this.offersData.push(element);

Loading…
Cancel
Save