商品分类

ロッドテイマー 450mm ロッド約7本固定 ポリウレタン製 ロッドベルト ボート デッキ
商品图片有可能与实物不同,请务必详细阅读商品说明内容。

价格: 2200102.30
代购手续费: 100

数量:
より豊富な品揃え!
キサカダイレクト本店の商品ページは 0) { $('.product-main-panel .sold-out').addClass('hidden'); } else { $('.product-main-panel .sold-out').removeClass('hidden'); } } }); } var attributeSets =[]; function getProductAttributeSetInLocal() { var attrs = getProductAttrs(); if (attrs === false) { return; } console.log(attrs) console.log(attributeSets) var target = []; for (var i = 0, len = attrs.length; i < len; i++) { target.push(attrs[i]['key_id'] + ':' + attrs[i]['value_id']); } target = target.join("\n"); var map = {}; for (var i = 0, len = attributeSets.length; i < len; i++) { var conditions = []; for (var c = 0, clen = attributeSets[i]['conditions'].length; c < clen; c++) { conditions.push(attributeSets[i]['conditions'][c]['key_id'] + ':' + attributeSets[i]['conditions'][c]['value_id']); } map[conditions.join("\n")] = attributeSets[i]; } if (map[target] !== undefined) { var asin = map[target]['asin']; location.href = '/product/info/amazon/' + asin; } else { alert('该规格的商品库存不足,请重新选择'); location.reload(); } } function getProductAttrs() { var attributeRows = $('.product-main-panel .product-main-table .attr-tr') if (attributeRows.length !== attributeRows.find('.btn-select.active').length) { return false; } var attrs = []; attributeRows.each(function () { var key_id = $(this).attr('data-key-id'); var key_text = $(this).attr('data-key-text'); var value_id = $(this).find('.btn-select.active').attr('data-value-id'); var value_text = $(this).find('.btn-select.active').attr('data-value-text'); attrs.push({ key_id, key_text, value_id, value_text, }); }); return attrs; } //加入购物车 $('.product-main-panel .add-cart-btn').click(function () { var attrs = getProductAttrs(); if (attrs === false) { alert('请先选择商品属性'); return; } var stock = $('.product-main-panel .product-stock').text() * 1; var buy = $('.product-main-panel .buy-quantity').val() * 1; if (stock <= 0 || !(buy <= stock)) { alert('商品库存不足'); return; } $.ajax({ url: '/ajax/cart/add', method: 'post', data: { shopping: 'yahoo', product_id: 'kisaka-direct_770018', product_attribute: attrs, quantity: buy, }, success: function (res) { if (res.code !== 0) { alert(res.error_msg); return; } location.href = '/cart'; }, error: function (xhr) { if (xhr.responseJSON && xhr.responseJSON.message && xhr.responseJSON.message == 'Unauthenticated.') { alert('请先登录账号'); location.href = '/auth/login?callback=' + encodeURIComponent(location.href); } } }); }); //收藏商品 $('.product-main-panel .collect-btn').click(function () { var btn = $(this); if (!btn.hasClass('collected')) { $.ajax({ url: '/ajax/collect/item', method: 'post', data: { module: '1', shopping: 'yahoo', relate_id: 'kisaka-direct_770018', relate_url: location.pathname, relate_name: 'ロッドテイマー 450mm ロッド約7本固定 ポリウレタン製 ロッドベルト ボート デッキ', relate_thumb: 'https://item-shopping.c.yimg.jp/i/j/kisaka-direct_770018', other_data: { jpy_price: 2200, cny_price: 102.30, }, }, success: function (res) { if (res.code !== 0) { alert(res.error_msg); return; } btn.addClass('collected'); }, error: function (xhr) { if (xhr.responseJSON && xhr.responseJSON.message && xhr.responseJSON.message == 'Unauthenticated.') { alert('请先登录账号'); location.href = '/auth/login?callback=' + encodeURIComponent(location.href); } } }); } else { $.ajax({ url: '/ajax/collect/item', method: 'delete', data: { module: '1', shopping: 'yahoo', relate_id: 'kisaka-direct_770018', }, success: function (res) { if (res.code !== 0) { alert(res.error_msg); return; } btn.removeClass('collected'); }, error: function (xhr) { if (xhr.responseJSON && xhr.responseJSON.message && xhr.responseJSON.message == 'Unauthenticated.') { alert('请先登录账号'); location.href = '/auth/login?callback=' + encodeURIComponent(location.href); } } }); } });