1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a3266da"],{"0e00":function(t,e,i){var o=i("b365");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("5056201e",o,!0,{sourceMap:!1,shadowMode:!1})},"281e":function(t,e,i){"use strict";i("0e00")},"48bf":function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"liveAuthorization_collection"}},[i("c-title",{attrs:{hide:!1,text:"直播授权码"}}),t._l(t.info,(function(e,o){return i("div",{key:o,staticClass:"list"},[i("div",{staticClass:"lis"},[i("div",{staticClass:"left"},[i("div",{staticClass:"name"},[1==e.is_sold?i("div",{staticClass:"status"},[t._v("未售出")]):i("div",{staticClass:"statusT"},[t._v("售出")]),t._v(" "+t._s(e.level_name)+" ")]),i("div",{staticStyle:{"font-size":"0.75rem",color:"#666"}},[t._v(t._s(t.fun.timestampToTime(e.created_at)))])]),i("div",{staticClass:"right"},[i("div",{staticClass:"righrTop"},[t._v("¥"+t._s(e.price))]),i("div",{staticClass:"rightBottom"},[i("span",{on:{click:function(i){return t.tapCatch(e,o)}}},[t._v(t._s("2"==e.is_sold?"查看":"分享"))]),i("i",{staticClass:"iconfont icon-advertise-next",staticStyle:{"margin-right":"-0.3rem"}})])])]),e.show?i("div",{staticClass:"tapSelectShow"},[i("div",{staticClass:"selectLeft"},[i("div",[t._v("购买会员:")]),i("div",{staticClass:"user"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:e.buy_avatar,alt:""}})]),i("div",{staticClass:"userName"},[t._v(t._s(e.buy_name))])])]),i("div",{staticClass:"selectRight"},[t._v(t._s(e.buy_time))])]):t._e()])})),i("div",{staticClass:"c_imag"},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.loadingImg,expression:"loadingImg"}],style:{backgroundImage:"url("+t.backgroundImg},attrs:{id:"img_box"}},[i("div",{staticClass:"codeBox"},[i("img",{attrs:{src:t.qr_code,alt:""}})])])]),i("van-popup",{staticClass:"newcomerAward_popup",style:{height:"25.44rem",backgroundColor:"transparent"},attrs:{round:""},model:{value:t.posterShow,callback:function(e){t.posterShow=e},expression:"posterShow"}},[i("img",{directives:[{name:"show",rawName:"v-show",value:!t.loadingImg,expression:"!loadingImg"}],staticStyle:{width:"18.13rem",height:"25.44rem"},attrs:{id:"thecanvas"}})]),i("van-popup",{style:{height:"10.76rem"},attrs:{position:"bottom",round:""},model:{value:t.popShow,callback:function(e){t.popShow=e},expression:"popShow"}},[i("div",{staticClass:"btnTop"},[i("div",{staticClass:"boxBtn",on:{click:t.inviteFirend}},[i("i",{staticClass:"iconfont icon-all_wechat",staticStyle:{color:"#46bb36"}}),i("span",{staticStyle:{"font-size":"0.81rem",color:"#333"}},[t._v("微信好友")])]),i("div",{staticClass:"boxBtn",on:{click:t.getPoster}},[i("i",{staticClass:"iconfont icon-jk_haibao",staticStyle:{color:"#ea6f1c"}}),i("span",{staticStyle:{"font-size":"0.81rem",color:"#333"}},[t._v("海报")])])]),i("div",{staticStyle:{width:"100%",height:"0.28rem",background:"#797979"}}),i("div",{staticClass:"cancel",on:{click:t.popShowClose}},[t._v("取消")])]),i("yz-wechat-share-img",{model:{value:t.showWechatshar,callback:function(e){t.showWechatshar=e},expression:"showWechatshar"}})],2)},a=[],n=(i("99af"),i("6968")),l=i("c0e9"),s=i.n(l),d=i("2b57"),c=i("ac0d"),r={components:{cTitle:n["a"],yzWechatShareImg:d["a"]},mixins:[c["a"]],data:function(){return{isLoadMore:!0,page:1,total_page:0,id:"",posterShow:!1,loadingImg:!1,popShow:!1,showWechatshar:!1,info:[],posterId:"",qr_code:"",shopName:"",logo:"",backgroundImg:""}},activated:function(){this.id=this.$route.params.id,this.getData()},methods:{tapCatch:function(t,e){this.posterId=t.id,"1"==t.is_sold?(this.popShow=!0,this.fun.wxShare("",{},{link:this.fun.getSiteRoot()+"/addons/yun_shop/?menu#/liveAuthorization_pay/"+this.id+"?i="+this.fun.getKeyByI()+"&type="+this.fun.getTyep(),title:t.level_name,description:""})):this.$set(this.info[e],"show",!this.info[e].show)},inviteFirend:function(){this.popShow=!1,this.showWechatshar=!0},popShowClose:function(){this.posterId="",this.popShow=!1},saveImg:function(){var t=document.getElementById("img_box"),e=this;s()(t,{useCORS:!0,backgroundColor:null}).then((function(t){e.dataURL=t.toDataURL("image/png"),document.getElementById("thecanvas").setAttribute("src",e.dataURL)}))},getData:function(){var t=this;$http.get("plugin.room.frontend.code.waitPay",{level_id:t.id},"加载中").then((function(e){1==e.result&&(t.info=e.data.data,t.isLoadMore=!0,t.total_page=e.data.last_page,t.total_page||(t.total_page=0))}),(function(t){}))},getPoster:function(){window.scrollTo(0,0);var t=this;$http.get("plugin.room.frontend.goods-poster.new-goods-poster",{id:t.posterId},"加载中").then((function(e){1==e.result&&(t.qr_code=e.data.qrcode,t.shopName=e.data.shopName,t.logo=e.data.logo,t.backgroundImg=e.data.backgroundImg,t.popShow=!1,t.loadingImg=!0,setTimeout((function(){t.saveImg(),t.posterShow=!0,t.loadingImg=!1}),1e3))}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1;var e={page:1,level_id:t.id};t.page>=t.total_page?t.loading=!0:(t.page=t.page+1,e.page=t.page,$http.get("plugin.room.frontend.code.waitPay",e,"加载中").then((function(e){if(t.isLoadMore=!0,t.loading=!1,1!==e.result)return t.page=t.page-1,t.loading=!0,void(t.isLoadMore=!1);var i=e.data.data;t.info=t.info.concat(i)}),(function(t){})))}}},m=r,h=m,u=(i("281e"),i("2877")),p=Object(u["a"])(h,o,a,!1,null,"2d7dea1d",null);e["default"]=p.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=document.documentElement,a=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},b365:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#liveAuthorization_collection .list[data-v-2d7dea1d]{width:100%;background:#fff;padding:.81rem .91rem;margin-bottom:.63rem;padding-bottom:0}#liveAuthorization_collection .list .lis[data-v-2d7dea1d]{padding-bottom:.63rem}#liveAuthorization_collection .list .lis[data-v-2d7dea1d],#liveAuthorization_collection .list .tapSelectShow[data-v-2d7dea1d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#liveAuthorization_collection .list .tapSelectShow[data-v-2d7dea1d]{width:100%;padding:.63rem 0;border-top:1px solid #f2f2f2}#liveAuthorization_collection .list .tapSelectShow .selectLeft[data-v-2d7dea1d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-webkit-align-items:flex-start;-ms-flex-align:start;align-items:flex-start}#liveAuthorization_collection .list .tapSelectShow .selectLeft .user[data-v-2d7dea1d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-content:center;-ms-flex-line-pack:center;align-content:center;margin-top:.5rem}#liveAuthorization_collection .list .tapSelectShow .selectLeft .user .img[data-v-2d7dea1d]{width:1.13rem;height:1.13rem;border-radius:50%;margin-right:.25rem}#liveAuthorization_collection .list .tapSelectShow .selectLeft .user .img img[data-v-2d7dea1d]{width:100%;height:100%;border-radius:50%}#liveAuthorization_collection .list .tapSelectShow .selectLeft .user .userName[data-v-2d7dea1d]{color:#666;font-size:.75rem}#liveAuthorization_collection .list .tapSelectShow .selectRight[data-v-2d7dea1d]{font-size:.69rem;color:#666}#liveAuthorization_collection .list .left[data-v-2d7dea1d]{height:100%;text-align:left;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#liveAuthorization_collection .list .left .name[data-v-2d7dea1d]{margin-bottom:.51rem;font-size:1rem}#liveAuthorization_collection .list .left .name[data-v-2d7dea1d],#liveAuthorization_collection .list .left .name .status[data-v-2d7dea1d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#liveAuthorization_collection .list .left .name .status[data-v-2d7dea1d]{background-color:#f14e4e}#liveAuthorization_collection .list .left .name .status[data-v-2d7dea1d],#liveAuthorization_collection .list .left .name .statusT[data-v-2d7dea1d]{border-radius:.13rem;font-size:.69rem;color:#fff;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.22rem .31rem;margin-right:.41rem}#liveAuthorization_collection .list .left .name .statusT[data-v-2d7dea1d]{background-color:#aeaeae;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#liveAuthorization_collection .list .right[data-v-2d7dea1d]{font-size:.81rem;color:#f14e4e}#liveAuthorization_collection .list .right .righrTop[data-v-2d7dea1d]{margin-bottom:.5rem;font-size:1rem;color:#333}#liveAuthorization_collection .list .right .rightBottom[data-v-2d7dea1d]{-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end}#liveAuthorization_collection .list .right .rightBottom[data-v-2d7dea1d],.btnTop[data-v-2d7dea1d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.btnTop[data-v-2d7dea1d]{width:100%;height:7.63rem;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;background-color:#fff}.btnTop .boxBtn[data-v-2d7dea1d]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.btnTop .boxBtn i[data-v-2d7dea1d]{font-size:3rem}.cancel[data-v-2d7dea1d]{height:2.84rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;background-color:#fff}.newcomerAward_popup[data-v-2d7dea1d]{background-color:transparent}.c_imag[data-v-2d7dea1d]{position:absolute;left:-100rem;top:0;z-index:999}#img_box[data-v-2d7dea1d]{width:18.13rem;height:25.44rem;border-radius:.65rem;background-repeat:no-repeat;background-size:100% 100%;position:relative}#img_box .nameBox[data-v-2d7dea1d]{position:absolute;bottom:1.69rem;left:1.34rem;width:2.81rem;height:2.81rem;background-color:#fff;border-radius:50%}#img_box .nameBox img[data-v-2d7dea1d]{width:100%;height:100%}#img_box .codeBox[data-v-2d7dea1d]{width:5.5rem;height:5.5rem;position:absolute;bottom:1.63rem;right:1.34rem}#img_box .codeBox img[data-v-2d7dea1d]{width:100%;height:100%}#img_box .userName[data-v-2d7dea1d]{position:absolute;bottom:3.22rem;left:4.84rem;color:#fff;font-size:.91rem}#img_box .recommend[data-v-2d7dea1d]{position:absolute;left:4.91rem;bottom:2.03rem;color:#fff;font-size:.72rem}",""]),t.exports=e}}]); |