giftList&&0!=e.giftList.lenght&&(l("ckey")||a.os.ios||!a.browser.wechat&&!a.browser.mqq||(!function(e){if(e&&e.giftList&&0!=e.giftList.length){for(var n=e.giftList,o=n.length,t="",a=0;a<o;a++)t+="<li "+(a>1?'style="display:none;"':"")+'><div class="card-icon2 '+(6==n[a].type?"red-packet":"")+'" '+(0!=n[a].type&&6!=n[a].type||!n[a].iconUrl?"":'style="background-image:url('+c(n[a].iconUrl)+'); background-size: cover;"')+'></div><div class="card-ct">',t+='<p class="ellipsis title">'+n[a].desc+"</p></div>",t+='<a href="javascript:void(0);" class="w-btn gift-btn is-red giftDownBtn" data-index="'+a+'">'+(n[a].btnTitle||"领取")+"</a></li>";$(".gift-panel .card-list").html(t),o>2?$(".gift-panel .card-more").html("<span>更多("+(o-2)+")</span>"):$(".gift-panel .card-more").hide(),$(".gift-panel").show()}}(e),function(e){$(".gift-panel .card-more").click((function(){var e=d.getCache().yybVersion;$(this).remove(),$(".gift-panel li").show();var n="";n=a.browser.wechat?e?"wx_android_yyb_giftmoreclick":"wx_android_noyyb_giftmoreclick":a.browser.mqq?e?"mqq_android_yyb_giftmoreclick":"mqq_android_noyyb_giftmoreclick":a.browser.qqbrowser?e?"mtt_android_yyb_giftmoreclick":"mtt_android_noyyb_giftmoreclick":"other_android_giftmoreclick",w(n),i.report({eventName:i.clickBtnEventName.giftCardMoreBtn})})),$(document.body).on("click",".giftDownBtn",(function(n){var o=d.getCache().yybVersion,t="";t=a.browser.wechat?o?"wx_android_yyb_giftclick":"wx_android_noyyb_giftclick":a.browser.mqq?o?"mqq_android_yyb_giftclick":"mqq_android_noyyb_giftclick":a.browser.qqbrowser?o?"mtt_android_yyb_giftclick":"mtt_android_noyyb_giftclick":"other_android_giftclick",w(t);var r=$(n.target);window.fastClickTrigger=!0;var l=function(e){-1==e.indexOf("via=")&&(e+="&via=ANDROIDWXZ.YYB.YH");return e+="&hostpname="+(a.browser.pname||"")+"&hostversion="+(a.browser.pversioncode||""),p("[components/giftCard.js] getTmast: "+e),e}(e.giftList[r.attr("data-index")||0].actionUrl.url);if(o)return i.report({eventName:i.clickBtnEventName.giftCardReceiveBtn,eventResult:i.clickActionEventResult.openQQDownloader,eventExtInfo:l}),void s.callWithScheme(l);i.report({eventName:i.clickBtnEventName.giftCardReceiveBtn,eventResult:i.clickActionEventResult.downloadQQDownloader}),$("#btn-fast-download").trigger(UI.EVENTS.touchstartEv(),[l])}))}(e),i.report({eventName:i.pvEventName.giftCard,eventStartTime:i.pageStartTime,eventEndTime:Date.now()})))},mockData:{giftList:[{type:6,iconUrl:"/o/res/micro/myapp-logo.png",desc:"红包"},{type:6,iconUrl:"/o/res/micro/myapp-logo.png",desc:"红包"},{type:6,iconUrl:"/o/res/micro/myapp-logo.png",desc:"红包"}]}}}]);
</script>


</body>
</html>

Prev |
Pg.: 1 ... 36 37 38 39 40 41


Back to home | File page

Subscribe | Register | Login | N