webpackJsonp([8],{"4S5z":function(n,t,e){var o=e("DuJ/");"string"==typeof o&&(o=[[n.i,o,""]]),o.locals&&(n.exports=o.locals);e("rjj0")("2ca757eb",o,!1,{})},"54Ry":function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=e("mvHQ"),i=e.n(o),a=e("rYr/"),s=e.n(a),l=e("LyMh"),A=e.n(l),r=e("CCn6"),d={name:"shareGoods",components:{loginPage:e("WIsT").a},data:function(){return{shareGoodsBg:s.a,title_share_goods:A.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",i()(this.lastTime))},initPage:function(){var n=this;this.$sa.track("ViewInvitation",{salesID:this.$route.query.userID}),Object(r.s)(this.$route.query.userID).then(function(t){t.user_info.avatar=t.user_info.avatar.replace("http://","https://"),n.userDetail=t}),Object(r.u)().then(function(t){n.shopId=t[0].value,Object(r.h)(n.shopId).then(function(t){t.desc=JSON.parse(t.desc),t.goods_desc=JSON.parse(t.goods_desc),n.goodsDetail=t})})},goToBuyPage:function(){window.location.href="https://wechat-test.changchangenglish.com/#/buy?shopId="+this.shopId+"&invite_code=CC-UDK-"+this.$route.query.userID},toBuy:function(n){1===n?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,this.$sa.track("ViewRegisterpage",{}))}},mounted:function(){var n=this;this.initPage(),setInterval(function(){n.lastTimeOut()},1e3),window.onscroll=function(){var t=document.documentElement.scrollTop||document.body.scrollTop;n.$refs.btn_block&&(n.$refs.btn_block.style.opacity=t>500?1:0)}}},c=function(){var n=this,t=n.$createElement,e=n._self._c||t;return e("div",[n.userDetail?e("div",{staticClass:"share-good-head",style:{backgroundImage:"url('"+n.shareGoodsBg+"')"}},[e("img",{staticClass:"head",attrs:{src:n.userDetail.user_info.avatar}}),n._v(" "),e("div",{staticClass:"title",style:{backgroundImage:"url('"+n.title_share_goods+"')"}},[n._v("\n "+n._s(n.userDetail.user_info.nickname)+"\n ")]),n._v(" "),e("div",{staticClass:"day"},[n._v("\n "+n._s(n.userDetail.total_day)+"\n "),e("span",[n._v("\n Days\n ")])]),n._v(" "),e("div",{staticClass:"iknow",on:{click:function(t){n.toBuy(1)}}})]):n._e(),n._v(" "),n.goodsDetail?e("div",{staticClass:"good-content"},[e("div",{staticClass:"content",domProps:{innerHTML:n._s(n.goodsDetail.desc.detail)}}),n._v(" "),e("div",{ref:"btn_block",staticClass:"btn-block"},[e("div",{staticClass:"lastTime"},[n._v("\n 优惠倒计时 "+n._s(n.lastTime.day)+" 天 "+n._s(n.lastTime.hour)+" 时 "+n._s(n.lastTime.min)+" 分 "+n._s(n.lastTime.second)+" 秒\n ")]),n._v(" "),e("div",{staticClass:"btn",on:{click:function(t){n.toBuy(2)}}},[n._v("\n 正在疯抢 · 超值VIP课程\n ")])])]):n._e(),n._v(" "),n.goodsDetail?e("login-page",{attrs:{"bind-mobile":n.bindMobile,groupDetail:n.goodsDetail},on:{goToBuyPage:n.goToBuyPage}}):n._e()],1)};c._withStripped=!0;var g={render:c,staticRenderFns:[]},h=g;var b=!1;var p=e("VU/8")(d,h,!1,function(n){b||(e("wP84"),e("4S5z"))},"data-v-52fa373e",null);p.options.__file="src/components/newLesson/shareGoods.vue";t.default=p.exports},"DuJ/":function(n,t,e){(n.exports=e("FZ+f")(!0)).push([n.i,"\nimg{\n max-width: 100% !important;\n}\n","",{version:3,sources:["D:/myproject/new-singsingH5/src/components/newLesson/src/components/newLesson/shareGoods.vue"],names:[],mappings:";AA4OA;EACA,2BAAA;CACA",file:"shareGoods.vue",sourcesContent:["\n\n\n