APP推广合作
联系“鸟哥笔记小乔”
数据分析必须懂的假设检验
2017-05-09 13:17:00

假设检验,也就是大名鼎鼎的AB Testing。俗话说得好,再优秀的产品经理也跑不过一半AB测试。

抽样

数据分析中,虽然数据越多越齐越好,可是受限于各类因素的制约,我们并不能获取全部的数据。比如Excel的性能限制,比如数据库不支持大文件导出、或者是无法全量进行的用户调研等。

抽样是一种应对方法,通过样本来推断总体,抽样结果提供的仅仅是相应总体特征的估计,「估计」这一点很重要。

抽样有很多方式,样本首要满足随机性。比如进行社会访谈,你不能只选择商场人流区,因为采访到的人群明显是同一类人群,反而会遗漏郊区和乡镇的人群,遗漏宅男,遗漏老人。

互联网产品中,抽样也无处不在,大名鼎鼎的AB测试就是一种抽样,选取一部分人群验证运营策略或者产品改进。通常筛选用户ID末尾的数字,比如末尾选择0~4,于是抽样出了50%的用户,这既能保证随机性,也能保证控制性。

毕竟抽样的目的是验证和检验,需要始终保证用户群体的完全隔离,不能用户一会看到老界面,一会看到改进后的新界面。以上也适用于推荐算法的冠军挑战,用户分群等。

至于放回抽样,分层抽样,在互联网的数据分析中用不太到,这里就略过了。

点估计

既然我们已经知道如何选择一个样本,接下来需要从样本推断总体。

列举一个场景。产品和运营人员每周都会进行一次用户调研,调研随机抽取30位用户对产品进行打分,分数0~10。根据历史数据计算出平均7.5分,标准差为1分。

现在的问题是,用户调研能否反应一些产品的状况?比如发布新版本,或者做了营销活动后,怎么判断是正面影响还是负面?假设本月产品经理们发布了一次新版本,这次调研抽取30位用户平均评分是7.3,究竟是正常的波动还是做糟糕了?

在统计学中,把总体的平均值标准差等称为总体参数,把样本的种种指标称为点估计量。s是样本标准差,σ是总体标准差。n是样本,N是总体。

点估计在原有的符号上加横线表示,比如样本均值,念做x拔(打出这个字符麻烦,我简称为拔了)。

x拔是样本均值,现实中不可能保证每次调研的数据都是一致的,假设将抽样过程一而再,再而三的进行下去,那么调研获得的平均分也是波动的。此时,样本均值x拔是一个随机变量,称它的概率分布为x拔的抽样分布。

每次抽样得出的不同均值,必然会有一个期望值,E(x拔) = u,E(x拔)就是所有大量抽样的可能值的均值。对简单随机抽样,我们可以认为其数学期望等于u总体均值。当点估计量的期望值等于总体参数时,称为无偏估计。

当样本量占总体5%以上时,有求样本标准差公式如下:


当样本量占总体5%以下时,公式可以简化成:


利用上述的两个公式,可以计算出样本的标准差。回到用户调研的问题,它的总体均值为7.5,因为调研的用户量肯定小于总体5%,于是能求出样本的标准差为0.18。

上述数学期望和标准差的计算适用于所有总体,可如果想要知道具体的概率呢?比如分数小于等于7.3的可能性?如果是10%,那么说明这是稀少的情况,产品的改版未必尽如人意。如果是90%,说明这是数据的正常波动。

x拔作为概率分布,也非为正态分布和非正态分布。根据统计学中的中心极限定理,当样本数足够时(n>30),x拔的抽样分布可近似于正态分布。

只要是正态分布就好办了,把问题转换成标准正态分布的概率求解。调研样本评分x=7.3分,标准差σ为0.18。总体均值u为7.5分。


z = (7.3-7.5)/0.18 = -1.11。于是P(x<=7.3)=P(z<=-1.1) = 13.3%。上述结果说明,本次抽样得到7.3分(或者更低)的概率为13.3%,产品人员或许可以相信,这次改版并不好。

通过抽样估算总体,它的概率计算是以样本标准差作为依据的,换言之,如果样本标准差变化,则概率一定变化。而样本标准差和样本容量n息息相关。如果调研用户数是100位,那么哪怕其他数字没变化,最终概率也会变成2.2%。这是样本容量增加,均值的标准差减少了误差。

区间估计

点估计是用于估计总体参数的样本统计量,我们不可能通过点估计就给出总体参数的一个精确值,更稳妥的方法是加减一个边际误差,通过一个区间值来估计。

上文的用户调研案例,已经知道了总体均值和标准差。可是它的总体均值也只是通过历次调研作出的假设,并不能反应产品所有用户的评价。一个更实际的应用是,如何通过一次调研来计算用户的总体评价。这是反其道而行之。

通过调研的历史数据,已经知道了用户打分的标准差是1。最近产品人员进行了一次大规模的调研,访问了200位用户,得到样本均值7.5分。现在需要计算总体均值的区间。

通过点估计公式,可以得出样本标准差为0.07。在正态分布的经验公式中,已知任何正态分布的随机变量都有95%的值落在均值附近1.96个标准差以内。因此x拔的值一定有95%落在均值u的1.96个标准差以内。

此时,1.96个标准差等于1.96*0.07 = 0.13。利用总体均值的区间估计公式:


将数据代入:


这里多出了一个新的符号Zσ/2,称之为置信水平,之所以除2是因为正态分布左右对称。它代表的是「随机变量都有95%的值落在均值附近1.96个标准差以内」,即均值有95%的概率落在这个区间内,也叫做95%置信水平。推广开来,也有90%置信水平,99%置信水平等。

1.96是95%置信水平的Zσ/2值,我在上文已经求出边际误差为0.13,最后加入平均值得到答案7.36~7.64,于是可以说,通过调研样本均值估计,总体用户的打分有95%的概率在7.36~7.64之间。我们把[7.36,7.64]叫做置信区间。

大家可能也已经猜出来了,为了获得更高的置信水平,必然会得到更宽的置信区间。比如我假设一个置信区间是[7,8],那么它的置信度肯定无限接近100,因为它几乎囊括了所有的可能。如何选择置信水平和区间,是数据分析中的要点之一。

区间估计中还有一种常见情况,即σ未知,上文的案例我们知道了总体的标准差,如果标准差也不知道呢?毕竟案例也只是以历史调研数据假设了标准差,未必反应了用户真实的情况。于是再给出一个新的问题,访问了200位用户,得到样本均值7.5分,标准差为2,那么总体均值是多少?

通过样本标准差估计总体标准差,总体均值是以t分布(上文对应的叫做z分布)的概率分布为依据。t分布假设抽样总体满足正态分布,但是非正态分布中,也是能用t的,效果不错。

t分布依赖一种叫自由度df的的参数。与标准正态分布曲线相比,df越小,t分布曲线愈平坦;df愈大,t分布曲线愈接近正态分布曲线,当df=∞时,t分布曲线为标准正态分布曲线。区间估计公式如下:


公式没有大的变化,总体标准差σ变化为样本标准差s,置信水平由t概率表计算。t概率的区间分布,需要自由度和置信水平两个参数。自由度=样本量-1,案例中的自由度为199。然后使用Excel的TINV( )函数计算,当置信水平为95%时,TINV(0.05,199)=1.97。代入公式:


得到区间[7.22,7.77],在总体标准差未知的情况下,可以通过样本均值7.5和标准差2计算总体均值有95%的概率落在7.22~7.77之间。

假设检验

在熟悉掌握点估计和区间估计之后,深入学习假设检验。

何为假设检验?假设检验是对总体参数做一个尝试性的假设,该尝试性的假设称为原假设,然后定义一个和原假设完全对立的假设叫做备选假设。假设检验就是通过样本数据对两个对立假设进行检验。

假设检验有一套成熟的方法论。从参数看,即可以计算平均数,也可以计算比率。从样本看,可以划分为单样本和双样本。单样本是从总体中抽取一部分进行样本均数和总体均数的比较。用户调研就是一个典型的单样本。从假设的条件看,有单侧检验(仅大于或小于的可能性)和双侧(仅不可能,包含大于和小于两种情况)检验。

数据分析中更多的情况是两组样本的比较,譬如男女用户的差异、用户群体的差异、以及产品AB测试的好与坏。因为篇幅原因,案例将重点放在双样本检验中,单样本检验熟悉点估计和区间估计后不难。

回到最开始的案例,当通过调研发现用户对产品评分下降了,接下来得讨论怎么做。产品经理们说:用户都傻兮兮的,它们对产品改版无法作出有效的判断,所以打分不算数,应该用一套更好的判断方法。

这时以产品改版后的活跃相关指标作为标准,其中一半用户不做改变,还是原始功能,成为对照组。另外一半用户体验新功能,为改进组,然后根据一段时间后的表现来判断改版好与不好。

活跃指标怎么设立很大程度影响如何用假设检验。既可以用均值法,即用户平均使用时长,或一段时间窗口内的平均活跃用户数来衡量,也可以用比例法,即某一时间内的活跃率。两者对应不同的公式,这里以平均活跃用户数举例。

假设检验首先需要设立原假设和备选假设,这里很容易犯错。在许多假设检验中,都以备选假设为出现点,它是希望得到支持的结论。因为之前用户调研的评分是下降的,于是检验更希望「拒绝」活跃上升或不变,从而得出下降的结论。

原假设H0:活跃提升或不变;备选假设Ha:活跃下降。如果样本结果得出拒绝H0的结论,那么可以做出Ha为真的推断。

不同的样本量和总体方差使用的检验方法不同,下图是不同情况下使用的检验方法。样本是否大于小于30是因为中心极限定理,在大样本量,且总体方差未知时,使用t检验还是z检验均可,因为t分布近似于z分布。我们使用z检验做双样本均值。


将用户分割出两个群体体验产品功能,原始对照组和改进组都有50000用户。对照组的七日平均活跃数u1=8500,标准差为s1=1250,改进组的七日平均活跃数为u2=8300,标准差s2=1240。当总体标准差未知时,有公式:


计算出z=25.399,远大于1.96,p值无限接近0,几乎不可能发生,也就说明改进组的活跃上升或者等于是个极小概率事件,我们拒绝了原假设,接受了备选假设。若还想深入的查看活跃究竟下降了多少,使用双样本均值计算置信区间:


两个样本均值之差的95%置信区间为[183.566,215.433]。也就是说七日平均活跃数有95%的可能性下降了183~215之间。

假设检验的难点在于诸多知识点和业务的结合使用,限于文章的篇幅,我省略了不少概念点,这块需要大家多练习,比如用曾经文章的练习数据,计算上海和杭州的数据分析师工资均值是否相等,金融的工资是不是比电商的高。实际分析中不会有那么复杂的计算,我知道大家公式看晕了,不论Excel、R或者Python都有简便的函数使用,只要知道结果的符号意义就行了。

作者:秦路
来源:秦路(ID:tracykanc)
运营那些事儿
分享到朋友圈
收藏
收藏
评分

综合评分:

我的评分
Xinstall 15天会员特权
Xinstall是专业的数据分析服务商,帮企业追踪渠道安装来源、裂变拉新统计、广告流量指导等,广泛应用于广告效果统计、APP地推与CPS/CPA归属统计等方面。
20羽毛
立即兑换
一书一课30天会员体验卡
领30天VIP会员,110+门职场大课,250+本精读好书免费学!助你提升职场力!
20羽毛
立即兑换
顺丰同城急送全国通用20元优惠券
顺丰同城急送是顺丰推出的平均1小时送全城的即时快送服务,专业安全,准时送达!
30羽毛
立即兑换
运营那些事儿
运营那些事儿
发表文章43455
热门文章
如何做一个“有态度”的品牌?
公关界007 2020-12-17
​二手市场专业化之下,转转迎来流量败局
倪叔 2021-01-18
尝试自给自足
王智远 2023-07-27
缺乏安全感,怎么办?
王智远 2021-09-27
褚橙的新文案,人间至甜~
文案包邮 2023-07-12
品牌战略到底是什么?
Hanni 2021-07-02
SEO教程:巴郎详解HTML与SEO交集之标签的秘密</div> <div class="readList-tips"> <span class="readList-author">巴郎刊</span> <span class="readList-date">2020-08-07</span> </div> </div> </a> <a href="https://www.niaogebiji.com/article-32880-1.html" class="readList-item"> <img class="readList-item-l" src="https://qnssl.niaogebiji.com/11711599325ff3d440e9d8f7.56850674.jpeg" alt=""> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">用户流失分析的三个误区,你踩雷了吗?</div> <div class="readList-tips"> <span class="readList-author">诸葛io</span> <span class="readList-date">2021-01-07</span> </div> </div> </a> <a href="https://www.niaogebiji.com/article-32879-1.html" class="readList-item"> <img class="readList-item-l" src="https://qnssl.niaogebiji.com/20752303205ff3d5e5f3f837.15868084.jpeg" alt=""> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">2020营销事件:顶流+跨界占榜首,年轻、下沉化成为低成本出圈模板</div> <div class="readList-tips"> <span class="readList-author">QuestMobile</span> <span class="readList-date">2021-01-05</span> </div> </div> </a> <a href="https://www.niaogebiji.com/article-55226-1.html" class="readList-item"> <img class="readList-item-l" src="https://qnssl.niaogebiji.com/catlist_default_pic.png" alt=""> <div class="readList-item-r" style="width: 197px;"> <div class="readList-title">案例拆解:微淼商学院理财训练营</div> <div class="readList-tips"> <span class="readList-author">野生运营社区</span> <span class="readList-date">2020-06-10</span> </div> </div> </a> </div> </div> <!--<div class="hotCompany right-layout" > <div class="hotCompanyTop"> <div class="hotCompanyTopTitle">热门服务商推荐</div> <a href="/pc/resource/esall" target="_blank" class="hotCompanyTopMore">查看更多</a> </div> <div class="hotCompanyListAll clearfix"> <div class="hotCompanyList "> <a href="/esdetail/" class="hotCompanyItem"> <div class="hotCompanyItemT"> <img src="" alt=""> <div > <div class="hotCompanyItemTitle"></div> <div class="hotCompanyItemSummy"></div> </div> </div> <div class="hotCompanyItemB"> <div style="display:flex"> <div class="hotCompanyItemPosition"></div> <div class="hotCompanyItemCate"></div> </div> <div class="score"> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreNum"></div> </div> </div> </a> </div> <div class="hotCompanyList "> <a href="/esdetail/" class="hotCompanyItem"> <div class="hotCompanyItemT"> <img src="" alt=""> <div > <div class="hotCompanyItemTitle"></div> <div class="hotCompanyItemSummy"></div> </div> </div> <div class="hotCompanyItemB"> <div style="display:flex"> <div class="hotCompanyItemPosition"></div> <div class="hotCompanyItemCate"></div> </div> <div class="score"> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreIcon "></div> <div class="scoreNum"></div> </div> </div> </a> </div> </div> <div class="hotCompanyPage"> <div class="pageNum"> <div class="pageNum-item activeNum" ></div> <div class="pageNum-item" ></div> </div> </div> </div>--> <div class="hotFindBox" > <div class="hotFindTitle yellowafter" > <span class="hotFind ">热门标签</span> <a class="lookMore" href="/pc/index/tag">查看更多</a> </div> <div class="hotFindList clearfix"> <a href="/tag/小红书" target="_blank" class="hotList left">小红书</a> <a href="/tag/活动文案" target="_blank" class="hotList left">活动文案</a> <a href="/tag/AI" target="_blank" class="hotList left">AI</a> <a href="/tag/成本" target="_blank" class="hotList left">成本</a> <a href="/tag/引导" target="_blank" class="hotList left">引导</a> <a href="/tag/职场晋升" target="_blank" class="hotList left">职场晋升</a> <a href="/tag/新媒体运营" target="_blank" class="hotList left">新媒体运营</a> <a href="/tag/无印良品" target="_blank" class="hotList left">无印良品</a> <a href="/tag/订阅号" target="_blank" class="hotList left">订阅号</a> <a href="/tag/免费商用" target="_blank" class="hotList left">免费商用</a> </div> </div> <div class="new-question"> <div class="recommReadTitle yellowafter" > <span>推荐回答</span> <a class="lookMore" href="/qa">查看更多</a> </div> <div class="question-list"> <a href="/question/208" class="question-list-item text2"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">小红书排名优化需要怎么做?</span> </a> <a href="/question/337" class="question-list-item text2"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">请问各位大神,什么是运营推广?运营推广要如何做?</span> </a> <a href="/question/345" class="question-list-item text2"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">信息流广告的基本原理是什么?</span> </a> <a href="/question/437" class="question-list-item text2"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">鸟哥笔记的各位大佬能不能分享一些小红书运营模式和思路?</span> </a> <a href="/question/443" class="question-list-item text2"> <span class="question-list-item-dot"></span> <span class="list-item-text text2">小红书有什么运营和上热门技巧吗?</span> </a> </div> </div> <!-- 右侧渠道推荐 --> <div class="alertsBox cooperationBox" style="height: 100%;border-radius:6px;"> <div class="qudaoContent"> <div class="qudaoTitle"> <a href="/zchnlist" class="getMore"> <div class="titleName">渠道推荐</div> <div class="titleMore">查看更多</div> </a> </div> </div> </div> <!-- 右侧合作推荐 --> <div class="alertsBox cooperationBox" style="height: 100%;border-radius:6px;"> <div class="hezuoContent"> <div class="qudaoTitle hezuoTitle"> <a href="/cooplist" class="getMore"> <div class="titleName">合作推荐</div> <div class="titleMore">查看更多</div> </a> </div> <div class="hezuoItemInfos"> <a href="/coopdetail/14389" class="hezuoItemInfo"> <div class="hezuoItem" style="background:#fff"> <img src="https://qnssl.niaogebiji.com/834149015606e67341e3685.34083082.jpeg" alt="" class="hezuoLeftImg"/> <div class="hezuoText"> <div class="hezuoTextTitle">品牌新媒体推广资源供应</div> <div class="hezuoBottom"> <span class="hezuoKey">电商</span> <span class="hezuoKey">全国</span> </div> </div> </div> </a> <a href="/coopdetail/14361" class="hezuoItemInfo"> <div class="hezuoItem" style="background:#fff"> <img src="https://qnssl.niaogebiji.com/15971138005f7fe88de67299.86468721.jpeg" alt="" class="hezuoLeftImg"/> <div class="hezuoText"> <div class="hezuoTextTitle">办公工具类产品,会员互换/联合会员</div> <div class="hezuoBottom"> <span class="hezuoKey">商务</span> <span class="hezuoKey">全国</span> </div> </div> </div> </a> </div> </div> </div> <div class="gzh-box alertsBox" style="height: 178px;"> <img src="/img/gzh-ewm.jpg" alt=""> <a href="https://www.niaogebiji.com/article-644427-1.html" target="_blank" class="linkadv"> <img src="https://qnssl.niaogebiji.com/4280c04e9831f71bc5c3a39adffe5777.png" alt=""> </a> </div> </div> </div> </div> <div class="fixedmc"> <div class="container clearfix" style="width:100%;height:100%"> <div class="left contentLeft" style="background:transparent;width:100%;height:100%;"> <img class="knowtop" src="/img/icon/knowtop.png" alt=""> <div class="knowleftbox"> <img class="knowleft" src="/img/icon/knowleft2.png" alt=""> </div> <div class="knowrightbox"> <img class="knowright" src="/img/icon/knowright2.png" alt=""> </div> </div> </div> </div> <div class="fixedtc qrxz"> <div class="downloadzl_box"> <div class="downloadzl_reason">确认要消耗 羽毛购买 <br/> 数据分析必须懂的假设检验吗?</div> <div class="downloadzl_left downloadzl_klyx">考虑一下</div> <div class="downloadzl_right downloadzl_ljxz" data-aid="15255"><a href="" target="_blank">立即下载</a></div> </div> </div> <div class="fixedtc ymbz"> <div class="downloadzl_box"> <div class="downloadzl_reason">很遗憾,羽毛不足</div> <div class="downloadzl_left downloadzl_klyx" style="margin-top:45px">我知道了</div> <div class="downloadzl_right downloadzl_qzym" style="margin-top:45px"><a class="buttonLink" href="/pc/center/mall">去赚羽毛</a></div> </div> </div> <div class="fixedtc commentRule"> <div style="width: 450px; height: 570px; top: 150px" class="downloadzl_box"> <div style="width: 100%; height: 75px; padding-top: 23px; background: url('/img/comments/rulemodal1@2x.png'); background-size: 100%"> <img style="width: 217px; margin: 0 auto" src="/img/comments/rulemodal2@2x.png" alt=""> </div> <div style="width: 370px; height: 380px; margin: 25px auto; font-size: 14px; color: #333;overflow-y:scroll"> <p>我们致力于提供一个高质量内容的交流平台。为落实国家互联网信息办公室“依法管网、依法办网、依法上网”的要求,为完善跟帖评论自律管理,为了保护用户创造的内容、维护开放、真实、专业的平台氛围,我们团队将依据本公约中的条款对注册用户和发布在本平台的内容进行管理。平台鼓励用户创作、发布优质内容,同时也将采取必要措施管理违法、侵权或有其他不良影响的网络信息。</p> <p><br />一、根据《网络信息内容生态治理规定》《中华人民共和国未成年人保护法》等法律法规,对以下违法、不良信息或存在危害的行为进行处理。<br />1. 违反法律法规的信息,主要表现为:<br />    1)反对宪法所确定的基本原则;<br />    2)危害国家安全,泄露国家秘密,颠覆国家政权,破坏国家统一,损害国家荣誉和利益;<br />    3)侮辱、滥用英烈形象,歪曲、丑化、亵渎、否定英雄烈士事迹和精神,以侮辱、诽谤或者其他方式侵害英雄烈士的姓名、肖像、名誉、荣誉;<br />    4)宣扬恐怖主义、极端主义或者煽动实施恐怖活动、极端主义活动;<br />    5)煽动民族仇恨、民族歧视,破坏民族团结;<br />    6)破坏国家宗教政策,宣扬邪教和封建迷信;<br />    7)散布谣言,扰乱社会秩序,破坏社会稳定;<br />    8)宣扬淫秽、色情、赌博、暴力、凶杀、恐怖或者教唆犯罪;<br />    9)煽动非法集会、结社、游行、示威、聚众扰乱社会秩序;<br />    10)侮辱或者诽谤他人,侵害他人名誉、隐私和其他合法权益;<br />    11)通过网络以文字、图片、音视频等形式,对未成年人实施侮辱、诽谤、威胁或者恶意损害未成年人形象进行网络欺凌的;<br />    12)危害未成年人身心健康的;<br />    13)含有法律、行政法规禁止的其他内容;</p> <p><br />2. 不友善:不尊重用户及其所贡献内容的信息或行为。主要表现为:<br />    1)轻蔑:贬低、轻视他人及其劳动成果;<br />    2)诽谤:捏造、散布虚假事实,损害他人名誉;<br />    3)嘲讽:以比喻、夸张、侮辱性的手法对他人或其行为进行揭露或描述,以此来激怒他人;<br />    4)挑衅:以不友好的方式激怒他人,意图使对方对自己的言论作出回应,蓄意制造事端;<br />    5)羞辱:贬低他人的能力、行为、生理或身份特征,让对方难堪;<br />    6)谩骂:以不文明的语言对他人进行负面评价;<br />    7)歧视:煽动人群歧视、地域歧视等,针对他人的民族、种族、宗教、性取向、性别、年龄、地域、生理特征等身份或者归类的攻击;<br />    8)威胁:许诺以不良的后果来迫使他人服从自己的意志;</p> <p><br />3. 发布垃圾广告信息:以推广曝光为目的,发布影响用户体验、扰乱本网站秩序的内容,或进行相关行为。主要表现为:<br />    1)多次发布包含售卖产品、提供服务、宣传推广内容的垃圾广告。包括但不限于以下几种形式:<br />    2)单个帐号多次发布包含垃圾广告的内容;<br />    3)多个广告帐号互相配合发布、传播包含垃圾广告的内容;<br />    4)多次发布包含欺骗性外链的内容,如未注明的淘宝客链接、跳转网站等,诱骗用户点击链接<br />    5)发布大量包含推广链接、产品、品牌等内容获取搜索引擎中的不正当曝光;<br />    6)购买或出售帐号之间虚假地互动,发布干扰网站秩序的推广内容及相关交易。<br />    7)发布包含欺骗性的恶意营销内容,如通过伪造经历、冒充他人等方式进行恶意营销;<br />    8)使用特殊符号、图片等方式规避垃圾广告内容审核的广告内容。</p> <p><br />4. 色情低俗信息,主要表现为:<br />    1)包含自己或他人性经验的细节描述或露骨的感受描述;<br />    2)涉及色情段子、两性笑话的低俗内容;<br />    3)配图、头图中包含庸俗或挑逗性图片的内容;<br />    4)带有性暗示、性挑逗等易使人产生性联想;<br />    5)展现血腥、惊悚、残忍等致人身心不适;<br />    6)炒作绯闻、丑闻、劣迹等;<br />    7)宣扬低俗、庸俗、媚俗内容。</p> <p><br />5. 不实信息,主要表现为:<br />    1)可能存在事实性错误或者造谣等内容;<br />    2)存在事实夸大、伪造虚假经历等误导他人的内容;<br />    3)伪造身份、冒充他人,通过头像、用户名等个人信息暗示自己具有特定身份,或与特定机构或个人存在关联。</p> <p><br />6. 传播封建迷信,主要表现为:<br />    1)找人算命、测字、占卜、解梦、化解厄运、使用迷信方式治病;<br />    2)求推荐算命看相大师;<br />    3)针对具体风水等问题进行求助或咨询;<br />    4)问自己或他人的八字、六爻、星盘、手相、面相、五行缺失,包括通过占卜方法问婚姻、前程、运势,东西宠物丢了能不能找回、取名改名等;</p> <p><br />7. 文章标题党,主要表现为:<br />    1)以各种夸张、猎奇、不合常理的表现手法等行为来诱导用户;<br />    2)内容与标题之间存在严重不实或者原意扭曲;<br />    3)使用夸张标题,内容与标题严重不符的。</p> <p><br />8.「饭圈」乱象行为,主要表现为:<br />    1)诱导未成年人应援集资、高额消费、投票打榜<br />    2)粉丝互撕谩骂、拉踩引战、造谣攻击、人肉搜索、侵犯隐私<br />    3)鼓动「饭圈」粉丝攀比炫富、奢靡享乐等行为<br />    4)以号召粉丝、雇用网络水军、「养号」形式刷量控评等行为<br />    5)通过「蹭热点」、制造话题等形式干扰舆论,影响传播秩序</p> <p><br />9. 其他危害行为或内容,主要表现为:<br />    1)可能引发未成年人模仿不安全行为和违反社会公德行为、诱导未成年人不良嗜好影响未成年人身心健康的;<br />    2)不当评述自然灾害、重大事故等灾难的;<br />    3)美化、粉饰侵略战争行为的;<br />    4)法律、行政法规禁止,或可能对网络生态造成不良影响的其他内容。</p> <p><br />二、违规处罚<br />本网站通过主动发现和接受用户举报两种方式收集违规行为信息。所有有意的降低内容质量、伤害平台氛围及欺凌未成年人或危害未成年人身心健康的行为都是不能容忍的。<br />当一个用户发布违规内容时,本网站将依据相关用户违规情节严重程度,对帐号进行禁言 1 天、7 天、15 天直至永久禁言或封停账号的处罚。当涉及欺凌未成年人、危害未成年人身心健康、通过作弊手段注册、使用帐号,或者滥用多个帐号发布违规内容时,本网站将加重处罚。</p> <p><br />三、申诉<br />随着平台管理经验的不断丰富,本网站出于维护本网站氛围和秩序的目的,将不断完善本公约。<br />如果本网站用户对本网站基于本公约规定做出的处理有异议,可以通过「建议反馈」功能向本网站进行反馈。<br />(规则的最终解释权归属本网站所有)</p> </div> <div class="iknow_rule" style="width: 193px; height: 42px; line-height: 42px; border-radius: 21px; color: #fff; text-align: center; background: linear-gradient(17deg,rgba(255,131,85,1),rgba(255,168,44,1));margin: 25px auto; cursor: pointer">我知道了</div> </div> </div> <div class="fixedtc ans_correct"> <div class="downloadzl_box downloadzl_box2"> <img style="margin-top: 0; width: 16px; height: 16px; position: absolute; top: 25px; right: 16px; cursor: pointer" class="modalclose" src="/img/index/dt_close.png" alt=""> <img src="/img/index/detail_correct.png" alt=""> <div class="downloadzl_reason downloadzl_reason2">恭喜你~答对了</div> <div class="downloadzl_ym">+5羽毛<img src="/img/index/feather.png" alt=""></div> <div style="margin: 20px auto; float: none; width: 165px;" class="downloadzl_right downloadzl_wzdl"><a href="/pc/center/mall">前往领取更多羽毛</a></div> </div> </div> <div class="fixedtc ans_error"> <div class="downloadzl_box downloadzl_box2"> <img style="margin-top: 0; width: 16px; height: 16px; position: absolute; top: 25px; right: 16px; cursor: pointer" class="modalclose" src="/img/index/dt_close.png" alt=""> <img src="/img/index/detail_error.png" alt=""> <div class="downloadzl_reason downloadzl_reason2">下一次认真读哦</div> <div style="margin: 20px auto; float: none; width: 165px;" class="downloadzl_right downloadzl_wzdl downloadzl_klyx"><a href="/pc/center/mall">前往领取更多羽毛</a></div> </div> </div> <div class="fixedtc newshow"> <div class="newBox"> <img class="newBox_img" src="/img/index/newshow.png" alt=""> <img class="newBox_close" src="/img/index/newshow_close.png" alt=""> </div> </div> <div class="fixedtc cointc"> <div class="jrdkBox"> <img style="width: 16px; height: 16px; position: absolute; top: 25px; right: 16px; cursor: pointer" class="modalclose" src="/img/index/dt_close.png" alt=""> <img class="jrdkBox_gif" src="/img/index/point_ym.gif" alt=""> <div class="jrdkBox_reason jrdkBox_reason2">成功推荐给其他人</div> <div class="jrdkBox_ym">+ 10羽毛</div> <div style="margin: 20px auto; float: none; width: 165px;" class="jrdkBox_wzdl iknow_cointc curp downloadzl_right"><a href="/pc/center/mall">前往领取更多羽毛</a></div> </div> </div> <div class="featherselection_fixedmc"> <a class="gologin" href=""><img src="/img/index/go_login.png" alt=""></a> </div> <!-- 评论成功提示 --> <div class="fixedtc comment_succ"> <div class="jrdkBox" style="height: 245px; font-size: 16px;"> <img style="width: 16px; height: 16px; position: absolute; top: 25px; right: 16px; cursor: pointer" class="modalclose" src="/img/index/dt_close.png" alt=""> <div style="width: 340px; margin: 45px auto 20px; font-size: 16px" class="jrdkBox_reason">评论成功且进入审核!审核通过后,您将获得10羽毛的奖励。分享本文章给好友阅读最高再得15羽毛~</div> <div style="text-align: center; margin-bottom: 32px"> <span>(羽毛可至</span> <span class="comment_succ_mall" style="color: #FA8735; text-decoration: underline; cursor: pointer">"羽毛精选"</span> <span>兑换礼品)</span> </div> <div class="jrdkBox_wzdl curp goshare buttonLink">去分享</div> </div> </div> <!-- 分享弹窗 --> <div class="fixedtc sharemodal"> <div class="jrdkBox"> <img style="width: 16px; height: 16px; position: absolute; top: 25px; right: 16px; cursor: pointer" class="modalclose" src="/img/index/dt_close.png" alt=""> <div style="width: 320px; margin: 60px auto;"> <div style="text-align: center; width: 120px; height: 140px; float: left"> <div style="width: 120px; height: 120px; margin-bottom: 5px" id="article_code"></div> <div>好友微信扫一扫</div> </div> <div onclick="myCopy()" style="text-align:center; width: 120px; height: 140px; float: right; cursor: pointer"> <img style="width: 120px; height: 120px; margin-bottom: 5px" src="/img/index/point_fz.png" alt=""> <div>复制链接</div> </div> </div> </div> </div> <div class="advManager"> <img class="advManagerClose" src="/img/resource/bg-advmanager-2.png" alt=""> <img class="advManagerImg" src="/img/resource/bg-advmanager-1.gif" alt=""> </div> <!-- 引流 --> <div class="kf1v1" style="display:none"> <div class="kf1v1Content"> <div class="kf1v1ContentTitle"> <div class="kf1v1TopL"> <div class="kf1v1TopLTitle">顾问推荐营销服务</div> <div class="kf1v1TopLTips">帮你推荐合适的营销服务,专人服务,限时免费体验!</div> </div> <img class="kf1v1TopR" src="/img/resource/icon-1v1-close.png" alt=""> </div> <div class="kf1v1Contain"> <div class="kf1v1Form"> <div class="kf1v1TopGroup"> <img class="kfIcon" src="/img/resource/icon-1v1-kf.png" alt=""> <div class="kfTalk">我是企服顾问 小甜甜,为您提供<strong>免费的、1对1</strong>的营销匹配服务,回答我几个小问题,让我开始为您找合适的营销服务商~</div> </div> <div class="kf1v1GroupList"> <div class="kf1v1Group"> <div class="kf1v1GroupLable">您找营销服务商主要用来做什么?</div> <textarea class="kf1v1GroupText" placeholder="您找营销服务商主要用来做什么?" name="kf1v1GroupText" id="" cols="30" rows="10"></textarea> </div> <div class="kf1v1Group"> <div class="kf1v1GroupLable">找到合适的服务商后如何联系您?</div> <input class="kf1v1GroupPhone" name="kf1v1GroupPhone" maxlength="11" type="text" placeholder="请输入您的常用手机号码"> <input class="kf1v1GroupSms" name="kf1v1GroupSms" maxlength="4" type="text" placeholder="请输入验证码"> <div class="kf1v1GroupBtn" onclick="sendSms()" data-enable="true">发送验证码</div> </div> <div class="kf1v1SubmitBtn">帮我推荐服务商</div> </div> </div> <!-- 右侧 --> <div class="kf1v1ContainR"> <div class="kf1v1RuleItem"> <img class="kf1v1RuleIcon" src="/img/resource/icon-1v1-step1.png" alt=""> <div class="kf1v1RuleR"> <div class="kf1v1RuleTitle">信息收集</div> <div class="kf1v1RuleTip">通过简单的几个问题收集您的信息</div> </div> </div> <div class="kf1v1RuleItem"> <img class="kf1v1RuleIcon" src="/img/resource/icon-1v1-step2.png" alt=""> <div class="kf1v1RuleR"> <div class="kf1v1RuleTitle">精准查找</div> <div class="kf1v1RuleTip">企服顾问根据您的需要和情况,精准查找最适合您的服务商</div> </div> </div> <div class="kf1v1RuleItem"> <img class="kf1v1RuleIcon" src="/img/resource/icon-1v1-step3.png" alt=""> <div class="kf1v1RuleR"> <div class="kf1v1RuleTitle">专人服务</div> <div class="kf1v1RuleTip">找到合适的服务商后,主动联系您回复服务商详情</div> </div> </div> </div> </div> </div> </div> <textarea name="" id="text" cols="30" rows="10" style="position:absolute;left:-9999999999999px;"></textarea> </div> <!-- <div style="height: 140px; background: #f7f7f7; position: relative; z-index: 1"></div> --> <div style="z-index: 1"> <style> html,body{ min-width:1280px; } .gov_item_box{ padding-top:10px; } .gov_item { display: inline-block; border: 1px solid #ddd; margin-left: 8px; padding-right: 1em; height: 30px; line-height: 30px; color: #666; font-size: 12px; cursor: pointer; overflow: hidden; background:#f5f5f5; } .gov_item1{ margin-left:0; } .gov_item i { float: left; background: url('/img/gov_icon.png') no-repeat; } .gov_item1 i { width: 17px; height: 15px; background-position: -50px 0; margin: 7px 8px 0 6px; } .gov_item3 i { width: 17px; height: 18px; background-position: -50px -100px; margin: 7px 3px 0 8px; } .gov_item4 i { width: 19px; height: 19px; background-position: -50px -150px; margin: 5px 6px 0; } .gov_item5 i { width: 23px; height: 23px; background-position: -50px -200px; margin: 2px 6px 0 7px; } .gov_item2 i { width: 17px; height: 19px; background-position: -50px -50px; margin: 5px 10px 0 8px; } .footerItem:hover .gap img { opacity: 0.01; } .footerItem .gap:hover img { opacity: 1; } .featherselection_fixedmc{ display:none; } .app_download_code1 { /* background-image: url("/img/aboutus/xms3.png"); */ width: 102px; height: 105px; background-size: contain; position:absolute; left: -23px; top: 83px; padding: 5px; background: #fff; } </style> <div class="footer mobileHide"> <div class="footerLi"> <div class="footerLi1"> <div class="footerList clearfix"> <img class="footer_pic1" src="/img/index/footer_pic1.png" alt=""> <img class="footer_pic2" src="/img/index/footer_pic2.png" alt=""> <div class="footerItem footerItemContact2"> <p class="footerTitle">公司简介</p> <p><a style="line-height: 30px; float:left" href="/pc/index/aboutus" target="_blank">鸟哥笔记-讲述营销的故事!始创于2010年,专注于营销界专业知识分享、营销资源对接,赋能营销从业者。内容涵盖广告、营销、运营、推广、品牌等细分领域知识及资源对接服务<span style="cursor: pointer;display:inline;margin-left:2px;" href="/pc/index/aboutus">查看更多></span></a></p> </div> <div class="footerItem footerItemAbout"> <p class="footerTitle">关于</p> <ul class="space"> <p><a href="/pc/index/aboutus">关于我们</a></p> <p><a href="https://www.lagou.com/gongsi/j123114215.html">加入我们</a></p> <p><a href="http://niaogebj.mikecrm.com/FVEhsoN">反馈举报</a></p> <p><a class="hover" href="https://www.niaogebiji.com/pc/index/contactus">联系我们</a></p> <div class="app_download_code1" style="display:none"> <img style="width:100%;height:100%;" src="/img/aboutus/xms3.png" alt=""> </div> </ul> <ul> <p><a href="https://www.niaogebiji.com/pc/index/copyright">《版权及免责声明》</a></p> <p><a href="https://www.niaogebiji.com/pc/index/agreement">《用户协议》</a></p> <p><a href="https://www.niaogebiji.com/pc/index/privacy">《隐私协议》</a></p> <p> <a href="https://www.niaogebiji.com/pc/marketing/home">商务合作</a></p> </ul> </div> <div class="footerItem nav_module"> <div class="footerTitle">网站导航</div> <nav> <ul> <li><a href="/">首页</a></li> <li><a href="/bulletin">今日事</a></li> <li> <a href="/cat/1">运营</a> <ul class="childUrl"> <li><a href="/cat/103">新媒体</a></li> <li><a href="/cat/101">用户运营</a></li> <li><a href="/cat/102">活动运营</a></li> <li><a href="/cat/104">数据运营</a></li> </ul> </li> <li> <a href="/cat/2">推广</a> <ul class="childUrl"> <li><a href="/cat/105">ASO</a></li> <li><a href="/cat/106">SEM</a></li> <li><a href="/cat/107">信息流</a></li> <li><a href="/cat/108">营销推广</a></li> <li><a href="/cat/114">品牌策略</a></li> </ul> </li> </ul> <ul> <li> <a href="/cat/3">综合</a> <ul class="childUrl"> <li><a href="/cat/109">行业动态</a></li> <li><a href="/cat/112">课程活动</a></li> <li><a href="/cat/110">职场成长</a></li> <li><a href="/special">干货专题</a></li> </ul> </li> <li><a href="/author">专栏</a></li> <li><a href="/pc/index/tag">分类标签</a></li> <li><a href="/pc/resource/esall">服务商大全</a></li> <!-- <li><a href="/cat/111">资料</a></li> --> <!-- <li><a href="/academy/#/academy/course">学院</a></li> --> </ul> </nav> </div> <!--<div class="footerItem download_module"> <div class="footerTitle">下载APP</div> <img class="code" src="/img/index/app_download_code3_1.jpg" alt=""> </div>--> <div style="height: 15px"></div> </div> </div> <div class="footerBottom"> <p> <span>Powered by QINGMOB PTE. LTD. © 2010-2025 上海青墨信息科技有限公司 </span> <a href="https://beian.miit.gov.cn/" target="_blank">沪ICP备2021034055号-6</a> </p> <div class="gov_item_box"> <a target="_blank" href="https://www.12377.cn/" class="gov_item gov_item1"><i></i><span>国家互联网举报中心</span></a> <a target="_blank" href="https://www.shjbzx.cn/" class="gov_item gov_item3"><i></i><span>上海互联网举报中心</span></a> <a target="_blank" href="http://www.cyberpolice.cn/" class="gov_item gov_item5"><i></i><span>网络110报警服务</span></a> <a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=31011002005551" class="gov_item gov_item2"><i></i><span>沪公网安备31011002005551号</span></a> </div> </div> </div> </div> <div class="featherselection_fixedmc mobileHide"> <img class="go_close mobileHide" src="/img/index/ydgb.png" alt=""> <a class="gologin mobileHide" href="javascript:;"><img src="/img/index/go_login.png" alt=""></a> </div> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?b287ed19e06795af7a2b7f4609d48b1d"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <script> function openWin() { let url = 'http://p.qiao.baidu.com/cps/chat?siteId=13189166&userId=10076563&cp=www.niaogebiji.com&cr=web1&cw=web1' window.open(url, 'newwindow', 'height=600, width=800, top=30%,left=30%, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no'); } $(function(){ $(".footerItem .hover").mouseover(function() { $(".app_download_code1").show() }) $(".footerItem .hover").mouseout(function() { $(".app_download_code1").hide() }) // var login_url = "//" var is_login = "0"; $('.go_close').click(function () { $('.featherselection_fixedmc').hide() }) $('.featherselection_box').on('click',".featherselection_list",function () { if(is_login == 0){ // loginInit(); $('.featherselection_fixedmc').show() }else{ window.open('/pc/center/mall') } }) $('.featherselection').on('click',".featherselection_titleimg",function () { if(is_login == 0){ loginInit(); $('.featherselection_fixedmc').hide() }else{ window.open('/pc/center/mall') } }) $('[data-src]').click(function(){ var $this = $(this); var src = $this.data('src'); $this.addClass('on').siblings().removeClass('on'); $this.parent().next().css('background-image', 'url('+src+')'); }); var oldWidth; $('.moreFriendLink').click(function(){ oldWidth = $('.friendLink').width(); $('.friendLink').width(410).find('li').addClass('compactLink').show(); $(this).parent().hide(); }); $('.lessFriendLink').click(function(){ $('.friendLink').width(oldWidth).find('li').removeClass('compactLink').show(); $('.extraLink').hide(); }) }); $('.headMain>li').mouseenter(function () { $(this).addClass('active').siblings().removeClass('active'); $(this).siblings().children('.navItem').hide(); $(this).children('.navItem').show(); }).mouseleave(function () { $(this).removeClass('active'); $('.navItem').hide(); $('.current').children('.navItem').show(); }); $('button.search').click(function(){ window.open("https://aso.niaogebiji.com/index/search?wd="+encodeURIComponent($('input.name').val()),"newwindow"); }); $('input.name').keydown(function(e){ if(e.keyCode==13){ window.open("https://aso.niaogebiji.com/index/search?wd="+encodeURIComponent($('input.name').val()),"newwindow"); } }); $('.gologin').click(function(){ $('.featherselection_fixedmc').hide(); loginInit(); }) $('.headerBtn').click(function () { //搜索文章或问吧 }); </script> <script> //bi统计uv、pv // $.ajax({ // type:'POST', // url:'/index/bistat/', // dataType:'json', // data:{}, // success: function(result){ // }, // error: function(result, status){ // } // }); </script> <script> if($('a:last').html()=='站长统计'){ $('a:last').hide() } </script> <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </html> </div> <script src="/js/main.js"></script> <script src="https://static.jmlk.co/scripts/dist/jmlink.min.js"></script> <script src="/js/viewer.js"></script> <script src="/js/js.cookie.js"></script> <script type="text/javascript"> window.onbeforeunload = onbeforeunload_handler; function onbeforeunload_handler(){ } </script> <script> var isLogin = false; var width = 0; let num = $('.articleItem').length; width = num * 182 + num * 16; $('.recArticleItems').css('width', width + 20 + 'px'); (function(){ let doms = Array.from(document.getElementsByClassName('pc_content')) doms.forEach(item => { if(!item.viewer) { new Viewer(item, { navbar: 3, toolbar: {prev: true, next: true}, loading: true, title: false }) } }) // var left = $('.rankingBox').offset().left; // var top = $('.rankingBox').offset().top; // var height = $('.rankingBox').height(); // $('.cooperationFix').css('left',left+'px'); // $('.cooperationFix').css('top',top+height+30+'px'); $('iframe').css('min-width','600px;') })() $(window).scroll(function(){ var top = 0; var resHeight = $('.contentRight').height() + $('.page_top').height()-30 ; console.log($(window).scrollTop(),resHeight) if($(window).scrollTop() > resHeight){ $('.gzh-box').addClass('gzh-fix'); }else{ $('.gzh-box').removeClass('gzh-fix'); } }); // var login_url = "//" var isFavorite = '0' var my_point = '0' var isFollow = '0' var article_point = '5' function showArticlePoint() { $('.article_point').html(article_point!=0?article_point:'暂无') } showArticlePoint() function actionIconLight(isFavorite, my_point) { ///控制action_icon高亮 if(isFavorite != 0) { $('.collect_status1').hide() $('.collect_status2').show() }else { $('.collect_status1').show() $('.collect_status2').hide() } if(my_point != 0) { $('.grade_status1').hide() $('.grade_status2').show() }else { $('.grade_status1').show() $('.grade_status2').hide() } } actionIconLight(isFavorite, my_point) // 收藏图标 $(".action_item1").mouseover(function(){ actionIconLight(1, my_point) }) $(".action_item1").mouseout(function(){ actionIconLight(isFavorite, my_point) }) // 评分图标 $(".action_item2").mouseover(function(){ actionIconLight(isFavorite, 1) }) $(".action_item2").mouseout(function(){ actionIconLight(isFavorite, my_point) }) // 评论图标 $(".action_item3").mouseover(function(){ $('.comment_status1').hide() $('.comment_status2').show() }) $(".action_item3").mouseout(function(){ $('.comment_status1').show() $('.comment_status2').hide() }) // 评分、评论动画 $('.action_item2').click(function() { $('html, body').animate({scrollTop: $('#grade_module').offset().top - 300}, 800) }) $('.action_item3').click(function() { $('html, body').animate({scrollTop: $('#comment_anchor').offset().top - 300}, 800) }) $(function() { Cookies.set('saveuserid',UID, { expires: 365, path: '/' }); var saveuserid = Cookies.get('saveuserid'); if(isFollow === '1') { $('.has_follow_btn').show() $('.not_has_follow_btn').hide() }else { $('.has_follow_btn').hide() $('.not_has_follow_btn').show() } }) $(function() { var top = 0, bot = 0; $(window).on('scroll', function() { top = $(this).scrollTop() setTimeout(() => { bot = top; }, 0); $('.article').each(function(i, e) { if (isBlockBelowInViewport(e)) { if (top <= bot) { //下滚 $('.articleControlBox').addClass('is-fixed').addClass('is-fixed-top').removeClass('is-fixed-bottom') } else { //上滚 $('.articleControlBox').addClass('is-fixed').removeClass('is-fixed-top').addClass('is-fixed-bottom'); } }else { $('.articleControlBox').removeClass('is-fixed').removeClass('is-fixed-top').removeClass('is-fixed-bottom') } }); }); $('.promoteAuthorFocusBtn, .follow_btn').on('click', function(e) { e.preventDefault(); followAuthorArticleDetail(this); }); }); function followAuthorArticleDetail(el) { var uid = UID; if (!uid){///未登录 loginInit(); return } var value = $(el).data('value'); var author_id = $(el).data('author'); var $this = $(el); $.post('/pc/author/follow?author='+author_id+'&value='+(1-value), function (ret) { $this.data('value', 1-value); if (ret.return_code === '0') { if(isFollow === '1') { isFollow = '0' $('.has_follow_btn').hide() $('.not_has_follow_btn').show() }else { isFollow = '1' $('.has_follow_btn').show() $('.not_has_follow_btn').hide() } } else { //// } }, 'json'); } </script> <script> /////// 测一测 下载资料逻辑 $(function() { window.onload = function() { let h = sessionStorage.getItem(window.location.href) if (h) { document.documentElement.scrollTop = parseInt(h);     document.body.scrollTop = parseInt(h); sessionStorage.removeItem(window.location.href) } } var is_mobile = "0"; var is_login = "0"; var is_new_time = false // var ACCOUNT_DOMAIN = '//'; var is_new_user = "0"; var is_downzl = ""; var dl_point = ""; var mypoint = ""; var not_read = "0"; var wzaid = "15255"; var is_yd = true var ans = "" var rightans = "" var is_dl = "0"; if (is_dl == 1) { $('.downBox_button1').hide() $('.downBox_button2').show() } else { $('.downBox_button1').show() $('.downBox_button2').hide() } if (ans == '') { } else { $('.testBox_ansbox_sub').hide() $('.testBox_ansbox_sub2').show() } var is_new_usershow = Cookies.get('usershow'); var clsoeqpshow = Cookies.get('clsoeqpshow'); // console.log(is_new_usershow) if (clsoeqpshow == 'true') { $('.close_box').hide() } $('.close_buttom').click(function() { $('.close_box').hide() Cookies.set('clsoeqpshow', 'true', { expires: 365, path: '/' }); }) setTimeout(() => { is_new_time = true }, 120000); var flag = false $(window).on('scroll', function() { var top = $(this).scrollTop() var boxh = $('.containerBox').height() var wzh = $('.article').height() if (top >= boxh / 3 * 2) { if (is_login == 0 && flag == false) { flag = true // $('.login_url').attr('href', login_url) if (is_mobile != '1') { $('.nologtip').show() showLoginPopup(wzaid) } } } if (is_new_time == true || top >= boxh / 3 * 2) { if (is_new_user == 1 && is_new_usershow != '4') { if (is_new_usershow == undefined) { is_new_usershow = 1 //第一次进来 } else { is_new_usershow = parseInt(is_new_usershow) + 1 //第2次进来 } $('.newshow').show() Cookies.set('usershow', is_new_usershow, { expires: 365, path: '/' }); } } }) $('.showrulebtn').click(function() { ////显示评论规则弹窗 $('.commentRule').show() }) $('.iknow_rule').click(function() { $('.commentRule').hide() }) $('.testBox_ansbox_sub').click(function() { if (is_login == 0) { loginInit(); return 0 } var aid = $(this).data('aid') var value = $('input:radio:checked').val(); // console.log(value) if (value == undefined) { } else { $(this).hide() var correct = rightans $('.testBox_ansbox_sub2').show() answerArticleQa(aid, value, (res) => { let r = JSON.parse(res) if (value == correct) { if (r.return_data.is_show_tip === '1') { $('.ans_correct').css('display', 'inline-block') } } else { $('.ans_error').css('display', 'inline-block') } $('.testBox_ansbox_ans').eq(rightans - 1).children().css('display', 'inline-block') }) } }) $('.downBox_button1').click(function() { if (is_dl == 1) { $('.qrxz').show() return 0 } if (parseInt(mypoint) >= parseInt(dl_point)) { $('.qrxz').show() } else { $('.ymbz').show() } }) $('.comment_succ_mall').click(function() { window.location.href = '/pc/center/mall' }) $('.modalclose').click(function() { $('.comment_succ').hide() $('.sharemodal').hide() $('.cointc').hide() $('.ans_correct').hide() $('.ans_error').hide() }) $('.goshare').click(function() { let url = 'https://www.niaogebiji.com/article-15255-1.html' $('#article_code').html('') $('#article_code').qrcode({ width: 120, height: 120, text: url }); $('.comment_succ').hide() $('.sharemodal').show() }) $('.iknow_cointc').click(function() { $('.cointc').hide() }) $('.downloadzl_klyx').click(function() { $('.fixedtc').hide() }) $('.downloadzl_colse').click(function() { $('.fixedtc').hide() closeLoginPopup(wzaid) }) $('.newBox_close').click(function() { $('.newshow').hide() }) $('.downloadzl_ljxz').click(function() { if (is_dl == 1) { return 0 } $('.downBox_button1').hide() $('.downBox_button2').show() var aid = $(this).data('aid') $('.qrxz').hide() dlArticle(aid) }) //展示弹窗: function showLoginPopup(aid) { $.ajax({ url: '/pc/article/showLoginPopup/', data: { aid: aid }, method: 'POST', success: (res) => { // console.log(res) var data = JSON.parse(res) if (data.return_code == '200') { } }, error: (err) => { console.log(err) } }) } //关闭弹窗: function closeLoginPopup(aid) { $.ajax({ url: '/pc/article/closeLoginPopup/', data: { aid: aid }, method: 'POST', success: (res) => { // console.log(res) var data = JSON.parse(res) if (data.return_code == '200') { } }, error: (err) => { console.log(err) } }) } function dlArticle(aid) { $.ajax({ url: '/pc/article/dlArticle/', data: { aid: aid }, method: 'POST', success: (res) => { // console.log(res) }, error: (err) => { console.log(err) } }) } function readArticle(aid) { $.ajax({ url: '/pc/article/readArticle/', data: { aid: aid }, method: 'POST', success: (res) => { // console.log(res) var data = JSON.parse(res) if (data.return_code == '200') { if (data.return_data.is_show_tip == '1') { $('.jrdkBox_reason2').html('每天阅读文章') $('.jrdkBox_ym').html('+ 5羽毛') $('.cointc').show() } } }, error: (err) => { console.log(err) } }) } function answerArticleQa(aid, answer_no, cb) { $.ajax({ url: '/pc/article/answerArticleQa/', data: { aid: aid, answer_no: answer_no }, method: 'POST', success: (res) => { cb(res) /// }, error: (err) => { console.log(err) } }) } }) function adv_click(id) { $.ajax({ type: 'POST', url: '/index/advstat/', dataType: 'json', data: { id:id, type: 2 }, success: function (result) { }, error: function (result, status) { } }); } </script> <script> let midMark = true let bottomMark = true let advBottomMark = true document.addEventListener('scroll', function(event) { let h1 = $('.breadcrumbBoxWrap').height() + $('.rankingBox').height() + $('.download_app_module').height() + 33; //右侧布局区高度-延伸阅读区高度 let h2 = $('.article').height();//文章内容区高度 let h3 = $('.contentLeft').height();//左边整个布局的高度(包括文章内容区) let pageTopHeight = 100; // if(document.body.clientWidth > 750) { ///pc // pageTopHeight = Number($('.page_top').height())+7;//7px是下边距 // if($(event.target).scrollTop() >= h1) { // if($(event.target).scrollTop() >= (h3 -470)) { ///跟着底部上去 // $('.fixedBox').css({ // position: 'absolute', // marginTop: (h3-565) + 'px', // }) // } else { // $('.fixedBox').css({ ///固定在右上角 // position: 'fixed', // top: pageTopHeight + 'px', // bottom: 'auto', // marginTop:0 // }) // } // } else { // $('.fixedBox').css({ ///刚进入页面 // position: 'static', // top: pageTopHeight + 'px', // bottom: 'auto', // marginTop:0 // }) // } // } /////友盟数据统计 let scrollTop = $(event.target).scrollTop() ///滚动距离 if(midMark && scrollTop >= h2/2) { midMark = false // console.log('mid') } if(bottomMark && scrollTop >= h2/6*5) { bottomMark = false // console.log('bottom') } if(advBottomMark && scrollTop >= h2/7*6) { advBottomMark = false // console.log('bottom2') } }, true); </script> <script> $(document).ready(function() { var my_point = 0; var stepW = 24 var description = new Array('1', '2', '3', '4', '5'); var stars = $("#star > li"); var descriptionTemp; $("#showb").css("width", stepW * my_point); stars.each(function(i) { $(stars[i]).click(function(e) { if(my_point > 0) { ///已评分 return } var n = i + 1; var aid = $('.action_item1').data('id'); $("#showb").css({ "width": stepW * n }); descriptionTemp = n; // if(!isLogin){ loginInit(); return false; } $.ajax({ url: '/pc/center/addArticlePoint/', dataType: 'JSON', data: { aid: aid, point: descriptionTemp }, success: function(res) { if (res.return_code === '200') { ///修改悬浮条收藏icon状态 my_point = 1 actionIconLight(isFavorite, my_point) if (res.return_data.is_show_tip_com === 1) { $('.jrdkBox_reason2').html('评分') $('.jrdkBox_ym').html('+ 5羽毛') $('.cointc').show() } article_point = res.return_data.article_point showArticlePoint() } else { if (res.return_code === '1000') { // swal({ // title: res.return_msg, // type: "warning", // showCancelButton: true, // confirmButtonText: "去登录", // cancelButtonText: "取消", // closeOnConfirm: true, // closeOnCancel: true // }, function(isConfirm) { // if (isConfirm) { // window.location.href = login_url; // } // }) loginInit(); } else { swal(res.return_msg); } } } }) return descriptionTemp; }); }); stars.each(function(i) { $(stars[i]).hover( function() { $(".description").text(description[i]); }, function() { if (descriptionTemp != null) { $(".description").text(descriptionTemp); } else { $(".description").text(" "); } } ); }); }); function stopDefault(e) { if (e && e.preventDefault) e.preventDefault(); else window.event.returnValue = false; return false; }; </script> <script> //复制 function myCopy() { let url = 'https://www.niaogebiji.com/article-15255-1.html'; $('#text').html(url) var ele = document.getElementById("text"); ele.select(); document.execCommand("Copy"); alert('复制成功') } $('.fixedmc').on("click", ".knowtop", function() { $('.knowtop').hide() $('.knowleftbox').show() }) $('.fixedmc').on("click", ".knowleft", function() { $('.knowleftbox').hide() $('.knowrightbox').show() }) $('.fixedmc').on("click", ".knowright", function() { $('.knowrightbox').hide() $('.fixedmc').hide() $('html').css("overflow", 'scroll') var num = Cookies.get('numtip'); if (num == undefined) { Cookies.set('numtip', 1, { expires: 365, path: '/' }); } else if (num == 1) { Cookies.set('numtip', 2, { expires: 365, path: '/' }); } else if (num == 2) { Cookies.set('numtip', 3, { expires: 365, path: '/' }); } }) $('.extensionRead_list').on("click", ".extensionRead_list_item", function() { var data = $(this).data(aid) var aid = data.aid var pos; if (data.bindex == 0) { pos = 'read_more_1' } else if (data.bindex == 1) { pos = 'read_more_2' } else if (data.bindex == 2) { pos = 'read_more_3' } $.ajax({ url: '/pc/article/positionCount/', dataType: 'JSON', data: { aid: aid, pos: pos, }, success: function(res) { } }) }) $('.articleControlBox').on("click", ".ljicon", function() { var data = $(this).data(aid) var aid = data.aid var pos = 'copy_button'; $.ajax({ url: '/pc/article/positionCount/', dataType: 'JSON', data: { aid: aid, pos: pos, }, success: function(res) { // console.log(res) } }) }) $('.promoteAuthorSummary').on("click", ".here", function() { var data = $(this).parent().data(aid) var aid = data.aid var pos = 'author_apply'; $.ajax({ url: '/pc/article/positionCount/', dataType: 'JSON', data: { aid: aid, pos: pos, }, success: function(res) { // console.log(res) } }) }) $('.action_item1').click(function() {//收藏 if(!isLogin){ loginInit(); return false; } var title = $(this).data('title'); var aid = $(this).data('id'); $.ajax({ url: '/pc/center/addfavorite/', dataType: 'JSON', data: { id: aid, title: title, type: 1 }, success: function(res) { if (res.return_code === '200') { if (isFavorite == 0) { ///修改悬浮条收藏icon状态 isFavorite = 1 actionIconLight(isFavorite, my_point); } else { ///修改悬浮条收藏icon状态 isFavorite = 0 actionIconLight(isFavorite, my_point) } }else if(res.return_code == '1003') { loginInit(); }else { /// } } }) }) $(function() { var timestamp = (new Date()).getTime(); Cookies.set('timestamp', timestamp, { expires: 365, path: '/' }); var newtime = Cookies.get('timestamp'); var num = Cookies.get('numtip'); if (timestamp - newtime >= 86400000) { // console.log(11) Cookies.set('timestamp', timestamp, { expires: 365, path: '/' }); } // 点赞 var url = window.location.href $("#text").html(url) $('.upButton').click(function(e) { e.preventDefault(); upArticle(this); }); var imgWidth, imgHeight; if (ispc) { $(".article img").each(function(index, value) { imgWidth = $(value).attr('width'); imgHeight = $(value).attr('height'); if (imgWidth) { $(value).css({ 'width': imgWidth, 'height': imgHeight }) } }); } var userImg = ""; var userName = ""; // bindFavBtn($('body'), '///account/login?redirect=//'); var commitFlag = true; var aid = 15255; $('.firstSubmitBtn').click(function() { ///发布评论 var text = $('#first-level-review').val(); $.ajax({ type: 'get', url: '/pc/article/publishcomment', dataType: 'JSON', data: { aid: aid, user: true, cid: '', content: text, title: "数据分析必须懂的假设检验" }, success: function(res) { if (res.return_code == '200') { $('#first-level-review').val(''); $('.comment_succ').show() } else { swal(res.return_msg); } }, error: function() { swal("出错了!", '请求服务器失败', "error"); } }) }); $('.commentList').on('click', '.secondSubmitBtn', function() { var _this = this; var text = $(this).parents('.replyBox').find('textarea').val(); var cid = $(this).parents('.firstItem').data('cid'); $.ajax({ type: 'get', url: '/pc/article/publishcomment', dataType: 'JSON', data: { aid: aid, user: 1, cid: cid, content: text, title: "数据分析必须懂的假设检验" }, success: function(res) { if (res.return_code == '200') { $(_this).parents('.replyBox').hide(); swal('回复成功!您的回复将进入审核阶段'); $(_this).parents('.replyBox').find('textarea').val(''); } else { swal(res.return_msg); } }, error: function() { swal("出错了!", '请求服务器失败', "error"); } }) }); $('.commentList').on('click', '.reply', function() { $(this).parents('.firstItem').find('.replyBox').toggle() }) // $('.weboicon').click(shareWeiboCnzz); // 广告位固定 }) var numPage = 0; var listLength = $('.hotCompanyList').length - 1; $('.pageNum div').click(function () { $(this).addClass('activeNum').siblings().removeClass('activeNum'); numPage = $(this).index(); $('.hotCompanyListAll').animate( { marginLeft: -354 * numPage, }, 300 ); }); // 关闭1v1广告 $('.advManagerClose').click(function () { $('.kf1v1').show(); }); $('.advManagerImg').click(function(){ $('.kf1v1').show(); }) /////1v1对接///// function checkPhone(phone) { ///验证电话号码 return /^1[3456789]\d{9}$/.test(phone); } function count_down(param) { $(`.${param}`).data('enable', 'false'); $(`.${param}`).text('倒计时' + count + 's'); if (count == 0) { $(`.${param}`).data('enable', 'true'); $(`.${param}`).text('获取验证码'); count = 59; clearInterval(intervalid); } count--; } //发送验证码 function sendSms() { var enable = $(`.kf1v1GroupBtn`).data('enable'); if (enable == 'false') { return; } $(`.kf1v1GroupBtn`).data('enable', 'false'); var phone = $('.kf1v1GroupPhone').val(); if (!checkPhone(phone)) { $(`.kf1v1GroupBtn`).data('enable', 'true'); swal('请填写正确的手机号'); return; } $.ajax({ url: '/index/getCode', // 进行二次验证 type: 'post', dataType: 'json', data: { type: 'pc', mobile: phone, }, success: function (data) { if (data.return_code == 200) { intervalid = setInterval(() => { count_down('kf1v1GroupBtn'); }, 1000); } else { $(`.kf1v1GroupBtn`).text('获取验证码'); $(`.kf1v1GroupBtn`).data('enable', 'true'); swal(data.return_msg); } }, error: function (data) {}, }); } // 关闭1对1 $('.kf1v1TopR').click(function () { $('.kf1v1GroupText').val(''); $('.kf1v1GroupSms').val(''); $('.kf1v1GroupPhone').val(''); $('.kf1v1').hide(); }); //提交 $('.kf1v1SubmitBtn').click(function () { var kf1v1GroupText = $('.kf1v1GroupText').val(); if (kf1v1GroupText == '') { swal('请填写找营销服务商主要用来做什么'); return false; } var kf1v1GroupSms = $('.kf1v1GroupSms').val(); var kf1v1GroupPhone = $('.kf1v1GroupPhone').val(); if (kf1v1GroupSms == '' && kf1v1GroupPhone == '') { swal('请填写手机和验证码'); return false; } $.ajax({ url: '/pc/resource/adviser', data: { mobile: kf1v1GroupPhone, code: kf1v1GroupSms, content: kf1v1GroupText }, method: 'POST', dataType: 'json', success: (res) => { if (res.return_code == 1018) { swal('操作过于频繁,请稍候再试。'); } if (res.return_code == 1004) { swal('验证码错误。'); } else if (res.return_code == 200) { swal('操作成功。请等待工作人员审核。'); $('.kf1v1GroupText').val(''); $('.kf1v1GroupSms').val(''); $('.kf1v1GroupPhone').val(''); $('.kf1v1').hide(); } else { swal('参数错误。'); } }, error: (err) => { console.log(err); }, }); }); /////1v1对接///// </script>