'
})
$(".sitewidget-prodDetail-20141127140104 #thumblist").empty().append(html);
$(".sitewidget-prodDetail-20141127140104 #thumblist").find("li").eq(0).find("a").addClass("zoomThumbActive");
phoenixSite.prodDetail.bindImgEvent()
// 移动端
if (flagMobile) {
$("#component_vUApQOamHtZT #slider-vUApQOamHtZT").empty().append(htmlM);
if($(".sitewidget-prodDetail-20141127140104 #slider-vUApQOamHtZT img").length){
$("#component_vUApQOamHtZT .prodetail-slider").data("owlCarousel").reinit({
items: 1,
autoPlay: false,
});
}
initLabel()
}
}else {
// 移动端
if (flagMobile) {
if (!MobileWrap.find(".skuChangImg").length) {
MobileWrap.find("img").first().addClass("transparent");
MobileWrap.first().append('');
}
else {
MobileWrap.find("img").first().addClass("transparent");
MobileWrap.find(".skuChangImg").attr("src", src);
}
$("#component_vUApQOamHtZT .prodetail-slider").data("owlCarousel").reinit({
items: 1,
autoPlay: false,
});
}
}
}else{
console.log(555)
}
}else{
var flag = 0;
$(".sitewidget-prodDetail-20141127140104 .skuParams .description-btn-wrap a").each(function(){
if($(this).hasClass("choosed")){
if($(this).attr("value") != this_.attr("value")){
flag++;
}
}
})
if(flag > 0){
var id = this_.attr("value");
var testStr = $(".sitewidget-prodDetail-20141127140104 .skuParams .description-btn-wrap a.choosed[value!="+id+"]").attr("attr-img");
if(!!testStr){
var testArray = testStr.split(",");
testStr = testArray[0];
var re = new RegExp("(.*)-(.*)-(.*)","ig");
var r = re.exec(testStr);
var Imgtype = '.' + testStr.replace(/^.+\./,'');
var src=r[1] + Imgtype;
$(".sitewidget-prodDetail-20141127140104 img[bigimgonly=attr_BigImgOnly_leadong]").attr("src",src);
var html = "";
var htmlM = "";
if(testArray.length>1){
testArray.forEach(function(item,index){
html += "
"
html += "";
html += "";
html += "";
html += "";
html += ""
html += ""
htmlM +='
'
if ($('.sitewidget-prodDetail-20141127140104 .pro_pic_small').css('display') != 'none') {
htmlM +='
'
htmlM +='
'
htmlM +='
'
htmlM +='
'
htmlM +='
'
htmlM +='
'
}
htmlM += "
";
htmlM += "";
htmlM += ""
htmlM+='
'
})
$(".sitewidget-prodDetail-20141127140104 #thumblist").empty().append(html);
$(".sitewidget-prodDetail-20141127140104 #thumblist").find("li").eq(0).find("a").addClass("zoomThumbActive");
if (flagMobile) {
$("#component_vUApQOamHtZT #slider-vUApQOamHtZT").empty().append(htmlM);
if($(".sitewidget-prodDetail-20141127140104 #slider-vUApQOamHtZT img").length){
$("#component_vUApQOamHtZT .prodetail-slider").data("owlCarousel").reinit({
items: 1,
autoPlay: false,
});
}
initLabel()
}
phoenixSite.prodDetail.bindImgEvent()
}
}
}else{
$(".sitewidget-prodDetail-20141127140104 #thumblist").empty().append(prodSkuDom);
$(".sitewidget-prodDetail-20141127140104 #thumblist").find("li").eq(0).find("a").addClass("zoomThumbActive");
var imgSrc = $(".sitewidget-prodDetail-20141127140104 #thumblist li:nth-of-type(1)").find("img").attr("src");
if(imgSrc){
var re = new RegExp("(.*)-(.*)-(.*)","ig");
var r = re.exec(imgSrc);
var Imgtype = '.' + imgSrc.replace(/^.+\./,'');
var src=r[1] + Imgtype;
$(".sitewidget-prodDetail-20141127140104 img[bigimgonly=attr_BigImgOnly_leadong]").attr("src",src);
phoenixSite.prodDetail.bindImgEvent()
}
// 移动端回填默认值
var htmlM = ''
htmlM += '
'
if ($('.sitewidget-prodDetail-20141127140104 .pro_pic_small').css('display') != 'none') {
htmlM +='
'
htmlM +='
'
htmlM +='
'
htmlM +='
'
htmlM +='
'
htmlM +='
'
}
htmlM += '
'
htmlM += ''
htmlM += ''
htmlM += '
'
if (flagMobile) {
$("#component_vUApQOamHtZT #slider-vUApQOamHtZT").empty().append(htmlM);
if($(".sitewidget-prodDetail-20141127140104 #slider-vUApQOamHtZT img").length){
$("#component_vUApQOamHtZT .prodetail-slider").data("owlCarousel").reinit({
items: 1,
autoPlay: false,
});
}
initLabel()
}
}
}
})
})
var timer = null
function initLabel(){
isLoadLabel = false
clearTimeout(timer)
timer = setTimeout(function(){
phoenixSite.prodDetail.initLabel({ encodeProductId: 'oifKWPQhSsVJ',
widgetClass: 'sitewidget-prodDetail-20141127140104',isMobile:true });
},50)
}
})(jQuery,window,undefined)
}catch(e){try{console && console.log && console.log(e);}catch(e){}}
/*id='u_3b5a78285dff498ab2b126c797866b0d' guid='u_3b5a78285dff498ab2b126c797866b0d' pm_script='sitewidget-prodDetail-20141127140104' jumpTo='vUApQOamHtZT' type='text/javascript'*/
try{
$(function(){
//放大镜功能 Instantiate EasyZoom plugin
if ($(".sitewidget-prodDetail-20141127140104 .proddetail-wrap").hasClass("proddetail-zoomin")) {
// var $easyzoom = $('.easyzoom').easyZoom({
// onShow: function(){
// var flyoutImg = $(".easyzoom-flyout img").attr('src');
// var img_300=$("img[bigimgonly=attr_BigImgOnly_leadong]").attr("src");
// var re = new RegExp("(.*)-(.*)-(.*)","ig");
// var r = re.exec(img_300);
// var Imgtype = '.' + img_300.replace(/^.+\./,'');
// var src=r[1] + Imgtype;
// if (flyoutImg != src) {
// $(".easyzoom-flyout img").attr('src', src);
// }
// }
// });
// Get the instance API
// var api = $easyzoom.data('easyZoom');
//图片预加载
$('body>.proddetail-zoomin-picwrap').remove();
$('body').append("
");
$(".sitewidget-prodDetail-20141127140104 #thumblist li").each(function(){
var appendBigImgSrc = $(this).find("a").attr("largeimage");
var appendNormalImgSrc = $(this).find("a").attr("smallimage");
$(".proddetail-zoomin-picwrap").append("" + "");
});
}
});
}catch(e){try{console && console.log && console.log(e);}catch(e){}}
/*id='u_12ba49ed1b2940e68148eeb8c9cb8633' guid='u_12ba49ed1b2940e68148eeb8c9cb8633' pm_script='sitewidget-prodDetail-20141127140104' jumpTo='vUApQOamHtZT' type='text/javascript'*/
try{
$(function(){
var payModuleFlag = $('input[name=payModuleFlag]')[0] == undefined ? '0' : '1';
var orderModuleFlag = $('input[name=orderModuleFlag]')[0] == undefined ? '0' : '1';
var cartModuleFlag = $('input[name=cartModuleFlag]')[0] == undefined ? '0' : '1';
var options = {
widgetClass: 'sitewidget-prodDetail-20141127140104',
productId: '25628319',
encodeProductId:'oifKWPQhSsVJ',
phoenix_error_standard_must_choosed: "Please select a",
phoenix_error_no_stock: "This item is out of stock!",
phoenix_order_sold_out: "Sold out",
phoenix_shopingcart_notice: "A new item was added to your shopping cart.",
prodDetailShowStyle: '0',
payModuleFlag: payModuleFlag,
orderModuleFlag:orderModuleFlag,
cartModuleFlag:cartModuleFlag,
phoenix_error_buy_prod : "Operation failed, you choose not to purchase goods",
skuValueMap:'{}',
picSize:'2',
prodDetailSkuStyle:'0',
prodImgZoomSize:'',
settingId: "vUApQOamHtZT"
};
phoenixSite.prodDetail.init(options);
});
}catch(e){try{console && console.log && console.log(e);}catch(e){}}
/*id='u_1a7a32fd996e48b3b6301ddc060a4f96' guid='u_1a7a32fd996e48b3b6301ddc060a4f96' pm_script='sitewidget-prodDetail-20141127140104' jumpTo='vUApQOamHtZT' type='text/javascript'*/
try{
(function(window,$,undefined){
$(function(){
phoenixSite.payCoinExchange.handleElement($('#component_vUApQOamHtZT'));
$("#component_vUApQOamHtZT .sitewidget-proddetail .fa-qrcode").on('click',function(){
var that=$(this);
var codeOffset=that.offset();
if(codeOffset.left
"+phoenixSite.message(phoenixSite.lanEdition, "phoenix_code")+"