以下内容与「bat365在线登录栏目导航」同属公开资讯,可按栏目接着查阅相关条目。
本站按公开材料组织页面。需要原文时请核对应栏目发布页。
列表适合快速定位,正文适合核对表述。两者都保留在站内即可形成完整阅读路径。
'; } } if (voteHtml) { $('#industryVoting').removeClass('hide'); $('#voteList').empty().append(voteHtml); if (e.data.length <= 5) { $('#vote_more').addClass('hide'); } } }, ); }, 1000); //延迟加载评论 setTimeout(() => { $.post(apiHost + '/getCompany', { pid: brandId }, function (e) { if (e.code == 200 && e.data) { console.log(e.data.listinfo); if (e.data.count) { $('#readRemark').removeClass('hide'); $('#readRemark .number') .empty() .append('(' + e.data.count + '条评论)'); } var commentHtml = ''; for (var i = 0; i < e.data.listinfo.length; i++) { commentHtml += '
'; } if (commentHtml) { $('#readRemark .list').empty().append(commentHtml); } } }); }, 1500); //通过uri定位 setTimeout(() => { var hash = window.locations.hash || ''; if (hash) { var targetOffset = $(hash).offset().top - 120; $('html, body').scrollTop(targetOffset); console.log(targetOffset); } }, 500); }); // 上榜行业 $(document).on( 'click', '.public-sbhy-plate .public-open-more', function () { var _parent = $('.public-sbhy-plate'); if (_parent.hasClass('open')) { _parent.find('.public-open-more span').text('查看更多'); _parent.removeClass('open'); var targetOffset = _parent.offset().top - 120; $('html, body').scrollTop(targetOffset); } else { _parent.find('.public-open-more span').text('收起'); _parent.addClass('open'); } }, ); //显示验证码 $(document).on('focus', '#content', function () { $('#verification_code').show(); }); $(document).on('click', '.yzmimg', function () { $(this).attr('src', '/captcha?action=publish&r=' + Math.random()); $('#code').val(''); }); //评分 $(document).on('click', '.public-score span', function () { $(this).nextAll().removeClass('on'); $(this).prevAll().addBack().addClass('on'); var score = $(this).index() + 1; $('#score').val(score); }); // 提交评论 $('#publish').click(function () { listArr = []; var list = $('.files-list li:not(#uploadFilesBtn) img'); list.each(function () { listArr.push(this.src); }); var content = $('#content').val(); var score = $('#score').val(); var code = $('#code').val(); if (content == '') { toast('请输入评论内容'); return false; } if (content.length > 500) { toast('评论内容不能超过500个字符'); return false; } if (score == false) { toast('请选择个好评!'); return false; } if (!code) { toast('请输入验证码'); return false; } $.post( '/evaluation', { imgArray: listArr, content: content, satisfaction: score, code: code, pid: $(this).data('pid'), }, function (data) { var returnData = data.data; console.log(returnData); if (data.code == 200) { $('#content').val(''); $('#score').val('5'); $('#verification_code').hide(); $('#code').val(''); toast(data.msg); } else { toast(data.msg); } }, ); }); //一键拨号 $(document).on('click', '.showBrandPhone', function () { var brandName = $('#title').text(); var phoneData = $('#phones').data('phones'); // 获取号码数据 if (!phoneData || typeof phoneData !== 'string') { toast('暂无联系电话'); return; } var phoneNumbers = phoneData .split(/[\s,;、/]+/) .map(function (num) { return num.trim().replaceAll('-', ''); // 去除多余字符并格式化 }) .filter((num) => num); // 过滤掉空字符串 if (phoneNumbers.length === 1) { window.locations.href='tel:' + phoneNumbers[0]; } else { // 多个号码时显示弹窗 var phoneOptions = phoneNumbers.map(function (num) { return { dial: 'tel:' + num, tel: num, }; }); showPhoneDialog({ title: '联系' + brandName, desc: '请选择一个号码进行拨号', phones: phoneOptions, }); } }); //展示商务、客服二维码 $(document).on('click', '.showQr', function () { showQrcodeDialog({ title: $(this).data('title'), desc: $(this).data('desc'), codeurl: $(this).data('url'), }); }); //分享品牌海报 $(document).on('click', '#showBrandPoster', function () { importJs('poster', function () { poster.showLoading('收集数据中...'); if (typeof baseInfo.idenid === 'string') { baseInfo.idenid = JSON.parse(baseInfo.idenid); } var phoneNumbers = baseInfo.phones .split(/[\s,;、/]+/) .map(function (num) { return num.trim().replaceAll('-', ''); // 去除多余字符并格式化 }) .filter((num) => num); // 过滤掉空字符串 //只显示第一个电话号码 if (phoneNumbers.length > 1) { baseInfo.phones = phoneNumbers[0]; } if ( baseInfo.idenid.indexOf('4') > -1 || baseInfo.idenid.indexOf(4) > -1 ) { poster.generate('vpinpai', baseInfo); } else { poster.generate('pinpai', baseInfo); } }); }); //投票 $(document).on('click', '#voteList .like', function () { _this = $(this); let url = '/tp/api/voteBrand'; var cid = $(this).data('cid'); $.post(url, { classId: cid, brandId: brandId }, function (e) { console.log(e); if (e.code == 200) { if (StorageUtil.add(voteKey, cid)) { console.log('已投票成功'); _this.addClass('liked').removeClass('like'); } else { console.log('投票存储失败'); } } }); }); //点赞 $(document).on('click', '#showLike', function () { if ($(this).hasClass('like')) { toast('你已经点赞过了'); return; } $(this).addClass('like'); $.post( apiHost + '/addTicket', { typeid: 4, table: 'pinpai', aid: '341974' }, function (e) { toast(e.msg); if (e.code == 200) { StorageUtil: add(likedBrandKey, brandId); } }, ); }); //投票规则 $(document).on('click', '#show_vote_rules', function () { showVoteDialog({ title: '投票规则说明', desc: `
投票是网民自发行为,投票结果仅供参考,不代表本网站支持认可,投票数据可能会延后几小时显示,投票无截止日期,若组织恶意刷票会被系统自动清除。
1、为保证公平、公正的投票环境,24小时内,同一IP地址只能对同一品牌的同一行业投票一次,可以对同一品牌的不同行业分别投票一次,可以同时对多个品牌投票。
2、为了避免刷票和恶意组织投票,一个品牌每日限制票数为5000票。
3、投票有固定截止时间,每个行业的品牌投票,品牌网会每年清零,并重新启动和计算投票。
`, }); }); // 产品案例:自动滚动 new Swiper('#productCase>.swiper-container', { slidesPerView: 'auto', direction: 'horizontal', // 垂直/横向切换选项 loop: true, // 循环模式选项 autoplay: { delay: 3000, disableOnInteraction: false, }, }); // 品牌详情:标签是否展示展开 function showTagOptionBtn() { var tagOutEl = $('.brand-rz-tag').height(); var innerEl = $('.brand-rz-tag ul').height(); if (innerEl > tagOutEl + 5) { $('.brand-rz-tag .option-btn').show(); } else { $('.brand-rz-tag .option-btn').hide(); } } showTagOptionBtn(); // 品牌详情:产品更多 function showProductMore() { var tagOutEl = $('#industryDispp .pp-list').height(); var innerEl = $('#industryDispp .list-cont').height(); if (innerEl > tagOutEl + 12) { $('#industryDispp .more').css({ display: 'inline-flex', }); } else { $('#industryDispp .more').css({ display: 'none', }); } } showProductMore();