(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c056c38c"],{"36da":function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t._self._c;t._self._setupProxy;return i("div",{staticClass:"sign-up__detail"},[i("div",{staticClass:"sign-up__card"},[i("div",{staticStyle:{display:"flex","justify-content":"center",height:"295px","align-items":"center","flex-direction":"column"}},[i("div",{attrs:{id:"qrcode"}}),i("div",{staticStyle:{"text-align":"center",width:"100%","margin-top":"10px"}},[t._v(t._s(t.signUpInfo.applicant_code))])]),i("div",{staticClass:"detail"},[i("div",{staticClass:"sign-up__item"},[i("div",{staticStyle:{width:"100px"}},[t._v("活动名称")]),i("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(t._s(t.signUpInfo.name))])]),i("div",{staticClass:"sign-up__item"},[i("div",{staticStyle:{width:"100px"}},[t._v("活动开始时间")]),i("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(" "+t._s(t.signUpInfo.start_time)+" ")])]),i("div",{staticClass:"sign-up__item"},[i("div",{staticStyle:{width:"100px"}},[t._v("活动结束时间")]),i("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(" "+t._s(t.signUpInfo.end_time)+" ")])]),i("div",{staticClass:"sign-up__item"},[i("div",{staticStyle:{width:"100px"}},[t._v("活动地址")]),i("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(t._s(t.signUpInfo.address))])]),i("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center",height:"120px"}},[i("van-button",{staticStyle:{padding:"0 15px"},attrs:{type:"primary",plain:"",round:"",size:"small"},on:{click:function(i){return t.cancel(t.signUpInfo.applicant_id)}}},[t._v("取消报名")])],1)])])])},s=[],n=e("9ab4"),c=e("60a3"),d=e("d4c0"),l=e("d044"),r=e.n(l);let p=class extends c["d"]{constructor(){super(...arguments),this.signUpInfo={}}async created(){const t=await this.$request("/wttCms/wxActivity/myInfo",{applicant_id:+this.$route.query.applicant_id});t.data.start_time=t.data.start_time.replace(/\-/g,"/"),t.data.end_time=t.data.end_time.replace(/\-/g,"/"),this.signUpInfo=t.data,this.qrcode(t.data.applicant_code)}qrcode(t){new r.a("qrcode",{width:200,height:200,text:t,colorDark:"#000",colorLight:"#fff"})}cancel(t){this.$dialog.confirm({message:"确认取消报名吗"}).then(()=>{this.$request("/wttCms/wxActivity/cancelApply",{applicant_id:t}).then(t=>{this.$toast.fail("报名取消成功"),setTimeout(()=>{this.$router.go(-1)},2e3)}).catch(t=>{this.$toast.fail(t.message)})}).catch(()=>{})}};p=Object(n["a"])([Object(c["a"])({filters:{transDate2CN:d["d"]}})],p);var o=p,_=o,g=(e("7cb9"),e("2877")),v=Object(g["a"])(_,a,s,!1,null,"45eec63d",null);i["default"]=v.exports},"4d15":function(t,i,e){},"7cb9":function(t,i,e){"use strict";e("4d15")}}]);
//# sourceMappingURL=chunk-c056c38c.79a51b03.js.map