.mce-content-body img {
opacity: 0;
max-width: 100%;
height: auto;
}
.mce-content-body img[srcset],
.mce-content-body img[src] {
opacity: 1;
}
.mce-content-body.aside table{
min-width: 100% !important;
}
@media (max-width: 749.98px){
.mce-content-body table{
min-width: 100% !important;
}
.mce-content-body .table-wraper-fix > table > tbody > tr td,
.mce-content-body .table-wraper-fix > table > tbody > tr th{
min-width: 54px;
}
}
.mce-content-body .table-wraper-fix{
padding-bottom: 1px;
padding-right: 1px;
}
[dir=rtl] .mce-content-body .table-wraper-fix{
padding-left: 1px;
}
@media (min-width: 749.98px){
.mce-content-body .table-wraper-fix > table > tbody > tr td,
.mce-content-body .table-wraper-fix > table > tbody > tr th{
min-width: 80px !important;
box-sizing: border-box !important;
}
.mce-content-body.bottom .table-wraper-fix > table > tbody > tr td,
.mce-content-body.bottom .table-wraper-fix > table > tbody > tr th{
min-width: 120px !important;
}
}
.table-wraper-fix > table > tbody > tr td,
.table-wraper-fix > table > tbody > tr th {
padding: 8px;
}
var _ymcart_aftercartgoods_api_url = ‘//60490-aftercartgoods.us01-apps.ymcart.com’;var _ymcart_aftercartgoods_css_version = ‘1605707110’;
var _ymcart_topbar_api_url = ‘//60490-topbar.us01-apps.ymcart.com’;
$(“#_ymcart_script_div > div”).addClass(“notranslate”);$(“#_ymcart_script_div”).children(“div”).each(function(){$(this).appendTo(“body”);});
$(function() { $(‘.discount-timer’).each(function() { $(this).genTimer({ beginTime: “2023/05/15 23:09:50”, targetTime: $(this).attr(‘endTime’), callback: function(time) { this.html(time); } }); }); });
$(function(){ /*细节图*/ $(‘.detail_drawing’).each(function(index, element) { var _this = $(this); _this.find(‘dd:nth-child(1)’).addClass(‘cur’); if(_this.hasClass(‘detail_drawing_removeclass’)){ _this.find(‘dd:nth-child(1)’).removeClass(‘cur’); } _this.find(‘dd’).click(function(){ $(this).siblings(‘dd’).removeClass(‘cur’); $(this).addClass(‘cur’); var _ing_url = $(this).find(‘img’).attr(‘data_image’); _this.parent().find(‘.pic’).find(‘img’).attr(‘src’,_ing_url); }); var ddWidth = $(this).find(‘dd’).find(‘a’).innerHeight(); var ddLength = $(this).find(‘dd’).length; if(ddLength > 4){ $(this).find(‘.detail_drawing_left,.detail_drawing_right’).show(); $(this).find(‘.detail_drawing_wapper’).css({ ‘width’:(ddWidth+8)*4, ‘overflow’:’hidden’ }); var ids = $(this).find(‘.detail_drawing_wapper’).attr(‘data_id’); var mySwiper = new Swiper($(this).find(‘.detail_drawing_wapper’),{ slidesPerView : 4, spaceBetween : 6, navigation: { nextEl: $(this).find(‘.detail_drawing_right’), prevEl: $(this).find(‘.detail_drawing_left’), disabledClass: ‘drawing_disabled’, }, }) }else{ $(this).find(‘dd’).css(‘margin’,’0 3px’); } }); $(‘.wap_detail_drawing’).each(function(index, element){ var _this = $(this); _this.find(‘dd:nth-child(1)’).addClass(‘cur’); if(_this.hasClass(‘detail_drawing_removeclass’)){ _this.find(‘dd:nth-child(1)’).removeClass(‘cur’); } var ddLength = $(this).find(‘dd’).length; var ddWidth = $(this).find(‘dd’).find(‘a’).innerHeight(); if(ddLength > 4){ _this.find(‘.wap_detail_drawing_more’).show(); _this.find(‘dl’).css({ ‘width’:(ddWidth+6)*4, ‘overflow’:’auto’ }); } _this.find(‘dd’).click(function(){ $(this).siblings(‘dd’).removeClass(‘cur’); $(this).addClass(‘cur’); var _ing_url = $(this).find(‘img’).attr(‘data_image’); _this.parent().find(‘.pic’).find(‘img’).attr(‘src’,_ing_url); }); _this.find(‘dl’).scroll(function(){ if($(this).scrollLeft()==’0′){ _this.find(‘.wap_detail_drawing_more’).show(); } }); }); $(‘.wap_detail_drawing_more’).click(function(){ var _w = $(this).siblings(‘dl’).width(); $(this).siblings(‘dl’).animate({scrollLeft:_w},300); $(this).hide(); }); var goods_ids = new Array(); $(‘.product_tlike’).each(function(){ goods_ids[goods_ids.length] = $(this).attr(‘data_id’); }); $.ajax({ url: “/h-user-wishListStatus.html?goods_ids=” + goods_ids.join(‘,’), cache: false, dataType : “json”, success: function(data){ var data = data.data; $(“.product_tlike”).each(function(){ var td =$(this).attr(‘data_id’); if(data[$(this).attr(‘data_id’)]==’1′){ $(this).addClass(“cur”); } }); } }); $(‘.product_tlike’).click(function(){ var _this = $(this); var _val = parseInt(_this.find(‘font’).text()); var goods_id = _this.attr(‘data_id’); $.ajax({ url :’/h-user-addFavorites.html’, type:’POST’, data:{ goods_id : goods_id }, dataType: ‘json’, cache: false, success: function(res) { if(res == 1){ $(_this).tip(“Add to favorite succeed.”, 15, 0, 2000); _this.find(‘font’).text(_val+1); $(_this).addClass(“cur”); }else if(res== 2){ $(_this).tip(“Please Login first”, 15, 0, 2000); }else if(res== 3){ $(_this).tip(“Already added”, 15, 0, 2000); }else{ $(_this).tip(“Add to favorite failed.”, 15, 0, 2000); } }, error:function(){ alert(‘Connection failed, please refresh’); }, beforeSend: function(){ createAjaxLoading(); }, complete: function(){ removeAjaxLoading(); } }); }); /*快速预览*/ $(‘.product_quick_view’).click(function(){ _this=$(this); $(‘.mini_detail’).show(); createAjaxLoading(); var pro_url = “/h-product-detail.html?goods_id=”+$(this).parents(“.product_item”).find(‘.quickcart_box’).attr(‘goods_id’)+”&type=quick&height=610″; $(‘#mini_detail’).append(”); removeAjaxLoading(); }); $(‘.close_icon’).click(function(){ $(this).parent().parent().css(‘display’,’none’); $(this).siblings().remove(); }); $(‘.mini_detail_bg’).click(function(){ $(this).parent().css(‘display’,’none’); $(this).parent().find(‘iframe’).remove(); }); })
Reviews
There are no reviews yet.