webpackJsonp([9],{"54Ry":function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=s("mvHQ"),a=s.n(o),i=s("rYr/"),n=s.n(i),l=s("LyMh"),c=s.n(l),r=s("CCn6"),u={name:"shareGoods",components:{loginPage:s("WIsT").a},data:function(){return{shareGoodsBg:n.a,title_share_goods:c.a,userDetail:null,bindMobile:{show:!1,mobile:"",img_code:"",verify_code:""},shopId:null,goodsDetail:null,lastTime:localStorage.getItem("lastTimeShare")?JSON.parse(localStorage.getItem("lastTimeShare")):{day:0,hour:8,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=8:this.lastTime.hour--):this.lastTime.min--):this.lastTime.second--,localStorage.setItem("lastTimeShare",a()(this.lastTime))},initPage:function(){var t=this;this.$sa.track("ViewInvitation",{salesID:this.$route.query.userID}),Object(r.s)(this.$route.query.userID).then(function(e){e.user_info.avatar=e.user_info.avatar.replace("http://","https://"),t.userDetail=e}),Object(r.u)().then(function(e){t.shopId=e[0].value,Object(r.h)(t.shopId).then(function(e){e.desc=JSON.parse(e.desc),e.goods_desc=JSON.parse(e.goods_desc),t.goodsDetail=e})})},goToBuyPage:function(){window.location.href="https://wechat.changchangenglish.com/#/buy?shopId="+this.shopId+"&invite_code=CC-UDK-"+this.$route.query.userID},toBuy:function(t){var e=this;1===t?this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名1"}):this.$sa.track("buttonClick",{tabTitle:"打卡商品页",moduleTitle:"功能按钮",buttonType:"购买",buttonName:"马上报名2"}),JSON.parse(localStorage.getItem("userDesc")).mobile&&""!==JSON.parse(localStorage.getItem("userDesc")).mobile?this.goToBuyPage():(this.bindMobile.show=!0,setTimeout(function(){e.$sa.track("ViewRegisterpage",{})},1e3))}},mounted:function(){var t=this;this.initPage(),setInterval(function(){t.lastTimeOut()},1e3),window.onscroll=function(){var e=document.documentElement.scrollTop||document.body.scrollTop;t.$refs.btn_block&&(t.$refs.btn_block.style.opacity=e>500?1:0)}}},d={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[t.userDetail?s("div",{staticClass:"share-good-head",style:{backgroundImage:"url('"+t.shareGoodsBg+"')"}},[s("img",{staticClass:"head",attrs:{src:t.userDetail.user_info.avatar}}),t._v(" "),s("div",{staticClass:"title",style:{backgroundImage:"url('"+t.title_share_goods+"')"}},[t._v("\n      "+t._s(t.userDetail.user_info.nickname)+"\n    ")]),t._v(" "),s("div",{staticClass:"day"},[t._v("\n      "+t._s(t.userDetail.total_day)+"\n      "),s("span",[t._v("\n        Days\n      ")])]),t._v(" "),s("div",{staticClass:"iknow",on:{click:function(e){t.toBuy(1)}}})]):t._e(),t._v(" "),t.goodsDetail?s("div",{staticClass:"good-content"},[s("div",{staticClass:"content",domProps:{innerHTML:t._s(t.goodsDetail.desc.detail)}}),t._v(" "),s("div",{ref:"btn_block",staticClass:"btn-block"},[s("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(" "),s("div",{staticClass:"btn",on:{click:function(e){t.toBuy(2)}}},[t._v("\n        正在疯抢 · 超值VIP课程\n      ")])])]):t._e(),t._v(" "),t.goodsDetail?s("login-page",{attrs:{"bind-mobile":t.bindMobile,groupDetail:t.goodsDetail},on:{goToBuyPage:t.goToBuyPage}}):t._e()],1)},staticRenderFns:[]};var h=s("VU/8")(u,d,!1,function(t){s("J6RK"),s("9RDf")},"data-v-6b5d801f",null);e.default=h.exports},"9RDf":function(t,e){},J6RK:function(t,e){},LyMh:function(t,e){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"},"rYr/":function(t,e,s){t.exports=s.p+"static/img/shareGoodsBg3.ab32fc9.png"}});
//# sourceMappingURL=9.cbb889c60987e690f9f6.js.map