(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6bc06fc3"],{"00b9":function(t,e,i){},bc46:function(t,e,i){"use strict";i("00b9")},d3e0:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"sign-up__detail"},[e("div",{staticClass:"sign-up__card"},[e("div",{staticStyle:{display:"flex","justify-content":"center",height:"295px","align-items":"center","flex-direction":"column"}},[e("div",{attrs:{id:"qrcode"}}),e("div",{staticStyle:{"text-align":"center",width:"100%","margin-top":"10px"}},[t._v(t._s(t.signUpInfo.reservation_code))])]),e("div",{staticClass:"detail"},[e("div",{staticClass:"sign-up__item"},[e("div",{staticStyle:{width:"100px"}},[t._v("场馆名称")]),e("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(t._s(t.signUpInfo.stadium_name))])]),e("div",{staticClass:"sign-up__item"},[e("div",{staticStyle:{width:"100px"}},[t._v("有效期")]),e("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(" "+t._s(t._f("transDate2CN")(t.signUpInfo.reservation_date))+" "+t._s(t.signUpInfo.reservation_start_time)+" ~ "+t._s(t.signUpInfo.reservation_end_time)+" ")])]),e("div",{staticClass:"sign-up__item"},[e("div",{staticStyle:{width:"100px"}},[t._v("场馆地址")]),e("div",{staticStyle:{flex:"1","text-align":"right"}},[t._v(t._s(t.signUpInfo.address))])]),e("div",{staticStyle:{display:"flex","justify-content":"center","align-items":"center",height:"120px"}},[e("van-button",{staticStyle:{padding:"0 15px"},attrs:{type:"primary",plain:"",round:"",size:"small"},on:{click:function(e){return t.cancel(t.signUpInfo.reservation_id)}}},[t._v("取消预约")])],1)])])])},a=[],n=i("9ab4"),r=i("60a3"),c=i("d4c0"),d=i("d044"),o=i.n(d);let l=class extends r["d"]{constructor(){super(...arguments),this.signUpInfo={}}async created(){const t=await this.$request("/wttCms/wxStadium/reserveInfo",{reservation_id:+this.$route.query.reservation_id});t.data.reservation_date=t.data.reservation_date.replace(/\-/g,"/"),this.signUpInfo=t.data,this.qrcode(t.data.reservation_code)}qrcode(t){new o.a("qrcode",{width:200,height:200,text:t,colorDark:"#000",colorLight:"#fff"})}cancel(t){this.$dialog.confirm({message:"确认取消预约吗"}).then(()=>{this.$request("/wttCms/wxStadium/cancelReserve",{reservation_id:t}).then(t=>{this.$toast.fail("预约取消成功"),setTimeout(()=>{this.$router.go(-1)},2e3)}).catch(t=>{this.$toast.fail(t.message)})}).catch(()=>{})}};l=Object(n["a"])([Object(r["a"])({filters:{transDate2CN:c["d"]}})],l);var _=l,v=_,p=(i("bc46"),i("2877")),f=Object(p["a"])(v,s,a,!1,null,"6e940f6a",null);e["default"]=f.exports}}]);
//# sourceMappingURL=chunk-6bc06fc3.0d320572.js.map