'
}, {
querySelector: 'mp-common-product',
genId: function genId(opt) {
return opt.node.getAttribute('data-windowproduct') || '';
},
calW: function calW() {
var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return opt.parentWidth * 1 || '100%';
},
calH: function calH(opt) {
var customstyle = opt.node.getAttribute('data-customstyle') || '{}';
if (customstyle) {
try {
var _JSON$parse = JSON.parse(customstyle),
display = _JSON$parse.display,
height = _JSON$parse.height;
if (display !== 'none') {
var customHeight = height.split('px')[0];
var ratio = opt.parentWidth / 350.0 || 1;
customHeight = Math.round(customHeight * ratio);
return customHeight;
}
return 0;
} catch (err) {
console.error(err);
}
}
return 0;
},
replaceContentCssText: '',
appendContentCssText: 'diplay:block;',
outerContainerLeft: '
',
outerContainerRight: '
'
}
]
};
function preloadingInit() {
var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
if (typeof document.querySelectorAll !== 'function') {
return;
}
var g = {
maxWith: document.getElementById('img-content').getBoundingClientRect().width,
idAttr: 'data-preloadingid'
};
for (var i = 0, il = opt.config.length; i ", "<", " -1) {
var arg = query[i].substring(0, eqIndex);
params[arg] = query[i].substring(eqIndex + 1);
}
}
if (params['pass_ticket']) {
params['pass_ticket'] = encodeURIComponent(decode(params['pass_ticket']).replace(/\s/g, '+'));
}
return params;
}
function insertAfter(dom, afterDom) {
var _p = afterDom.parentNode;
if (!_p) {
return;
}
if (_p.lastChild === afterDom) {
_p.appendChild(dom);
} else {
_p.insertBefore(dom, afterDom.nextSibling);
}
}
if (typeof getComputedStyle === 'undefined') {
if (document.body.currentStyle) {
window.getComputedStyle = function (el) {
return el.currentStyle;
};
} else {
window.getComputedStyle = {};
}
}
function getMaxWith() {
var container = document.getElementById('img-content');
var max_width = container.offsetWidth;
var container_padding = 0;
var container_style = getComputedStyle(container);
container_padding = parseFloat(container_style.paddingLeft) + parseFloat(container_style.paddingRight);
max_width -= container_padding;
if (!max_width) {
max_width = window.innerWidth - 32;
}
return max_width;
}
function getParentWidth(dom) {
var parent_width = 0;
var parent = dom.parentNode;
var outerWidth = 0;
while (true) {
if (!parent || parent.nodeType !== 1) break;
var parent_style = getComputedStyle(parent);
if (!parent_style) break;
parent_width = parent.clientWidth - parseFloat(parent_style.paddingLeft) - parseFloat(parent_style.paddingRight) - outerWidth;
if (parent_width > 16) break;
outerWidth += parseFloat(parent_style.paddingLeft) + parseFloat(parent_style.paddingRight) + parseFloat(parent_style.marginLeft) + parseFloat(parent_style.marginRight) + parseFloat(parent_style.borderLeftWidth) + parseFloat(parent_style.borderRightWidth);
parent = parent.parentNode;
}
if (parent_width parent_width ? parent_width : width,
outerW = getOuterW(dom) || 0,
outerH = getOuterH(dom) || 0,
videoW = rwidth - outerW,
videoH = videoW / ratio_,
speedDotH = 12,
rheight = videoH + outerH + speedDotH;
return {
w: Math.ceil(rwidth),
h: Math.ceil(rheight),
vh: videoH,
vw: videoW,
ratio: ratio_,
sdh: speedDotH
};
}
function setImgSize(item, widthNum, widthUnit, ratio, breakParentWidth) {
var imgPaddingBorder = getOuterW(item) || 0;
var imgPaddingBorderTopBottom = getOuterH(item) || 0;
if (widthNum > getParentWidth(item) && !breakParentWidth) {
widthNum = getParentWidth(item);
}
var heightNum = (widthNum - imgPaddingBorder) * ratio + imgPaddingBorderTopBottom;
widthNum !== 'auto' && (item.style.cssText += ";width: ".concat(widthNum).concat(widthUnit, ";"));
widthNum !== 'auto' && (item.style.cssText += ";height: ".concat(heightNum).concat(widthUnit, ";"));
}
var isAccessibilityKey = 'isMpUserAccessibility';
var imgPlaceholderClass = 'js_img_placeholder';
var isAccessMode = window.localStorage.getItem(isAccessibilityKey);
var imgSizeData;
var validArr = ',' + [0.875, 1, 1.125, 1.25, 1.375].join(',') + ',';
var match = window.location.href.match(/winzoom=(\d+(?:\.\d+)?)/);
if (match && match[1]) {
var winzoom = parseFloat(match[1]);
if (validArr.indexOf(',' + winzoom + ',') >= 0) ;
}
function getImgSrcMainInfo(src) {
var pathName = new URL(src).pathname;
var lastIndex = pathName.lastIndexOf('/');
return lastIndex > 0 ? pathName.slice(0, lastIndex) : pathName;
}
function ajax(obj) {
var url = obj.url;
var xhr = new XMLHttpRequest();
var data = null;
if (_typeof(obj.data) === 'object') {
var d = obj.data;
data = [];
for (var k in d) {
if (d.hasOwnProperty(k)) {
data.push(k + '=' + encodeURIComponent(d[k]));
}
}
data = data.join('&');
} else {
data = typeof obj.data === 'string' ? obj.data : null;
}
xhr.open('POST', url, true);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status >= 200 && xhr.status
';
videoPlaceHolderSpan.style.cssText = "width: " + obj.w + "px;";
insertAfter(videoPlaceHolderSpan, a);
a.style.cssText += ';width: ' + obj.w + 'px;';
a.setAttribute('width', obj.w);
{
videoPlaceHolderSpan.style.cssText += 'height: ' + (obj.h - obj.sdh) + 'px;margin-bottom: ' + obj.sdh + 'px;';
a.style.cssText += 'height: ' + obj.h + 'px;';
a.setAttribute('height', obj.h);
}
a.setAttribute('data-vh', obj.vh);
a.setAttribute('data-vw', obj.vw);
a.setAttribute('data-src', 'https://v.qq.com/iframe/player.html?vid=' + vid + '&width=' + obj.vw + '&height=' + obj.vh + '&auto=0');
a.setAttribute('__sec_open_place_holder__', true);
a.parentNode;
var index = vi;
var mid = window.dataaaa.mid;
var biz = window.dataaaa.bizuin;
var idx = window.dataaaa.idx;
ajax({
url: "/mp/videoplayer?vid=".concat(vid, "&mid=").concat(mid, "&idx=").concat(idx, "&__biz=").concat(biz, "&f=json"),
type: 'GET',
dataType: 'json',
success: function success() {
var json = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var ret = JSON.parse(json);
var ori = ret.ori_status;
var hitBizHeadimg = ret.hit_biz_headimg + '/64';
var hitNickname = ret.hit_nickname;
var hitUsername = ret.hit_username;
if (ori === 2 && hitUsername !== data.user_name) {
var videoBar = document.createElement('div');
videoBar.innerHTML = "
") + '
以下视频来源于
' + '
' + "
") + "
".concat(hitNickname, "
") + '
' + '
' + '
' + '
';
document.querySelectorAll('.video_iframe').forEach(function (item) {
if (item.getAttribute('data-mpvid') === vid && item.getAttribute('data-hasSource') !== '1') {
item.setAttribute('data-hasSource', 1);
item.parentNode.insertBefore(videoBar, item);
}
});
var avatorEle = document.getElementById(vid + index);
var avatorSrc = avatorEle.dataset.src;
console.log('avatorSrc' + avatorSrc);
if (ret.hit_biz_headimg) {
avatorEle.style.backgroundImage = "url(".concat(avatorSrc, ")");
}
}
},
error: function error(xhr) {}
});
};
for (var vi = 0, viLen = videos.length; vi 1682352000) {
hasWidthHeightCount && (new Image().src = "//mp.weixin.qq.com/mp/jsmonitor?idkey=330742_20_".concat(hasWidthHeightCount, "&r=").concat(Math.random()));
noWidthHeightCount && (new Image().src = "//mp.weixin.qq.com/mp/jsmonitor?idkey=330742_21_".concat(noWidthHeightCount, "&r=").concat(Math.random()));
if (!data.picture_page_info_list.length) {
setTimeout(function () {
noWidthHeightCount = document.querySelectorAll('#js_content img').length;
noWidthHeightCount && (new Image().src = "//mp.weixin.qq.com/mp/jsmonitor?idkey=330742_21_".concat(noWidthHeightCount, "&r=").concat(Math.random()));
}, 300);
}
}
}
for (var im = 0, imLen = images.length; im 0) {
if (!isCarton) {
img.src = "data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg width='1px' height='1px' viewBox='0 0 1 1' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Ctitle%3E%3C/title%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd' fill-opacity='0'%3E%3Cg transform='translate(-249.000000, -126.000000)' fill='%23FFFFFF'%3E%3Crect x='249' y='126' width='1' height='1'%3E%3C/rect%3E%3C/g%3E%3C/g%3E%3C/svg%3E";
if (noWidth) {
var fallbackWidth = img.style.width || img.getAttribute('width') || width_;
var fallbackMaxWidth = 360;
fallbackWidth = parseFloat(fallbackWidth, 10) > fallbackMaxWidth ? fallbackMaxWidth : fallbackWidth;
if (fallbackWidth === 'inherit') {
fallbackWidth = fallbackMaxWidth;
}
if (fallbackWidth) {
img.setAttribute('_width', !isNaN(fallbackWidth * 1) ? fallbackWidth + 'px' : fallbackWidth);
}
if (typeof fallbackWidth === 'string' && fallbackWidth.indexOf('%') !== -1) {
fallbackWidth = parseFloat(fallbackWidth.replace('%', ''), 10) / 100 * fallbackMaxWidth;
}
if (fallbackWidth === 'auto') {
fallbackWidth = width_;
if (width_ === 'auto' || !width_) {
fallbackWidth = fallbackMaxWidth;
} else {
fallbackWidth = width_;
}
}
var fallbackRes = /^(\d+(?:\.\d+)?)([a-zA-Z%]+)?$/.exec(init_width);
var fallbackLastWidth = fallbackRes && fallbackRes.length >= 2 ? fallbackRes[1] : 0;
var fallbackUnit = fallbackRes && fallbackRes.length >= 3 && fallbackRes[2] ? fallbackRes[2] : 'px';
setImgSize(img, fallbackLastWidth, fallbackUnit, imgRatio, true);
img.classList.add(imgPlaceholderClass, "wx_img_placeholder");
continue;
}
img.classList.add(imgPlaceholderClass, "wx_img_placeholder");
}
var parent_width = getParentWidth(img) || max_width;
var init_width = img.style.width || img.getAttribute('width') || width_ || parent_width;
init_width = parseFloat(init_width, 10) > max_width ? max_width : init_width;
if (init_width === 'inherit') {
init_width = parent_width;
}
if (init_width) {
img.setAttribute('_width', !isNaN(init_width * 1) ? init_width + 'px' : init_width);
}
if (typeof init_width === 'string' && init_width.indexOf('%') !== -1) {
init_width = parseFloat(init_width.replace('%', ''), 10) / 100 * parent_width;
}
if (init_width === 'auto') {
init_width = width_;
if (width_ === 'auto' || !width_) {
init_width = parent_width;
} else {
init_width = width_;
}
}
var res = /^(\d+(?:\.\d+)?)([a-zA-Z%]+)?$/.exec(init_width);
width_num = res && res.length >= 2 ? res[1] : 0;
width_unit = res && res.length >= 3 && res[2] ? res[2] : 'px';
var imgWidth = width_num;
if (isCarton) {
img.src = imgDataSrc;
img.style.height = 'auto';
} else {
setImgSize(img, imgWidth, width_unit, imgRatio, true);
setImgSize(img, imgWidth, width_unit, imgRatio, false);
}
}
if (!data.is_h5_render) {
img.setAttribute('__sec_open_place_holder__', true);
}
}
init();
}
var ua = navigator.userAgent;
/mac\sos/i.test(ua) && !/(iPhone|iPad|iPod|iOS)/i.test(ua) || /windows\snt/i.test(ua);
var images = document.getElementsByTagName('img');
var videos = [];
var user_name = "gh_4c63fcb04eaf";
var isCartoonCopyright = '0';
var is_care_mode = '';
var createTimestamp = '1708864050';
var picturePageInfoList = "[{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/xllboTWsdgalaicKET8qBakqTYeot2ZsCgCEjUxtMXyajzOtGs2hmyHH9lNxDmKI8zzCzZpUnHCZyd5VatUibTTQ/640?wx_fmt=png','width':'800','height':'411'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/9PccP4ib1Nt97BSndGIVuiaWBlbZqVmhdibKnhuibVemPpia5uiaYolribdpSKAqC49ua3ETAQsDTt1UNempk9icuySAicA/640?wx_fmt=gif','width':'427','height':'240'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/9PccP4ib1Nt97BSndGIVuiaWBlbZqVmhdibDWicsTR2v4OFpWWVPsOOK0XwarfkyvvuAzTIpo5zBKd9mStq3rkyr3g/640?wx_fmt=gif','width':'480','height':'272'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/9PccP4ib1Nt8UaqCibku8bvmvbr8m5jkC3T84vbI2CdpSq4bLXThWaYRX1lG9icicJicO3vFJSu7GKjicpecCCufkY3A/640?wx_fmt=gif','width':'640','height':'360'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/iaGe3aKoMsib0Qz6Po0wqVtfRPJia0xXqQ0lTE42J4gzFUibibQEVKQmvbfNfGAgtCxBX86buDTUad51pyD8mUdg1lA/640?wx_fmt=png','width':'484','height':'772'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkzicACIot2J5y0nDoicYhWwOUiaY6V2dWjb4nsRWfQ6DQsNU0NbHiagmonSqXAAO0PaJEjDhwnbdbIqyw/640?wx_fmt=png','width':'800','height':'800'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/RxwiaXfwhtfUt1tqI7iaMBJiaLQ9FnsTERe9IjDQeibfLmlZaiakOPO9c8icy99ZCF11qdDP2RibYDq2yicia19yNRiaibnCw/640?wx_fmt=gif','width':'456','height':'265'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkzicACIot2J5y0nDoicYhWwOUm5YyVLgbw0p7JBzv3dAScSvpENnIEuC2GVa4pXcSpzLKWDIxVIXlzA/640?wx_fmt=png','width':'1031','height':'1350'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/1HDt6ZMGAeAiboh9kTCgibCx4KenSTEbmFicKnhr0RwhKyiaOC9iauySwLrALSmE3gpPkOWibO92YTiacxIPA9MSnyuGw/640?wx_fmt=png','width':'1005','height':'754'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/RxwiaXfwhtfUt1tqI7iaMBJiaLQ9FnsTEReZ53We44pGYLk6D5ib1fxfqO9F3qWXTgb9N70pxjMmZyd2pS69LuichAg/640?wx_fmt=jpeg','width':'1080','height':'1047'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/ouk7PO7ZzcyoR8DqvpIn20Vh431s1icOnqdBUicTIgqIQMfKTsB04hciajeaML2Etfeyz6sbwfNfpN3jktzsE6fbA/640?wx_fmt=png','width':'800','height':'71'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/1HDt6ZMGAeCxdEzc6ROIA0vXJIrIicsh0BhDVjpWdmuibnsVEqeekkuziciboRzWtziaiccYviaibpbBCsyqtyNI3w7seA/640?wx_fmt=jpeg','width':'600','height':'305'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/9PccP4ib1Nt97BSndGIVuiaWBlbZqVmhdib5ibJAfagDn65iacokdNjD60oFklgp2iakoXiaS2Ju8YyFx1yzEKxRAKKsw/640?wx_fmt=gif','width':'1000','height':'976'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/Hv5HF8BiagwQOZmXGZiaHTbfeUPQx8kv1SM1bwSh8CfRORGEz3mYmVCjJJ0c1SiaHkeDGickc2B4vEWxdgon4s5syw/640?wx_fmt=png','width':'964','height':'594'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkx7NCVaFBkZ0pZyOWk5s5WrY2Xic5rKA6TRHhPjIQvdm19BvkrDficgq5EQqjR31CCfUDecwZtP2rJw/640?wx_fmt=png','width':'828','height':'531'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkx7NCVaFBkZ0pZyOWk5s5WrOyZj5ic0NQdFTLJ8YERiaOFMaBQWmqyAFYzqZk9HyZVvsZZO9sFrCPKQ/640?wx_fmt=png','width':'1080','height':'720'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/Hv5HF8BiagwRqNmFDVWDXcqB8NKsSaf3xA24fj4fbCNlUpT632vER5cf5BicWPlK3Ag26ydhyicajY5BF627RTgZQ/640?wx_fmt=png','width':'828','height':'1085'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkx7NCVaFBkZ0pZyOWk5s5WrSNy4bBndQzgDE4RIOGAYR7EN6o4Lg5MFeYzSLQoD07IPrnS6gYvFUQ/640?wx_fmt=png','width':'802','height':'627'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkx7NCVaFBkZ0pZyOWk5s5WrXUicEZcplbuC37kOwPeExKm9cGVPh0Hj24jiblWkntL6GKgkYzgpncRQ/640?wx_fmt=png','width':'1080','height':'717'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/xllboTWsdgalaicKET8qBakqTYeot2ZsCHMToUGnhRicicQE5fia9noDve5GT7tthC3LKfx4PYwzI3zPHZOZYp5aWw/640?wx_fmt=png','width':'1080','height':'506'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_jpg/X3vw5DrzOky1rU9jJuEMfUNHKPmibbfNO0ic7BwzlRv1Wib26rUIpurFoVlHBd1CI3PkUZjiaB2yOqDMHQduvUbiaiag/640?wx_fmt=jpeg','width':'1080','height':'819'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/ouk7PO7ZzcyoR8DqvpIn20Vh431s1icOnd6ibiaIQ2LuITrOiaX8rZkzj6uMITtvibhY9nqTDSKWRG7bg43GfkMpHMA/640?wx_fmt=png','width':'800','height':'71'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/9PccP4ib1Nt97BSndGIVuiaWBlbZqVmhdib3eV45HOfoOibNUfoA4g4xJSaMA84AVY0CR2iacd2x2IG4DMRqy1IIZtQ/640?wx_fmt=jpeg','width':'1080','height':'722'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/9PccP4ib1Nt97BSndGIVuiaWBlbZqVmhdibgXz0rN72JbfBzVPyS8TlODkHtVMzuHWDqpsCDRjTuM3d2ICatEoFCg/640?wx_fmt=jpeg','width':'875','height':'500'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/X3vw5DrzOkzicACIot2J5y0nDoicYhWwOU2tFemK3UbmdkXuOupRYLic25Ir4S6cNibic6picpvAjfrBmDomkicgvnCrg/640?wx_fmt=png','width':'800','height':'800'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/Hv5HF8BiagwRqNmFDVWDXcqB8NKsSaf3xcG5326Z2v8JDtZJY4WZBRSrrm8NZqr74Mut8yX5Nt2UQmnuq7DHpEA/640?wx_fmt=png','width':'828','height':'1094'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/RxwiaXfwhtfUt1tqI7iaMBJiaLQ9FnsTERetkvEtFQ00dMJuuISzYILlynFvh3PEMW5bGHkHaM6YOZEiaT5Rvic8lkg/640?wx_fmt=jpeg','width':'900','height':'600'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/5hazCZ8ZgYlfHJoovggAfYm0icUa2Jp05htSiaIZWoR7TWNL6El9HvaVGRicwnWa7pe0YAWicv1wpZB3by7KWs3O5Q/640?wx_fmt=gif','width':'1000','height':'468'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/RxwiaXfwhtfUt1tqI7iaMBJiaLQ9FnsTERegFEg4raKx3TtFHtF4zBj0YRN8tQSJ1fO3LcmJprsiaSKoE0FVXWcvmw/640?wx_fmt=png','width':'1080','height':'698'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_jpg/X3vw5DrzOky1rU9jJuEMfUNHKPmibbfNOwu7yicWN153QRG24ibCRIHGUicDL2HAic7qTibFp2vrCM1yp7ZicaxHLwFQg/640?wx_fmt=jpeg','width':'800','height':'800'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_png/ouk7PO7ZzcyoR8DqvpIn20Vh431s1icOnkyIEotiaGQ9EWuJ0icHBa2Ug5gsK7CFh5ib2R33OMUZ93usIVxVL9Wjpg/640?wx_fmt=png','width':'800','height':'71'},{'cdn_url':'https://mmbiz.qpic.cn/sz_mmbiz_png/obribe2vPvILhL4kFWKK73kAqzBxXHaiaR8WrtRHlRMAmnDcMDpVOgOglVgVjVBMic2FMOf4guHK2bLC5iarFwcv2w/640?wx_fmt=png','width':'677','height':'916'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/Hv5HF8BiagwSra4IUbiarjy5Z5UTRRIV5urJnGplPJrfhrtg1fVmb3j82agjMsgQoIRS5LicmJWhvp1jWptymaGXA/640?wx_fmt=jpeg','width':'1080','height':'1422'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_jpg/c5dgkgUuWRlxbRib7pW99f3JbP5u5fSI8jtAlP9JgVsTYCeWDUCIuLcibkmo0K3icRy59rxXmZgq4I6N354KemRPA/640?wx_fmt=jpeg','width':'1080','height':'1307'},{'cdn_url':'https://mmbiz.qpic.cn/mmbiz_gif/zInLEWYUMmgzgpztpxZVbRphApZ04tnTcrkPPxt3OvTwyQatV1QF1lvPFicqFGo2lz94YiajnwrDmk9QK3c4x1HA/640?wx_fmt=gif\x26amp;amp;wxfrom=5\x26amp;amp;wx_lazy=1','width':'160','height':'120'},]";
picturePageInfoList = picturePageInfoList.includes(',]') ? picturePageInfoList.replace(',]', ']') : picturePageInfoList;
try {
picturePageInfoList = JSON.parse(picturePageInfoList.replace(/'/g, '"'));
} catch (err) {
picturePageInfoList = [];
console.error(err);
}
var data = {
is_h5_render: true,
user_name: user_name,
copyright_info: {
is_cartoon_copyright: isCartoonCopyright
},
picture_page_info_list: picturePageInfoList,
create_timestamp: createTimestamp,
user_info: {
is_care_mode: is_care_mode
}
};
setSize(images, videos, data);
})();
'
}, {
querySelector: 'mp-common-product',
genId: function genId(opt) {
return opt.node.getAttribute('data-windowproduct') || '';
},
calW: function calW() {
var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
return opt.parentWidth * 1 || '100%';
},
calH: function calH(opt) {
var customstyle = opt.node.getAttribute('data-customstyle') || '{}';
if (customstyle) {
try {
var _JSON$parse = JSON.parse(customstyle),
display = _JSON$parse.display,
height = _JSON$parse.height;
if (display !== 'none') {
var customHeight = height.split('px')[0];
var ratio = opt.parentWidth / 350.0 || 1;
customHeight = Math.round(customHeight * ratio);
return customHeight;
}
return 0;
} catch (err) {
console.error(err);
}
}
return 0;
},
replaceContentCssText: '',
appendContentCssText: 'diplay:block;',
outerContainerLeft: '
'
}
]
};
function preloadingInit() {
var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
if (typeof document.querySelectorAll !== 'function') {
return;
}
var g = {
maxWith: document.getElementById('img-content').getBoundingClientRect().width,
idAttr: 'data-preloadingid'
};
for (var i = 0, il = opt.config.length; i