You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
chen/keshe/file/['加菲猫家族'].html

404 lines
115 KiB

6 months ago
<!DOCTYPE html>
<html class=" " lang="zh">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta name="baidu-site-verification" content="lxgZbG0NVn" />
<meta name="lx:category" content="movie">
<meta name="lx:autopv" content="off"/>
<meta name="share:wechat:message:title" content="《加菲猫家族》32335人想看2024-06-01 09:00中国大陆上映" />
<meta name="share:wechat:message:desc" content="简介|暌违18年加菲猫全新动画大电影重返内地大银幕
加菲猫由克里斯·帕拉特配音这只全球闻名、厌恶星期一、对千层面情有独钟的宅猫正准备开启一段疯狂的户外奇遇在与他失散多年的亲生猫爸——不羁的流浪猫维克由塞缪尔·L·杰克逊配音意外重聚后加菲猫和他的狗狗伙伴欧迪被迫告别了安逸舒适的生活卷入了一场搞笑又充满刺激的大冒险而一直娇生惯养的加菲猫将在这次冒险之旅中蜕变成为上天入地的“猫猫特工”带着家族直面挑战、化解危机" />
<meta name="share:wechat:message:icon" content="https://p0.pipi.cn/mmdb/54ecde87b530faecd887a9594b90e05caa15d.jpg?imageView2/1/w/118/h/166" />
<meta name="share:wechat:message:link" content="https://m.maoyan.com/asgard/movie/1285798" />
<meta name="share:wechat:timeline:title" content="《加菲猫家族》32335人想看2024-06-01 09:00中国大陆上映" />
<meta name="share:wechat:timeline:icon" content="https://p0.pipi.cn/mmdb/54ecde87b530faecd887a9594b90e05caa15d.jpg?imageView2/1/w/118/h/166" />
<meta name="share:wechat:timeline:link" content="https://m.maoyan.com/asgard/movie/1285798" />
<link rel="dns-prefetch" href="//p0.meituan.net"/>
<link rel="dns-prefetch" href="//www.dpfile.com"/>
<link rel="dns-prefetch" href="//lx.meituan.net"/>
<link rel="dns-prefetch" href="//lx1.meituan.net"/>
<link rel="dns-prefetch" href="//plx.meituan.com"/>
<link rel="canonical" href="https://maoyan.com/films/1285798" />
<title>加菲猫家族_购票_剧情介绍_演职人员_图集-猫眼电影</title>
<meta name="description" content="暌违18年加菲猫全新动画大电影重返内地大银幕
加菲猫(由克里斯·帕拉特配音),这只全球闻名、厌恶星期一、对千层面情有"/>
<meta name="keywords" content="加菲猫家族,克里斯·帕拉特,塞缪尔·L·杰克逊,汉娜·沃丁厄姆,马克·丁达尔,选座购票,剧情介绍"/>
<link rel="stylesheet" href="//obj.pipi.cn/festatic/asgard/resources/pages/movie/vendors-7ccaf0e5.css">
<link rel="stylesheet" href="//obj.pipi.cn/festatic/asgard/resources/pages/movie/movie-26fd13d8.css">
<script>
try {
// i版内嵌到快应用中ua会携带maoyan关键字会导致appnm上报错误所以需要把ua的关键字去掉
if (window.navigator && window.navigator.userAgent && window.navigator.userAgent.indexOf('com.maoyan.movie.quickapp')) {
let ua = window.navigator.userAgent;
Object.defineProperty(window.navigator, 'userAgent', {
value: ua.replace(/\.maoyan/, ''),
writable: false,
});
}
} catch (err) {}
</script>
<script>
"use strict";!function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"_Owl_",a=window;a[e]||(a[e]={isRunning:!1,isReady:!1,preTasks:[],dataSet:[],pageData:[],disableMutaObserver:!1,observer:null,use:function(e,t){this.isReady&&a.Owl&&a.Owl[e](t),this.preTasks.push({api:e,data:[t]})},add:function(e){this.dataSet.push(e)},run:function(){var t=this;if(!this.isRunning){this.isRunning=!0;var e=a.onerror;a.onerror=function(){this.isReady||this.add({type:"jsError",data:arguments}),e&&e.apply(a,arguments)}.bind(this),(a.addEventListener||a.attachEvent)("error",function(e){t.isReady||t.add({type:"resError",data:[e]})},!0);var i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,r=window.performance||window.WebKitPerformance;if(i&&r){var n=-1,s=window.navigator.userAgent;if(-1<s.indexOf("compatible")&&-1<s.indexOf("MSIE")?(new RegExp("MSIE (\\d+\\.\\d+);").test(s),n=parseFloat(RegExp.$1)):-1<s.indexOf("Trident")&&-1<s.indexOf("rv:11.0")&&(n=11),-1!==n&&n<=11)return void(this.disableMutaObserver=!0);try{this.observer=new i(function(e){t.pageData.push({mutations:e,startTime:r.now()})}),this.observer.observe(document,{childList:!0,subtree:!0})}catch(e){console.log("mutationObserver err")}}else this.disableMutaObserver=!0}}},a[e].run())}();
</script>
<!-- 跳转小程序需要1.6以上版本 -->
<script>
// 灵犀埋点种子代码开始
!(function (win, doc, ns) {
var cacheFunName = '_MeiTuanALogObject';
win[cacheFunName] = ns;
if (!win[ns]) {
var _LX = function () {
_LX.q.push(arguments);
return _LX;
};
_LX.q = _LX.q || [];
_LX.l = +new Date();
win[ns] = _LX;
}
})(window, document, 'AnalyticsBase');
//种子代码结束
</script>
</head>
<body>
<div id="app" class="page-movie" ><div class="movie-page"><div><div class="download-app-bar-custom"><h1><a href="//m.maoyan.com/"><img class="img noneBg logo_custom" alt="logo" src="//obj.pipi.cn/festatic/asgard/resources/images/logo@3x.png" width="42" height="42"/></a></h1><a class="benefit-text" data-bid="b_movie_nikl02bu_mc" data-view-bid="b_movie_nikl02bu_mv">领取50元电影票</a><span class="split"></span><a href="javascript: void(0);" class="link btn-open-app-custom" data-event="donwload3" link="meituanmovie://www.meituan.com/movie?id=1285798&amp;nm=%E5%8A%A0%E8%8F%B2%E7%8C%AB%E5%AE%B6%E6%97%8F" parentPage="movie" to="" data-bid="b_53up23as" data-view-bid="b_movie_b_53up23as_mv" data-lab="{&quot;utm_source&quot;:&quot;&quot;,&quot;utm_content&quot;:&quot;&quot;,&quot;position&quot;:&quot;home&quot;}">打开App<img class="img noneBg point" alt="logo" src="//obj.pipi.cn/festatic/asgard/resources/images/point.png" width="11" height="11"/></a></div></div><div class="movie-info" style="background-color:#1D1D40"><div class="crumbs-nav"><a href="/">猫眼电影</a> &gt; <span>加菲猫家族</span></div><div class="movie-info-top"><div class="movie-cover" data-bid="b_aN5Ak" data-view-bid="b_wet6w" data-lab="{&quot;movie_id&quot;:1285798,&quot;type&quot;:0}"><a href="/asgard/movie/1285798/preview"><img class="img noneBg poster" alt="加菲猫家族海报封面图" src="https://p0.pipi.cn/mmdb/54ecde87b530faecd887a9594b90e05caa15d.jpg?imageView2/1/w/300/h/414/q/80" width="100" height="138" e="1" c="1"/><img class="img noneBg poster-play" alt="" src="https://obj.pipi.cn/festatic/common/image/2a192bd00ce15cbcf0cd1e157052887e.png"/></a></div><div class="movie-desc"><div class="movie-desc-top"><div class="movie-cn-name"><h1 style="display:inline-block">加菲猫家族</h1></div><div class="movie-en-name">The Garfield Movie</div><div class="movie-other-info"><div class="movie-type"><span class="movie-cat">动画 / 冒险 / 家庭</span></div><div class="actors"><a href="/asgard/celebrity/3082">克里斯·帕拉特 / </a><a href="/asgard/celebrity/29548">塞缪尔·L·杰克逊 / </a><a href="/asgard/celebrity/4993">汉娜·沃丁厄姆</a></div><div class="movie-show-time"><span>2024-06-01 09:00中国大陆上映 / 101分钟</span></div></div></div><div class="btns"><button data-bid="b_rjonirtp" data-view-bid="b_movie_b_rjonirtp_mv" data-lab="{&quot;movie_id&quot;:1285798}" type="button" class="button want-to-watch"><img class="img noneBg" alt="想看" src="//obj.pipi.cn/festatic/asgard/resources/images/movie/want-to-watch.png"/><span>想看</span></button><a href="javascript: void(0);" class="link button btn-right watched" data-event="donwload3" link="meituanmovie://www.meituan.com/movie?id=1285798&amp;nm=%E5%8A%A0%E8%8F%B2%E7%8C%AB%E5%AE%B6%E6%97%8F" parentPage="movie" to="" data-bid="b_53up23as" data-view-bid="b_movie_b_53up23as_mv" data-lab="{&quot;utm_source&quot;:&quot;&quot;,&quot;utm_content&quot;:&quot;&quot;,&quot;position&quot;:&quot;socre&quot;}"><img class="img noneBg" alt="看过" src="//obj.pipi.cn/festatic/asgard/resources/images/movie/star.png"/><span>看过</span></a></div></div></div><div class="score-container-wrap "><div class="real-time-word-of-mouth theater-chain-not-graded"><div class="top"><div class="left"><img class="img noneBg" alt="logo" src="//obj.pipi.cn/festatic/asgard/resources/images/movie/logo-new.png"/><span>猫眼想看</span></div></div><div class="middle"><div class="left-section"><div class="left wanted"><div class="score" data-view-bid="b_movie_4r9fhgxi_mv" data-view-lab="{&quot;movie_id&quot;:1285798,&quot;type&quot;:&quot;wantsee&quot;}"></div><div class="avatar-box"><div class="default hide-top"></div><div class="default show-middle"></div><div class="default hide-bottom"></div></div></div></div></div><div class="awardBottom"></div></div></div><div class="brief-introduction"><div class="title"><span>简介</span></div><div data-bid="b_y93QJ" data-lab="{&quot;movie_id&quot;:1285798,&quot;type&quot;:false}" class="content height-limit"><p id="brief-introduction-content" class
加菲猫由克里斯·帕拉特配音这只全球闻名、厌恶星期一、对千层面情有独钟的宅猫正准备开启一段疯狂的户外奇遇在与他失散多年的亲生猫爸——不羁的流浪猫维克由塞缪尔·L·杰克逊配音意外重聚后加菲猫和他的狗狗伙伴欧迪被迫告别了安逸舒适的生活卷入了一场搞笑又充满刺激的大冒险而一直娇生惯养的加菲猫将在这次冒险之旅中蜕变成为上天入地的“猫猫特工”带着家族直面挑战、化解危机</p></div></div><div class="actors" data-view-bid="b_movie_byn3kcrc_mv" data-lab="{&quot;movie_id&quot;:1285798}"><div class="title"><span>演职人员</span><a data-bid="b_movie_l81ojcc4_mc" data-lab="{&quot;movie_id&quot;:1285798}" class="go-to-all-actors" href="/asgard/movie/1285798/credits"><span>全部</span><img class="img noneBg" alt="arrow-right" src="//obj.pipi.cn/festatic/asgard/resources/images/movie/arrow-right.png"/></a></div><div class="actor-list"><ul><li class=""><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:0}" href="/asgard/celebrity/392845"><img class="img" alt="加菲猫家族 马克·丁达尔" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class="name">马克·丁达尔</span><span class="role">导演</span></a></li><li class="left-margin"><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:1}" href="/asgard/celebrity/3082"><img class="img" alt="加菲猫家族 克里斯·帕拉特" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class="name">克里斯·帕拉特</span><span class="role">配: 加菲猫 Garfield</span></a></li><li class="left-margin"><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:2}" href="/asgard/celebrity/29548"><img class="img" alt="加菲猫家族 塞缪尔·L·杰克逊" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class="name">塞缪尔·L·杰克逊</span><span class="role">配: 维克 Vic</span></a></li><li class="left-margin"><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:3}" href="/asgard/celebrity/4993"><img class="img" alt="加菲猫家族 汉娜·沃丁厄姆" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class="name">汉娜·沃丁厄姆</span><span class="role">配: Jinx</span></a></li><li class="left-margin"><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:4}" href="/asgard/celebrity/8470"><img class="img" alt="加菲猫家族 文·瑞姆斯" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class="name">文·瑞姆斯</span><span class="role">配: 奥托 Otto</span></a></li><li class="left-margin"><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:5}" href="/asgard/celebrity/29299"><img class="img" alt="加菲猫家族 尼古拉斯·霍尔特" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class="name">尼古拉斯·霍尔特</span><span class="role">配: 乔恩 Jon</span></a></li><li class="left-margin"><a data-bid="b_hxG9z" data-view-bid="b_movie_b_hxG9z_mv" data-lab="{&quot;movie_id&quot;:1285798,&quot;index&quot;:6}" href="/asgard/celebrity/391130"><img class="img" alt="加菲猫家族 塞西莉·斯特朗" src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" width="80" height="112" e="1" c="1"/><span class=
<script>
var AppData = {"$title":"加菲猫家族_购票_剧情介绍_演职人员_图集-猫眼电影","$description":"暌违18年加菲猫全新动画大电影重返内地大银幕\n加菲猫由克里斯·帕拉特配音这只全球闻名、厌恶星期一、对千层面情有","$keywords":"加菲猫家族,克里斯·帕拉特,塞缪尔·L·杰克逊,汉娜·沃丁厄姆,马克·丁达尔,选座购票,剧情介绍","browser":{"ua":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36","name":"chrome","version":"109.0.0","vender":"apple","platform":"android","platformVersion":"6.0","core":{"name":"chrome","version":109},"type":"normal"},"$urlQuery":{"utm_source":"","utm_content":"","actionBtn":""},"$browser":{"ua":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Mobile Safari/537.36","name":"chrome","version":"109.0.0","vender":"apple","platform":"android","platformVersion":"6.0","core":{"name":"chrome","version":109},"type":"normal"},"channel":{"from":null,"channelId":4,"channelName":"canary","channelIdMap":{"maoyan":1,"canary":4,"mmweb":70001,"qqwallet":70002,"moviepro":40004,"meituan":3,"imeituan":30001,"dianping":60002,"dpmmweb":60003,"dpmweb":60004,"dpqqwallet":60008,"gewara":80001,"conch":4,"wxapp":70001,"toutiaosmart":120001,"baidusmart":110001,"inservice":110002,"huawei":150002,"hsbc":1000147,"abchina":1000136,"ICBC":1000096,"nbbank":1000198,"xianbank":1000209,"BOC":1000254,"gzcb":1000206,"pingan":1000261,"unionpay":1000173,"hwfastapp":1000207,"rongshu":1000288,"qqsmart":70005,"bankofbeijing":1000371,"vivofastapp":150003,"xhssmart":230001,"wbsmart":220001,"xhsmoviesmart":230002,"gansu":1000413,"kuaishousmart":200001,"honorfastapp":150004,"ccb_life":1000421,"cmcc":1000423,"dyshowsmart":120005,"ceb_life":1000430,"shangqitong":1000197,"hunan_psbc":1000447,"douyinsmart":120003,"shenzhen_icbc":1000457},"channelNameMap":{"1":"maoyan","3":"meituan","4":"conch","30001":"imeituan","40004":"moviepro","60002":"dianping","60003":"dpmmweb","60004":"dpmweb","60008":"dpqqwallet","70001":"wxapp","70002":"qqwallet","70005":"qqsmart","80001":"gewara","110001":"baidusmart","110002":"inservice","120001":"toutiaosmart","120003":"douyinsmart","120005":"dyshowsmart","150002":"huawei","150003":"vivofastapp","150004":"honorfastapp","200001":"kuaishousmart","220001":"wbsmart","230001":"xhssmart","230002":"xhsmoviesmart","1000096":"ICBC","1000136":"abchina","1000147":"hsbc","1000173":"unionpay","1000197":"shangqitong","1000198":"nbbank","1000206":"gzcb","1000207":"hwfastapp","1000209":"xianbank","1000254":"BOC","1000261":"pingan","1000288":"rongshu","1000371":"bankofbeijing","1000413":"gansu","1000421":"ccb_life","1000423":"cmcc","1000430":"ceb_life","1000447":"hunan_psbc","1000457":"shenzhen_icbc"},"userType":{"meituan":1,"dianping":2}},"$channel":{"from":null,"channelId":4,"channelName":"canary","channelIdMap":{"maoyan":1,"canary":4,"mmweb":70001,"qqwallet":70002,"moviepro":40004,"meituan":3,"imeituan":30001,"dianping":60002,"dpmmweb":60003,"dpmweb":60004,"dpqqwallet":60008,"gewara":80001,"conch":4,"wxapp":70001,"toutiaosmart":120001,"baidusmart":110001,"inservice":110002,"huawei":150002,"hsbc":1000147,"abchina":1000136,"ICBC":1000096,"nbbank":1000198,"xianbank":1000209,"BOC":1000254,"gzcb":1000206,"pingan":1000261,"unionpay":1000173,"hwfastapp":1000207,"rongshu":1000288,"qqsmart":70005,"bankofbeijing":1000371,"vivofastapp":150003,"xhssmart":230001,"wbsmart":220001,"xhsmoviesmart":230002,"gansu":1000413,"kuaishousmart":200001,"honorfastapp":150004,"ccb_life":1000421,"cmcc":1000423,"dyshowsmart":120005,"ceb_life":1000430,"shangqitong":1000197,"hunan_psbc":1000447,"douyinsmart":120003,"shenzhen_icbc":1000457},"channelNameMap":{"1":"maoyan","3":"meituan","4":"conch","30001":"imeituan","40004":"moviepro","60002":"dianping","60003":"dpmmweb","60004":"dpmweb","60008":"dpqqwallet","70001":"wxapp","70002":"qqwallet","70005":"qqsmart","80001":"gewara","110001":"baidusmart","110002":"inservice","
</script>
<script src="//obj.pipi.cn/festatic/asgard/resources/dll/dll_common-4cbe3d11.js"></script>
<script src="//obj.pipi.cn/festatic/asgard/resources/dll/dll_vendor-4cbe3d11.js"></script>
<script crossorigin="anonymous" src="//www.dpfile.com/app/owl/static/owl_1.9.3.js"></script>
<script>
Owl.start({
project: "com.sankuai.myfe.tx.asgard",
pageUrl: location.href && location.href.split('?')[0].replace(/\/\d+/g, '/:id'),
resource: {},
page:{ fstPerfAnalysis:true,logSlowView:true ,sensoryIndex:true},
devMode: false,
});
window._KNB_IGNORE_WECHAT = true;
</script>
<!--百度小程序 -->
<!--qq小程序 -->
<!--头条小程序 -->
<!--小红书小程序 -->
<!-- 宁波银行 -->
<!-- 中国银行 -->
<!-- 广州银行 -->
<!-- 农业银行 -->
<!-- I版添加信息指纹 -->
<script>var Rohr_Opt = {'geo': false}; </script>
<script>
function parseUrl() {
let params = {}
const query = location.search && location.search.replace("?", '');
const queryArr = query && query.split("&") || [];
for (let i = 0; i < queryArr.length; i++) {
let curParma = queryArr[i].split("=");
params[curParma[0]] = curParma[1];
}
return params;
}
function setValue(obj = {}, path, value) {
const a = path.split('.');
let o = obj;
for (let i = 0; i < a.length - 1; i++) {
const n = a[i];
if (n in o) {
o = o[n];
} else {
o[n] = {};
o = o[n];
}
}
o[a[a.length - 1]] = value;
};
//为了统一处理业务页面上手动上报的各种灵犀埋点
window.Analytics = (type, obj) => {
if (type === 'tag') {
AnalyticsBase('tag', obj)
}
if (type === 'event') {
//上报灵犀
const pathParmas = parseUrl();
const { AppData } = window;
if (AppData.channel && AppData.channel.channelId === 70001) {
obj.val_lab = obj.val_lab || {};
setValue(obj.val_lab, 'custom.openId', pathParmas.openid);
}
// 非prod环境增加环境标识
if (AppData.$env !== 'production') {
obj.val_lab = obj.val_lab || {};
setValue(obj.val_lab, 'custom.env', 'test');
}
AnalyticsBase('event', obj);
}
}
// 初始化灵犀sdk
function lxSDK() {
const { AppData } = window;
const { openPlatform } = AppData;
const browser = AppData.$browser || AppData.browser || {};
const appnm = AppData.$appnm || 'maoyan_i';
// 设置应用名称设置appnm将成为页面默认的appnm建议每个页面都设置
AnalyticsBase('config', 'appnm', appnm);
AnalyticsBase('config','alwaysSendReferrer', true);
// 设置应用上报通道名称与uid
let uid = AppData.user && AppData.user.id;
if (AppData.channelName === 'dianping') {
uid = AppData.user && AppData.user.dpid;
}
if (uid) {
AnalyticsBase('set', 'uid', uid);
}
let os = window.navigator.userAgent.match(/Macintosh|iPod|iPhone|iPad|Android|Windows Phone|Windows/i);
os = (os && os[0]) || 'other';
AnalyticsBase('set', 'os', os);
// 设置开放平台渠道标识
if (openPlatform) {
AnalyticsBase('get', 'utm', (utm) => {
utm = utm || {};
utm.utm_campaign = 'openPlatform=' + encodeURIComponent(String(openPlatform.merCode||'').replace(/</g, '\\\\u003c'));
if (openPlatform.merCodeSub) {
utm.utm_campaign += "-" + encodeURIComponent(String(openPlatform.merCodeSub).replace(/</g, '\\\\u003c'))
}
AnalyticsBase('set', 'utm', utm);
});
}
const pathParmas = parseUrl();
AppData.valObj = AppData.valObj || {};
setValue(AppData.valObj, 'custom.__browser__', browser.name);
if (AppData.channel && AppData.channel.channelId === 70001) {
setValue(AppData.valObj, 'custom.openId', pathParmas.openid);
}
if (AppData.$env !== 'production') {
setValue(AppData.valObj, 'custom.env', 'test');
}
// 发送pv其中"page_id"为页面名称,你应该为你的每一个页面起一个唯一的名称
AnalyticsBase('send', 'pv', { cid: AppData.cid, val: AppData.valObj });
window.sendClickLog = (event, bid, lab) => {
if (!bid) {
const e = event || window.event;
const target = e.target || e.srcElement;
bid = getAttrNode(target, 'data-bid');
lab = getAttrNodeObj(target, 'data-lab');
tagLab = getAttrNodeObj(target, 'data-tag-lab');
}
setValue(lab, 'custom.__browser__', browser.name);
if (AppData.channel && AppData.channel.channelId === 70001) {
setValue(lab, 'custom.openId', pathParmas.openid);
}
if(tagLab) {
window.Analytics('tag', tagLab);
}
if (bid) {
Analytics('event', {
nm : 'mge',
val_bid: bid,
val_lab: lab,
val_cid: AppData.cid,
event_type: 'click'
});
}
};
addHandler(window, 'click', (event) => {
sendClickLog(event);
});
window.sendView = function () {
Array.prototype.filter.call(document.getElementsByTagName('*'), (el) => {
return !!el.getAttribute('data-view-bid') && !el.getAttribute('data-view-sended');
}).filter((el) => {
const rect = el.getBoundingClientRect();
return (
!(rect.width === 0 && rect.height === 0) && rect.top >= 0 && rect.left >= 0 &&
rect.bottom <= (window.innerHeight || document.documentElement.clientHeight) &&
rect.right <= (window.innerWidth || document.documentElement.clientWidth)
);
}).forEach((el) => {
el.setAttribute('data-view-sended', 1);
const bid = el.getAttribute('data-view-bid');
const lab = valFrom(el.getAttribute('data-view-lab') || getAttrNodeObj(el, 'data-lab'));
if (AppData.channel && AppData.channel.channelId === 70001) {
setValue(lab, 'custom.openId', pathParmas.openid);
}
Analytics('event', {
nm : 'mge',
val_bid: bid,
val_lab: lab,
val_cid: AppData.cid,
event_type: 'view'
});
});
};
addHandler(window, 'scroll', debounce(window.sendView, 200));
// 单独为需要横向滚动的view上报绑定scroll事件
const viewScrollXContainers = document.getElementsByClassName('view-scroll-x-container');
for (let i = 0; i < viewScrollXContainers.length; i++) {
addHandler(viewScrollXContainers[i], 'scroll', debounce(window.sendView, 200));
}
setTimeout(window.sendView, 300);
// 实现向父元素的遍历有特定属性名的属性值
function getAttrNode(node, attrName) {
let attrValue = node.getAttribute(attrName);
while (!attrValue && node !== document.body && !!node.parentNode && node.parentNode !== document) {
node = node.parentNode;
attrValue = node.getAttribute(attrName);
}
return attrValue || null;
}
// 实现向父元素的遍历有特定属性名的属性值对象
function getAttrNodeObj(node, attrName) {
const attrObj = {};
let attrValue = node.getAttribute(attrName);
while (node !== document.body && !!node.parentNode && node.parentNode !== document) {
if (attrValue) {
const obj = valFrom(attrValue);
Object.keys(obj).forEach((key) => {
attrObj[key] = obj[key];
});
}
node = node.parentNode;
attrValue = node.getAttribute(attrName);
}
return attrObj;
}
function valFrom(v) {
if (typeof v === 'string' && v[0] === '{') {
v = new Function('return (' + v + ')')(); // string to object
}
return v || {};
}
function debounce(func, wait) {
let timeout;
return () => {
const context = this;
const args = arguments;
const later = () => {
timeout = null;
func.apply(context, args);
};
clearTimeout(timeout);
timeout = setTimeout(later, wait);
};
}
function addHandler(element, type, handler) {
if (element.addEventListener) { // DOM2级事件处理
element.addEventListener(type, handler, false);
} else if (element.attachEvent) { // IE事件处理
element.attachEvent('on'+ type, handler);
} else { // DOM0级事件处理
element['on'+type] = handler;
}
}
}
if (AppData.cid) {
lxSDK();
}
</script>
<script src="//obj.pipi.cn/festatic/asgard/resources/pages/movie/vendors-3b0b7d0b.chunk.js"></script>
<script src="//obj.pipi.cn/festatic/asgard/resources/pages/movie/movie-56d514c4.js"></script>
<script crossorigin="anonymous" src="//obj.pipi.cn/festatic/common/media/1661236970778-yao-0.0.10.js"></script>
<script>
Yao.start({
project: 'asgard',
page: {
sample: 1,
},
devMode: false,
});
</script>
<script>
//新增百度资源平台自动推送js代码以便自动推送链接
(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{
// 此处域名不能切为 https域名不支持
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?703e94591e87be68cc8da0da7cbd0be2";
s.parentNode.insertBefore(hm, s);
})();
</script>
<script src="//lx.meituan.net/lx.js" type="text/javascript" charset="utf-8" async></script>
</body>
</html>