code added
Цей коміт міститься в:
сторонній
+15
-2
@@ -16,12 +16,21 @@ function startDetails(){
|
||||
let currentClick = null;
|
||||
debugger;
|
||||
if(productId){
|
||||
updateProductId(productId);
|
||||
getProductDetails(productId);
|
||||
appendSpecs(productId)
|
||||
}else{
|
||||
window.location.href = "/notfound.html"
|
||||
}
|
||||
|
||||
function updateProductId(val){
|
||||
$('#productidtag').val(val);
|
||||
}
|
||||
|
||||
function updateItemId(val){
|
||||
$('#itemidtag').val(val);
|
||||
}
|
||||
|
||||
let specification_wrap_action = {
|
||||
remove(){
|
||||
debugger;
|
||||
@@ -157,13 +166,15 @@ function startDetails(){
|
||||
appendSpecs(obj.itemid)
|
||||
$('#skudetailitem').val(obj.sku)
|
||||
$('.des_productdes').html(obj.itemdescription);
|
||||
$('#addtocart').attr('data-qty',obj.quantity)
|
||||
$('#addtocart').attr('data-qty',obj.quantity);
|
||||
|
||||
|
||||
let defaultImg = obj.itemimageurl ? imgServerNameBuild(obj.itemimageurl): `./dist/assets/imgs/nophoto.png`;
|
||||
console.log(obj.itemimageurl,'obj.itemimageurlobj.itemimageurlobj.itemimageurl');
|
||||
debugger;
|
||||
$('.productDetailsMain > img').attr('src',defaultImg);
|
||||
|
||||
updateItemId(obj.itemid);
|
||||
}
|
||||
|
||||
function searchComb(){
|
||||
@@ -229,6 +240,8 @@ debugger;
|
||||
itemsName += ` ${$(e).html().trim()}`;
|
||||
});
|
||||
|
||||
updateItemId(null);
|
||||
|
||||
specification_wrap_action.remove();
|
||||
$('#skudetailitem').val(-1)
|
||||
$('.productname').html(itemsName)
|
||||
@@ -449,7 +462,7 @@ debugger;
|
||||
tagnames = tagnames.split('|');
|
||||
$('.optiontaganwi').removeClass('borderselector');
|
||||
currentComb = itemtagscombinationRes[0];
|
||||
|
||||
// updateItemId(itemtagscombinationRes[0].itemid);
|
||||
|
||||
for(let i=0;i<tagids.length;i++){
|
||||
|
||||
|
||||
Посилання в новій задачі
Заблокувати користувача