";;} else if (value.from_vipon_editor) {html +="
Editor de chicote"} else if (value.is_from_admin == 1) {html +="
Editor de chicote";} else {html +="
" +value.from_nickname;} html +="
\ n " +"
respondeu para
\ n "; if ('1696596' == value.to_uid) {html +="
";;} else if (value.to_vipon_editor) {html +="
Editor de chicote"} else if (value.is_to_admin == 1) {html +="
Editor de chicote";} else {html +="
" +value.to_nickname;} html +="
\ n " +"
\ n " +"
" +"
"+value.create_time+"
\ n " +"
\ n " +"
\ n " +"
"+value.content+"
\ n " +"
\ n " +"
\ n "; deixe imgarray = json.parse (value.content_img); if (imGarray [0] && imGarray.length> 0) {for (let i = 0; i; i;
\ n ";}} html +="
\ n " +"
- \ n " +" \ n " +"
- \ n " +"\ n " +"\ n " +"responder\ n " +"\ n " +" \ n "; if (value.thumb type == 0) {html ="
- \ n " +"\ n " +" \ n " +" " + value.like_num +" \ n " +"\ n " +" \ n " +"
- \ n " +"\ n " +" \ n " +" " + value.down_num +" \ n " +"\ n " +" \ n ";} else if (value.thumb type == 1) {html ="
- \ n " +"\ n " +" \ n " +" " + value.like_num +" \ n " +"\ n " +" \ n " +"
- \ n " +"\ n " +" \ n " +" " + value.down_num +" \ n " +"\ n " +" \ n ";} else if (value.thumb type == 2) {html ="
- \ n " +"\ n " +" \ n " +" " + value.like_num +" \ n " +"\ n " +" \ n " +"
- \ n " +"\ n " +" \ n " +" " + value.down_num +" \ n " +"\ n " +" \ em ";} html ="
\ n " +"
\ n " +"
\ n " +"
\ n " +"
\ n " +" \ n " +"
\ n " +"
\ n " +"
\ n " +"\ n " +" \ n " +"\ n " +"
\ n " +"78%\ n " +"Enviando\ n " +"
\ n " +"\ n " +"
\ n " +"
\ n " +"
\ n " +"
\ n " +" \ n " +"
\ n " +"
\ n " +"
\ n " +"
\ n " +"
\ n " +"
\ n " +"
" return html; } $("#lowerProduct .btn-info").on('click',function () { if($('#lowerProduct .list input:checked').length<1){ $(' #favoritesTitle .thumb-title').css('display','block'); $('#favoritesTitle .thumb-title').html('O motivo do relatório não pode estar vazio!'); return; } let datas={ id:"10788678", report_group:$('#lowerProduct .list input:checked').next().html() }; ).next().html()=="Outro"){ if($.trim($('#lowerProduct textarea').val())==''){ $('#favoritesTitle .thumb-title ').css('display','block'); $('#favoritesTitle .thumb-title').html('O motivo do relatório não pode estar vazio!'); =$('#lowerProduct textarea').val(); } $(".lower-product").css('display','none'); $("#lowerProduct").modal("ocultar") ; $.ajax({ url:"/produto/prateleiras", type:"post", dados:datas, sucesso(dados){ }, erro(err){ } }) }) $('.botão afiliado') .on('click',function (e) { e.preventDefault(); $('.affiliate').hide() }) $('.report-sumbit').on('click',function () {console.log(1); if (to_verify_email()) { if($('.collapse-body input:checked').length<1){ $('#favoritesTitle .thumb-title').css('display','block'); $('#favoritesTitle .thumb-title').html('O motivo do relatório não pode estar vazio!'); titleModel(true); retornar; } deixe dados = { product_id:"10788678", report_group:$('.collapse-body input:checked').next().html() } if($('.collapse-body input:checked').next (.html()=="Outro"){ if($.trim($('.collapse-body textarea').val())==''){ $('#favoritesTitle .thumb-title' ).css('exibir','bloquear'); $('#favoritesTitle .thumb-title').html('O motivo do relatório não pode estar vazio!'); titleModel(true); retornar; } data.report_reason=$('.collapse-body textarea').val(); } deixe reportimage = [] upload_img.imglist.forEach((x)=>{ reportimage.push(x.url) }) console.log(reportimage); data.report_image = reportimage $(this).attr('desativado','desativado'); deixe Isto = isto; $.ajax({ url: "/report/handle", método: 'POST', cache: false, dataType:"json", dados:dados, sucesso:função (dados) { $(This).removeAttr('disabled '); $('#reportDropDown').collapse('hide'); $('#favoritesTitle .thumb-title').css('display','block'); ').html(data.msg); titleModel(true); if(data.code==0||data.code==200){ $('[href="#reportDropDown"]').removeAttr(' alternância de dados') .on('click',function (e) { e.preventDefault(); $('#favoritesTitle .thumb-title').css('display','block'); $('# favoritesTitle .thumb-title').html('Você já relatou'); titleModel(true); } } }) } }) $('.shop .btn').on('click', function ( ) { console.log(2); if (to_verify_email()) { let url = ''; if ($.trim($(this).html()) == 'Seguir') { url = "https:/ /www.myvipon.com/shopper/my/fans-add"; } else { $('#followed').modal('show'); return; } $(this).attr('disabled', 'disabled '); ('desabilitado'); if (data.code == 200) { if ($.trim($(This).html()) == 'Seguir') { $(This).html('Seguindo').addClass('seguido') } else { $(This).html('Follow').removeClass('followed') } } $('#favoritesTitle .thumb-title').css('display','block'); $('#favoritesTitle .thumb-title').html(data.message); titleModel(true); }, erro: function () { $(This).removeAttr('disabled'); } }) } }) $('#followed .modal-body div > button:last-child').on('click',function () { let url = "https://www.myvipon.com/shopper /my/fans-del"; $(this).attr('disabled', 'disabled'); let This = this; $.ajax({ url: url, type: 'post', dataType: "json", dados: {user_id: 370960}, sucesso: função (dados) { $(This).removeAttr('disabled'); { $('.shop .btn').html('Follow').removeClass('seguido'); $('#favoritesTitle .thumb-title').css('display','block'); ('#favoritesTitle .thumb-title').html(data.message); titleModel(true); erro: function () { $(This).removeAttr('disabled'); '.list-img li').on('click',function () { if($(this).find('video').length==0){ $('.left-show-img vídeo' .hide(); $('.left-show-img vídeo ').attr('src',''); .left-show-img>img').attr('src',$(this).find('img').attr('src')); img').hide(); $('.left-show-img vídeo').show(); ('fonte').attr('src')); } }) $('.produto-vídeo vídeo').on('error',function () { $(this).next().css('display','flex'); }) $('. extensão de descrição própria').on('click',function () { if($(this).parent().hasClass('hide-own-description')){ $(this).parent().removeClass ('ocultar a própria descrição'); var items =[]; var observador = new IntersectionObserver(entries => {entries.forEach((item, index) => { if (item.intersectionRatio > 0.8) { let getpro_id ={ product_id: item.target.getAttribute('data-id'), módulo: item.target.getAttribute('data-module'), pesquisa: $("#header .head-search .search-input input").val(), amz_cat_id: item.target.getAttribute('data-amz_cat_id ') } items.push(getpro_id } }); // observer.disconnect() // valor de limite 100% } ); $(window).scroll(function(){ let newArr = Array.from(document.querySelectorAll(".box-contain")); newArr.forEach(item => observer.observe(item)); }); setInterval(()=>{ if (items.length != 0) { $.ajax({ url:goodsurl, type:'post', dataType:'json', headers: { 'Content-Type':"application/ json;charset=UTF-8" }, data:JSON.stringify({ "product_map": itens, "reviewer_id": 0, "ip": "141.147.67.156" }), sucesso:function (dados) { itens = [] }, erro:função (erro) {} });