카이요도우 리볼텍 라오우 최종 결전 Ver. 북두의 권 REVOLUTION Series No. 013 | DOKODEMO
리볼텍 라오우 최종 결전 Ver. 북두의 권 REVOLUTION Series No. 013
상품코드：4582225004224
본체 사이즈 : 160mm / 남녀 공용 / 대상 연령 : 15 세 / (C) 1983 Buronson & Tetsuo Hara / NSP Approved No.KA-334 / 패왕 계승자의 대결에 종지부를 찍는다. 라오우 최종 결전 Ver.가 리볼텍에 등장.
'; }); return dom; } $.ajax({ type: 'POST', url: 'https://3gpij0xjo6.execute-api.ap-northeast-1.amazonaws.com/prod/category/salecount', dataType: 'json', headers: { 'x-api-key': 'oJi8ltTxuq6kB5kaFF3we2u8GpVsOefu7VpLndI7', 'x-dkdm-gid': '4', 'x-dkdm-ccd': 'USD', 'x-dkdm-scd': '840', 'Content-Type': 'application/json' }, data: JSON.stringify({ 'cidl': '232', 'cidm': '233', 'cids': '274', 'epid': ['141703'] }), }) .done(function (data, textStatus, jqXHR) { $('#js-recommend_list').fadeIn(); var html = ''; var langkey = '4'; if (data.errorType) { html += '
'; $('#js-slick_RECOMMEND_CATEGORY').html(html); } else { // データが０件の場合は非表示 if (data.cs.length === 0 && data.cm.length === 0) { html += '데이터를 취득할 수 없습니다.'; $('#js-slick_RECOMMEND_CATEGORY').html(html); // 中カテ、小カテのデータがある場合 } else { html += apiRecommendData(data.cs, langkey); html += apiRecommendData(data.cm, langkey); // html += apiRecommendData(data.cl, langkey); $('#js-slick_RECOMMEND_CATEGORY').html(html); // スライド detail.slickSlide($('#js-slick_RECOMMEND_CATEGORY')); } } }) .fail(function (jqXHR, textStatus, errorThrown) { console.log('fail', jqXHR.status); var html = '데이터를 취득할 수 없습니다.'; $('#js-slick_RECOMMEND_CATEGORY').html(html); }).always(function () { detail.reviewDisp(); }); var user_id = ''; $.ajax({ type: 'POST', url: 'https://eeqcy0nt31.execute-api.ap-northeast-1.amazonaws.com/prod/v1/orders/products', headers: { 'x-dkdm-gid': '4', 'x-dkdm-ccd': 'USD', 'x-dkdm-scd': '840', 'Content-Type': 'application/json' }, data: JSON.stringify({ 'product_id': Number('141703'), 'product_group_id': null, 'size': 20, 'user_id': user_id ? user_id : NaN, }), }) .done(function (data, textStatus, jqXHR) { var html = ''; if (data.code !== 1) { $('#js-slick_RECOMMEND_ORDER').fadeIn(); html += '
'; }); return dom; } $.ajax({ type: 'POST', url: 'https://dokodemo.world/api/product_history/', dataType: 'json', data: { global_id: '4', country_id: '840', currency_code: 'USD', product_ids: '141703' }, jsonpCallback: 'callback' }) .done(function(data, textStatus, jqXHR) { var html = ''; var langkey= '4'; if (data.length > 0){ html += apiTopHistoryData(data, langkey); } else { html += '데이터를 취득할 수 없습니다.'; } $('#js-slick_arrProductHistory').html(html); // スライド detail.slickSlide($('#js-slick_arrProductHistory')); }) .fail(function(jqXHR, textStatus, errorThrown) { console.log('fail', jqXHR.status); var html = '데이터를 취득할 수 없습니다.'; $('#js-slick_arrProductHistory').html(html); }) .always(function() { detail.reviewDisp(); }); detail.slickSlide = function(target) { target .on('init', function(event, slick) { // urlを書き換え if (target.selector == '#js-slick_RECOMMEND_CATEGORY') { recommendParams.init(slick); } // slick要素の初期化 $('.p-products-slickItems').css('display', 'block'); target.children('.slick-prev').css('opacity', '0'); }) .slick({ infinite: false, slidesToShow: 7, slidesToScroll: 7, responsive: [ { breakpoint: 1480, settings: { slidesToShow: 6, slidesToScroll: 6 } }, { breakpoint: 1280, settings: { slidesToShow: 5, slidesToScroll: 5 } }, { breakpoint: 1080, settings: { slidesToShow: 4, slidesToScroll: 4 } } ] }) .on('afterChange', function(event, slick, currentSlide) { // urlを書き換え if (target.selector == '#js-slick_RECOMMEND_CATEGORY') { recommendParams.rewrite(slick, currentSlide); } if (target.children('.slick-prev').attr('aria-disabled') == 'true') { target.children('.slick-prev').css('opacity', '0'); } else { target.children('.slick-prev').css('opacity', '1'); } if (target.children('.slick-next').attr('aria-disabled') == 'true') { target.children('.slick-next').css('opacity', '0'); } else { target.children('.slick-next').css('opacity', '1'); } }); }; detail.reviewDisp = function() { detail.review = { count_review: '', parcent: '', elem_hoverText: document.querySelectorAll('.js-review_element'), elem_target: '', elem_target_point5: '', elem_target_point4: '', elem_target_point3: '', elem_target_point2: '', elem_target_point1: '', elem_target_bar5: '', elem_target_bar4: '', elem_target_bar3: '', elem_target_bar2: '', elem_target_bar1: '' } detail.calcRevewPercent = function() { // 初期化 detail.review.parcent = {1:0, 2:0, 3:0, 4:0, 5:0}; var reviewTotal = Number(detail.review.count_review[1]) + Number(detail.review.count_review[2]) + Number(detail.review.count_review[3]) + Number(detail.review.count_review[4]) + Number(detail.review.count_review[5]); for(var i=1; i<=5; i++){ detail.review.parcent[i] = Math.ceil((Number(detail.review.count_review[i])/reviewTotal) * 100) + '%'; } return detail.review.parcent; } detail.review.elem_hoverText = Array.prototype.slice.call(detail.review.elem_hoverText, 0); detail.review.elem_hoverText.forEach(function(elem){ elem.addEventListener('mouseover', function(){ var rankid = elem.getAttribute('data-rankid'); var type = elem.getAttribute('data-rankType'); detail.review.elem_target = document.getElementById('js-review_target' + rankid + '_' + type); detail.review.elem_target_point5 = document.getElementById(type + '_' + rankid + '_point5'); detail.review.elem_target_point4 = document.getElementById(type + '_' + rankid + '_point4'); detail.review.elem_target_point3 = document.getElementById(type + '_' + rankid + '_point3'); detail.review.elem_target_point2 = document.getElementById(type + '_' + rankid + '_point2'); detail.review.elem_target_point1 = document.getElementById(type + '_' + rankid + '_point1'); detail.review.count_review = {1:detail.review.elem_target_point1.textContent, 2:detail.review.elem_target_point2.textContent, 3:detail.review.elem_target_point3.textContent, 4:detail.review.elem_target_point4.textContent, 5:detail.review.elem_target_point5.textContent}; detail.review.elem_target.style.opacity = 1; detail.review.elem_target.style.zIndex = 2; detail.calcRevewPercent(); detail.review.elem_target_bar5 = document.getElementById(type + '_' + rankid + '_bar5'); detail.review.elem_target_bar4 = document.getElementById(type + '_' + rankid + '_bar4'); detail.review.elem_target_bar3 = document.getElementById(type + '_' + rankid + '_bar3'); detail.review.elem_target_bar2 = document.getElementById(type + '_' + rankid + '_bar2'); detail.review.elem_target_bar1 = document.getElementById(type + '_' + rankid + '_bar1'); detail.review.elem_target_bar5.style.width = detail.review.parcent[5]; detail.review.elem_target_bar4.style.width = detail.review.parcent[4]; detail.review.elem_target_bar3.style.width = detail.review.parcent[3]; detail.review.elem_target_bar2.style.width = detail.review.parcent[2]; detail.review.elem_target_bar1.style.width = detail.review.parcent[1]; }); elem.addEventListener('mouseout', function(){ var rankid = elem.getAttribute('data-rankid'); var type = elem.getAttribute('data-rankType'); detail.review.elem_target = document.getElementById('js-review_target' + rankid + '_' + type); detail.review.elem_target.style.opacity = 0; detail.review.elem_target.style.zIndex = -1; detail.review.elem_target_bar5 = document.getElementById(type + '_' + rankid + '_bar5'); detail.review.elem_target_bar4 = document.getElementById(type + '_' + rankid + '_bar4'); detail.review.elem_target_bar3 = document.getElementById(type + '_' + rankid + '_bar3'); detail.review.elem_target_bar2 = document.getElementById(type + '_' + rankid + '_bar2'); detail.review.elem_target_bar1 = document.getElementById(type + '_' + rankid + '_bar1'); detail.review.elem_target_bar5.style.width = "0%"; detail.review.elem_target_bar4.style.width = "0%"; detail.review.elem_target_bar3.style.width = "0%"; detail.review.elem_target_bar2.style.width = "0%"; detail.review.elem_target_bar1.style.width = "0%"; }); }); }; detail.changeShop = function(product_shop_class_id) { detail.otherShopForm['product_shop_class_id'].value = product_shop_class_id; detail.otherShopForm.submit(); }; detail.changeReview = function() { detail.revewForm.submit(); } detail.changeClassID = function(classid, type, obj) { detail.productsForm['mode'].value = 'class_change'; detail.productsForm['target_class'].value = classid; // 規格変更時に必要なパラメータ if (classid == "1") { detail.productsForm['product_mode'].value = 'class1'; } else { detail.productsForm['product_mode'].value = 'class2'; } //画像では productclassid をセットする if (type == "image" && classid == '1') { detail.productsForm['classcategory_id1'].value = obj.getAttribute('data-productclassid'); } if (type == "image" && classid == '2') { detail.productsForm['classcategory_id2'].value = obj.getAttribute('data-productclassid'); } //セレクトボックスではテキストを変更する if (type == "select" && classid == '1') { detail.classImage.selectBoxText1.textContent = obj.options[obj.selectedIndex].text; } if (type == "select" && classid == '2') { detail.classImage.selectBoxText2.textContent = obj.options[obj.selectedIndex].text; } detail.productsForm.submit(); }; }(detail)); $(function(){ $('.js-hover_omatomelabel').hover( function(){ $(this).children('span').css('display', 'block'); }, function(){ $(this).children('span').css('display', 'none'); }); $('#js-products-banner__slide').slick({ autoplay: true, dots: false, arrows: false }); //商品個別クーポン getMycoupon(); $(document).on('click','.coupon-ticket-right',function(){ if (dokodemo.info.customer_id) { if ( $(this).hasClass("have_coupon") ) return false; if ( $(this).hasClass("none") ) return false; $.ajax({ type: 'POST', url: 'https://dokodemo.world/api/coupon_get/', dataType: 'json', data: { "customer_id":dokodemo.info.customer_id, "coupon_id":coupon_id, "product_shop_class_id":product_shop_class_id, }, jsonpCallback: 'callback' }) .done(function (data, textStatus, jqXHR) { if (data.result) { $(".coupon-ticket-right").addClass("have_coupon"); $(".coupon-ticket-right span").text("획득 된"); } }) .fail(function (jqXHR, textStatus, errorThrown) { console.log('fail', jqXHR.status); }); }else{ if ( $(this).hasClass("none") ) return false; pageSignIn.show('coupon', ''); } }); }); //クーポン関連 var coupon_id,product_shop_class_id; function getMycoupon() { $.ajax({ type: 'POST', url: 'https://dokodemo.world/api/my_coupon/', dataType: 'json', data: { "customer_id":dokodemo.info.customer_id, "is_event":0 }, jsonpCallback: 'callback' }) .done(function (data, textStatus, jqXHR) { if (data.result) { // return data.data; getCouponTicket(data.data); }else{ getCouponTicket([]); } }) .fail(function (jqXHR, textStatus, errorThrown) { console.log('fail', jqXHR.status); getCouponTicket([]); }); } function getCouponTicket(myCoupon){ $.ajax({ type: 'POST', url: 'https://dokodemo.world/api/product_seller/', dataType: 'json', data: { "global_id":dokodemo.apiParams.global_id, "product_id": '141703', "country_id":dokodemo.apiParams.country_id, "shop_id": '' }, jsonpCallback: 'callback' }) .done(function (data, textStatus, jqXHR) { if (data.result && data.data.distributor[0].isCoupon != null) { var distributor = data.data.distributor[0],haveThisCoupon=false; coupon_id = distributor.isCoupon.id; product_shop_class_id = distributor.product_shop_class_id; if (Object.keys(myCoupon).length > 0) { $.each(myCoupon.individual,function(k,v){ if (v.id == distributor.isCoupon.id && v.product_shop_class_id == distributor.product_shop_class_id) { haveThisCoupon = true; } }); } var html,discount,usable_minimum_amount = "",price,price1,price2,limit,limit_base,btn,remain="",remainFlg=false; var dispPrice = ""; dispPrice = dispPrice.replace(",","").split(' '); //割引種類、値段 if (distributor.isCoupon.discount_amount!=null) { discount = 'Display Price of Products'+dokodemo.jpyExchangeRate(distributor.isCoupon.discount_amount)+ dokodemo.apiParams.currency_gb + 'OFF'; price = dispPrice[0] - dokodemo.jpyExchangeRate(distributor.isCoupon.discount_amount); price1 = price+dokodemo.apiParams.currency_gb; }else if(distributor.isCoupon.discount_rate!=null){ discount = 'Display Price of Products'+distributor.isCoupon.discount_rate+'%OFF'; price = dispPrice[0] - ((dispPrice[0]/100)*distributor.isCoupon.discount_rate); price1 = dokodemo.jpyExchangeRate(Math.ceil(price))+dokodemo.apiParams.currency_gb; } price2 = dispPrice[0]+dokodemo.apiParams.currency_gb; //'+price1+''+price2+'\ //利用期限 limit = distributor.isCoupon.ended_at.split(' ')[0]; limit_base = "##V0## 까지(JST)"; limit = limit_base.replace("##V0##",limit); //割引条件 if ( distributor.isCoupon.usable_minimum_amount ) { usable_minimum_amount = "동일 점포 상품" + dokodemo.jpyExchangeRate( distributor.isCoupon.usable_minimum_amount ) + dokodemo.apiParams.currency_gb + "이상 구입하면"; } //残り枚数 if (distributor.isCoupon.remain_count!=null) { if (distributor.isCoupon.remain_count==0) remainFlg=true; remain = "배포 수：나머지"+distributor.isCoupon.remain_count+"개"; } //獲得or獲得済み if (haveThisCoupon) { btn = "