2588 lines
No EOL
73 KiB
Text
2588 lines
No EOL
73 KiB
Text
define("appmsg/emotion/slide.js",["appmsg/emotion/common.js","appmsg/emotion/dom.js","appmsg/emotion/nav.js"],function(n,t){
|
||
"use strict";
|
||
function o(){
|
||
function n(n){
|
||
n.preventDefault(),n.stopPropagation(),l||(g=!0,i=a(n),u.isMoved=!1,p=+new Date);
|
||
}
|
||
function t(n){
|
||
n.preventDefault(),n.stopPropagation(),!l&&g&&(r=a(n),h=r-i,e(),Math.abs(h)>6&&(u.isMoved=!0));
|
||
}
|
||
function o(){
|
||
l||(g=!1,s());
|
||
}
|
||
function a(n){
|
||
return n.touches&&n.touches.length>0?n.touches[0].clientX:n.clientX;
|
||
}
|
||
var i,r,p;
|
||
c.on("touchstart",n),c.on("mousedown",n),c.on("touchmove",t),c.on("mousemove",t),
|
||
c.on("touchend",o),c.on("mouseup",o);
|
||
}
|
||
function e(){
|
||
var n=u.WIDTH,t=-d*n+h,o=n/4;
|
||
t>o?t=o:p-o>t&&(t=p-o);
|
||
var e="translate3d("+t+"px, 0, 0)";
|
||
c.css({
|
||
webkitTransform:e,
|
||
transform:e
|
||
});
|
||
}
|
||
function s(){
|
||
var n=u.WIDTH,t=55,o=parseInt(h/n),e=h%n;
|
||
d-=o,Math.abs(e)>t&&(d-=Math.abs(e)/e*1),d>u.pageCount-1?d=u.pageCount-1:0>d&&(d=0),
|
||
h=0,a(d);
|
||
}
|
||
function a(n){
|
||
l=!0,f=-n*u.WIDTH,i(),e(),setTimeout(function(){
|
||
l=!1,r();
|
||
},j),v.activeNav(n);
|
||
}
|
||
function i(){
|
||
var n="all 0.3s ease";
|
||
c.css({
|
||
transition:n,
|
||
webkitTransition:n
|
||
});
|
||
}
|
||
function r(){
|
||
var n=c.el[0].style;
|
||
n.transition="",n.webkitTransition="";
|
||
}
|
||
var p,u=n("appmsg/emotion/common.js"),m=n("appmsg/emotion/dom.js"),t={},c=m("#js_slide_wrapper"),f=0,v=n("appmsg/emotion/nav.js"),l=!1,d=0,g=!1,h=0;
|
||
t.init=function(){
|
||
c=m("#js_slide_wrapper"),p=-u.wrapperWidth+u.WIDTH,o();
|
||
var n="translate3d(0, 0, 0)";
|
||
c.css({
|
||
webkitTransform:n,
|
||
transform:n
|
||
});
|
||
};
|
||
var j=300;
|
||
return t;
|
||
});!function(e){
|
||
var c="object"==typeof window&&window||"object"==typeof self&&self;
|
||
"function"==typeof define?define("biz_common/utils/emoji_data.js",[],function(c,o){
|
||
"use strict";
|
||
return e(o);
|
||
}):c&&"undefined"==typeof c.__emojiData&&(c.__emojiData=e({}));
|
||
}(function(){
|
||
return[{
|
||
id:0,
|
||
cn:"[微笑]",
|
||
hk:"[微笑]",
|
||
us:"[Smile]",
|
||
code:"/::)",
|
||
web_code:"/微笑",
|
||
style:"icon_smiley_0"
|
||
},{
|
||
id:1,
|
||
cn:"[撇嘴]",
|
||
hk:"[撇嘴]",
|
||
us:"[Grimace]",
|
||
code:"/::~",
|
||
web_code:"/撇嘴",
|
||
style:"icon_smiley_1"
|
||
},{
|
||
id:2,
|
||
cn:"[色]",
|
||
hk:"[色]",
|
||
us:"[Drool]",
|
||
code:"/::B",
|
||
web_code:"/色",
|
||
style:"icon_smiley_2"
|
||
},{
|
||
id:3,
|
||
cn:"[发呆]",
|
||
hk:"[發呆]",
|
||
us:"[Scowl]",
|
||
code:"/::|",
|
||
web_code:"/发呆",
|
||
style:"icon_smiley_3"
|
||
},{
|
||
id:4,
|
||
cn:"[得意]",
|
||
hk:"[得意]",
|
||
us:"[CoolGuy]",
|
||
code:"/:8-)",
|
||
web_code:"/得意",
|
||
style:"icon_smiley_4"
|
||
},{
|
||
id:5,
|
||
cn:"[流泪]",
|
||
hk:"[流淚]",
|
||
us:"[Sob]",
|
||
code:"/::<",
|
||
web_code:"/流泪",
|
||
style:"icon_smiley_5"
|
||
},{
|
||
id:6,
|
||
cn:"[害羞]",
|
||
hk:"[害羞]",
|
||
us:"[Shy]",
|
||
code:"/::$",
|
||
web_code:"/害羞",
|
||
style:"icon_smiley_6"
|
||
},{
|
||
id:7,
|
||
cn:"[闭嘴]",
|
||
hk:"[閉嘴]",
|
||
us:"[Silent]",
|
||
code:"/::X",
|
||
web_code:"/闭嘴",
|
||
style:"icon_smiley_7"
|
||
},{
|
||
id:8,
|
||
cn:"[睡]",
|
||
hk:"[睡]",
|
||
us:"[Sleep]",
|
||
code:"/::Z",
|
||
web_code:"/睡",
|
||
style:"icon_smiley_8"
|
||
},{
|
||
id:9,
|
||
cn:"[大哭]",
|
||
hk:"[大哭]",
|
||
us:"[Cry]",
|
||
code:"/::'(",
|
||
web_code:"/大哭",
|
||
style:"icon_smiley_9"
|
||
},{
|
||
id:10,
|
||
cn:"[尴尬]",
|
||
hk:"[尷尬]",
|
||
us:"[Awkward]",
|
||
code:"/::-|",
|
||
web_code:"/尴尬",
|
||
style:"icon_smiley_10"
|
||
},{
|
||
id:11,
|
||
cn:"[发怒]",
|
||
hk:"[發怒]",
|
||
us:"[Angry]",
|
||
code:"/::@",
|
||
web_code:"/发怒",
|
||
style:"icon_smiley_11"
|
||
},{
|
||
id:12,
|
||
cn:"[调皮]",
|
||
hk:"[調皮]",
|
||
us:"[Tongue]",
|
||
code:"/::P",
|
||
web_code:"/调皮",
|
||
style:"icon_smiley_12"
|
||
},{
|
||
id:13,
|
||
cn:"[呲牙]",
|
||
hk:"[呲牙]",
|
||
us:"[Grin]",
|
||
code:"/::D",
|
||
web_code:"/呲牙",
|
||
style:"icon_smiley_13"
|
||
},{
|
||
id:14,
|
||
cn:"[惊讶]",
|
||
hk:"[驚訝]",
|
||
us:"[Surprise]",
|
||
code:"/::O",
|
||
web_code:"/惊讶",
|
||
style:"icon_smiley_14"
|
||
},{
|
||
id:15,
|
||
cn:"[难过]",
|
||
hk:"[難過]",
|
||
us:"[Frown]",
|
||
code:"/::(",
|
||
web_code:"/难过",
|
||
style:"icon_smiley_15"
|
||
},{
|
||
id:16,
|
||
cn:"[酷]",
|
||
hk:"[酷]",
|
||
us:"[Ruthless]",
|
||
code:"/::+",
|
||
web_code:"/酷",
|
||
style:"icon_smiley_16"
|
||
},{
|
||
id:17,
|
||
cn:"[冷汗]",
|
||
hk:"[冷汗]",
|
||
us:"[Blush]",
|
||
code:"/:--b",
|
||
web_code:"/冷汗",
|
||
style:"icon_smiley_17"
|
||
},{
|
||
id:18,
|
||
cn:"[抓狂]",
|
||
hk:"[抓狂]",
|
||
us:"[Scream]",
|
||
code:"/::Q",
|
||
web_code:"/抓狂",
|
||
style:"icon_smiley_18"
|
||
},{
|
||
id:19,
|
||
cn:"[吐]",
|
||
hk:"[吐]",
|
||
us:"[Puke]",
|
||
code:"/::T",
|
||
web_code:"/吐",
|
||
style:"icon_smiley_19"
|
||
},{
|
||
id:20,
|
||
cn:"[偷笑]",
|
||
hk:"[偷笑]",
|
||
us:"[Chuckle]",
|
||
code:"/:,@P",
|
||
web_code:"/偷笑",
|
||
style:"icon_smiley_20"
|
||
},{
|
||
id:21,
|
||
cn:"[愉快]",
|
||
hk:"[愉快]",
|
||
us:"[Joyful]",
|
||
code:"/:,@-D",
|
||
web_code:"/可爱",
|
||
style:"icon_smiley_21"
|
||
},{
|
||
id:22,
|
||
cn:"[白眼]",
|
||
hk:"[白眼]",
|
||
us:"[Slight]",
|
||
code:"/::d",
|
||
web_code:"/白眼",
|
||
style:"icon_smiley_22"
|
||
},{
|
||
id:23,
|
||
cn:"[傲慢]",
|
||
hk:"[傲慢]",
|
||
us:"[Smug]",
|
||
code:"/:,@o",
|
||
web_code:"/傲慢",
|
||
style:"icon_smiley_23"
|
||
},{
|
||
id:24,
|
||
cn:"[饥饿]",
|
||
hk:"[饑餓]",
|
||
us:"[Hungry]",
|
||
code:"/::g",
|
||
web_code:"/饥饿",
|
||
style:"icon_smiley_24"
|
||
},{
|
||
id:25,
|
||
cn:"[困]",
|
||
hk:"[累]",
|
||
us:"[Drowsy]",
|
||
code:"/:|-)",
|
||
web_code:"/困",
|
||
style:"icon_smiley_25"
|
||
},{
|
||
id:26,
|
||
cn:"[惊恐]",
|
||
hk:"[驚恐]",
|
||
us:"[Panic]",
|
||
code:"/::!",
|
||
web_code:"/惊恐",
|
||
style:"icon_smiley_26"
|
||
},{
|
||
id:27,
|
||
cn:"[流汗]",
|
||
hk:"[流汗]",
|
||
us:"[Sweat]",
|
||
code:"/::L",
|
||
web_code:"/流汗",
|
||
style:"icon_smiley_27"
|
||
},{
|
||
id:28,
|
||
cn:"[憨笑]",
|
||
hk:"[大笑]",
|
||
us:"[Laugh]",
|
||
code:"/::>",
|
||
web_code:"/憨笑",
|
||
style:"icon_smiley_28"
|
||
},{
|
||
id:29,
|
||
cn:"[悠闲]",
|
||
hk:"[悠閑]",
|
||
us:"[Commando]",
|
||
code:"/::,@",
|
||
web_code:"/大兵",
|
||
style:"icon_smiley_29"
|
||
},{
|
||
id:30,
|
||
cn:"[奋斗]",
|
||
hk:"[奮鬥]",
|
||
us:"[Determined]",
|
||
code:"/:,@f",
|
||
web_code:"/奋斗",
|
||
style:"icon_smiley_30"
|
||
},{
|
||
id:31,
|
||
cn:"[咒骂]",
|
||
hk:"[咒罵]",
|
||
us:"[Scold]",
|
||
code:"/::-S",
|
||
web_code:"/咒骂",
|
||
style:"icon_smiley_31"
|
||
},{
|
||
id:32,
|
||
cn:"[疑问]",
|
||
hk:"[疑問]",
|
||
us:"[Shocked]",
|
||
code:"/:?",
|
||
web_code:"/疑问",
|
||
style:"icon_smiley_32"
|
||
},{
|
||
id:33,
|
||
cn:"[嘘]",
|
||
hk:"[噓]",
|
||
us:"[Shhh]",
|
||
code:"/:,@x",
|
||
web_code:"/嘘",
|
||
style:"icon_smiley_33"
|
||
},{
|
||
id:34,
|
||
cn:"[晕]",
|
||
hk:"[暈]",
|
||
us:"[Dizzy]",
|
||
code:"/:,@@",
|
||
web_code:"/晕",
|
||
style:"icon_smiley_34"
|
||
},{
|
||
id:35,
|
||
cn:"[疯了]",
|
||
hk:"[瘋了]",
|
||
us:"[Tormented]",
|
||
code:"/::8",
|
||
web_code:"/折磨",
|
||
style:"icon_smiley_35"
|
||
},{
|
||
id:36,
|
||
cn:"[衰]",
|
||
hk:"[衰]",
|
||
us:"[Toasted]",
|
||
code:"/:,@!",
|
||
web_code:"/衰",
|
||
style:"icon_smiley_36"
|
||
},{
|
||
id:37,
|
||
cn:"[骷髅]",
|
||
hk:"[骷髏頭]",
|
||
us:"[Skull]",
|
||
code:"/:!!!",
|
||
web_code:"/骷髅",
|
||
style:"icon_smiley_37"
|
||
},{
|
||
id:38,
|
||
cn:"[敲打]",
|
||
hk:"[敲打]",
|
||
us:"[Hammer]",
|
||
code:"/:xx",
|
||
web_code:"/敲打",
|
||
style:"icon_smiley_38"
|
||
},{
|
||
id:39,
|
||
cn:"[再见]",
|
||
hk:"[再見]",
|
||
us:"[Wave]",
|
||
code:"/:bye",
|
||
web_code:"/再见",
|
||
style:"icon_smiley_39"
|
||
},{
|
||
id:40,
|
||
cn:"[擦汗]",
|
||
hk:"[擦汗]",
|
||
us:"[Speechless]",
|
||
code:"/:wipe",
|
||
web_code:"/擦汗",
|
||
style:"icon_smiley_40"
|
||
},{
|
||
id:41,
|
||
cn:"[抠鼻]",
|
||
hk:"[摳鼻]",
|
||
us:"[NosePick]",
|
||
code:"/:dig",
|
||
web_code:"/抠鼻",
|
||
style:"icon_smiley_41"
|
||
},{
|
||
id:42,
|
||
cn:"[鼓掌]",
|
||
hk:"[鼓掌]",
|
||
us:"[Clap]",
|
||
code:"/:handclap",
|
||
web_code:"/鼓掌",
|
||
style:"icon_smiley_42"
|
||
},{
|
||
id:43,
|
||
cn:"[糗大了]",
|
||
hk:"[羞辱]",
|
||
us:"[Shame]",
|
||
code:"/:&-(",
|
||
web_code:"/糗大了",
|
||
style:"icon_smiley_43"
|
||
},{
|
||
id:44,
|
||
cn:"[坏笑]",
|
||
hk:"[壞笑]",
|
||
us:"[Trick]",
|
||
code:"/:B-)",
|
||
web_code:"/坏笑",
|
||
style:"icon_smiley_44"
|
||
},{
|
||
id:45,
|
||
cn:"[左哼哼]",
|
||
hk:"[左哼哼]",
|
||
us:"[Bah!L]",
|
||
code:"/:<@",
|
||
web_code:"/左哼哼",
|
||
style:"icon_smiley_45"
|
||
},{
|
||
id:46,
|
||
cn:"[右哼哼]",
|
||
hk:"[右哼哼]",
|
||
us:"[Bah!R]",
|
||
code:"/:@>",
|
||
web_code:"/右哼哼",
|
||
style:"icon_smiley_46"
|
||
},{
|
||
id:47,
|
||
cn:"[哈欠]",
|
||
hk:"[哈欠]",
|
||
us:"[Yawn]",
|
||
code:"/::-O",
|
||
web_code:"/哈欠",
|
||
style:"icon_smiley_47"
|
||
},{
|
||
id:48,
|
||
cn:"[鄙视]",
|
||
hk:"[鄙視]",
|
||
us:"[Pooh-pooh]",
|
||
code:"/:>-|",
|
||
web_code:"/鄙视",
|
||
style:"icon_smiley_48"
|
||
},{
|
||
id:49,
|
||
cn:"[委屈]",
|
||
hk:"[委屈]",
|
||
us:"[Shrunken]",
|
||
code:"/:P-(",
|
||
web_code:"/委屈",
|
||
style:"icon_smiley_49"
|
||
},{
|
||
id:50,
|
||
cn:"[快哭了]",
|
||
hk:"[快哭了]",
|
||
us:"[TearingUp]",
|
||
code:"/::'|",
|
||
web_code:"/快哭了",
|
||
style:"icon_smiley_50"
|
||
},{
|
||
id:51,
|
||
cn:"[阴险]",
|
||
hk:"[陰險]",
|
||
us:"[Sly]",
|
||
code:"/:X-)",
|
||
web_code:"/阴险",
|
||
style:"icon_smiley_51"
|
||
},{
|
||
id:52,
|
||
cn:"[亲亲]",
|
||
hk:"[親親]",
|
||
us:"[Kiss]",
|
||
code:"/::*",
|
||
web_code:"/亲亲",
|
||
style:"icon_smiley_52"
|
||
},{
|
||
id:53,
|
||
cn:"[吓]",
|
||
hk:"[嚇]",
|
||
us:"[Wrath]",
|
||
code:"/:@x",
|
||
web_code:"/吓",
|
||
style:"icon_smiley_53"
|
||
},{
|
||
id:54,
|
||
cn:"[可怜]",
|
||
hk:"[可憐]",
|
||
us:"[Whimper]",
|
||
code:"/:8*",
|
||
web_code:"/可怜",
|
||
style:"icon_smiley_54"
|
||
},{
|
||
id:55,
|
||
cn:"[菜刀]",
|
||
hk:"[菜刀]",
|
||
us:"[Cleaver]",
|
||
code:"/:pd",
|
||
web_code:"/菜刀",
|
||
style:"icon_smiley_55"
|
||
},{
|
||
id:56,
|
||
cn:"[西瓜]",
|
||
hk:"[西瓜]",
|
||
us:"[Watermelon]",
|
||
code:"/:<W>",
|
||
web_code:"/西瓜",
|
||
style:"icon_smiley_56"
|
||
},{
|
||
id:57,
|
||
cn:"[啤酒]",
|
||
hk:"[啤酒]",
|
||
us:"[Beer]",
|
||
code:"/:beer",
|
||
web_code:"/啤酒",
|
||
style:"icon_smiley_57"
|
||
},{
|
||
id:58,
|
||
cn:"[篮球]",
|
||
hk:"[籃球]",
|
||
us:"[Basketball]",
|
||
code:"/:basketb",
|
||
web_code:"/篮球",
|
||
style:"icon_smiley_58"
|
||
},{
|
||
id:59,
|
||
cn:"[乒乓]",
|
||
hk:"[乒乓]",
|
||
us:"[PingPong]",
|
||
code:"/:oo",
|
||
web_code:"/乒乓",
|
||
style:"icon_smiley_59"
|
||
},{
|
||
id:60,
|
||
cn:"[咖啡]",
|
||
hk:"[咖啡]",
|
||
us:"[Coffee]",
|
||
code:"/:coffee",
|
||
web_code:"/咖啡",
|
||
style:"icon_smiley_60"
|
||
},{
|
||
id:61,
|
||
cn:"[饭]",
|
||
hk:"[飯]",
|
||
us:"[Rice]",
|
||
code:"/:eat",
|
||
web_code:"/饭",
|
||
style:"icon_smiley_61"
|
||
},{
|
||
id:62,
|
||
cn:"[猪头]",
|
||
hk:"[豬頭]",
|
||
us:"[Pig]",
|
||
code:"/:pig",
|
||
web_code:"/猪头",
|
||
style:"icon_smiley_62"
|
||
},{
|
||
id:63,
|
||
cn:"[玫瑰]",
|
||
hk:"[玫瑰]",
|
||
us:"[Rose]",
|
||
code:"/:rose",
|
||
web_code:"/玫瑰",
|
||
style:"icon_smiley_63"
|
||
},{
|
||
id:64,
|
||
cn:"[凋谢]",
|
||
hk:"[枯萎]",
|
||
us:"[Wilt]",
|
||
code:"/:fade",
|
||
web_code:"/凋谢",
|
||
style:"icon_smiley_64"
|
||
},{
|
||
id:65,
|
||
cn:"[嘴唇]",
|
||
hk:"[嘴唇]",
|
||
us:"[Lips]",
|
||
code:"/:showlove",
|
||
web_code:"/示爱",
|
||
style:"icon_smiley_65"
|
||
},{
|
||
id:66,
|
||
cn:"[爱心]",
|
||
hk:"[愛心]",
|
||
us:"[Heart]",
|
||
code:"/:heart",
|
||
web_code:"/爱心",
|
||
style:"icon_smiley_66"
|
||
},{
|
||
id:67,
|
||
cn:"[心碎]",
|
||
hk:"[心碎]",
|
||
us:"[BrokenHeart]",
|
||
code:"/:break",
|
||
web_code:"/心碎",
|
||
style:"icon_smiley_67"
|
||
},{
|
||
id:68,
|
||
cn:"[蛋糕]",
|
||
hk:"[蛋糕]",
|
||
us:"[Cake]",
|
||
code:"/:cake",
|
||
web_code:"/蛋糕",
|
||
style:"icon_smiley_68"
|
||
},{
|
||
id:69,
|
||
cn:"[闪电]",
|
||
hk:"[閃電]",
|
||
us:"[Lightning]",
|
||
code:"/:li",
|
||
web_code:"/闪电",
|
||
style:"icon_smiley_69"
|
||
},{
|
||
id:70,
|
||
cn:"[炸弹]",
|
||
hk:"[炸彈]",
|
||
us:"[Bomb]",
|
||
code:"/:bome",
|
||
web_code:"/炸弹",
|
||
style:"icon_smiley_70"
|
||
},{
|
||
id:71,
|
||
cn:"[刀]",
|
||
hk:"[刀]",
|
||
us:"[Dagger]",
|
||
code:"/:kn",
|
||
web_code:"/刀",
|
||
style:"icon_smiley_71"
|
||
},{
|
||
id:72,
|
||
cn:"[足球]",
|
||
hk:"[足球]",
|
||
us:"[Soccer]",
|
||
code:"/:footb",
|
||
web_code:"/足球",
|
||
style:"icon_smiley_72"
|
||
},{
|
||
id:73,
|
||
cn:"[瓢虫]",
|
||
hk:"[甲蟲]",
|
||
us:"[Ladybug]",
|
||
code:"/:ladybug",
|
||
web_code:"/瓢虫",
|
||
style:"icon_smiley_73"
|
||
},{
|
||
id:74,
|
||
cn:"[便便]",
|
||
hk:"[便便]",
|
||
us:"[Poop]",
|
||
code:"/:shit",
|
||
web_code:"/便便",
|
||
style:"icon_smiley_74"
|
||
},{
|
||
id:75,
|
||
cn:"[月亮]",
|
||
hk:"[月亮]",
|
||
us:"[Moon]",
|
||
code:"/:moon",
|
||
web_code:"/月亮",
|
||
style:"icon_smiley_75"
|
||
},{
|
||
id:76,
|
||
cn:"[太阳]",
|
||
hk:"[太陽]",
|
||
us:"[Sun]",
|
||
code:"/:sun",
|
||
web_code:"/太阳",
|
||
style:"icon_smiley_76"
|
||
},{
|
||
id:77,
|
||
cn:"[礼物]",
|
||
hk:"[禮物]",
|
||
us:"[Gift]",
|
||
code:"/:gift",
|
||
web_code:"/礼物",
|
||
style:"icon_smiley_77"
|
||
},{
|
||
id:78,
|
||
cn:"[拥抱]",
|
||
hk:"[擁抱]",
|
||
us:"[Hug]",
|
||
code:"/:hug",
|
||
web_code:"/拥抱",
|
||
style:"icon_smiley_78"
|
||
},{
|
||
id:79,
|
||
cn:"[强]",
|
||
hk:"[強]",
|
||
us:"[ThumbsUp]",
|
||
code:"/:strong",
|
||
web_code:"/强",
|
||
style:"icon_smiley_79"
|
||
},{
|
||
id:80,
|
||
cn:"[弱]",
|
||
hk:"[弱]",
|
||
us:"[ThumbsDown]",
|
||
code:"/:weak",
|
||
web_code:"/弱",
|
||
style:"icon_smiley_80"
|
||
},{
|
||
id:81,
|
||
cn:"[握手]",
|
||
hk:"[握手]",
|
||
us:"[Shake]",
|
||
code:"/:share",
|
||
web_code:"/握手",
|
||
style:"icon_smiley_81"
|
||
},{
|
||
id:82,
|
||
cn:"[胜利]",
|
||
hk:"[勝利]",
|
||
us:"[Peace]",
|
||
code:"/:v",
|
||
web_code:"/胜利",
|
||
style:"icon_smiley_82"
|
||
},{
|
||
id:83,
|
||
cn:"[抱拳]",
|
||
hk:"[抱拳]",
|
||
us:"[Fight]",
|
||
code:"/:@)",
|
||
web_code:"/抱拳",
|
||
style:"icon_smiley_83"
|
||
},{
|
||
id:84,
|
||
cn:"[勾引]",
|
||
hk:"[勾引]",
|
||
us:"[Beckon]",
|
||
code:"/:jj",
|
||
web_code:"/勾引",
|
||
style:"icon_smiley_84"
|
||
},{
|
||
id:85,
|
||
cn:"[拳头]",
|
||
hk:"[拳頭]",
|
||
us:"[Fist]",
|
||
code:"/:@@",
|
||
web_code:"/拳头",
|
||
style:"icon_smiley_85"
|
||
},{
|
||
id:86,
|
||
cn:"[差劲]",
|
||
hk:"[差勁]",
|
||
us:"[Pinky]",
|
||
code:"/:bad",
|
||
web_code:"/差劲",
|
||
style:"icon_smiley_86"
|
||
},{
|
||
id:87,
|
||
cn:"[爱你]",
|
||
hk:"[愛你]",
|
||
us:"[RockOn]",
|
||
code:"/:lvu",
|
||
web_code:"/爱你",
|
||
style:"icon_smiley_87"
|
||
},{
|
||
id:88,
|
||
cn:"[NO]",
|
||
hk:"[NO]",
|
||
us:"[Nuh-uh]",
|
||
code:"/:no",
|
||
web_code:"/NO",
|
||
style:"icon_smiley_88"
|
||
},{
|
||
id:89,
|
||
cn:"[OK]",
|
||
hk:"[OK]",
|
||
us:"[OK]",
|
||
code:"/:ok",
|
||
web_code:"/OK",
|
||
style:"icon_smiley_89"
|
||
},{
|
||
id:90,
|
||
cn:"[爱情]",
|
||
hk:"[愛情]",
|
||
us:"[InLove]",
|
||
code:"/:love",
|
||
web_code:"/爱情",
|
||
style:"icon_smiley_90"
|
||
},{
|
||
id:91,
|
||
cn:"[飞吻]",
|
||
hk:"[飛吻]",
|
||
us:"[Blowkiss]",
|
||
code:"/:<L>",
|
||
web_code:"/飞吻",
|
||
style:"icon_smiley_91"
|
||
},{
|
||
id:92,
|
||
cn:"[跳跳]",
|
||
hk:"[跳跳]",
|
||
us:"[Waddle]",
|
||
code:"/:jump",
|
||
web_code:"/跳跳",
|
||
style:"icon_smiley_92"
|
||
},{
|
||
id:93,
|
||
cn:"[发抖]",
|
||
hk:"[發抖]",
|
||
us:"[Tremble]",
|
||
code:"/:shake",
|
||
web_code:"/发抖",
|
||
style:"icon_smiley_93"
|
||
},{
|
||
id:94,
|
||
cn:"[怄火]",
|
||
hk:"[噴火]",
|
||
us:"[Aaagh!]",
|
||
code:"/:<O>",
|
||
web_code:"/怄火",
|
||
style:"icon_smiley_94"
|
||
},{
|
||
id:95,
|
||
cn:"[转圈]",
|
||
hk:"[轉圈]",
|
||
us:"[Twirl]",
|
||
code:"/:circle",
|
||
web_code:"/转圈",
|
||
style:"icon_smiley_95"
|
||
},{
|
||
id:96,
|
||
cn:"[磕头]",
|
||
hk:"[磕頭]",
|
||
us:"[Kotow]",
|
||
code:"/:kotow",
|
||
web_code:"/磕头",
|
||
style:"icon_smiley_96"
|
||
},{
|
||
id:97,
|
||
cn:"[回头]",
|
||
hk:"[回頭]",
|
||
us:"[Dramatic]",
|
||
code:"/:turn",
|
||
web_code:"/回头",
|
||
style:"icon_smiley_97"
|
||
},{
|
||
id:98,
|
||
cn:"[跳绳]",
|
||
hk:"[跳繩]",
|
||
us:"[JumpRope]",
|
||
code:"/:skip",
|
||
web_code:"/跳绳",
|
||
style:"icon_smiley_98"
|
||
},{
|
||
id:99,
|
||
cn:"[投降]",
|
||
hk:"[投降]",
|
||
us:"[Surrender]",
|
||
code:"/:oY",
|
||
web_code:"/挥手",
|
||
style:"icon_smiley_99"
|
||
},{
|
||
id:100,
|
||
cn:"[激动]",
|
||
hk:"[激動]",
|
||
us:"[Hooray]",
|
||
code:"/:#-0",
|
||
web_code:"/激动",
|
||
style:"icon_smiley_100"
|
||
},{
|
||
id:101,
|
||
cn:"[乱舞]",
|
||
hk:"[亂舞]",
|
||
us:"[Meditate]",
|
||
code:"/:hiphot",
|
||
web_code:"/街舞",
|
||
style:"icon_smiley_101"
|
||
},{
|
||
id:102,
|
||
cn:"[献吻]",
|
||
hk:"[獻吻]",
|
||
us:"[Smooch]",
|
||
code:"/:kiss",
|
||
web_code:"/献吻",
|
||
style:"icon_smiley_102"
|
||
},{
|
||
id:103,
|
||
cn:"[左太极]",
|
||
hk:"[左太極]",
|
||
us:"[TaiChi L]",
|
||
code:"/:<&",
|
||
web_code:"/左太极",
|
||
style:"icon_smiley_103"
|
||
},{
|
||
id:104,
|
||
cn:"[右太极]",
|
||
hk:"[右太極]",
|
||
us:"[TaiChi R]",
|
||
code:"/:&>",
|
||
web_code:"/右太极",
|
||
style:"icon_smiley_104"
|
||
},{
|
||
id:204,
|
||
cn:"[嘿哈]",
|
||
hk:"[吼嘿]",
|
||
us:"[Hey]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_4"
|
||
},{
|
||
id:205,
|
||
cn:"[捂脸]",
|
||
hk:"[掩面]",
|
||
us:"[Facepalm]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_5"
|
||
},{
|
||
id:202,
|
||
cn:"[奸笑]",
|
||
hk:"[奸笑]",
|
||
us:"[Smirk]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_2"
|
||
},{
|
||
id:206,
|
||
cn:"[机智]",
|
||
hk:"[機智]",
|
||
us:"[Smart]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_6"
|
||
},{
|
||
id:212,
|
||
cn:"[皱眉]",
|
||
hk:"[皺眉]",
|
||
us:"[Moue]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_12"
|
||
},{
|
||
id:211,
|
||
cn:"[耶]",
|
||
hk:"[歐耶]",
|
||
us:"[Yeah!]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_11"
|
||
},{
|
||
id:207,
|
||
cn:"[茶]",
|
||
hk:"[茶]",
|
||
us:"[Tea]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_7"
|
||
},{
|
||
id:209,
|
||
cn:"[红包]",
|
||
hk:"[Packet]",
|
||
us:"[Packet]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_9"
|
||
},{
|
||
id:210,
|
||
cn:"[蜡烛]",
|
||
hk:"[蠟燭]",
|
||
us:"[Candle]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_10"
|
||
},{
|
||
id:215,
|
||
cn:"[福]",
|
||
hk:"[福]",
|
||
us:"[Blessing]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_15"
|
||
},{
|
||
id:214,
|
||
cn:"[鸡]",
|
||
hk:"[小雞]",
|
||
us:"[Chick]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_14"
|
||
},{
|
||
id:300,
|
||
cn:"[笑脸]",
|
||
emoji:"😄",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue415",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_0"
|
||
},{
|
||
id:301,
|
||
cn:"[生病]",
|
||
emoji:"😷",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue40c",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_1"
|
||
},{
|
||
id:302,
|
||
cn:"[破涕为笑]",
|
||
emoji:"😂",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue412",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_2"
|
||
},{
|
||
id:303,
|
||
cn:"[吐舌]",
|
||
emoji:"😝",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue409",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_3"
|
||
},{
|
||
id:304,
|
||
cn:"[脸红]",
|
||
emoji:"😳",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue40d",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_4"
|
||
},{
|
||
id:305,
|
||
cn:"[恐惧]",
|
||
emoji:"😱",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue107",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_5"
|
||
},{
|
||
id:306,
|
||
cn:"[失望]",
|
||
emoji:"😔",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue403",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_6"
|
||
},{
|
||
id:307,
|
||
cn:"[无语]",
|
||
emoji:"😒",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue40e",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_7"
|
||
},{
|
||
id:308,
|
||
cn:"[鬼魂]",
|
||
emoji:"👻",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue11b",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_8"
|
||
},{
|
||
id:309,
|
||
cn:"[合十]",
|
||
emoji:"🙏",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue41d",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_9"
|
||
},{
|
||
id:310,
|
||
cn:"[强壮]",
|
||
emoji:"💪",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue14c",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_10"
|
||
},{
|
||
id:311,
|
||
cn:"[庆祝]",
|
||
emoji:"🎉",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue312",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_11"
|
||
},{
|
||
id:312,
|
||
cn:"[礼物]",
|
||
hk:"",
|
||
us:"",
|
||
code:"\\ue112",
|
||
web_code:"",
|
||
style:"icon_emoji_ios_12"
|
||
},{
|
||
id:"17_1",
|
||
cn:"[囧]",
|
||
hk:"[囧]",
|
||
us:"[Blush]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_smiley_17"
|
||
},{
|
||
id:"39_1",
|
||
cn:"[再见]",
|
||
hk:"[再見]",
|
||
us:"[Bye]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_smiley_39"
|
||
},{
|
||
id:"83_1",
|
||
cn:"[抱拳]",
|
||
hk:"[抱拳]",
|
||
us:"[Salute]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_smiley_83"
|
||
},{
|
||
id:"212_1",
|
||
cn:"[皱眉]",
|
||
hk:"[皺眉]",
|
||
us:"[Concerned]",
|
||
code:"",
|
||
web_code:"",
|
||
style:"icon_emoji_wx_12"
|
||
}];
|
||
});define("pages/musicUrlReport.js",["biz_wap/utils/ajax.js"],function(s){
|
||
"use strict";
|
||
var e=s("biz_wap/utils/ajax.js"),r=function(){
|
||
var s=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],r=[""];
|
||
r.push(1*s.type===1?1:2),r.push(s.songid||""),r.push(s.musicid||""),r.push(s.jumpurlkey||""),
|
||
r.push(""),r.push(s.kugouParams||"");
|
||
for(var t=encodeURIComponent(s.responseData||""),u=2e3,a=parseInt(t.length/u,10),p=0;a>=p;p++){
|
||
var n=t.substr(p*u,u);
|
||
n&&r.push(n);
|
||
}
|
||
e({
|
||
url:"/mp/webcommreport?action=report",
|
||
type:"POST",
|
||
data:{
|
||
logid:18027,
|
||
buffer:r.join(",")
|
||
}
|
||
});
|
||
};
|
||
return{
|
||
reportRespData:r
|
||
};
|
||
});define("biz_wap/jsapi/log.js",["biz_wap/jsapi/core.js","biz_wap/utils/mmversion.js"],function(i){
|
||
"use strict";
|
||
function o(i,o){
|
||
o=e+" "+o+" location:["+location.href+"]",n.isWechat&&n.isAndroid?r.invoke("log",{
|
||
level:i,
|
||
msg:o
|
||
}):n.isWechat&&(n.isIOS||n.isMac)&&r.invoke("writeLog",{
|
||
level:i,
|
||
msg:o
|
||
});
|
||
}
|
||
var r=i("biz_wap/jsapi/core.js"),n=i("biz_wap/utils/mmversion.js"),e="__wap__",a={
|
||
info:function(){
|
||
o("info",Array.prototype.join.apply(arguments));
|
||
},
|
||
warn:function(){
|
||
o("warn",Array.prototype.join.apply(arguments));
|
||
},
|
||
error:function(){
|
||
o("error",Array.prototype.join.apply(arguments));
|
||
},
|
||
debug:function(){
|
||
o("debug",Array.prototype.join.apply(arguments));
|
||
}
|
||
};
|
||
return a.log=a.info,a;
|
||
});define("pages/player_tips.js",["biz_common/tmpl.js","pages/audition_tpl.html.js","biz_common/dom/event.js"],function(t){
|
||
"use strict";
|
||
function i(t){
|
||
this.parent=document.body,this.opt=t||{},this.init();
|
||
}
|
||
var n=t("biz_common/tmpl.js"),e=t("pages/audition_tpl.html.js"),o=t("biz_common/dom/event.js");
|
||
return i.prototype.init=function(){
|
||
var t=document.createElement("div");
|
||
t.innerHTML=n.tmpl(e,this.opt),this.parent.appendChild(t),this.dom=document.getElementById("js_music_dialog");
|
||
var i=this;
|
||
o.on(i.dom.getElementsByClassName("js_submit")[0],"click",function(){
|
||
i.parent.removeChild(t),"function"==typeof i.opt.onClick&&i.opt.onClick();
|
||
});
|
||
},i;
|
||
});define("pages/music_report_conf.js",[],function(){
|
||
"use strict";
|
||
return{
|
||
m_pv:"28306_0",
|
||
m_wx_pv:"28306_1",
|
||
m_h5_pv:"28306_2",
|
||
m_unload_wx_pv:"28306_3",
|
||
v_pv:"28306_4",
|
||
v_wx_pv:"28306_5",
|
||
v_h5_pv:"28306_6",
|
||
v_unload_wx_pv:"28306_7",
|
||
force_h5:"28306_30",
|
||
m_h5_err_total:"28306_31",
|
||
m_h5_err_1:"28306_32",
|
||
m_h5_err_2:"28306_33",
|
||
m_h5_err_3:"28306_34",
|
||
m_h5_err_4:"28306_35",
|
||
m_h5_err_5:"28306_36",
|
||
v_h5_err_total:"28306_37",
|
||
v_h5_err_1:"28306_38",
|
||
v_h5_err_2:"28306_39",
|
||
v_h5_err_3:"28306_40",
|
||
v_h5_err_4:"28306_41",
|
||
v_h5_err_5:"28306_42",
|
||
m_wx_pv_2:"28306_43",
|
||
v_wx_pv_2:"28306_44",
|
||
m_wx_pv_1:"28306_50",
|
||
v_wx_pv_1:"28306_55",
|
||
m_wx_err_1:"28306_58",
|
||
m_wx_err_2:"28306_59",
|
||
v_wx_err_1:"28306_60",
|
||
v_wx_err_2:"28306_61",
|
||
v_stoped_android:"59288_1",
|
||
v_stoped_ios:"59288_0",
|
||
v_paused_android:"59288_7",
|
||
v_paused_ios:"59288_6",
|
||
m_stoped_android:"59288_3",
|
||
m_stoped_ios:"59288_2",
|
||
m_paused_android:"59288_9",
|
||
m_paused_ios:"59288_8",
|
||
k_stoped_android:"59288_5",
|
||
k_stoped_ios:"59288_4",
|
||
k_paused_android:"59288_11",
|
||
k_paused_ios:"59288_10",
|
||
k_pv:"28306_66",
|
||
k_wx_pv:"28306_67",
|
||
k_h5_pv:"28306_69",
|
||
k_unload_wx_pv:"28306_71",
|
||
k_h5_err_total:"28306_72",
|
||
k_h5_err_1:"28306_74",
|
||
k_h5_err_2:"28306_75",
|
||
k_h5_err_3:"28306_76",
|
||
k_h5_err_4:"28306_77",
|
||
k_h5_err_5:"28306_78",
|
||
k_wx_pv_1:"28306_79",
|
||
k_wx_pv_2:"28306_81",
|
||
k_wx_err_1:"28306_83",
|
||
k_wx_err_2:"28306_85",
|
||
aac_pv:"28306_104",
|
||
ios_aac_err_1:"28306_106",
|
||
ios_aac_err_2:"28306_108",
|
||
android_aac_err_1:"28306_110",
|
||
android_aac_err_2:"28306_112",
|
||
v_seek_err:"28306_114",
|
||
android_aac_err_3:"28306_116",
|
||
ios_aac_err_3:"28306_118",
|
||
QMClient_pv:"62866_0",
|
||
QMClient_play:"62866_1",
|
||
QMClient_js_num:"62866_2",
|
||
QMClient_js_suc:"62866_3",
|
||
QMClient_js_err:"62866_5",
|
||
QMClient_js_timeout:"62866_7",
|
||
QMClient_js_network:"62866_9"
|
||
};
|
||
});define("pages/report.js",["biz_wap/utils/ajax.js","pages/version4video.js"],function(e){
|
||
"use strict";
|
||
function i(e){
|
||
var i=["/mp/pagereport?type=","undefined"==typeof e.type?1:e.type,"&comment_id=",e.comment_id||"","&voiceid=",e.voiceid||"","&action=",e.action,"&__biz=",parent.window.biz||"","&mid=",parent.window.mid||"","&idx=",parent.window.idx||"","&scene=",parent.window.scene||"","&t=",Math.random()].join("");
|
||
s({
|
||
type:"GET",
|
||
url:i,
|
||
timeout:2e4
|
||
});
|
||
}
|
||
function t(e){
|
||
s({
|
||
type:"POST",
|
||
url:"/mp/videoreport?#wechat_redirect",
|
||
timeout:5e3,
|
||
async:e.async===!0?!0:!1,
|
||
data:e.data
|
||
});
|
||
}
|
||
function o(e){
|
||
for(var i=JSON.parse(JSON.stringify(e.data)),t=[],o=0,n=i.seek_position.length;n>o;o++){
|
||
var a=i.seek_position[o];
|
||
if(a&&a.length>0){
|
||
var d=a.join("#");
|
||
t.push(d||"");
|
||
}else t.push("");
|
||
}
|
||
i.seek_position=t;
|
||
for(var r=[],o=0,n=i.seek_loaded.length;n>o;o++){
|
||
var a=i.seek_loaded[o];
|
||
if(a&&a.length>0){
|
||
var d=a.join(",");
|
||
r.push(d||"");
|
||
}else r.push("");
|
||
}
|
||
i.seek_loaded=r;
|
||
for(var p=[],c=30;i.musicid.length>0;){
|
||
var a={};
|
||
for(var o in i)i.hasOwnProperty(o)&&("[object Array]"==Object.prototype.toString.call(i[o])?(a[o]=i[o].splice(0,c),
|
||
a[o]=a[o].join("mtitle"==o?";#":";")):a[o]=i[o]);
|
||
p.push(a);
|
||
}
|
||
return p;
|
||
}
|
||
function n(e){
|
||
var i=window.cgiData&&window.cgiData.txvideo_openid?window.cgiData.txvideo_openid:"",t=encodeURIComponent(parent.window.location.href.replace(/(\?|&)(key|uin)=([\S\s]*?)(&|$)/g,"$1").replace(/&$/,"")),o=["http://btrace.qq.com/kvcollect?BossId=2973&Pwd=1557019983&step=1009&vid=","undefined"!=typeof e.vid?e.vid:"","&platform=",d(),"&val=","undefined"!=typeof e.val?e.val:"","&val1=","undefined"!=typeof e.val1?e.val1:"","&vurl=",encodeURIComponent(e.vurl),"&t=",Math.random(),"&url=",t,"&wx_openid=",i].join(""),n=new Image;
|
||
n.src=o.substr(0,1024);
|
||
}
|
||
function a(e){
|
||
if(3==e.step||6==e.step||1999==e.step){
|
||
var i=window.cgiData&&window.cgiData.txvideo_openid?window.cgiData.txvideo_openid:"",t=encodeURIComponent(parent.window.location.href.replace(/(\?|&)(key|uin)=([\S\s]*?)(&|$)/g,"$1").replace(/&$/,"")),o=["http://btrace.qq.com/kvcollect?BossId=2973&Pwd=1557019983&step=",e.step,"&vid=","undefined"!=typeof e.vid?e.vid:"","&platform=",d(),"&loadwait=","undefined"!=typeof e.loadwait?e.loadwait:"","&val=","undefined"!=typeof e.val?e.val:"","&t=",Math.random(),"&url=",t,"undefined"!=typeof e.vt&&""!==e.vt&&6==e.step?"&vt="+e.vt:"","&wx_openid=",i].join(""),n=new Image;
|
||
n.src=o.substr(0,1024);
|
||
}
|
||
}
|
||
function d(){
|
||
var e=_.device;
|
||
return e.ipad?60101:e.is_android_phone?60301:e.iphone?60401:e.is_android_tablet?60501:"";
|
||
}
|
||
function r(){
|
||
var e=_.device;
|
||
return e.ipad?"v4010":e.is_android_phone&&_.isUseProxy()?"v5060":e.is_android_phone?"v5060":e.iphone&&_.isUseProxy()?"v3060":e.iphone?"v3060":e.is_android_tablet?"v6010":"";
|
||
}
|
||
function p(e){
|
||
var i={
|
||
mid:window.mid||0,
|
||
__biz:window.biz||0,
|
||
idx:window.idx||0,
|
||
musicid:[],
|
||
hasended:[],
|
||
commentid:[],
|
||
scene_type:e.type||0,
|
||
mtitle:[],
|
||
detail_click:[],
|
||
app_btn_kv:0,
|
||
app_btn_click:0,
|
||
app_btn_type:0,
|
||
errorcode:[],
|
||
seek:[],
|
||
seek_position:[],
|
||
duration2:[],
|
||
play_duration2:[],
|
||
play_last_time:[],
|
||
local_time:[],
|
||
seek_loaded:[]
|
||
};
|
||
return i;
|
||
}
|
||
function c(){
|
||
var e={
|
||
videoerror:0,
|
||
like_kv_vid:"",
|
||
like_click_vid:"",
|
||
like_kv_alginfo:"",
|
||
like_click_alginfo:"",
|
||
tad:"",
|
||
page:0,
|
||
like_click_type:0,
|
||
iplat:2,
|
||
ptype:1,
|
||
rtype:"",
|
||
getvinfo_ret:-1,
|
||
getvinfo_time:0,
|
||
v_err_code:0,
|
||
loadwait:0,
|
||
hasended:0,
|
||
last_ms:0,
|
||
duration_ms:0,
|
||
app_btn_kv:0,
|
||
app_btn_click:0,
|
||
app_btn_type:0,
|
||
mid:"",
|
||
__biz:"",
|
||
idx:"",
|
||
detail_click:0,
|
||
vtitle:"",
|
||
vid:"",
|
||
commentid:"",
|
||
scene_type:0,
|
||
replay:0,
|
||
full_screen:0,
|
||
quick_play:0,
|
||
ad_play_time:-1,
|
||
video_play_time:-1,
|
||
click_play_button:0,
|
||
traceid:"",
|
||
webviewid:"",
|
||
orderid:0,
|
||
play_time:0,
|
||
client_time_when_play:Math.round(+new Date/1e3),
|
||
drag_times:"",
|
||
pause_num:0,
|
||
h5_profile:0,
|
||
to_article:0,
|
||
desc_more_click:0,
|
||
desc_more_show:0,
|
||
fromid:0,
|
||
openid:window.cgiData&&window.cgiData.txvideo_openid?window.cgiData.txvideo_openid:"",
|
||
file_size:0,
|
||
rate:0,
|
||
resolution:0,
|
||
format:"",
|
||
vt:"",
|
||
video_ext:"unknown",
|
||
content_url:parent.window.location.href,
|
||
auto_play:0,
|
||
ori_status:3,
|
||
hit_bizuin:"",
|
||
sessionid:window.sessionid||"",
|
||
hit_vid:""
|
||
};
|
||
return e;
|
||
}
|
||
function l(e,i,t){
|
||
var o=0,n=[],a={};
|
||
if(i&&"[object String]"==Object.prototype.toString.call(i))o=1,"img"==t&&(i=encodeURIComponent(i)),
|
||
n.push("log0="+i),a.log0=i;else if(i&&"[object Array]"==Object.prototype.toString.call(i)){
|
||
o=i.length;
|
||
for(var d=0;o>d;d++){
|
||
var r="img"==t?encodeURIComponent(i[d]):i[d];
|
||
n.push("log"+d+"="+r),a["log"+d]=r;
|
||
}
|
||
}
|
||
if("img"==t){
|
||
var p=new Image,c="//mp.weixin.qq.com/mp/jsmonitor?idkey="+e;
|
||
o>0&&(c+="&lc="+o+"&"+n.join("&")),c+="&t="+Math.random(),p.src=c;
|
||
}else{
|
||
var l={};
|
||
o>0&&(l=a),l.idkey=e,l.lc=o,s({
|
||
type:"POST",
|
||
url:"//mp.weixin.qq.com/mp/jsmonitor?",
|
||
timeout:1e4,
|
||
data:l,
|
||
dataType:"json"
|
||
});
|
||
}
|
||
}
|
||
var s=e("biz_wap/utils/ajax.js"),_=e("pages/version4video.js");
|
||
return{
|
||
report:i,
|
||
videoreport:t,
|
||
getPlatformType:d,
|
||
getsdtfrom:r,
|
||
getinfoReport:n,
|
||
qqvideo_common_report:a,
|
||
musicreport:o,
|
||
getMusicReportData:p,
|
||
getVideoReportData:c,
|
||
logReport:l
|
||
};
|
||
});define("pages/player_adaptor.js",["pages/music_player.js","biz_common/utils/monitor.js","pages/loadscript.js","pages/music_report_conf.js"],function(t){
|
||
"use strict";
|
||
function i(t,i){
|
||
0!=t.type&&1!=t.type||!p.inQMClient?"function"==typeof i.callback&&i.callback(new a.init(t)):(p.initPlayerQueue.push(n("QMClient",t,i)),
|
||
e("QMClient"));
|
||
}
|
||
function n(t,i,n){
|
||
var e=p.config[t].func;
|
||
return function(t,i,n,e){
|
||
return function(){
|
||
"function"==typeof window[i]?"function"==typeof e.callback&&e.callback(new r(n,{
|
||
type:t
|
||
})):"function"==typeof e.callback&&e.callback(new a.init(n));
|
||
};
|
||
}(t,e,i,n);
|
||
}
|
||
function e(t){
|
||
var i=p.config[t];
|
||
if(1!=i.jsLoadState){
|
||
if(2==i.jsLoadState||3==i.jsLoadState)return void s();
|
||
i.jsLoadState=1;
|
||
var n=+new Date,e=l[t+"_js_num"];
|
||
e&&(e=e.split("_"),c.setSum(e[0],e[1],1),c.send()),u({
|
||
url:i.jsLink,
|
||
timeout:1e4,
|
||
type:"JS",
|
||
callback:function(){
|
||
+new Date-n;
|
||
2==i.jsLoadState,s();
|
||
var e=l[t+"_js_suc"];
|
||
e&&(e=e.split("_"),c.setSum(e[0],e[1],1),c.send());
|
||
},
|
||
onerror:function(e){
|
||
+new Date-n;
|
||
i.jsLoadState=3,s();
|
||
var o=l[t+"_js_err"],r=l[t+"_js_timeout"],a=l[t+"_js_network"];
|
||
if(o&&r&&a){
|
||
switch(o=o.split("_"),r=r.split("_"),a=a.split("_"),c.setSum(o[0],o[1],1),1*e){
|
||
case 400:
|
||
c.setSum(a[0],a[1],1);
|
||
break;
|
||
|
||
case 500:
|
||
c.setSum(r[0],r[1],1);
|
||
}
|
||
c.send();
|
||
}
|
||
}
|
||
});
|
||
}
|
||
}
|
||
function s(){
|
||
for(var t=0,i=p.initPlayerQueue.length;i>t;t++)"function"==typeof p.initPlayerQueue[t]&&p.initPlayerQueue[t]();
|
||
p.initPlayerQueue=[];
|
||
}
|
||
function o(){
|
||
for(var t in p.config)"function"==typeof p[t+"EvInit"]&&p[t+"EvInit"]();
|
||
}
|
||
function r(t,i){
|
||
if(this.opt=t,this.opt2=i,this._g={
|
||
_blockPlugin:{},
|
||
playType:"-1"
|
||
},"QMClient"==i.type&&p.inQMClient){
|
||
var n=p.config[i.type];
|
||
n.playerObj||(p.config[i.type].playerObj=new window[n.func]),this._g.playType=i.type,
|
||
this.player=n.playerObj,this._initPlugins(),this._bindQMEvent();
|
||
}
|
||
}
|
||
var a=t("pages/music_player.js"),c=t("biz_common/utils/monitor.js"),u=t("pages/loadscript.js"),l=t("pages/music_report_conf.js"),p={
|
||
debug:location.href.indexOf("_qqclient=1")>0?!0:!1,
|
||
config:{
|
||
QMClient:{
|
||
func:"Player",
|
||
playerObj:null,
|
||
jsLink:"https://imgcache.qq.com/music/h5/player/player.js?max_age=604800&v=1",
|
||
jsLoadState:-1
|
||
}
|
||
},
|
||
inQMClient:!1,
|
||
initPlayerQueue:[]
|
||
};
|
||
return p.QMClientEvInit=function(){
|
||
if(p.inQMClient=window.navigator.userAgent.indexOf("QQMusic/")>0||p.debug?!0:!1,
|
||
p.inQMClient&&window.msg_cdn_url&&window.msg_title){
|
||
var t=window.location.href,i=a.getQuery("scene",t);
|
||
i&&(t=t.replace("&scene="+i,"").replace("?scene="+i,"")),t=t.replace(/#rd$/,"").replace(/#wechat_redirect$/,""),
|
||
-1==t.indexOf("?")&&(t+="?"),t+="&scene=112#wechat_redirect";
|
||
var n=function(t){
|
||
window.WebViewJavascriptBridge?t():document.addEventListener("WebViewJavascriptBridgeReady",t);
|
||
},e=(window.msg_title||"").html(!1),s=(window.msg_desc||"").html(!1);
|
||
n(function(){
|
||
M.client.invoke("ui","setActionBtn",{
|
||
type:"icon",
|
||
content:"share"
|
||
},function(){
|
||
M.client.invoke("other","callShareWeb",{
|
||
imgUrl:window.msg_cdn_url,
|
||
link:t,
|
||
title:e,
|
||
desc:s
|
||
});
|
||
});
|
||
});
|
||
}
|
||
},o(),r.prototype={
|
||
_initPlugins:function(){
|
||
this.opt.plugins||(this.opt.plugins=[]);
|
||
for(var t=this.opt.plugins,i=0,n=t.length;n>i;++i){
|
||
var e=t[i];
|
||
e.setPlayer(this),!!e.init&&e.init();
|
||
}
|
||
},
|
||
_trigger:function(t,i){
|
||
var n=this.opt,e=this._g,s=n.plugins,o=e._blockPlugin[t]||e._blockPlugin.all,r=0;
|
||
if(o&&"function"==typeof o.recv&&(r|=o.recv(t,i),1&r))return!1;
|
||
for(var a=0,c=s.length;c>a&&(r|=s[a].recv(t,i),!(2&r));++a);
|
||
if(!(4&r)){
|
||
var u=this["__"+t+"Handler"];
|
||
u&&u.call(this,i);
|
||
}
|
||
8&r||this.__triggerOutside(t,i);
|
||
},
|
||
__triggerOutside:function(){
|
||
var t=arguments,i=t[0];
|
||
if(i){
|
||
i=i.substr(0,1).toUpperCase()+i.substr(1);
|
||
var n=this.opt["on"+i];
|
||
"function"==typeof n&&n.apply(this,t);
|
||
}
|
||
},
|
||
_setBlockPlugin:function(t,i){
|
||
this._g._blockPlugin[t]=i;
|
||
},
|
||
_bindQMEvent:function(){
|
||
var t=this;
|
||
this.player.on("play",function(i){
|
||
i&&i.song&&i.song.mid==t.opt.mid?(t._trigger("statusChange",1),t._trigger("QMClientPlay")):t._trigger("statusChange",3);
|
||
}),this.player.on("pause",function(i){
|
||
i&&i.song&&i.song.mid==t.opt.mid&&t._trigger("statusChange",2);
|
||
}),this.player.on("stop",function(i){
|
||
i&&i.song&&i.song.mid==t.opt.mid&&t._trigger("statusChange",3);
|
||
});
|
||
},
|
||
play:function(){
|
||
"QMClient"==this._g.playType&&this.player.play(this.opt.mid);
|
||
},
|
||
pause:function(){
|
||
this.player.pause();
|
||
},
|
||
stop:function(){
|
||
this.player.stop();
|
||
},
|
||
getDuration:function(){
|
||
return this.opt.duration?this.opt.duration:"QMClient"==this._g.playType?this.player.duration||0:0;
|
||
},
|
||
getCurTime:function(){
|
||
return"QMClient"==this._g.playType?this.player.currentTime||0:0;
|
||
},
|
||
surportSeekRange:function(){
|
||
return!1;
|
||
},
|
||
getSrc:function(){
|
||
return"";
|
||
},
|
||
destory:function(){},
|
||
seek:function(){},
|
||
setDuration:function(){},
|
||
setSrc:function(){}
|
||
},{
|
||
create:i,
|
||
inQMClient:p.inQMClient
|
||
};
|
||
});define("pages/music_player.js",["biz_wap/utils/mmversion.js","pages/report.js","biz_common/dom/event.js","biz_wap/jsapi/core.js","pages/version4video.js","biz_common/utils/monitor.js","appmsg/log.js"],function(t){
|
||
"use strict";
|
||
function e(){
|
||
b.hasInit||(b.hasInit=!0,p(),d(),u());
|
||
}
|
||
function o(t){
|
||
e(),this._o={
|
||
plugins:[],
|
||
protocal:"",
|
||
wxIndex:0,
|
||
type:0,
|
||
src:"",
|
||
jsapi2Src:"",
|
||
mid:"",
|
||
autoPlay:!1,
|
||
duration:0,
|
||
needVioceMutex:!0,
|
||
title:"",
|
||
allowPause:!1,
|
||
singer:"",
|
||
epname:"",
|
||
coverImgUrl:"",
|
||
webUrl:"",
|
||
musicbar_url:"",
|
||
fileSize:0,
|
||
onStatusChange:function(){},
|
||
onTimeupdate:function(){},
|
||
onError:function(){},
|
||
onUpdateSeekRange:function(){}
|
||
},this._extend(t),this._status=-1,this._g={
|
||
mutexKey:"",
|
||
jsapiSrcId:"",
|
||
hasCheckPlay:!1,
|
||
playTimeoutId:null,
|
||
stateChangeCallback:{},
|
||
_blockPlugin:{},
|
||
hasInitH5Event:!1,
|
||
h5Event:{},
|
||
totalPlayTime:0
|
||
},this._initPlugins(),this._fixAndroidSizeLimit(),0!==b.surportType&&(this._initData(),
|
||
this._synPlayStatus());
|
||
}
|
||
function i(t){
|
||
S.invoke("musicPlay",{
|
||
app_id:"a",
|
||
title:"微信公众平台",
|
||
singer:"微信公众平台",
|
||
epname:"微信公众平台",
|
||
coverImgUrl:"http://res.wx.qq.com/mpres/htmledition/images/favicon.ico",
|
||
dataUrl:b.ev,
|
||
lowbandUrl:b.ev,
|
||
webUrl:"http://mp.weixin.qq.com/s?"
|
||
},function(e){
|
||
"function"==typeof t&&t(e);
|
||
});
|
||
}
|
||
function n(t){
|
||
a({
|
||
cur:t,
|
||
stopCur:!1
|
||
});
|
||
}
|
||
function a(t){
|
||
function e(){
|
||
if(b.mutexCount==s&&(s=0,b.mutexCount=0,"function"==typeof n)){
|
||
var t=0;
|
||
1==b.surportType?t=2e3:3==b.surportType&&(t=0),setTimeout(function(){
|
||
n();
|
||
},t);
|
||
}
|
||
}
|
||
if(0!=b.mutexCount)return void setTimeout(function(){
|
||
a(t);
|
||
},200);
|
||
var o=t.cur,i=t.stopCur===!0?!0:!1,n=t.callback,s=0;
|
||
for(var r in b.mutexPlayers)for(var u=0,p=b.mutexPlayers[r].length;p>u;u++)s++;
|
||
for(var r in b.mutexPlayers)for(var u=0,p=b.mutexPlayers[r].length;p>u;u++){
|
||
var c=b.mutexPlayers[r][u];
|
||
if(c&&c!==o){
|
||
var l=c.getSurportType(),d="";
|
||
2!=l||1!=c._status&&4!=c._status?1!=l&&3!=l||1!=c._status&&2!=c._status&&4!=c._status||(d="stop"):d=c._o.allowPause?"pause":"stop",
|
||
d&&"function"==typeof c[d]?c[d](i,function(){
|
||
b.mutexCount++,e();
|
||
}):(b.mutexCount++,e());
|
||
}else b.mutexCount++,e();
|
||
}
|
||
}
|
||
function s(){
|
||
return b.surportType;
|
||
}
|
||
function r(t){
|
||
return new o(t);
|
||
}
|
||
function u(){
|
||
b.surportType>0&&b.isAndroidLow&&window.addEventListener("canplay",function(t){
|
||
t.target&&"function"==typeof t.target.play&&t.target.play();
|
||
},!0);
|
||
}
|
||
function p(){
|
||
b.jsapiGlobalEvent={
|
||
error:_,
|
||
pause:y,
|
||
stop:h,
|
||
play:g,
|
||
preempted:h,
|
||
waiting:f
|
||
};
|
||
}
|
||
function c(t){
|
||
return"&"+b.wxtag+"="+t;
|
||
}
|
||
function l(t,e){
|
||
e=e||"info";
|
||
var o="[musicplay]"+t+"[location:"+location.href+"]";
|
||
A(o,e);
|
||
}
|
||
function d(){
|
||
S.on("onBackgroundAudioStateChange",function(t){
|
||
if(!!b.debug&&console.log("onBackgroundAudioStateChange log:"+JSON.stringify(t||{})),
|
||
t.src&&t.state){
|
||
var e=P(b.wxtag,t.src)||"";
|
||
e&&(e=c(e));
|
||
var o=b.mutexPlayers[t.src]||b.mutexPlayers2[t.src]||b.mutexPlayers[e];
|
||
if(o){
|
||
var i;
|
||
if(t.srcId)for(var n=0,a=o.length;a>n;n++)o[n]._g.jsapiSrcId==t.srcId&&(i=o[n]);else if(1==o.length)i=o[0];else for(var n=0,a=o.length;a>n;n++)if(-1!=o[n]._status&&0!=o[n]._status&&3!=o[n]._status){
|
||
i=o[n];
|
||
break;
|
||
}
|
||
if(i&&i._g.stateChangeCallback){
|
||
var s=t.state;
|
||
"ended"==s&&(s="stop"),"wait"==s&&(s="waiting");
|
||
var r=!1,u=JSON.stringify(t||{});
|
||
if("error"==s){
|
||
i.jsapiLog("onBackgroundAudioStateChange error;res:"+u);
|
||
for(var p in i._g.stateChangeCallback)i._g.stateChangeCallback.hasOwnProperty(p)&&"function"==typeof i._g.stateChangeCallback[p]&&(r=!0,
|
||
i._g.stateChangeCallback[p](-1,t.errMsg||""),i._g.stateChangeCallback[p]=null);
|
||
}else"function"==typeof i._g.stateChangeCallback[s]&&(b.debug&&console.log("excute stateChangeCallback :"+s),
|
||
i.jsapiLog("onBackgroundAudioStateChange "+s+";res:"+u),r=!0,i._g.stateChangeCallback[s](0),
|
||
i._g.stateChangeCallback[s]=null);
|
||
r||"function"!=typeof b.jsapiGlobalEvent[s]||(i.jsapiLog("onBackgroundAudioStateChange "+s+" unHandle;res:"+u),
|
||
b.jsapiGlobalEvent[s](t,i));
|
||
}
|
||
}
|
||
}
|
||
});
|
||
}
|
||
function _(t,e){
|
||
e.stop(!1),e._trigger("jsapi2PlayingErr");
|
||
}
|
||
function h(t,e){
|
||
e.stop(!1),e._trigger("jsapi2PlayingStop");
|
||
}
|
||
function y(t,e){
|
||
e.pause(!1,null,!0),e._trigger("jsapi2PlayingPause");
|
||
}
|
||
function g(t,e){
|
||
1!=e._status&&e.resume(!1,null,!0);
|
||
}
|
||
function f(t,e){
|
||
e.onload();
|
||
}
|
||
function m(){
|
||
for(var t in b.mutexPlayers)if(b.mutexPlayers.hasOwnProperty(t))for(var e=0,o=b.mutexPlayers[t].length;o>e;e++){
|
||
var i=b.mutexPlayers[t][e];
|
||
if(i&&1==i._status&&(1==i._surportType||3==i._surportType)){
|
||
i._trigger("unloadPlaying");
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
function P(t){
|
||
var e=arguments[1]||window.location.search,o=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=e.substr(e.indexOf("?")+1).match(o);
|
||
return null!=i?i[2]:"";
|
||
}
|
||
function T(t,e,o){
|
||
function i(t,e){
|
||
for(;b.synPlayStatusArr.length>0;){
|
||
var o=b.synPlayStatusArr.shift();
|
||
o&&"function"==typeof o[t]&&o[t](e);
|
||
}
|
||
}
|
||
b.synPlayStatusArr.push({
|
||
_t:t,
|
||
onSuccess:e,
|
||
onError:o
|
||
}),b.synPlayStatusId&&clearTimeout(b.synPlayStatusId),b.synPlayStatusId=setTimeout(function(){
|
||
t._jsapi_getMusicPlayerState({
|
||
onSuccess:function(t){
|
||
i("onSuccess",t);
|
||
},
|
||
onError:function(t){
|
||
i("onError",t);
|
||
}
|
||
});
|
||
},0);
|
||
}
|
||
var v=t("biz_wap/utils/mmversion.js"),S=(t("pages/report.js"),t("biz_common/dom/event.js"),
|
||
t("biz_wap/jsapi/core.js")),k=t("pages/version4video.js"),A=(t("biz_common/utils/monitor.js"),
|
||
t("appmsg/log.js")),b={
|
||
hasInit:!1,
|
||
synPlayStatusId:null,
|
||
synPlayStatusArr:[],
|
||
inWechat:!k.device.inWechat||k.device.inWindowWechat||k.device.inMacWechat?!1:!0,
|
||
mutexCount:0,
|
||
ev:0!=window._empty_v.indexOf(window.location.protocol)?"http:"+window._empty_v:window._empty_v,
|
||
debug:location.href.indexOf("vconsole=1")>0||document.cookie&&document.cookie.indexOf("vconsole_open=1")>-1?!0:!1,
|
||
_playtype:1*P("_playtype")||0,
|
||
isAndroidLow:/android\s2\.3/i.test(navigator.userAgent),
|
||
isAndroid:v.isAndroid,
|
||
surportType:"addEventListener"in window?2:0,
|
||
mutexPlayers:{},
|
||
mutexPlayers2:{},
|
||
wxtag:"__wxtag__"
|
||
};
|
||
return o.prototype._initPlugins=function(){
|
||
for(var t=this._o.plugins,e=0,o=t.length;o>e;++e){
|
||
var i=t[e];
|
||
i.setPlayer(this),!!i.init&&i.init();
|
||
}
|
||
},o.prototype._trigger=function(t,e){
|
||
var o=this._o,i=this._g,n=o.plugins,a=i._blockPlugin[t]||i._blockPlugin.all,s=0;
|
||
if(a&&"function"==typeof a.recv&&(s|=a.recv(t,e),1&s))return!1;
|
||
for(var r=0,u=n.length;u>r&&(s|=n[r].recv(t,e),!(2&s));++r);
|
||
if(!(4&s)){
|
||
var p=this["__"+t+"Handler"];
|
||
p&&p.call(this,e);
|
||
}
|
||
8&s||this.__triggerOutside(t,e);
|
||
},o.prototype.__triggerOutside=function(){
|
||
var t=arguments,e=t[0];
|
||
if(e){
|
||
e=e.substr(0,1).toUpperCase()+e.substr(1);
|
||
var o=this._o["on"+e];
|
||
"function"==typeof o&&o.apply(this,t);
|
||
}
|
||
},o.prototype._setBlockPlugin=function(t,e){
|
||
this._g._blockPlugin[t]=e;
|
||
},o.prototype._synPlayStatus=function(){
|
||
function t(t){
|
||
if(a&&clearTimeout(a),n.hasCheckPlay===!0)return void console.log("ios8 synPlayStatusSuccess hasCheckPlay");
|
||
if(n.hasCheckPlay=!0,o._surportType=3,b.surportType=3,!!b.debug&&console.log("_synPlayStatus mutexKey:"+n.mutexKey),
|
||
t.src&&(i.src==t.src||t.src.indexOf(n.mutexKey)>=0)){
|
||
if(t.srcId){
|
||
if(t.srcId!=n.jsapiSrcId)return;
|
||
}else if(b.mutexPlayers[n.mutexKey].length>1&&b.mutexPlayers[n.mutexKey][0]!==o)return;
|
||
o._initJsapiData({
|
||
curTime:t.currentTime,
|
||
bufferedPercent:t.bufferedPercent,
|
||
starTime:+new Date-1e3*t.currentTime
|
||
}),o._trigger("jsapi2Begin2Play",t);
|
||
var e=o.jsApiData,s="waiting"==t.playState||"seeked"==t.playState||"seeking"==t.playState||"play"==t.playState;
|
||
!t.paused||s?(o._onPlay(),o._analogUpdateTime()):(o._onTimeupdate(null,e.curTime),
|
||
o._onPause()),o._getMusicPlayerState();
|
||
}
|
||
}
|
||
function e(){
|
||
console.log("ios8 synPlayStatusError"),a&&clearTimeout(a),n.hasCheckPlay!==!0&&(n.hasCheckPlay=!0,
|
||
o._o.autoPlay&&o.play());
|
||
}
|
||
var o=this,i=this._o,n=this._g;
|
||
if(!b.inWechat||1*b._playtype>0)return n.hasCheckPlay=!0,void(o._o.autoPlay&&o.play());
|
||
var a;
|
||
T(o,t,e);
|
||
var s=+new Date;
|
||
console.log("starTime",s,i.syncTimeout),a=setTimeout(function(){
|
||
console.log("ios8 timeout error",+new Date-s),e();
|
||
},i.syncTimeout||1e4);
|
||
},o.prototype._fixAndroidSizeLimit=function(){
|
||
if(!(1*b._playtype>0)&&b.isAndroid){
|
||
var t=this._o;
|
||
!t.fileSize||t.fileSize>300||v.gtVersion("6.3.28",!0)||(this._trigger("androidForceH5"),
|
||
this._g._playtype=2);
|
||
}
|
||
},o.prototype._createAutoAndPlay=function(){
|
||
function t(){
|
||
e._trigger("h5Begin2Play"),e._h5Audio=document.createElement("audio"),e._initH5Data(!0),
|
||
e._H5bindEvent(!0),e._h5Audio.setAttribute("style","height:0;width:0;display:none"),
|
||
e._h5Audio.setAttribute("autoplay",""),e._status=0,e._onLoading(),b.isAndroidLow?(e._h5Audio.src=e._o.src,
|
||
document.body.appendChild(e._h5Audio),e._h5Audio.load()):(document.body.appendChild(e._h5Audio),
|
||
setTimeout(function(){
|
||
e._h5Audio.src=e._o.src,e._h5Audio.play();
|
||
},0)),e._surportType=2;
|
||
}
|
||
var e=this;
|
||
b.inWechat?this._stopJsapiPlay(!0,function(){
|
||
t();
|
||
}):t();
|
||
},o.prototype._destoryH5Audio=function(){
|
||
this._h5Audio&&(-1!=this._status&&"function"==typeof this._h5Audio.pause&&this._h5Audio.pause(),
|
||
document.body.removeChild(this._h5Audio),this._h5Audio=null,this._status=-1);
|
||
},o.prototype._onLoading=function(t){
|
||
this._status=4;
|
||
try{
|
||
n(this);
|
||
}catch(t){}
|
||
"function"==typeof this._o.onStatusChange&&this._o.onStatusChange.call(this,t||{},this._status),
|
||
this._endCountTime();
|
||
},o.prototype._onPlay=function(t){
|
||
this._status=1;
|
||
try{
|
||
n(this);
|
||
}catch(t){}
|
||
"function"==typeof this._o.onStatusChange&&this._o.onStatusChange.call(this,t||{},this._status),
|
||
this._startCountTime();
|
||
},o.prototype._onPause=function(t){
|
||
this._status=2,"function"==typeof this._o.onStatusChange&&this._o.onStatusChange.call(this,t||{},this._status),
|
||
this._endCountTime();
|
||
},o.prototype._onEnd=function(t){
|
||
this._status=3,"function"==typeof this._o.onStatusChange&&this._o.onStatusChange.call(this,t||{},this._status),
|
||
this._endCountTime();
|
||
},o.prototype._onLoadedmetadata=function(t){
|
||
"function"==typeof this._o.onLoadedmetadata&&this._o.onLoadedmetadata.call(this,t||{});
|
||
},o.prototype._onUpdateSeekRange=function(t){
|
||
this.surportSeekRange()&&(t=Math.max(t,0),t=Math.min(t,100),"function"==typeof this._o.onUpdateSeekRange&&this._o.onUpdateSeekRange.call(this,t));
|
||
},o.prototype._onTimeupdate=function(t,e){
|
||
"function"==typeof this._o.onTimeupdate&&this._o.onTimeupdate.call(this,t||{},e),
|
||
e>0&&this._startCountTime();
|
||
},o.prototype._onError=function(t,e){
|
||
this._status=-1,"function"==typeof this._o.onError&&this._o.onError.call(this,t||{},e);
|
||
},o.prototype._initH5Event=function(){
|
||
var t=this,e=this._o,o=this._g;
|
||
if(!t._g.hasInitH5Event){
|
||
t._g.hasInitH5Event=!0;
|
||
var i=o.h5Event;
|
||
i.canplaythrough=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 canplaythrough"),t._h5Data.firstCanplaythrough=!0,
|
||
t._onPlay(e),t._onUpdateSeekRange(t._h5Data.downloadDuration||0));
|
||
},i.play=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 "+e.type),t._h5Data.firstCanplaythrough===!0&&(t._onPlay(e),
|
||
t._onUpdateSeekRange(t._h5Data.downloadDuration||0)));
|
||
},i.ended=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 ended"),t._onUpdateSeekRange(t._h5Data.downloadDuration),
|
||
t._onEnd(e));
|
||
},i.pause=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 pause"),t._o.allowPause!==!0||0==t._h5Audio.currentTime?t._onEnd(e):t._onPause(e));
|
||
},i.waiting=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 "+e.type),(1==t._status||2==t._status||4==t._status)&&t._onLoading(e));
|
||
};
|
||
var n,a=100;
|
||
i.seeking=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 "+e.type),(1==t._status||2==t._status||4==t._status)&&t._onLoading(e),
|
||
n=setTimeout(function(){
|
||
!!b.debug&&console.log("seek loading Timeout excute"),n=null,t._trigger("seekNeed2Load");
|
||
},a));
|
||
},i.seeked=function(e){
|
||
t._h5Audio&&(!!b.debug&&console.log("h5 seeked"),(1==t._status||2==t._status||4==t._status)&&(t._onPlay(e),
|
||
t._h5Audio.play()),n&&(clearTimeout(n),n=null,t._trigger("seekNotNeed2Load")));
|
||
},i.error=function(e){
|
||
var o=1*e.target.error.code||5;
|
||
(1>o||o>5)&&(o=5),t._trigger("h5Error",{
|
||
code:o
|
||
}),t._onError(e,{
|
||
type:1,
|
||
code:o
|
||
}),t._destoryH5Audio();
|
||
},i.timeupdate=function(o){
|
||
t._h5Audio&&((1==t._status||4==t._status)&&t._onUpdateSeekRange(t._getH5DownloadDuration()),
|
||
1==t._status&&t._onTimeupdate(o,t._h5Audio.currentTime),"undefined"!=typeof e.duration&&1*e.duration>0&&t._h5Audio.currentTime>=e.duration&&t._h5Stop());
|
||
},i.loadedmetadata=function(e){
|
||
t._h5Audio&&t._onLoadedmetadata(e);
|
||
};
|
||
}
|
||
},o.prototype._H5bindEvent=function(t){
|
||
var e=(this._o,this._g),o={
|
||
canplaythrough:"canplaythrough",
|
||
play:"play",
|
||
playing:"play",
|
||
ended:"ended",
|
||
pause:"pause",
|
||
seeking:"seeking",
|
||
waiting:"waiting",
|
||
seeked:"seeked",
|
||
error:"error"
|
||
};
|
||
try{
|
||
for(var i in o)o.hasOwnProperty(i)&&this._h5Audio.removeEventListener(i,e.h5Event[o[i]]);
|
||
this._h5Audio.removeEventListener("timeupdate",e.h5Event.timeupdate),this._h5Audio.removeEventListener("loadedmetadata",e.h5Event.loadedmetadata);
|
||
}catch(n){}
|
||
if(t){
|
||
for(var i in o)o.hasOwnProperty(i)&&this._h5Audio.addEventListener(i,e.h5Event[o[i]],!1);
|
||
"function"==typeof this._o.onTimeupdate&&this._h5Audio.addEventListener("timeupdate",e.h5Event.timeupdate,!1),
|
||
"function"==typeof this._o.onLoadedmetadata&&this._h5Audio.addEventListener("loadedmetadata",e.h5Event.loadedmetadata,!1);
|
||
}
|
||
},o.prototype._initData=function(){
|
||
var t=this._o;
|
||
this._createMutexKey(),b.mutexPlayers[this._g.mutexKey]?b.mutexPlayers[this._g.mutexKey].push(this):b.mutexPlayers[this._g.mutexKey]=[this],
|
||
t.jsapi2Src&&t.jsapi2Src!=t.src&&(b.mutexPlayers2[t.jsapi2Src]?b.mutexPlayers2[t.jsapi2Src].push(this):b.mutexPlayers2[t.jsapi2Src]=[this]),
|
||
this._initH5Event();
|
||
},o.prototype._createMutexKey=function(){
|
||
var t=this._o.mid||"";
|
||
this._o.src?(this._g.mutexKey=this._o.src,this._g.jsapiSrcId=b.wxtag+"_"+this._o.wxIndex):(this._g.mutexKey=c(t),
|
||
this._g.jsapiSrcId=this._g.mutexKey+"_"+this._o.wxIndex);
|
||
},o.prototype._extend=function(t){
|
||
for(var e in t)this._o[e]=t[e];
|
||
},o.prototype._initH5Data=function(t){
|
||
this._h5Data={
|
||
firstCanplaythrough:t===!0?!1:!0,
|
||
downloadDuration:0,
|
||
lastPlaytime:null
|
||
};
|
||
},o.prototype._initJsapiData=function(t){
|
||
t=t||{},this.jsApiData&&(this.jsApiData.updateTimeoutId&&clearTimeout(this.jsApiData.updateTimeoutId),
|
||
this.jsApiData.getStatusId&&clearTimeout(this.jsApiData.getStatusId)),this.jsApiData={
|
||
getStatusId:null,
|
||
getStatusTime:t.getStatusTime||2500,
|
||
updateTimeoutId:null,
|
||
seeking:!1,
|
||
starTime:t.starTime||+new Date,
|
||
curTime:t.curTime||0,
|
||
bufferedPercent:t.bufferedPercent||0,
|
||
duration:this._o.duration||void 0,
|
||
lastPlaytime:null
|
||
};
|
||
},o.prototype._getMusicPlayerState=function(){
|
||
var t=this,e=t._o,o=t.jsApiData;
|
||
o&&o.getStatusId&&clearTimeout(o.getStatusId),t._jsapi_getMusicPlayerState({
|
||
onSuccess:function(i){
|
||
(i.src==e.jsapi2Src||i.src==e.src)&&(o.curTime=i.currentTime,o.starTime=+new Date-1e3*i.currentTime,
|
||
o.bufferedPercent=i.bufferedPercent,(1==t._status||2==t._status||4==t._status)&&(o.getStatusId=setTimeout(function(){
|
||
t._getMusicPlayerState();
|
||
},o.getStatusTime)),t._onUpdateSeekRange(o.bufferedPercent),1==i.paused&&1==t._status?(b.debug&&console.log("_getMusicPlayerState force syn"),
|
||
t._pauseJsapiPlay(!1)):0==i.paused&&2==t._status&&(b.debug&&console.log("_getMusicPlayerState force syn"),
|
||
t._resumeJsapiPlay(!1))),t._o.onMusicPlayerInfo&&t._o.onMusicPlayerInfo(i);
|
||
},
|
||
onError:function(){
|
||
o.getStatusId=setTimeout(function(){
|
||
t._getMusicPlayerState();
|
||
},o.getStatusTime);
|
||
}
|
||
});
|
||
},o.prototype._analogUpdateTime=function(){
|
||
var t=this,e=t.jsApiData;
|
||
if(e){
|
||
if(e.updateTimeoutId&&clearTimeout(e.updateTimeoutId),1==t._status||2==t._status){
|
||
if(1==t._status&&(e.curTime=1*((+new Date-e.starTime)/1e3).toFixed(2)),e.curTime>=e.duration)return t._stopJsapiPlay(!1),
|
||
!0;
|
||
t._onTimeupdate(null,e.curTime);
|
||
}
|
||
return e.updateTimeoutId=setTimeout(function(){
|
||
t._analogUpdateTime();
|
||
},1e3),!1;
|
||
}
|
||
},o.prototype._jsapi_getMusicPlayerState=function(t){
|
||
var e=this._o;
|
||
S.invoke("getBackgroundAudioState",{},function(o){
|
||
if(!!b.debug&&console.log("getBackgroundAudioState log:"+JSON.stringify(o||{})),
|
||
/:ok$/.test(o.err_msg)){
|
||
if(o.paused=1*o.paused,o.currentTime=o.currentTime?(1*o.currentTime).toFixed(2):0,
|
||
o.buffered){
|
||
var i=Math.floor(o.buffered/e.duration*100);
|
||
i=Math.max(i,0),i=Math.min(i,100),o.bufferedPercent=i;
|
||
}else o.bufferedPercent=0;
|
||
"function"==typeof t.onSuccess&&t.onSuccess(o);
|
||
}else"function"==typeof t.onError&&(console.log("get err invoke err",o),t.onError(o));
|
||
});
|
||
},o.prototype._jsapi_musicPlay=function(t){
|
||
if(this._h5Audio&&this._destoryH5Audio(),2==b._playtype)return void("function"==typeof t.onError&&t.onError({}));
|
||
var e=this,o=this._o;
|
||
this.jsapiLog("jsapi_musicPlay"),S.invoke("musicPlay",{
|
||
app_id:"a",
|
||
title:o.title,
|
||
singer:o.singer,
|
||
epname:o.epname,
|
||
coverImgUrl:o.coverImgUrl,
|
||
dataUrl:o.src,
|
||
lowbandUrl:o.src,
|
||
webUrl:o.webUrl
|
||
},function(i){
|
||
!!b.debug&&console.log("playlog:"+JSON.stringify(i||{})),i.err_msg.indexOf("ok")>=0?(e._trigger("jsapi1Begin2Play"),
|
||
e._surportType=1,b.surportType=1,e._initJsapiData(),e._onPlay(),"undefined"!=typeof o.duration&&1*o.duration>0&&e._analogUpdateTime(),
|
||
e._onUpdateSeekRange(0),"function"==typeof t.onSuccess&&t.onSuccess(i)):"function"==typeof t.onError&&t.onError(i);
|
||
});
|
||
},o.prototype._jsapi_setBackgroundAudioState=function(){
|
||
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];
|
||
this._h5Audio&&this._destoryH5Audio(),console.log("_playtype",b._playtype);
|
||
var e=t.onSuccess,o=t.onError,i=t.needStartMusicUI;
|
||
if("function"!=typeof e&&(e=function(){}),"function"!=typeof o&&(o=function(){}),
|
||
1*b._playtype>0){
|
||
var n={};
|
||
return n.err_code=1,void o(n);
|
||
}
|
||
var a=this,s=this._o,r=a._g;
|
||
console.log("invoke set setBackgroundAudioState with param",s),this.jsapiLog("jsapi_setBackgroundAudioState"),
|
||
S.invoke("setBackgroundAudioState",{
|
||
protocol:s.protocal||"",
|
||
src:s.jsapi2Src||s.src,
|
||
lowbandUrl:s.jsapi2Src||s.src,
|
||
title:s.title,
|
||
epname:s.epname,
|
||
singer:s.singer,
|
||
srcId:r.jsapiSrcId,
|
||
coverImgUrl:s.coverImgUrl,
|
||
webUrl:s.webUrl,
|
||
musicbar_url:s.musicbar_url||"",
|
||
needStartMusicUI:1*i>0?1:0
|
||
},function(t){
|
||
if(!!b.debug&&console.log("setBackgroundAudioState log:"+JSON.stringify(t||{})),
|
||
t.err_msg.indexOf("ok")>=0){
|
||
var n=1*a._status;
|
||
!i||1!==n&&2!==n&&4!==n?(e("waiting"),r.stateChangeCallback.play=function(t,i){
|
||
0==t?e("play"):0!=t&&o({
|
||
err_code:2,
|
||
err_msg:i||""
|
||
});
|
||
}):e();
|
||
}else t=t||{},t.err_code=1,o(t);
|
||
});
|
||
},o.prototype._jsapi_operateBackgroundAudio=function(t){
|
||
var e=this,o=(this._o,e._g),i=1*t.position||0;
|
||
this.jsapiLog("jsapi_operateBackgroundAudio;param:"+JSON.stringify(t||{})),S.invoke("operateBackgroundAudio",{
|
||
operationType:t.type,
|
||
currentTime:i
|
||
},function(e){
|
||
if(!!b.debug&&console.log("operateBackgroundAudio "+t.type+",position:"+i+", log:"+JSON.stringify(e||{})),
|
||
e.err_msg.indexOf("ok")>=0){
|
||
var n=t.type;
|
||
"seek"==n?(o.stateChangeCallback.seeking=function(e,o){
|
||
0==e&&"function"==typeof t.onSuccess?t.onSuccess("seeking",i):0!=e&&"function"==typeof t.onError&&t.onError({
|
||
err_msg:o||""
|
||
});
|
||
},o.stateChangeCallback.seeked=function(e,o){
|
||
0==e&&"function"==typeof t.onSuccess?t.onSuccess("seeked",i):0!=e&&"function"==typeof t.onError&&t.onError({
|
||
err_msg:o||""
|
||
});
|
||
}):o.stateChangeCallback[n]=function(e,o){
|
||
0==e&&"function"==typeof t.onSuccess?t.onSuccess():0!=e&&"function"==typeof t.onError&&t.onError({
|
||
err_msg:o||""
|
||
});
|
||
};
|
||
}else"function"==typeof t.onError&&t.onError(e);
|
||
});
|
||
},o.prototype._jsapiPlay=function(){
|
||
{
|
||
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=this;
|
||
this._o;
|
||
}
|
||
console.log("supporttype",b.surportType);
|
||
var o=t.onError,i=t.onSuccess,n=t.needStartMusicUI;
|
||
"function"!=typeof o&&(o=function(){}),"function"!=typeof i&&(i=function(){}),1==b.surportType?n?o():this._jsapi_musicPlay({
|
||
onError:function(){
|
||
e._h5Play();
|
||
}
|
||
}):this._jsapi_setBackgroundAudioState({
|
||
needStartMusicUI:n,
|
||
onSuccess:function(t){
|
||
"waiting"===t?(e._trigger("jsapi2Begin2Play",t),e._initJsapiData(),e._surportType=3,
|
||
b.surportType=3,e._onLoading()):"play"===t&&(e._initJsapiData(),e._onPlay(),e._analogUpdateTime(),
|
||
e._getMusicPlayerState(),e._trigger("jsapi2PlaySuccess")),"function"==typeof i&&(i(),
|
||
i=null,o=null);
|
||
},
|
||
onError:function(t){
|
||
t&&1==t.err_code&&!n?e._jsapi_musicPlay({
|
||
onError:function(){
|
||
e._h5Play();
|
||
}
|
||
}):(n||e._h5Play(),e._trigger("jsapi2Begin2PlayErr")),"function"==typeof o&&(o(),
|
||
o=null,i=null);
|
||
}
|
||
});
|
||
},o.prototype._getJsapiDownloadSec=function(){
|
||
this._getMusicPlayerState();
|
||
var t=Math.floor(this._o.duration*this.jsApiData.bufferedPercent/100);
|
||
return!!b.debug&&console.log("downloadSec:"+t),t;
|
||
},o.prototype._jsapiSeek=function(t){
|
||
function e(){
|
||
n.seeking=!1,o._onPlay(),console.log("seek toPlay position is",b.seekingPosition),
|
||
n.starTime=+new Date-1e3*b.seekingPosition,o._analogUpdateTime(),o._getMusicPlayerState();
|
||
}
|
||
var o=this,i=this._g,n=(this._o,this.jsApiData),a=parseInt(t,10);
|
||
this._o.duration&&a>=this._o.duration&&(a=this._o.duration-1),n.getStatusId&&clearTimeout(n.getStatusId),
|
||
n.updateTimeoutId&&clearTimeout(n.updateTimeoutId),n.seekWaitId&&clearTimeout(n.seekWaitId),
|
||
n.seeking=!0;
|
||
var s,r,u=100;
|
||
b.seekingPosition=a,console.log("begin to seek to",a),this._jsapi_operateBackgroundAudio({
|
||
type:"seek",
|
||
position:a,
|
||
onError:function(){
|
||
o._trigger("seekErr"),!!b.debug&&console.log("seek callback fail"),n.seeking=!1,
|
||
o._analogUpdateTime(),o._getMusicPlayerState();
|
||
},
|
||
onSuccess:function(t){
|
||
console.log("jsapi seek res is ",t),"seeking"==t?(!!b.debug&&console.log("seeking callback success"),
|
||
n.seeking=!0,o._onLoading(),i.stateChangeCallback.play=function(){
|
||
!!b.debug&&console.log("seeked to play"),s&&clearTimeout(s),e();
|
||
},r=setTimeout(function(){
|
||
!!b.debug&&console.log("seek loading Timeout excute"),r=null,o._trigger("seekNeed2Load");
|
||
},u)):"seeked"==t&&(!!b.debug&&console.log("seeked callback success"),(2==o._status||4==o._status)&&(s=setTimeout(function(){
|
||
!!b.debug&&console.log("setTimeout to play"),i.stateChangeCallback.play=null,n.seeking=!1,
|
||
n.curTime=a,o._resumeJsapiPlay(!0);
|
||
},1e3)),r&&(clearTimeout(r),r=null,o._trigger("seekNotNeed2Load")));
|
||
}
|
||
}),o._getMusicPlayerState();
|
||
},o.prototype._resumeJsapiPlay=function(t,e){
|
||
function o(t){
|
||
var e=i.jsApiData;
|
||
e.starTime=+new Date-1e3*e.curTime,i._onPlay(),i._analogUpdateTime(),i._getMusicPlayerState(),
|
||
"function"==typeof t&&t();
|
||
}
|
||
var i=this;
|
||
1==this._surportType?this._jsapiPlay():3==this._surportType&&(t?this._jsapi_operateBackgroundAudio({
|
||
type:"play",
|
||
onError:function(){
|
||
i._stopJsapiPlay(!1,function(){
|
||
i.play();
|
||
});
|
||
},
|
||
onSuccess:function(){
|
||
o(e);
|
||
}
|
||
}):o(e));
|
||
},o.prototype._pauseJsapiPlay=function(t,e,o){
|
||
function i(t){
|
||
var e=n.jsApiData;
|
||
n._analogUpdateTime(),n._getMusicPlayerState(),e.updateTimeoutId=null,t===!0&&e&&e.getStatusId&&clearTimeout(e.getStatusId),
|
||
1==n._status&&n._onPause();
|
||
}
|
||
var n=this;
|
||
return 2==n._status?(i(e),void("function"==typeof o&&o())):void(1==this._surportType?this._stopJsapiPlay(t,o):3==this._surportType&&(t?this._jsapi_operateBackgroundAudio({
|
||
type:"pause",
|
||
onSuccess:function(){
|
||
i(e),"function"==typeof o&&o();
|
||
},
|
||
onError:function(){
|
||
n._stopJsapiPlay(!0,o);
|
||
}
|
||
}):(i(e),"function"==typeof o&&o())));
|
||
},o.prototype._stopJsapiPlay=function(t,e){
|
||
function o(t){
|
||
n._onTimeupdate(null,0),n._onUpdateSeekRange(0),n._onEnd(),n._initJsapiData(),"function"==typeof t&&t();
|
||
}
|
||
{
|
||
var n=this;
|
||
n.jsApiData;
|
||
}
|
||
t?1==n._surportType?i(function(){
|
||
o(e);
|
||
}):n._jsapi_operateBackgroundAudio({
|
||
type:"stop",
|
||
onSuccess:function(){
|
||
o(e);
|
||
},
|
||
onError:function(){
|
||
o(e);
|
||
}
|
||
}):o(e);
|
||
},o.prototype._getH5DownloadSec=function(){
|
||
var t=Math.floor(this._o.duration*this._getH5DownloadDuration()/100);
|
||
return!!b.debug&&console.log("h5 downloadSec:"+t),t;
|
||
},o.prototype._getH5DownloadDuration=function(){
|
||
if(!this._h5Audio)return 0;
|
||
if(this._h5Data.downloadDuration>=100)return 100;
|
||
var t=this._h5Audio.buffered,e=t.end(t.length-1);
|
||
return this._h5Data.downloadDuration=parseInt(e/this._o.duration*100,10),this._h5Data.downloadDuration;
|
||
},o.prototype._h5Play=function(){
|
||
0!==b.surportType&&(this.jsapiLog("h5Play"),this._h5Audio?(this._h5Audio.ended||this._h5Audio.paused)&&(this._trigger("h5Begin2Play"),
|
||
this._initH5Data(),this._onLoading(),this._H5bindEvent(!0),this._h5Audio.currentTime=0):this._createAutoAndPlay());
|
||
},o.prototype._h5Resume=function(){
|
||
this._h5Audio&&this._h5Audio.play();
|
||
},o.prototype._h5Stop=function(){
|
||
this._h5Audio&&(this._onUpdateSeekRange(0),this._onEnd(),this._H5bindEvent(!1),this._h5Audio.pause(),
|
||
this._h5Audio.currentTime=0,this._initH5Data());
|
||
},o.prototype._h5Seek=function(t){
|
||
if(this._h5Audio){
|
||
var e=(this._h5Data,parseInt(t,10));
|
||
e=Math.min(e,this._o.duration),!!b.debug&&console.log("h5 seek position:"+e),this._h5Audio.currentTime=e;
|
||
}
|
||
},o.prototype._startCountTime=function(){
|
||
1!=this._surportType&&3!=this._surportType||!this.jsApiData?this._h5Audio&&this._h5Data&&null===this._h5Data.lastPlaytime&&(this._h5Data.lastPlaytime=this._h5Audio.currentTime):null===this.jsApiData.lastPlaytime&&(this.jsApiData.lastPlaytime=this.jsApiData.curTime);
|
||
},o.prototype._endCountTime=function(){
|
||
if(1!=this._surportType&&3!=this._surportType||!this.jsApiData){
|
||
if(this._h5Audio&&this._h5Data){
|
||
var t=this._h5Audio,e=this._h5Data;
|
||
t.currentTime>0&&t.currentTime>e.lastPlaytime&&null!==e.lastPlaytime&&(this._g.totalPlayTime+=t.currentTime-e.lastPlaytime),
|
||
e.lastPlaytime=null;
|
||
}
|
||
}else{
|
||
var o=this.jsApiData;
|
||
o.curTime>0&&o.curTime>o.lastPlaytime&&null!==o.lastPlaytime&&(this._g.totalPlayTime+=o.curTime-o.lastPlaytime),
|
||
o.lastPlaytime=null;
|
||
}
|
||
},o.prototype._delMutexPlayers=function(){
|
||
var t=this._o,e=this._g.mutexKey,o=b.mutexPlayers[e];
|
||
if(o){
|
||
for(var i=0,n=o.length;n>i;i++)if(o[i]===this){
|
||
o.splice(i,1);
|
||
break;
|
||
}
|
||
if(0==o.length)try{
|
||
delete b.mutexPlayers[e];
|
||
}catch(a){}
|
||
}
|
||
if(t.jsapi2Src&&b.mutexPlayers2[t.jsapi2Src]){
|
||
for(var s=b.mutexPlayers2[t.jsapi2Src],i=0,n=s.length;n>i;i++)if(s[i]===this){
|
||
s.splice(i,1);
|
||
break;
|
||
}
|
||
if(0==s.length)try{
|
||
delete b.mutexPlayers2[t.jsapi2Src];
|
||
}catch(a){}
|
||
}
|
||
},o.prototype.resetPlayTotalTime=function(){
|
||
this._g.totalPlayTime=0;
|
||
},o.prototype.getPlayTotalTime=function(){
|
||
return this._endCountTime(),this._g.totalPlayTime;
|
||
},o.prototype.surportSeekRange=function(){
|
||
return 1==b._playtype?!1:2==this._surportType||3==this._surportType?!0:!1;
|
||
},o.prototype.setSrc=function(t){
|
||
-1==t.indexOf("?")&&(t+="?"),t+=c(this._o.mid),this._o.src=t,this._delMutexPlayers(),
|
||
this._g.mutexKey=this._o.src,b.mutexPlayers[this._g.mutexKey]?b.mutexPlayers[this._g.mutexKey].push(this):b.mutexPlayers[this._g.mutexKey]=[this];
|
||
},o.prototype.getSrc=function(){
|
||
return this._o.src||"";
|
||
},o.prototype.setDuration=function(t){
|
||
this._o.duration=t||0;
|
||
},o.prototype.getSurportType=function(){
|
||
return this._surportType||0;
|
||
},o.prototype.getPlayStatus=function(){
|
||
return this._status;
|
||
},o.prototype.getCurTime=function(){
|
||
return 1!=this._surportType&&3!=this._surportType||!this.jsApiData?this._h5Audio?this._h5Audio.currentTime:0:this.jsApiData.curTime||0;
|
||
},o.prototype.getDuration=function(){
|
||
return this._o.duration||void 0;
|
||
},o.prototype.pause=function(t,e,o){
|
||
return o===!0||this._o.allowPause?void(1==this._surportType||3==this._surportType?this._pauseJsapiPlay(t===!1?!1:!0,!1,function(){
|
||
"function"==typeof e&&e();
|
||
},function(){
|
||
"function"==typeof e&&e();
|
||
}):2==this._surportType&&this._h5Audio&&"function"==typeof this._h5Audio.pause&&(this._h5Audio.pause(),
|
||
"function"==typeof e&&e())):void this.stop(t,e);
|
||
},o.prototype.stop=function(t,e){
|
||
return 1==this._surportType||3==this._surportType?void this._stopJsapiPlay(t===!1?!1:!0,e):(2==this._surportType&&this._h5Audio&&this._h5Stop(),
|
||
void("function"==typeof e&&e()));
|
||
},o.prototype.destory=function(){
|
||
this.stop(),this._h5Audio&&(document.body.removeChild(this._h5Audio),this._h5Audio=null),
|
||
this._delMutexPlayers();
|
||
},o.prototype.resume=function(t,e,o){
|
||
(o===!0||2==this._status&&this._o.allowPause)&&(2==this._surportType&&this._h5Audio?this._h5Resume():b.inWechat&&this._resumeJsapiPlay(t===!1?!1:!0));
|
||
},o.prototype.onload=function(){
|
||
this._onLoading();
|
||
},o.prototype.jsapiLog=function(t,e){
|
||
try{
|
||
var o=this._o,i={
|
||
type:o.type,
|
||
src:o.src,
|
||
mid:o.mid,
|
||
protocal:o.protocal,
|
||
webUrl:o.webUrl,
|
||
musicbar_url:o.musicbar_url
|
||
},n="["+JSON.stringify(i)+"]"+t;
|
||
l(n,e);
|
||
}catch(a){}
|
||
},o.prototype.openStartMusicUI=function(){
|
||
var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=t.onError,o=t.onSuccess;
|
||
"function"!=typeof e&&(e=function(){}),"function"!=typeof o&&(o=function(){}),v.isWechat&&(v.isIOS||v.isAndroid)&&v.gtVersion("7.0.5",!0)?this._jsapiPlay({
|
||
needStartMusicUI:!0,
|
||
onError:function(){
|
||
e();
|
||
},
|
||
onSuccess:function(){
|
||
o();
|
||
}
|
||
}):e();
|
||
},o.prototype.play=function(){
|
||
var t=this,e=this._g;
|
||
if(t._o.src)return console.log("before play status is",t._status,e.hasCheckPlay),
|
||
2==t._status&&t._o.allowPause?void t.resume():(e.playTimeoutId&&clearTimeout(e.playTimeoutId),
|
||
e.hasCheckPlay?void(b.inWechat?(console.log("jsapi play"),this._jsapiPlay()):0!=b.surportType&&this._h5Play()):void(e.playTimeoutId=setTimeout(function(){
|
||
t.play();
|
||
},1e3)));
|
||
},o.prototype.seek=function(t){
|
||
{
|
||
var e=this;
|
||
this._g;
|
||
}
|
||
return 1!=e._status&&2!=e._status?void console.log("player status is",e._status):(console.log("support type is",this._surportType,t),
|
||
3==this._surportType?(this._endCountTime(),void this._jsapiSeek(t)):2==this._surportType&&this._h5Audio?(this._endCountTime(),
|
||
void this._h5Seek(t)):void 0);
|
||
},o.prototype.getBackgroundAudioState=function(t){
|
||
t||(t={}),S.invoke("getBackgroundAudioState",{},function(e){
|
||
/:ok$/.test(e.err_msg)?(e.paused=1*e.paused,t.success&&t.success(e)):t.error&&t.error(e);
|
||
});
|
||
},o.prototype.setOption=function(t){
|
||
this._extend(t),t.duration&&this.jsApiData&&(this.jsApiData.duration=t.duration);
|
||
},{
|
||
init:r,
|
||
triggerUnloadPlaying:m,
|
||
isAndroid:b.isAndroid,
|
||
getSurportType:s,
|
||
getQuery:P
|
||
};
|
||
});define("appmsg/more_read_tpl.html.js",[],function(){
|
||
return'<p class="read-more__desc">你还可以看</p>\n<div class="read-more__article__area">\n <# list.forEach(function (item) { #>\n <div class="read-more__article__item">\n <a href="javascript:;" class="more_read_link"><#=item.title#></a>\n <# if (item.fans_read_cnt > 0) { #>\n <p class="read-more__article__extra"><#=item.fans_read_cnt#>位好友读过</p>\n <# } #>\n </div>\n <# }); #>\n</div>';
|
||
});define("appmsg/friend_comment_tpl.html.js",[],function(){
|
||
return'<#if(window.new_appmsg){#>\n <div class="discuss_container" id="js_friend_cmt_main" style="display:none">\n <div class="mod_title_context">\n <strong class="mod_title">朋友留言</strong>\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <p class="discuss_icon_tips tr" id="js_cmt_addbtn3" style="display:none">\n <a href="javascript:;" id="js_cmt_write3">写留言</a> <!-- 有留言的时候的写留言入口 -->\n </p>\n <#}#>\n </div>\n <!-- <ul class="discuss_list" id="js_friend_cmt_list"></ul> -->\n <!-- _js_friend_cmt放全部留言,用来计算总高度,展开的时候赋值给js_friend_cmt -->\n <!-- js_friend_cmt初始的时候放前三条留言,展开的时候把总高度加上 -->\n <ul class="friend_cmt_area hide" id="js_friend_cmt_list_hide"></ul>\n <ul class="friend_cmt_area" id="js_friend_cmt_list"></ul>\n <p class="friend_cmt_readmore" style="display:none;" id="js_more_friend_cmt_area">\n <a href="javascript:void(0);" id="js_more_friend_cmt">更多朋友留言</a>\n </p>\n </div>\n\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <div class="discuss_container" id="js_cmt_addbtn4" style="display:none">\n <div class="mod_title_context">\n <p class="discuss_icon_tips tc">\n <a href="javascript:;" id="js_cmt_write4">写留言</a> <!-- 没有留言的时候的写留言入口 -->\n </p>\n </div>\n </div>\n <#}#>\n\n<#}else{#>\n <div class="discuss_container" id="js_friend_cmt_main" style="display:none">\n <p class="discuss_icon_tips title_bottom_tips tr" id="js_cmt_addbtn3" style="display:none">\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <a href="javascript:;" id="js_cmt_write3"><img class="icon_edit" src="<#=window.comment_edit_icon#>" alt="">留言</a>\n <#}#>\n </p>\n <div class="rich_tips with_line title_tips discuss_title_line">\n <span class="tips">朋友留言</span>\n </div>\n <!-- <ul class="discuss_list" id="js_friend_cmt_list"></ul> -->\n <!-- _js_friend_cmt放全部留言,用来计算总高度,展开的时候赋值给js_friend_cmt -->\n <!-- js_friend_cmt初始的时候放前三条留言,展开的时候把总高度加上 -->\n <ul class="friend_cmt_area hide" id="js_friend_cmt_list_hide"></ul>\n <ul class="friend_cmt_area" id="js_friend_cmt_list"></ul>\n <p class="friend_cmt_readmore" style="display:none;" id="js_more_friend_cmt_area">\n <a href="javascript:void(0);" id="js_more_friend_cmt">更多朋友留言</a>\n </p>\n </div>\n\n <p class="discuss_icon_tips rich_split_tips tc" id="js_cmt_addbtn4" style="display:none">\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <a href="javascript:;" id="js_cmt_write4"><img class="icon_edit" src="<#=window.comment_edit_icon#>" alt="">留言</a>\n <#}#>\n </p>\n\n<#}#>\n';
|
||
});define("appmsg/comment_pc_tpl.html.js",[],function(){
|
||
return' <!-- pc端文章页留言 -->\n<#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n<div class="comment_primary_area" id="js_comment_pc" style="display:none">\n <div class="comment_primary_form" id="js_cmt_addbtn_pc">\n <div class="comment_primary_form_hd"> \n <img src="http://mmbiz.qpic.cn/mmbiz/a5icZrUmbV8p5jb6RZ8aYfjfS2AVle8URwBt8QIu6XbGewB9wiaWYWkPwq4R7pfdsFibuLkic16UcxDSNYtB8HnC1Q/0" alt="" class="comment_primary_avatar"\n id="js_avatar_pc">\n </div>\n <div class="comment_primary_form_bd">\n <div class="comment_primary_input_default" id="js_cmt_input_pc" style="display: none">写下你的留言</div>\n <div class="comment_primary_input_wrp" id="js_cmt_container_pc" style="display: none">\n <div class="comment_primary_input" id="js_cmt_input" contenteditable="true"></div>\n <div class="comment_primary_input_placeholder" id="js_cmt_input_holder"> \n 留言将由公众号筛选后显示,对所有人可见 </div>\n\n <div class="comment_primary_tool" id="js_comment_tool_pc">\n <div class="comment_primary_emotion_wrp" id="js_emotion_wrp_pc">\n <span class="icon_comment_primary_emotion">\n </span>\n </div> \n <button disabled="disabled" class="reset_btn comment_primary_btn" id="js_cmt_submit">留言</button>\n <!-- 超出字数往comment_primary_counter加comment_primary_counter_warn -->\n <span class="comment_primary_counter" id="js_length_notice_pc" style="display: none">\n <em id="js_word_length_pc"></em>\n /\n <span>600</span>\n </span>\n </div>\n </div>\n </div>\n </div>\n <div class="comment_primary_list_wrp" id="js_cmt_myarea_pc" style="display:none">\n <ul class="comment_primary_list" id="js_cmt_mylist_pc">\n </ul>\n <div class="rich_split_tips tc discuss_end_tips" style="display:block">\n <div class="weui-loadmore weui-loadmore_line">\n <span class="weui-loadmore__tips">以上留言经公众号筛选后将移入精选留言</span>\n </div>\n </div>\n </div>\n\n <div class="weui-toast__wrp weui-transition_opacity-hide" id="js_success_panel_pc">\n <div class="weui-mask_transparent"></div>\n <div class="weui-toast">\n <i class="weui-icon-success-no-circle weui-icon_toast"></i>\n <p class="weui-toast__content">已留言</p>\n </div>\n </div>\n</div>\n<#}#>';
|
||
});define("appmsg/comment_tpl.html.js",[],function(){
|
||
return'<#if(window.new_appmsg){#>\n\n <div class="discuss_container" id="js_cmt_main" style="display:none">\n <div class="mod_title_context">\n <strong class="mod_title">精选留言</strong>\n <p class="tips_global tr title_bottom_tips" id="js_cmt_nofans1" style="display:none;">作者已设置关注后才可以留言</p>\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <p class="discuss_icon_tips tr" id="js_cmt_addbtn1" style="display:none">\n <a href="javascript:;" class="discuss_access" id="js_cmt_write1">写留言</a>\n </p>\n <#}#>\n </div>\n <div class="discuss_list_wrp" id="js_cmt_list_container">\n <ul class="discuss_list" id="js_cmt_list"></ul>\n </div>\n </div>\n\n\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <div class="discuss_container" id="js_cmt_addbtn2" style="display:none">\n <div class="mod_title_context">\n <p class="discuss_icon_tips tc">\n <a href="javascript:;" class="discuss_access" id="js_cmt_write2">写留言</a>\n </p>\n </div>\n </div>\n <#}#>\n\n <div class="discuss_container" id="js_cmt_nofans2" style="display:none">\n <div class="tips_global rich_split_tips tc">\n 作者已设置关注后才可以留言 </div>\n </div>\n <p class="rich_split_tips tc tips_global" id="js_cmt_tips" style="display:none;"></p>\n\n\n <div class="weui-loadmore" id="js_cmt_loading">\n <i class="weui-loading"></i>\n <span class="weui-loadmore__tips">正在加载</span>\n </div>\n\n <div class="rich_split_tips tc discuss_end_tips" id="js_cmt_statement" style="display:none">\n <div class="weui-loadmore weui-loadmore_line weui-loadmore_dot">\n <span class="weui-loadmore__tips"></span>\n </div>\n <!--\n 以上留言由公众号审核产生, <a href="http://kf.qq.com/touch/sappfaq/150211YfyMVj150313qmMbyi.html?scene_id=kf264">\n 了解留言功能详情 </a>\n -->\n </div>\n\n <div class="discuss_more_tips dropdown_tips tc" style="display:none;" id="js_cmt_show_all">\n <a href="javascript:;" id="js_cmt_show_all_wording">查看更多留言</a>\n </div>\n <div class="weui-dialog__wrp weui-transition_opacity-hide" id="js_delete_panel">\n <div class="weui-mask"></div>\n <div class="weui-dialog">\n <div class="weui-dialog__bd">删除该留言吗?</div>\n <div class="weui-dialog__ft">\n <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_default" id="js_delete_cancel">取消</a>\n <a href="javascript:;" class="weui-dialog__btn weui-dialog__btn_primary" id="js_delete_confirm">删除</a>\n </div>\n </div>\n </div>\n<#}else{#>\n <div class="discuss_container" id="js_cmt_main" style="display:none">\n <p class="discuss_icon_tips title_bottom_tips tr" id="js_cmt_addbtn1" style="display:none">\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <a href="javascript:;" id="js_cmt_write1"><img class="icon_edit" src="<#=window.comment_edit_icon#>" alt="">留言</a>\n <#}#>\n </p>\n <div class="rich_tips with_line title_tips discuss_title_line">\n <span class="tips">精选留言</span>\n </div>\n <p class="tips_global tc title_bottom_tips" id="js_cmt_nofans1" style="display:none;">该文章作者已设置需关注才可以留言</p>\n <ul class="discuss_list" id="js_cmt_list"></ul>\n </div>\n\n\n <p class="discuss_icon_tips rich_split_tips tc" id="js_cmt_addbtn2" style="display:none">\n <!-- 没有付费才给写留言入口 -->\n <#if(window._copyright_stat!=1 || window.need_pay!=1){#>\n <a href="javascript:;" id="js_cmt_write2"><img class="icon_edit" src="<#=window.comment_edit_icon#>" alt="">留言</a>\n <#}#>\n </p>\n\n <div class="tips_global rich_split_tips tc" id="js_cmt_nofans2" style="display:none;">\n 该文章作者已设置需关注才可以留言 </div>\n <p class="rich_split_tips tc tips_global" id="js_cmt_tips" style="display:none;"></p>\n\n\n <div class="rich_tips tips_global loading_tips" id="js_cmt_loading">\n <img src="<#=window.comment_loading_img#>" class="rich_icon icon_loading_white" alt="">\n <span class="tips">加载中</span>\n </div>\n\n <div class="rich_tips with_line tips_global" id="js_cmt_statement" style="display:none">\n <span class="tips">以上留言由公众号筛选后显示</span>\n </div>\n\n <p class="rich_split_tips tc" id="js_cmt_qa" style="display:none;">\n <a href="http://kf.qq.com/touch/sappfaq/150211YfyMVj150313qmMbyi.html?scene_id=kf264">\n 了解留言功能详情 </a>\n </p>\n<#}#>\n\n';
|
||
});define("appmsg/emotion/emotion_pc.js",["biz_common/utils/emoji_data.js","biz_common/utils/emoji_panel_data.js","biz_common/dom/event.js","appmsg/emotion/emotion.js","common/utils.js"],function(e,t,o){
|
||
"use strict";
|
||
function n(){
|
||
for(var e=[],t=0;t<p.length;t++)for(var o=0;o<r.length;o++)if(r[o].id===p[t]){
|
||
e[t]=r[o];
|
||
break;
|
||
}
|
||
for(var t=0;j>t;t++)for(var o=0;h>o;o++){
|
||
var n=t*h+o;
|
||
e[n]&&v.push({
|
||
name:e[n].style,
|
||
title:e[n].emoji?e[n].emoji:e[n].cn,
|
||
bp:"background-position: 0 -"+n*y+"px;",
|
||
id:e[n].id
|
||
});
|
||
}
|
||
for(var t=0;t<e.length;t++)b[e[t].style]=e[t].emoji||e[t].cn;
|
||
}
|
||
function i(){
|
||
var e=document.createDocumentFragment();
|
||
v.forEach(function(t,o){
|
||
var n=document.createElement("li"),i=document.createElement("span");
|
||
n.className="comment_primary_emotion_item js_emotion_item",n.setAttribute("data-index",o),
|
||
i.className="comment_primary_emotion",i.setAttribute("style",t.bp),n.appendChild(i),
|
||
e.appendChild(n);
|
||
}),f.emotionList&&f.emotionList.appendChild(e);
|
||
}
|
||
function m(e){
|
||
window.scrollTo(0,window.scrollY+e.getBoundingClientRect().height);
|
||
}
|
||
function l(e){
|
||
return e.getBoundingClientRect().top+e.getBoundingClientRect().height>=_.getInnerHeight()?!0:!1;
|
||
}
|
||
function c(){
|
||
u.on(f.emotionSwitch,"click",function(){
|
||
var e=f.emotionPanel,t=e.style.display;
|
||
"none"===t?(e.style.display="",e.style.left=f.tool.getBoundingClientRect().left+"px",
|
||
e.style.top=window.scrollY+f.tool.getBoundingClientRect().top+f.tool.getBoundingClientRect().height+"px",
|
||
l(e)&&m(e)):e.style.display="none";
|
||
});
|
||
}
|
||
function s(){
|
||
var e=f.emotionPanel;
|
||
""===e.style.display&&(e.style.left=f.tool.getBoundingClientRect().left+"px",e.style.top=window.scrollY+f.tool.getBoundingClientRect().top+f.tool.getBoundingClientRect().height+"px");
|
||
}
|
||
function a(e){
|
||
var t=document.createElement("div"),o="",n="",i=[],m=void 0;
|
||
t.innerHTML=e;
|
||
for(var l=0;l<t.childNodes.length;l++){
|
||
var c=t.childNodes[l];
|
||
switch(c.nodeType){
|
||
case 1:
|
||
("IMG"===c.nodeName.toUpperCase()||"I"===c.nodeName.toUpperCase())&&(n=c.getAttribute("class"),
|
||
n&&(i=n.split(" "),i.length>1&&"icon_emotion_single"===i[0]&&(o=b[i[1]],m=document.createTextNode(o),
|
||
t.replaceChild(m,c))));
|
||
}
|
||
}
|
||
var s=t.innerHTML;
|
||
return s=s.replace(/<br.*?>/gi,"\n").replace(/<.*?>/g,"");
|
||
}
|
||
function d(){
|
||
f={
|
||
emotionSwitch:document.getElementById("js_emotion_wrp_pc"),
|
||
emotionPanel:document.getElementById("js_emotion_panel_pc"),
|
||
emotionList:document.getElementById("js_emotion_list_pc"),
|
||
input:document.getElementById("js_cmt_input"),
|
||
submit:document.getElementById("js_cmt_submit"),
|
||
tool:document.getElementById("js_comment_tool_pc")
|
||
},n(),i(),c(),window.onresize=function(){
|
||
s();
|
||
};
|
||
}
|
||
var r=e("biz_common/utils/emoji_data.js"),p=e("biz_common/utils/emoji_panel_data.js"),u=e("biz_common/dom/event.js"),g=e("appmsg/emotion/emotion.js").encode,_=e("common/utils.js"),f={},h=16,j=7,y=24,v=[],b={};
|
||
o.exports={
|
||
init:d,
|
||
edata:v,
|
||
encode:g,
|
||
textFilter:a,
|
||
emotionPanelMove:s
|
||
};
|
||
});define("appmsg/emotion/dom.js",["biz_common/dom/event.js"],function(t){
|
||
"use strict";
|
||
function e(t){
|
||
if("string"==typeof t){
|
||
document.querySelectorAll||!function(){
|
||
var t=document.createStyleSheet(),e=function(e,n){
|
||
var i,o=document.all,r=o.length,u=[];
|
||
for(t.addRule(e,"foo:bar"),i=0;r>i&&!("bar"===o[i].currentStyle.foo&&(u.push(o[i]),
|
||
u.length>n));i+=1);
|
||
return t.removeRule(0),u;
|
||
};
|
||
document.querySelectorAll=function(t){
|
||
return e(t,1/0);
|
||
};
|
||
}();
|
||
var e=document.querySelectorAll(t);
|
||
}else e=[t];
|
||
return{
|
||
el:e,
|
||
on:function(t,e){
|
||
return this.each(function(n){
|
||
i.on(n,t,e);
|
||
}),this;
|
||
},
|
||
hide:function(){
|
||
return this.each(function(t){
|
||
t.style.display="none";
|
||
}),this;
|
||
},
|
||
show:function(){
|
||
return this.each(function(t){
|
||
t.style.display="block";
|
||
}),this;
|
||
},
|
||
each:function(t){
|
||
return n(this.el,t),this;
|
||
},
|
||
width:function(){
|
||
return this.el[0].clientWidth;
|
||
},
|
||
css:function(t){
|
||
return this.each(function(e){
|
||
for(var n in t)e.style[n]=t[n];
|
||
}),this;
|
||
},
|
||
attr:function(t,e){
|
||
var n=this.el[0];
|
||
return e?(n.setAttribute(t,e),this):n.getAttribute(t);
|
||
},
|
||
append:function(t){
|
||
return t.el&&(t=t.el[0]),this.el[0].appendChild(t),this;
|
||
},
|
||
html:function(t){
|
||
this.each(function(e){
|
||
e.innerHTML=t;
|
||
});
|
||
}
|
||
};
|
||
}
|
||
function n(t,e){
|
||
for(var n=0,i=t.length;i>n;n++)e(t[n],n);
|
||
}
|
||
var i=t("biz_common/dom/event.js");
|
||
return e.el=function(t){
|
||
return document.createElement(t);
|
||
},e.later=function(t){
|
||
setTimeout(t,3);
|
||
},e.log=function(){},e.each=n,e;
|
||
}); |