(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-68831acc"],{"42b7":function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("van-popup",{attrs:{round:""},model:{value:t.syncedShow,callback:function(e){t.syncedShow=e},expression:"syncedShow"}},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.syncedShow,expression:"syncedShow"}],staticClass:"share",staticStyle:{"text-align":"center",width:"300px","padding-bottom":"20px"}},[t.shareImg?t._e():e("div",{staticClass:"share-div",attrs:{id:"share"}},[e("div",[e("img",{attrs:{width:"100%",src:t.ativitiyImg,alt:""}})]),e("div",{staticStyle:{"font-size":"24px",color:"#333333","margin-top":"10px"}},[t._v(" "+t._s(t.detail.name)+" ")]),e("div",{staticStyle:{"font-size":"10px",color:"#666666","margin-top":"20px"}},[e("div",{staticClass:"div-icon"},[e("van-icon",{attrs:{name:"clock",size:"15"}})],1),e("div",{staticClass:"div-info"},[t._v(" "+t._s(t.detail.start_time)+" ~ "+t._s(t.detail.end_time))])]),e("div",{staticStyle:{"font-size":"10px",color:"#666666","margin-top":"10px"}},[e("div",{staticClass:"div-icon"},[e("van-icon",{attrs:{name:"location",size:"15"}})],1),e("div",{staticClass:"div-info"},[t._v(" "+t._s(t.detail.address))])]),e("div",{staticClass:"code-qrcode"},[e("div",{staticClass:"qrcode"},[e("div",{ref:"qrCode",attrs:{id:"qrCode"}})])]),e("div",{staticStyle:{"font-size":"12px",color:"#606266"}}),e("van-button",{attrs:{plain:"",type:"primary"}},[t._v("长按保存图片")])],1),t.shareImg?e("img",{staticClass:"share-img",attrs:{width:"100%",src:t.shareImg,alt:""}}):t._e()])])},a=[],o=(i("66b9"),i("b650")),n=(i("88a7"),i("271a"),i("5494"),i("9ab4")),c=i("60a3"),d=i("c0e9"),l=i.n(d),r=i("d044"),h=i.n(r);let p=class extends c["d"]{constructor(){super(...arguments),this.bg=i("95bb"),this.kaka=i("7e41"),this.av="",this.nick_name="",this.shareImg="",this.ativitiyImg="",this.flag=0,this.qrcode=null}showQrCode(t){t&&0===this.flag&&(this.$nextTick(()=>{this.qrcode=new h.a(this.$refs.qrCode,{text:"https://zhwt.szgm.gov.cn/codeActivity?id="+this.$route.query.activity_id,width:100,height:100,colorDark:"#333333",colorLight:"transparent"}),setTimeout(()=>{const t=document.getElementById("share");l()(t,{allowTaint:!0,useCORS:!0,height:t.offsetHeight,width:t.offsetWidth}).then(t=>{this.shareImg=t.toDataURL()})},1e3)}),this.flag=1)}mounted(){}detailShowChange(t){this.detail.images_url[0]&&this.getBase64(this.detail.images_url[0])}getDPR(){return window.devicePixelRatio&&window.devicePixelRatio>1?window.devicePixelRatio:1}menuShareAppMessage(){wx.onMenuShareTimeline({title:"我叫MT",imgUrl:"",success:function(){console.log("点击了确认分享到朋友圈")},cancel:function(){console.log("取消了确认分享到朋友圈")}})}menuShareTimeline(){wx.onMenuShareAppMessage({title:"我叫MT",desc:"我叫分享描述",imgUrl:"",success:function(){console.log("点击了确认分享给朋友")},cancel:function(){console.log("点击了确认分享给朋友")}})}getBase64(t){const e=this;window.URL=window.URL||window.webkitURL;const i=new XMLHttpRequest;i.open("get",t,!0),i.responseType="blob",i.onload=function(){if(200===this.status){const t=this.response,i=new FileReader;i.onloadend=t=>{const i=t.target.result;e.ativitiyImg=i,console.log(e.detail)},i.readAsDataURL(t)}},i.send()}};Object(n["a"])([Object(c["c"])("show",{type:Boolean})],p.prototype,"syncedShow",void 0),Object(n["a"])([Object(c["b"])(Object)],p.prototype,"detail",void 0),Object(n["a"])([Object(c["e"])("show")],p.prototype,"showQrCode",null),Object(n["a"])([Object(c["e"])("detail")],p.prototype,"detailShowChange",null),p=Object(n["a"])([Object(c["a"])({components:{[o["a"].name]:o["a"]}})],p);var g=p,u=g,v=(i("52d6"),i("2877")),w=Object(v["a"])(u,s,a,!1,null,"1870da36",null);e["default"]=w.exports},"52d6":function(t,e,i){"use strict";i("e984")},"7e41":function(t,e,i){t.exports=i.p+"img/kaka.fa3d686a.png"},"95bb":function(t,e,i){t.exports=i.p+"img/bg.64b73acc.png"},e984:function(t,e,i){}}]);
//# sourceMappingURL=chunk-68831acc.dc7e9738.js.map