diff --git a/dist/Js/index/index.js b/dist/Js/index/index.js new file mode 100644 index 0000000..876e2cc --- /dev/null +++ b/dist/Js/index/index.js @@ -0,0 +1,178 @@ +function indexInit(){ + function init(){ + initData(); + } + async function initData(){ + const ids = await getProductIdService(); + if(!ids) return; + let dataAcc = []; + for(let i=0;i +
+
+ +

${itemname}

+

Buy Now

+
+
+ `; + return `
+
+ +

${itemname}

+

Buy Now

+ +
+
`; + } + + 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); + return; + } + + let res = resData.response; + + res = JSON.parse(res.result); + + + let resultItem = []; + + for(let i=0;i
-