code added

This commit is contained in:
2023-04-28 15:43:17 +05:30
bovenliggende 4943d7fc15
commit b8d88b9cc5
24 gewijzigde bestanden met toevoegingen van 223 en 93 verwijderingen
+19 -1
Bestand weergeven
@@ -13,9 +13,21 @@ function startDetails(){
let group = {};
let loadingActions = {
addLoader(){
$('.loadingCall').removeClass('d-none');
$('.mainContanierProduct').addClass('d-none');
},
removeLoader(){
$('.loadingCall').addClass('d-none');
$('.mainContanierProduct').removeClass('d-none');
}
}
let currentClick = null;
debugger;
if(productId){
loadingActions.addLoader();
updateProductId(productId);
getProductDetails(productId);
appendSpecs(productId)
@@ -324,6 +336,7 @@ debugger;
let resData = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/productattributelist/productid/${id}`,true);
if(resData.isError){
loadingActions.removeLoader();
alert(resData.errorMsg.message);
return;
}
@@ -333,7 +346,10 @@ debugger;
res = JSON.parse(res.result);
// console.log(res);
if(!res) return;
if(!res) {
loadingActions.removeLoader();
return;
};
@@ -489,7 +505,9 @@ debugger;
// }
$('#spec-container-details').children().slice(1).find('.specsmallcard').removeClass('specsmallcard');
addeventlisteners();
loadingActions.removeLoader();
return;
// let resTwo = await postStatAPIService(`${SERVERNAME}/apis/v4/bizgaze/integrations/products/itemtagscombination/productid/${id}`);