reimplemented login system and added state list component.
This commit is contained in:
Vendored
+5
-4
@@ -8,6 +8,7 @@ function ramProductsInit(){
|
||||
|
||||
function getProductIdService(){
|
||||
return new Promise(async (reslove,reject)=>{
|
||||
|
||||
let resData =await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getallproducts`,true);
|
||||
if(resData.isError){
|
||||
alert(resData.errorMsg.message);
|
||||
@@ -56,7 +57,7 @@ function ramProductsInit(){
|
||||
|
||||
console.log(res);
|
||||
let html = '';
|
||||
debugger;
|
||||
|
||||
for(let i=0;i<res.length;i++){
|
||||
html += getRamCardHTML(res[i]);
|
||||
}
|
||||
@@ -64,10 +65,10 @@ debugger;
|
||||
$('.product_card_section').html(html);
|
||||
|
||||
$('.ramcard').click(function(e){
|
||||
debugger;
|
||||
|
||||
let sku = $(e.target).data('itemid');
|
||||
let itemid = $(e.target).data('itemid');
|
||||
debugger;
|
||||
|
||||
window.location.href = `/productdetails.html?productId=${RAM_ID}#itemid=${itemid}`
|
||||
|
||||
})
|
||||
@@ -168,5 +169,5 @@ debugger;
|
||||
|
||||
init();
|
||||
}
|
||||
debugger;
|
||||
|
||||
ramProductsInit();
|
||||
Reference in New Issue
Block a user