(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-738281de"],{"0ec7":function(t,i,s){},2385:function(t,i,s){"use strict";s.r(i);var e=function(){var t=this,i=t._self._c;t._self._setupProxy;return i("div",[i("div",{staticClass:"time"},[i("div",{staticClass:"title"},[t._v("入馆日期")]),i("span",[t._v(t._s(t.date)+" ")]),t._v("        "),i("span",[t._v(t._s(t.season_time))])]),i("div",{staticClass:"time",staticStyle:{border:"none","padding-bottom":"50px"}},[t._m(0),i("div",{staticClass:"signin_info"},[i("div",{staticClass:"sign_name"},[t._v(" "+t._s(t.info.name)+" ")]),i("div",{staticClass:"sign_id"},[t._v(" 证件号码："+t._s(t.info.credentials_number.replace(/(\d{6})\d{8}(\d{4})/,"$1******$2"))+" ")]),i("van-icon",{staticClass:"del_info",staticStyle:{"vertical-align":"middle","margin-right":"5px"},attrs:{size:"22",name:t.ikonw?"checked":"circle",color:t.ikonw?"#33C264":"#999"},on:{click:function(i){t.ikonw=!t.ikonw}}})],1),t._l(t.signUpList,(function(s,e){return i("div",{key:e,staticClass:"signin_info"},[i("div",{staticClass:"sign_name"},[t._v(" "+t._s(s.n)+" ")]),i("div",{staticClass:"sign_id"},[t._v(" 证件号码："+t._s(s.id_n.replace(/(\d{6})\d{8}(\d{4})/,"$1******$2"))+" ")]),i("van-icon",{staticClass:"del_info",attrs:{name:"cross",color:"#C0C4CC"},on:{click:function(i){t.signUpList=[]}}})],1)})),i("div",{directives:[{name:"show",rawName:"v-show",value:0==t.signUpList.length,expression:"signUpList.length == 0"}],staticClass:"add_btn",on:{click:function(i){t.show=!0}}},[t._v(" + 新增报名信息 ")])],2),i("div",{staticClass:"footer"},[i("div",{staticClass:"next",on:{click:t.toSign}},[t._v("立即预约")])]),i("van-popup",{attrs:{round:"",closeable:""},model:{value:t.show,callback:function(i){t.show=i},expression:"show"}},[i("van-form",{staticClass:"form_class"},[i("van-field",{attrs:{name:"姓名",label:"姓名",placeholder:"请填写姓名"},model:{value:t.signUpData.n,callback:function(i){t.$set(t.signUpData,"n",i)},expression:"signUpData.n"}}),i("van-field",{attrs:{name:"radio",label:"证件类型"},scopedSlots:t._u([{key:"input",fn:function(){return[i("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.signUpData.id_t,callback:function(i){t.$set(t.signUpData,"id_t",i)},expression:"signUpData.id_t"}},[i("van-radio",{attrs:{name:1}},[t._v("身份证")]),i("van-radio",{attrs:{name:2}},[t._v("学生证")])],1)]},proxy:!0}])}),i("van-field",{attrs:{name:"证件号码",label:"证件号码",placeholder:"请填写证件号码"},model:{value:t.signUpData.id_n,callback:function(i){t.$set(t.signUpData,"id_n",i)},expression:"signUpData.id_n"}}),i("div",{staticStyle:{padding:"20px"}},[i("van-button",{attrs:{type:"primary",block:""},on:{click:t.saveSignUpList}},[t._v("确定")])],1)],1)],1)],1)},n=[function(){var t=this,i=t._self._c;t._self._setupProxy;return i("div",{staticClass:"title"},[t._v(" 参观者信息"),i("span",{staticStyle:{"font-size":"14px",color:"#909399","font-weight":"normal"}},[t._v("（最多两人）")])])}],a=(s("14d9"),s("e9c4"),s("9ab4")),o=s("60a3");let l=class extends o["d"]{constructor(){super(...arguments),this.info=[],this.show=!1,this.ikonw=!0,this.signUpList=[],this.signUpData={n:"",id_n:"",id_t:1}}get health_id(){return+this.$route.query.health_id}get week(){return+this.$route.query.week}get date(){return this.$route.query.date}get season_time(){return this.$route.query.season_time}created(){this.$request("/wttCms/wxMember/get",{}).then(t=>{this.info=t.data})}saveSignUpList(){for(const t in this.signUpData)if(""===this.signUpData[t])return void this.$toast.fail("请填写完成信息");this.signUpList.push(this.signUpData),this.signUpData={n:"",id_n:"",id_t:1},this.show=!1}toSign(){if(!this.ikonw&&0===this.signUpList.length)return void this.$toast.fail("请勾选预约人信息,或至少新增一位预约人");const t=[];if(this.ikonw){let i=this.info.name?this.info.name:this.info.nick_name;i||(i="微信用户"),t.push({n:i,id_n:this.info.credentials_number,id_t:1})}0!==this.signUpList.length&&t.push(this.signUpList[0]),this.signUp(t)}signUp(t){const i={health_id:this.health_id,week:this.week,date:this.date,season_time:this.season_time,reserve_info:JSON.stringify(t)};this.$request("/wttCms/wxHealth/reserve",i).then(t=>{200==t.code?this.$gmRouter.replace("/success?health_id="+this.health_id):this.$toast.fail(t.message)}).catch(t=>{this.$toast.fail(t.message)})}};l=Object(a["a"])([Object(o["a"])({})],l);var r=l,c=r,d=(s("9518"),s("2877")),h=Object(d["a"])(c,e,n,!1,null,"17b23331",null);i["default"]=h.exports},9518:function(t,i,s){"use strict";s("0ec7")}}]);
//# sourceMappingURL=chunk-738281de.ef258ec4.js.map