(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-61bc1f78"],{7871: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"},[t._m(0),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=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticStyle:{display:"flex","justify-content":"center",height:"295px","align-items":"center"}},[e("div",{attrs:{id:"qrcode"}})])}],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/wxHealth/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/wxHealth/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,f=_,v=(i("f22e"),i("2877")),u=Object(v["a"])(f,s,a,!1,null,"93e2bafa",null);e["default"]=u.exports},d878:function(t,e,i){},f22e:function(t,e,i){"use strict";i("d878")}}]);
//# sourceMappingURL=chunk-61bc1f78.58f7223e.js.map