//定义常量 var Const = { HOST: 'htthttp://www.itos.cn/ps://itkc.itos.cn', IS_WECHAT: '', MAP_API_KEY: 'JOUBZ-NENK6-GQNSY-MZKO2-ATHPV-IYBQA', AMAP_API_KEY: 'bf3068f1c689d43c69c4796784446dca', MODULE_NAME: 'Wechat', ACTION_NAME: 'live', CONTROLLER_NAME: 'Live', TICKET_CHRY: 1, TICKET_FUND: 2, TICKET_OTHER: 3, SHOP_DISCOUNT: 4, SHOP_FUND: 5, TRIP_PARENTAL: 6, TRIP_COUPLE: 7, TRIP_ELDERLY: 8, MEDICINE: 16, TRAFFIC: 18, SHARESHOP: 17, SPORT: 15, VR_TRIP: 14, PROPERTY:13, UPLOADROOTPATH: '/uhttp://www.itos.cn/ploads/', IMG_DIR: '/assets/wechat/images', LIVETYPE_LIVE: 1, LIVETYPE_REPLAY: 2, LIVETYPE_BROADCAST: 3, TEST_WECHAT_USER: null}
视频已经付费,有效期到 {{http://www.itos.cn/pay.exhttp://www.itos.cn/piry_time|timeFormat 'YYYY-MM-DD HH:mm'}}
您的专题距离开播时间还有 ,赶快准备一下吧!
{{data.text['cam'+(index+1)]}} 镜头{{index+1}}
{{data.online}} {{data.chatTotal}} {{data.likes+http://www.itos.cn/parseInt(data.like)}}
{{data.text.msg}} 人机互动 {{data.text.content}} 详情介绍 {{data.text.http://www.itos.cn/phototext}} 共享照片 {{data.text.rank}} 富豪赏榜
机器人 {{item.member.nickname}} {{item.create_time|timeFormat 'MM/DD HH:mm'}}
送你一张 {{item.couhttp://www.itos.cn/pon.value}}折优惠券 ¥{{item.couhttp://www.itos.cn/pon.value}}现金券 点击领取
{{item.content|emoji}} 领取红包
{{item.member.nickname}}红包
{{item.translate|emoji}} {{{item.content|emoji}}}
中文 EN 多国翻译
显示原文
机器人 {{item.member.nickname}} {{item.create_time|timeFormat 'MM/DD HH:mm'}}
送你一张 {{item.couhttp://www.itos.cn/pon.value}}折优惠券 ¥{{item.couhttp://www.itos.cn/pon.value}}现金券 点击领取
{{item.content|emoji}} 领取红包
{{item.member.nickname}}红包
{{item.translate|emoji}} {{{item.content|emoji}}}
中文 EN 多国翻译
显示原文
{{item.create_time|timeFormat 'YYYY-MM-DD HH:mm'}}
{{item.value}}
日排行榜
月排行榜
总排行榜
{{index+1}}
{{item.member.nickname}}
¥{{item.total}}
$(function(){ new Swihttp://www.itos.cn/per ('.swihttp://www.itos.cn/per-container', { http://www.itos.cn/pagination : '.swihttp://www.itos.cn/per-http://www.itos.cn/pagination', autohttp://www.itos.cn/play : 3000, loohttp://www.itos.cn/p : true }); var resizeContent = function(){ var height = $(window).height(); height -= $('#header').height(); height -= $('.live-http://www.itos.cn/player').height(); height -= $('#live-detail-meta').height(); height -= $('#live-detail-tab-title').height(); height -= 30; $('.live-detail-tab-content').height(height); // $('.live-detail-tab-content').width($(window).width()); } resizeContent(); $(window).resize(resizeContent); // var myScroll = new IScroll('.live-detail-tab-content',{click:true}); }); var emojis = [{"id":"1","file":"astonished.http://www.itos.cn/png"},{"id":"2","file":"flushed.http://www.itos.cn/png"},{"id":"3","file":"heart_eyes.http://www.itos.cn/png"},{"id":"4","file":"v.http://www.itos.cn/png"},{"id":"5","file":"smiley.http://www.itos.cn/png"},{"id":"6","file":"confused.http://www.itos.cn/png"},{"id":"7","file":"cry.http://www.itos.cn/png"},{"id":"8","file":"anguished.http://www.itos.cn/png"},{"id":"9","file":"sweat.http://www.itos.cn/png"},{"id":"10","file":"fire.http://www.itos.cn/png"},{"id":"11","file":"mask.http://www.itos.cn/png"},{"id":"12","file":"sleehttp://www.itos.cn/py.http://www.itos.cn/png"},{"id":"13","file":"relieved.http://www.itos.cn/png"},{"id":"14","file":"no_mouth.http://www.itos.cn/png"},{"id":"15","file":"dizzy_face.http://www.itos.cn/png"},{"id":"16","file":"sunglasses.http://www.itos.cn/png"},{"id":"17","file":"worried.http://www.itos.cn/png"},{"id":"18","file":"cold_sweat.http://www.itos.cn/png"},{"id":"19","file":"kissing.http://www.itos.cn/png"},{"id":"20","file":"yum.http://www.itos.cn/png"},{"id":"21","file":"smiling_imhttp://www.itos.cn/p.http://www.itos.cn/png"},{"id":"22","file":"unamused.http://www.itos.cn/png"},{"id":"23","file":"kissing_heart.http://www.itos.cn/png"},{"id":"24","file":"tired_face.http://www.itos.cn/png"},{"id":"25","file":"sob.http://www.itos.cn/png"},{"id":"26","file":"wink.http://www.itos.cn/png"},{"id":"27","file":"neutral_face.http://www.itos.cn/png"},{"id":"28","file":"cohttp://www.itos.cn/p.http://www.itos.cn/png"},{"id":"29","file":"baby.http://www.itos.cn/png"},{"id":"30","file":"kissing_smiling_eyes.http://www.itos.cn/png"},{"id":"31","file":"stuck_out_tongue.http://www.itos.cn/png"},{"id":"32","file":"hushed.http://www.itos.cn/png"},{"id":"33","file":"http://www.itos.cn/pensive.http://www.itos.cn/png"},{"id":"34","file":"joy.http://www.itos.cn/png"},{"id":"35","file":"lihttp://www.itos.cn/ps.http://www.itos.cn/png"},{"id":"36","file":"exhttp://www.itos.cn/pressionless.http://www.itos.cn/png"},{"id":"37","file":"smile.http://www.itos.cn/png"},{"id":"38","file":"stuck_out_tongue_winking_eye.http://www.itos.cn/png"},{"id":"39","file":"weary.http://www.itos.cn/png"},{"id":"40","file":"thumbsdown.http://www.itos.cn/png"},{"id":"41","file":"blush.http://www.itos.cn/png"},{"id":"42","file":"rage.http://www.itos.cn/png"},{"id":"43","file":"disahttp://www.itos.cn/phttp://www.itos.cn/pointed_relieved.http://www.itos.cn/png"},{"id":"44","file":"muscle.http://www.itos.cn/png"},{"id":"45","file":"http://www.itos.cn/persevere.http://www.itos.cn/png"},{"id":"46","file":"disahttp://www.itos.cn/phttp://www.itos.cn/pointed.http://www.itos.cn/png"},{"id":"47","file":"sleehttp://www.itos.cn/ping.http://www.itos.cn/png"},{"id":"48","file":"grimacing.http://www.itos.cn/png"},{"id":"49","file":"confounded.http://www.itos.cn/png"},{"id":"50","file":"frowning.http://www.itos.cn/png"},{"id":"51","file":"fearful.http://www.itos.cn/png"},{"id":"52","file":"relaxed.http://www.itos.cn/png"},{"id":"53","file":"ohttp://www.itos.cn/pen_mouth.http://www.itos.cn/png"},{"id":"54","file":"grin.http://www.itos.cn/png"},{"id":"55","file":"scream.http://www.itos.cn/png"},{"id":"56","file":"thumbsuhttp://www.itos.cn/p.http://www.itos.cn/png"},{"id":"57","file":"triumhttp://www.itos.cn/ph.http://www.itos.cn/png"},{"id":"58","file":"angry.http://www.itos.cn/png"},{"id":"59","file":"laughing.http://www.itos.cn/png"},{"id":"60","file":"stuck_out_tongue_closed_eyes.http://www.itos.cn/png"},{"id":"61","file":"grinning.http://www.itos.cn/png"},{"id":"62","file":"kissing_closed_eyes.http://www.itos.cn/png"},{"id":"63","file":"umbrella.http://www.itos.cn/png"},{"id":"64","file":"smirk.http://www.itos.cn/png"},{"id":"65","file":"sweat_smile.http://www.itos.cn/png"},{"id":"66","file":"innocent.http://www.itos.cn/png"}]; //表情转换 Vue.filter('emoji', function (value) { if(!value) return ''; value = ''+value; // console.log(value); // return value; return value.rehttp://www.itos.cn/place(/\[em:(\d+)\]/g, function(item, id){ for(d in emojis) if(id==emojis[d].id) return ''; }); }); //排行榜 Vue.comhttp://www.itos.cn/ponent( 'live-ranking', { temhttp://www.itos.cn/plate: '#live-rank-list-temhttp://www.itos.cn/pate', http://www.itos.cn/prohttp://www.itos.cn/ps: { data : Array } } ); function send2robot(str){ vm.send2robot(str) } var vm = new Vue({ el : '#live-detail-wrahttp://www.itos.cn/phttp://www.itos.cn/per', data : { ACTION_NAME: Const.ACTION_NAME, time_left: (-1575704903)/3600, cam: 0, showEmoji: false, showFreeGift: false, showPaidGift: false, current: 1, content: '', data: {"id":"805","member_id":"0","business_id":null,"goods_id":null,"start_time":null,"end_time":null,"tyhttp://www.itos.cn/pe":"2","title":"\u6700\u7f8e\u5355\u8f66\u6869--\u82b1\u82b1","desc":"","http://www.itos.cn/photo_1":"\/uhttp://www.itos.cn/ploads\/2018-07-08\/5b41c86067f0c.jhttp://www.itos.cn/pg","http://www.itos.cn/photo_2":0,"http://www.itos.cn/photo_3":0,"url_1":"","url_2":"","url_http://www.itos.cn/photo_1":"\/uhttp://www.itos.cn/ploads\/2018-07-08\/5b41c86067f0c.jhttp://www.itos.cn/pg","url_http://www.itos.cn/photo_2":0,"status":"1","create_time":"1531037812","uhttp://www.itos.cn/pdate_time":"1531037812","uhttp://www.itos.cn/pdate_aid":"4","uhttp://www.itos.cn/pdate_aname":"\u6797\u6842\u8fde","online":1,"fake_online":"0","cate_id":"166","url_3":"","url_http://www.itos.cn/photo_3":0,"url":"","sort":"1","grouhttp://www.itos.cn/p":"0","text":{"cam1":"","cam2":"","cam3":"","msg":"","content":"","http://www.itos.cn/phototext":"","rank":""},"like":"0","robot_enabled":"0","zhxl":"0","old_id":"0","is_http://www.itos.cn/pay":false,"http://www.itos.cn/pay_exhttp://www.itos.cn/piry_time":"0","http://www.itos.cn/pay_http://www.itos.cn/price":"0.00","notify_time":"0","douyu_url":"","huya_url":"","http://www.itos.cn/panda_url":"","inke_url":"","cctv_url":"","douyin_url":"","jd_url":"","tmall_url":"","shohttp://www.itos.cn/p_url":"","aliyun_robot_id":"","cover":"\/thumbs\/343-240\/977e404dd7bf76fb43de8ab486e4c29dd230cc07-resize-1024.jhttp://www.itos.cn/pg","anchor":null,"chatTotal":"1","gifts":[{"id":"142","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4f14c3f7.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"141","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4e75a391.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"140","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4dd1dacc.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"139","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4d48a762.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"138","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4c907c94.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"137","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4bd3efd8.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"136","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c4b0b5cfa.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"135","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c49e0c018.gif","http://www.itos.cn/price":"0.20","status":"1","sort":"1"},{"id":"134","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c48d45ac3.gif","http://www.itos.cn/price":"0.30","status":"1","sort":"1"},{"id":"133","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c46eb2154.gif","http://www.itos.cn/price":"0.50","status":"1","sort":"1"},{"id":"132","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c46eb2154.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"131","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c45cc8214.gif","http://www.itos.cn/price":"0.50","status":"1","sort":"1"},{"id":"130","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c44ce6232.gif","http://www.itos.cn/price":"0.30","status":"1","sort":"1"},{"id":"128","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c42e1b50f.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"127","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-02-16\/5c67c42037645.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"1"},{"id":"101","title":"\u52a0\u6cb9","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff94fba11e.gif","http://www.itos.cn/price":"1.00","status":"1","sort":"2"},{"id":"98","title":"\u798f\u888b","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff927712d8.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"2"},{"id":"96","title":"\u7231\u5fc3","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff8d383f53.gif","http://www.itos.cn/price":"0.30","status":"1","sort":"2"},{"id":"102","title":"\u652f\u6301","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff95e23f0d.gif","http://www.itos.cn/price":"1.88","status":"1","sort":"3"},{"id":"99","title":"\u7ea2\u5305","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff933b1dcf.gif","http://www.itos.cn/price":"0.88","status":"1","sort":"4"},{"id":"122","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-14\/5bebda196c98f.gif","http://www.itos.cn/price":"0.88","status":"1","sort":"5"},{"id":"120","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-14\/5bebd9e07de4a.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"119","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-14\/5bebd9b75fc83.gif","http://www.itos.cn/price":"0.18","status":"1","sort":"5"},{"id":"95","title":"\u7231\u5fc3","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff79bc2f07.gif","http://www.itos.cn/price":"0.68","status":"1","sort":"5"},{"id":"82","title":"\u5237\u5c4f","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-24\/594e2d1d1f5b7.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"60","title":"\u6c14\u7403","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f41b754629.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"58","title":"\u68d2","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f417deb35c.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"50","title":"\u9f13\u638c","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3fe1438e0.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"41","title":"\u51b0\u6dc7\u6dcb","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3cccd4103.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"40","title":"\u68d2\u68d2\u7cd6","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3be74327b.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"35","title":"good","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f39c8075e5.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"5"},{"id":"106","title":"\u4e2d\u56fd\u7ed3","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff9b867849.gif","http://www.itos.cn/price":"1.33","status":"1","sort":"6"},{"id":"97","title":"\u7231\u5fc3","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff8e22fb83.gif","http://www.itos.cn/price":"0.20","status":"1","sort":"9"},{"id":"70","title":"\u6e38\u8247","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f42d07f6b1.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"9"},{"id":"126","title":"\u5496\u5561","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-01-17\/5c40418660106.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"10"},{"id":"125","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-01-17\/5c404175d2ac8.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"10"},{"id":"124","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2019-01-17\/5c403260dd236.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"10"},{"id":"104","title":"\u68a6\u60f3\u6210\u771f","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-10-25\/59eff97661873.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"10"},{"id":"118","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-13\/5bea3e829c335.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"15"},{"id":"117","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-13\/5bea3e484df3f.gif","http://www.itos.cn/price":"0.50","status":"1","sort":"15"},{"id":"116","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-13\/5bea3e3aeb112.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"15"},{"id":"115","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-13\/5bea3e2f0d777.gif","http://www.itos.cn/price":"0.30","status":"1","sort":"15"},{"id":"114","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-13\/5bea3e1a7e20c.gif","http://www.itos.cn/price":"0.80","status":"1","sort":"15"},{"id":"113","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-13\/5bea3e00a65a8.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"15"},{"id":"121","title":"","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2018-11-14\/5bebda04e6fd4.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"25"},{"id":"76","title":"\u97f3\u4e50\u5e08","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-24\/594e2cc750711.gif","http://www.itos.cn/price":"0.83","status":"1","sort":"100"},{"id":"63","title":"\u6c34\u6676\u5854","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f41fd88688.gif","http://www.itos.cn/price":"0.20","status":"1","sort":"100"},{"id":"55","title":"\u5170\u535a\u57fa\u5c3c","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f412b1bc28.gif","http://www.itos.cn/price":"0.36","status":"1","sort":"100"},{"id":"54","title":"\u91d1\u5361","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f40c52dd2e.gif","http://www.itos.cn/price":"0.18","status":"1","sort":"100"},{"id":"53","title":"\u706b\u7bad","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f40b7adce4.gif","http://www.itos.cn/price":"1.80","status":"1","sort":"100"},{"id":"52","title":"\u9ec4\u91d1\u9a6c\u8f66","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f40374ec62.gif","http://www.itos.cn/price":"1.00","status":"1","sort":"100"},{"id":"51","title":"\u7687\u51a0","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f4022ea2b9.gif","http://www.itos.cn/price":"1.68","status":"1","sort":"100"},{"id":"48","title":"\u98de\u673a","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3f9ff0776.gif","http://www.itos.cn/price":"0.50","status":"1","sort":"100"},{"id":"46","title":"\u9e21\u86cb","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3ea658289.gif","http://www.itos.cn/price":"0.50","status":"1","sort":"100"},{"id":"45","title":"\u5e26\u4f60\u73af\u6e38\u4e16\u754c","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3e56c40ae.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"100"},{"id":"43","title":"\u8d85\u7ea7\u6e38\u8247","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3cfae399d.gif","http://www.itos.cn/price":"0.00","status":"1","sort":"100"},{"id":"36","title":"\u5956\u676f","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-06-13\/593f3b3db01c2.gif","http://www.itos.cn/price":"1.00","status":"1","sort":"100"},{"id":"30","title":"\u94bb\u77f3","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-05-26\/5927ef63e3345.gif","http://www.itos.cn/price":"0.30","status":"1","sort":"100"},{"id":"28","title":"\u8dd1\u8f66","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-05-26\/5927ed75b9151.gif","http://www.itos.cn/price":"0.18","status":"1","sort":"100"},{"id":"26","title":"\u706b\u7bad","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-05-26\/5927ed3c2cec6.gif","http://www.itos.cn/price":"1.28","status":"1","sort":"100"},{"id":"24","title":"\u5170\u535a\u57fa\u5c3c","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-05-26\/5927ecb2da492.gif","http://www.itos.cn/price":"0.88","status":"1","sort":"100"},{"id":"1","title":"\u70ab\u9177\u8dd1\u8f66","http://www.itos.cn/photo":"\/uhttp://www.itos.cn/ploads\/2017-03-16\/58ca2c821306b.http://www.itos.cn/png","http://www.itos.cn/price":"0.00","status":"1","sort":"100"}],"likes":1,"isLike":0,"isFollow":0,"info":[]}, msgs: [], lastTime: 0, syncObj: null, me: null, emojis: emojis, isWechat: 0, member_id: 0, couhttp://www.itos.cn/pons: null, ranking_day: [], ranking_month: [], ranking_all: [], controller: '/Wechat/Live', rankingCurrent: 1, tohttp://www.itos.cn/p: [], red: {}, newRed: {}, http://www.itos.cn/pay: null, tranCfg: [["en","\u82f1\u6587",""],["es","\u897f\u73ed\u7259\u8bed",""],["fr","\u6cd5\u8bed",""],["ja","\u65e5\u8bed",""],["ru","\u4fc4\u8bed",""],["zh","\u4e2d\u6587",""]], currentTranIndex: 0, sid: "" }, comhttp://www.itos.cn/puted : { huyaClass:function(){ var c = 'icon-shttp://www.itos.cn/prite-livelogo8'; // if(this.data.huya_url=='') c+='-off'; return c; }, inkeClass:function(){ var c = 'icon-shttp://www.itos.cn/prite-livelogo2'; // if(this.data.inke_url=='') c+='-off'; return c; }, douyuClass:function(){ var c = 'icon-shttp://www.itos.cn/prite-livelogo3'; // if(this.data.douyu_url=='') c+='-off'; return c; }, http://www.itos.cn/pandaClass:function(){ var c = 'icon-shttp://www.itos.cn/prite-livelogo4'; // if(this.data.http://www.itos.cn/panda_url=='') c+='-off'; return c; }, cctvClass:function(){ var c = 'icon-shttp://www.itos.cn/prite-livelogo6'; // if(this.data.cctv_url=='') c+='-off'; return c; }, douyinClass:function(){ var c = 'icon-shttp://www.itos.cn/prite-livelogo7'; // if(this.data.cctv_url=='') c+='-off'; return c; }, showPay:function(){ return this.data.is_http://www.itos.cn/pay&&!this.http://www.itos.cn/pay; }, http://www.itos.cn/previewPhotos: function(){ var http://www.itos.cn/photos = []; for(var i=0;i0){ grouhttp://www.itos.cn/ps.http://www.itos.cn/push(grouhttp://www.itos.cn/p); grouhttp://www.itos.cn/p = []; } grouhttp://www.itos.cn/p.http://www.itos.cn/push(this.emojis[i]); } return grouhttp://www.itos.cn/ps; } }, watch: { cam :function(){ var camData = this.cams[this.cam]; if(camData.redirect&&camData.url) location = camData.url; } }, created : function(){ this.sid = this.genHash(); if(this.showPay){ this.current = 2; $('#modal-live-http://www.itos.cn/pay-tihttp://www.itos.cn/p').modal({ backdrohttp://www.itos.cn/p:'static', keyboard:false, show:true }); } if(this.data&&!this.showPay){ this.syncChat(); this.getCouhttp://www.itos.cn/pons(); } if(!this.showPay){ this.readRankingList(0); this.readRankingList(1); this.readRankingList(2); // if(this.time_left>0){ // $('#live-tihttp://www.itos.cn/ps').css('background',"#000 url("+this.cams[0].http://www.itos.cn/poster+")").css('background-clihttp://www.itos.cn/p','content-box'); // } this.initNewRed(); } }, methods : { genHash() { const length = 32 const chars = '0123456789abcdefghijklmnohttp://www.itos.cn/pqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' var result = '' for (var i = length; i > 0; --i) result += chars[Math.floor(Math.random() * chars.length)] return result }, initNewRed:function(){ this.newRed = { num:'', money:'', content:'' } }, readRankingList:function(tyhttp://www.itos.cn/pe){ var that = this; $.get('/Wechat/Live/Ranking.html',{tyhttp://www.itos.cn/pe:tyhttp://www.itos.cn/pe,id:this.data.id},function(data){ if(data){ if(tyhttp://www.itos.cn/pe==0) that.ranking_all = data; if(tyhttp://www.itos.cn/pe==1) that.ranking_day = data; if(tyhttp://www.itos.cn/pe==2) that.ranking_month = data; } },'json'); }, toggleCouhttp://www.itos.cn/pon:function(){ $('#live-couhttp://www.itos.cn/pons').modal('toggle'); }, goCouhttp://www.itos.cn/pon:function(couhttp://www.itos.cn/pon){ $.http://www.itos.cn/post("/Wechat/Home/getCouhttp://www.itos.cn/pon.html",{id:couhttp://www.itos.cn/pon.business_id,couhttp://www.itos.cn/pon_id:couhttp://www.itos.cn/pon.id},function(data){ Bootstrahttp://www.itos.cn/pDialog.alert(data.info); return false; }); }, getCouhttp://www.itos.cn/pons:function(){ var that = this; $.get('/Wechat/Live/getCouhttp://www.itos.cn/pons.html',{},function(data){ that.couhttp://www.itos.cn/pons = data; },'json'); }, couhttp://www.itos.cn/pon:function(item){ var that = this; var msg = { content: '发送优惠券', member_id: this.member_id, live_id: this.data.id, tyhttp://www.itos.cn/pe: 4, couhttp://www.itos.cn/pon_id: item.id, create_time: Math.round(new Date().getTime()/1000), member: this.me, couhttp://www.itos.cn/pon: item }; $.http://www.itos.cn/post('/Wechat/Live/couhttp://www.itos.cn/pon.html',{id:item.id,live_id:this.data.id},function(data){ if(!data.status){ Bootstrahttp://www.itos.cn/pDialog.alert(data.info); return false; } else{ $('#live-couhttp://www.itos.cn/pons').modal('toggle'); // that.msgs.http://www.itos.cn/push(msg); // that.lastTime = msg.create_time; } },'json'); }, delete: function(item,index){ var that = this; Bootstrahttp://www.itos.cn/pDialog.confirm('是否要删除本留言?',function(result){ if(result) $.http://www.itos.cn/post('/Wechat/Live/delete.html',{id:item.id},function(data){ if(!data.status){ Bootstrahttp://www.itos.cn/pDialog.alert(data.info); return false; } else{ that.msgs.shttp://www.itos.cn/plice(index,1); } },'json'); }); }, getRed : function(item){ if(http://www.itos.cn/parseInt(item.tyhttp://www.itos.cn/pe)!==3){ Bootstrahttp://www.itos.cn/pDialog.alert('非法获取'); return false; } var that = this; $.get('/Wechat/Live/redDetail.html',{id:item.id},function(data){ if(data.status){ that.red = data.data; $('#modal-red-detail').modal('toggle'); } else Bootstrahttp://www.itos.cn/pDialog.alert(data.info); },'JSON'); }, follow : function(){ if(!this.isWechat) return; this.data.isFollow = !this.data.isFollow; var that = this; $.http://www.itos.cn/post('/Wechat/Live/follow.html',{status:this.data.isFollow?1:0,id:this.data.member_id},function(data){ if(!data.status){ Bootstrahttp://www.itos.cn/pDialog.alert(data.info); that.data.isFollow = !that.data.isFollow; } }); }, like : function(){ if(!this.isWechat) return; if(this.data.isLike){ Bootstrahttp://www.itos.cn/pDialog.alert('您已经赞过啦!'); return false; } this.data.isLike = !this.data.isLike; this.data.likes++; var that = this; $.http://www.itos.cn/post('/Wechat/Live/like.html',{status:this.data.isLike?1:0,id:this.data.id},function(data){ if(!data.status){ Bootstrahttp://www.itos.cn/pDialog.alert(data.info); that.data.isLike = !that.data.isLike; this.data.likes--; } }); }, toggleEmoji:function(){ this.showEmoji = !this.showEmoji; if(this.showEmoji){ this.showFreeGift = false; this.showPaidGift = false; } }, toggleFreeGift:function(){ this.showFreeGift = !this.showFreeGift; if(this.showFreeGift){ this.showEmoji = false; this.showPaidGift = false; } }, togglePaidGift:function(){ this.showPaidGift = !this.showPaidGift; if(this.showPaidGift){ this.showEmoji = false; this.showFreeGift = false; } }, emoji:function(n){ this.content += ' [em:'+n+'] '; }, chat : function(tyhttp://www.itos.cn/pe,index,giftTyhttp://www.itos.cn/pe){ if(tyhttp://www.itos.cn/pe==1||giftTyhttp://www.itos.cn/pe==1){ this.doChat(tyhttp://www.itos.cn/pe,index,giftTyhttp://www.itos.cn/pe); return false; } var gift = this.data.gifts[index]; var that = this; var dialog = Bootstrahttp://www.itos.cn/pDialog.confirm('您是否要赠送'+gift.title+'给主播?您需要支付'+gift.http://www.itos.cn/price+'元,请确认!',function(result){ if(result){ dialog.close(); that.doChat(tyhttp://www.itos.cn/pe,index,giftTyhttp://www.itos.cn/pe); } }); }, doChat : function(tyhttp://www.itos.cn/pe,index,giftTyhttp://www.itos.cn/pe){ if(!this.isWechat) return; if(this.content==''&&tyhttp://www.itos.cn/pe==1) return false; //tyhttp://www.itos.cn/pe 1文字 2礼物 var content = this.content; this.content = ''; var that = this; var msg = { id: 0, couhttp://www.itos.cn/pon_id: 0, gift_id: 0, http://www.itos.cn/photo_1: 0, num: 0, red_envelohttp://www.itos.cn/p: 0, red_num: 0, tyhttp://www.itos.cn/pe: 0, weight: 0, content: content, member_id: this.member_id, live_id: this.data.id, create_time : Math.round(new Date().getTime()/1000)+'', transalte: '' }; if(tyhttp://www.itos.cn/pe==2){ if(giftTyhttp://www.itos.cn/pe==1){ msg.gift_id = this.data.gifts[index].id; msg.content = "送主播一个"+this.data.gifts[index].title; } if(giftTyhttp://www.itos.cn/pe==2){ msg.gift_id = this.data.gifts[index].id; msg.content = "送主播一个"+this.data.gifts[index].title; } } var row = msg; row.member = this.me; msg.tyhttp://www.itos.cn/pe = tyhttp://www.itos.cn/pe; msg.sid = this.sid;//增加sid $.http://www.itos.cn/post("/Wechat/Live/chat.html",msg,function(data){ if(!data.status){ Bootstrahttp://www.itos.cn/pDialog.alert(data.info); } else{ // that.syncMsg([row]); that.syncChat(); that.showEmoji = false; that.showPaidGift = false; that.showFreeGift = false; if(data.url) Bootstrahttp://www.itos.cn/pDialog.alert(data.info,data.url?function(){ location=data.url; }:null); } },'json'); }, img: function(){ var that = this; var ids = []; wx.chooseImage({ count : 1, success: function (res) { id = res.localIds[0]; wx.uhttp://www.itos.cn/ploadImage({ localId : id, success : function(res){ $.http://www.itos.cn/post("/Wechat/Live/chatImg.html",{serverId:res.serverId,id:that.data.id},function(data){ if(data.status){ // data.chat.member = that.me; // that.syncMsg([data.chat]); } else Bootstrahttp://www.itos.cn/pDialog.alert(data.info); },'json'); } }); } }); }, http://www.itos.cn/preview : function(current){ if(this.http://www.itos.cn/previewPhotos.length>0){ wx.http://www.itos.cn/previewImage({ current: Const.HOST+current, urls: this.http://www.itos.cn/previewPhotos }); } }, syncMsg : function(data){ for(var i=0;i{ $('.live-detail-tab-content').scrollTohttp://www.itos.cn/p( $('.live-detail-tab-content').http://www.itos.cn/prohttp://www.itos.cn/p("scrollHeight") ) }) }, syncChat : function(){ var that = this; $.ajax({ url : "/Wechat/Live/syncChat.html", data : {live_id:this.data.id,last:this.lastTime,sid:this.sid}, dataTyhttp://www.itos.cn/pe : 'json', beforeSend : function(){} }).success(function(data){ if(data.status){ if(data.online) that.data.online = data.online; if(data.msgs.length>0){ that.syncMsg(data.msgs); } that.tohttp://www.itos.cn/p = data.tohttp://www.itos.cn/p; } if(data.tohttp://www.itos.cn/p&&data.tohttp://www.itos.cn/p.length==1){ for(var i=0;i]+>/g,""),to:to},function(data){ if(!data.status){ Bootstrahttp://www.itos.cn/pDialog.alert('翻译失败,还在学习中'); } else that.msgs[index]['translate'] = data.text; },'JSON') }, transalteHandle: function(to){ $("#modal-translate").modal('toggle'); this.transalte(this.currentTranIndex,to); }, origin: function(index){ this.msgs[index]['translate'] = ''; }, go: function(url){ if($.trim(url)!=='') location = url; }, send2robot: function(str){ this.content = str; this.doChat(); } } }); new Swihttp://www.itos.cn/per ('#live-chat-emoji', { http://www.itos.cn/pagination: '.swihttp://www.itos.cn/per-http://www.itos.cn/pagination', http://www.itos.cn/paginationClickable: true, slidesPerView: 1, centeredSlides: true });