webpackJsonp([9],{"54Ry":function(t,s,e){"use strict";Object.defineProperty(s,"__esModule",{value:!0});var i=e("5ypk"),a=e.n(i),n=e("LyMh"),o=e.n(n),l=e("CCn6"),c={name:"shareGoods",data:function(){return{shareGoodsBg:a.a,title_share_goods:o.a,userDetail:null,shopId:null,goodsDetail:null,lastTime:{day:3,hour:0,min:0,second:0}}},methods:{lastTimeOut:function(){0===this.lastTime.second?(this.lastTime.second=59,0===this.lastTime.min?(this.lastTime.min=59,0===this.lastTime.hour?(this.lastTime.hour=23,0===this.lastTime.day||this.lastTime.day--):this.lastTime.hour--):this.lastTime.min--):this.lastTime.second--},initPage:function(){var t=this;this.$sa.track("ViewInvitation",{salesID:this.$route.query.userID}),Object(l.s)(this.$route.query.userID).then(function(s){s.user_info.avatar=s.user_info.avatar.replace("http://","https://"),t.userDetail=s}),Object(l.u)().then(function(s){t.shopId=s[0].value,Object(l.h)(t.shopId).then(function(s){s.desc=JSON.parse(s.desc),t.goodsDetail=s})})},toBuy:function(t){1===t?this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名1"}):this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名2"}),window.location.href="https://wechat.changchangenglish.com/#/buyDetail?shopId="+this.shopId+"&invite_code=CC-UDK-"+this.$route.query.userID}},mounted:function(){var t=this;this.initPage(),setInterval(function(){t.lastTimeOut()},1e3),window.onscroll=function(){var s=document.documentElement.scrollTop||document.body.scrollTop;t.$refs.btn_block.style.opacity=s>500?1:0}}},u={render:function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("div",[t.userDetail?e("div",{staticClass:"share-good-head",style:{backgroundImage:"url('"+t.shareGoodsBg+"')"}},[e("img",{staticClass:"head",attrs:{src:t.userDetail.user_info.avatar}}),t._v(" "),e("div",{staticClass:"title",style:{backgroundImage:"url('"+t.title_share_goods+"')"}},[t._v("\n      "+t._s(t.userDetail.user_info.nickname)+"\n    ")]),t._v(" "),e("div",{staticClass:"day"},[t._v("\n      "+t._s(t.userDetail.total_day)+"\n      "),e("span",[t._v("\n        Days\n      ")])]),t._v(" "),e("div",{staticClass:"iknow",on:{click:function(s){t.toBuy(1)}}})]):t._e(),t._v(" "),t.goodsDetail?e("div",{staticClass:"good-content"},[e("div",{staticClass:"content",domProps:{innerHTML:t._s(t.goodsDetail.desc.detail)}}),t._v(" "),e("div",{ref:"btn_block",staticClass:"btn-block"},[e("div",{staticClass:"lastTime"},[t._v("\n        优惠倒计时 "+t._s(t.lastTime.day)+" 天 "+t._s(t.lastTime.hour)+" 时 "+t._s(t.lastTime.min)+" 分 "+t._s(t.lastTime.second)+" 秒\n      ")]),t._v(" "),e("div",{staticClass:"btn",on:{click:function(s){t.toBuy(2)}}},[t._v("\n        正在疯抢 · 超值VIP课程\n      ")])])]):t._e()])},staticRenderFns:[]};var r=e("VU/8")(c,u,!1,function(t){e("YaWT"),e("DXkd")},"data-v-2e6ceeec",null);s.default=r.exports},"5ypk":function(t,s,e){t.exports=e.p+"static/img/shareGoodsBg2.5bf8cca.png"},DXkd:function(t,s){},LyMh:function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcIAAABsBAMAAAALV69cAAAAIVBMVEVHcEwAYkwFl3cFlnYFi2wFl3cFl3cFmHcAYUwGl3cDgWVH8oeMAAAACXRSTlMA/sJIJ+KQaa8h3je6AAACZElEQVR42u2cPUsDQRCGFz0/UooWJlUgUUh3ChbpoiCaLqgp0omNXJdChHQK/oDcp2y6lOZX6iYEIniTmxSy8+69/cE+zM7szOzcKpUr7/VkoCUovXvuqA203dJyFPl8QE8S4A8i34oXWpbu2XtUSxN3n16LI3xgErbEEUbom5S7TbcEEtZZhF2BhAmLcCSQ8JNFGAgkzMBDKTeYDgQSpiXhL2mJKglLwpLQasKbp77GU//0ZQl4rlHVWABeaVw1DeCeRtZQaJLNSsexTWiMuANO2FNtcMJYZDXPq/wDcMKsJAQgxPdD/FjaBSdMVAWccCzyhoKjugN56TY4oS+z+VtcqQv1IfhxYS4VsQvEnhN9GgVNKPa+lxNoFHTunYidLCmes0mdDmJkNFLHEoppObyA64ix4BEvjhsiO6IveT6I44a4jhiLnrXkuCGuI/rCRy8Kpt3IoSYSPk5atLCQOxK8XqtDw5jHRewUIf4uxSfEj6X45yF8ToPaFB46VFvg14fwNT5+nwa/19aGJYyVIz1v/HsL/LunLjBh4sgdsEaWG//MYA8n1p2YiQqgCTPlwGyip7HVUbvghI8OzHlXwAnHDvxREoATZsDlryuEKfiBbwg1uhwgzN+l4exLCMRkViV2aX6kmRzMtdHzrv8mb7HIfFtE1Hk4Nd8eK7v1bhZZo04LIqcJzceHlhOemUVWqZyGyrzNx2+WE+6bRZKZN9XxDq13w4UjEiY0Xe+RpmLNkbJdl1ScmU+cUEacWm9CY8QabULyFaXwQ9mvW2KTNte9hNVQElRg/X+/ZrbyGpjlItf/DUICuUSCELZjAAAAAElFTkSuQmCC"},YaWT:function(t,s){}});
//# sourceMappingURL=9.d0cb62a2b8d7591057d4.js.map