chunk-5ff29452.0171f176.js 13 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ff29452"],{"1ad9":function(t,e,n){"use strict";var i=n("935f"),s=n.n(i);s.a},5294:function(t,e,n){"use strict";n.r(e);var i,s=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"card"},[t._m(0),n("van-cell-group",[n("van-field",{attrs:{required:"",clearable:"",label:"手机号",placeholder:"请输入手机号",error:t.phoneError},on:{click:function(e){t.phoneError=!1}},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),n("van-field",{attrs:{center:"",clearable:"",label:"短信验证码",placeholder:"请输入短信验证码",required:"",disabled:""},model:{value:t.sms,callback:function(e){t.sms=e},expression:"sms"}},[n("van-button",{attrs:{slot:"button",size:"small",type:"primary"},slot:"button"},[t._v("发送验证码")])],1),n("van-field",{attrs:{required:"",clearable:"",label:"微信",placeholder:"请输入微信号",maxlength:"20",error:t.wechatError},on:{click:function(e){t.wechatError=!1}},model:{value:t.wechat,callback:function(e){t.wechat=e},expression:"wechat"}}),n("van-field",{attrs:{required:"",clearable:"",type:"password",label:"密码",placeholder:"请输入密码",maxlength:"16",error:t.passError},on:{click:function(e){t.passError=!1}},model:{value:t.password,callback:function(e){t.password=e},expression:"password"}}),n("van-field",{attrs:{required:"",clearable:"",type:"password",label:"确认密码",placeholder:"请再次输入密码",maxlength:"16",error:t.passVerifyError},on:{click:function(e){t.passVerifyError=!1}},model:{value:t.passverify,callback:function(e){t.passverify=e},expression:"passverify"}}),n("van-field",{attrs:{required:"",clearable:"",label:"昵称",placeholder:"请输入昵称",maxlength:"12",error:t.usernameError},on:{click:function(e){t.usernameError=!1}},model:{value:t.username,callback:function(e){t.username=e},expression:"username"}})],1),n("p",[t._v("性别")]),n("van-radio-group",{model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[n("van-radio",{staticStyle:{float:"left","margin-right":"20px"},attrs:{name:"0","checked-color":"#fd6740"}},[t._v("男")]),n("van-radio",{attrs:{name:"1","checked-color":"#fd6740"}},[t._v("女")])],1),n("p",[t._v("宿舍区")]),n("van-button",{attrs:{size:"large"},on:{click:function(e){t.show=!0}}},[t._v(t._s(t.dormitory))]),n("van-actionsheet",{attrs:{actions:t.actions,"cancel-text":"取消"},on:{select:t.onSelect},model:{value:t.show,callback:function(e){t.show=e},expression:"show"}})],1),n("div",{staticClass:"card"},[n("p",[t._v("上传校卡照片")]),n("add-photo",{on:{uploadPhoto:t.onReadPhoto}}),n("p",[t._v("活动仅允许深大学生参与,请上传正面校卡照片审核~")])],1),n("van-button",{staticClass:"next",attrs:{size:"large",type:"primary"},on:{click:t.next}},[t._v("下一步")])],1)},a=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h3",[n("strong",[t._v("个人资料")])])}],o=(n("e7e5"),n("d399")),r=n("ade3"),l=(n("68ef"),n("4d75"),n("8c8e"),n("fe7e")),c=n("6605"),u=Object(l["a"])({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"van-slide-up"}},[t.shouldRender?n("div",{directives:[{name:"show",rawName:"v-show",value:t.value,expression:"value"}],class:t.b({withtitle:t.title})},[t.title?n("div",{staticClass:"van-hairline--top-bottom",class:t.b("header")},[n("div",{domProps:{textContent:t._s(t.title)}}),n("icon",{attrs:{name:"close"},on:{click:t.onCancel}})],1):n("ul",{staticClass:"van-hairline--bottom"},t._l(t.actions,function(e){return n("li",{class:[t.b("item",{disabled:e.disabled||e.loading}),e.className,"van-hairline--top"],on:{click:function(n){n.stopPropagation(),t.onSelect(e)}}},[e.loading?n("loading",{class:t.b("loading"),attrs:{size:"20px"}}):[n("span",{class:t.b("name")},[t._v(t._s(e.name))]),e.subname?n("span",{class:t.b("subname")},[t._v("\n "+t._s(e.subname)+"\n ")]):t._e()]],2)})),t.cancelText?n("div",{class:[t.b("cancel"),"van-hairline--top"],domProps:{textContent:t._s(t.cancelText)},on:{click:t.onCancel}}):n("div",{class:t.b("content")},[t._t("default")],2)]):t._e()])},name:"actionsheet",mixins:[c["a"]],props:{title:String,value:Boolean,actions:Array,cancelText:String,overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},methods:{onSelect:function(t){t.disabled||t.loading||(t.callback&&t.callback(t),this.$emit("select",t))},onCancel:function(){this.$emit("input",!1),this.$emit("cancel")}}}),h=(n("66b9"),n("b650")),d=(n("5f5f"),n("f253")),f=(n("4ddd"),n("9f14")),m=(n("a44c"),n("e27c")),p=(n("be7f"),n("565f")),v=(n("0653"),n("34e9")),b=(n("c3a6"),n("ad06")),g=(n("7f7f"),n("e930"),n("8f80")),x=n("1901"),y={name:"SecurityVerify",components:(i={AddPhoto:x["a"]},Object(r["a"])(i,g["a"].name,g["a"]),Object(r["a"])(i,b["a"].name,b["a"]),Object(r["a"])(i,v["a"].name,v["a"]),Object(r["a"])(i,p["a"].name,p["a"]),Object(r["a"])(i,m["a"].name,m["a"]),Object(r["a"])(i,f["a"].name,f["a"]),Object(r["a"])(i,d["a"].name,d["a"]),Object(r["a"])(i,h["a"].name,h["a"]),Object(r["a"])(i,u.name,u),i),data:function(){return{phone:"",phoneError:!1,sms:"",wechat:"",wechatError:!1,password:"",passError:!1,passverify:"",passVerifyError:!1,username:"",usernameError:!1,radio:"0",show:!1,dormitory:"点击选择宿舍区",dorId:-1,actions:[{id:0,name:"斋区"},{id:1,name:"西南"},{id:2,name:"南区"},{id:3,name:"西丽"}],photo:null}},methods:{next:function(){if(11===this.phone.length){if(this.wechat.length<6)return this.wechatError=!0,void o["a"].fail("请输入最少6位微信号");if(this.password.length<8)this.passError=!0;else if(this.password===this.passverify)if(this.username.length<3)this.usernameError=!0;else if(-1!==this.dorId)if(null!==this.photo){var t={phone:this.phone,password:this.password,nickname:this.username,gender:parseInt(this.radio),dormitory:this.dorId,photo:this.photo};console.log(t),BasicFunction.get_data("ajaxregister?u="+this.phone+"&p="+this.password,function(t){console.log("------ Data Rcvd in Reg --------"),console.log(t),"10000"===t.ret?this.$router.push("presentRegister"):o["a"].fail("注册失败,请检查网络")},{})}else o["a"].fail("请上传校卡正面照片");else o["a"].fail("请选择宿舍区");else this.passVerifyError=!0}else this.phoneError=!0},onReadPhoto:function(t){this.photo=t,console.log(this.photo)},onSelect:function(t){this.show=!1,this.dormitory=t.name,this.dorId=t.id}}},_=y,C=(n("1ad9"),n("2877")),k=Object(C["a"])(_,s,a,!1,null,"33cf03a8",null);k.options.__file="SecurityVerify.vue";e["default"]=k.exports},"5f5f":function(t,e,n){"use strict";n("68ef"),n("a526")},"66b9":function(t,e,n){"use strict";n("68ef")},"8c8e":function(t,e,n){},"935f":function(t,e,n){},a526:function(t,e,n){},b650:function(t,e,n){"use strict";var i=n("fe7e");e["a"]=Object(i["a"])({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,{tag:"component",class:t.b([t.type,t.size,{block:t.block,plain:t.plain,round:t.round,square:t.square,loading:t.loading,disabled:t.disabled,unclickable:t.disabled||t.loading,"bottom-action":t.bottomAction}]),attrs:{type:t.nativeType,disabled:t.disabled},on:{click:t.onClick}},[t.loading?n("loading",{attrs:{size:"20px",color:"default"===t.type?void 0:""}}):n("span",{class:t.b("text")},[t._t("default",[t._v(t._s(t.text))])],2)],1)},name:"button",props:{text:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,disabled:Boolean,nativeType:String,bottomAction:Boolean,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"}},methods:{onClick:function(t){this.loading||this.disabled||this.$emit("click",t)}}})},f253:function(t,e,n){"use strict";var i=n("fe7e"),s=n("1128");function a(t){return Array.isArray(t)?t.map(function(t){return a(t)}):"object"===typeof t?Object(s["a"])({},t):t}var o=n("a142"),r=200,l=Object(i["a"])({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:[t.b(),t.className],style:t.columnStyle,on:{touchstart:t.onTouchStart,touchmove:function(e){return e.preventDefault(),t.onTouchMove(e)},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}},[n("ul",{style:t.wrapperStyle},t._l(t.options,function(e,i){return n("li",{staticClass:"van-ellipsis",class:t.b("item",{disabled:t.isDisabled(e),selected:i===t.currentIndex}),style:t.optionStyle,domProps:{innerHTML:t._s(t.getOptionText(e))},on:{click:function(e){t.setIndex(i,!0)}}})}))])},name:"picker-column",props:{valueKey:String,className:String,itemHeight:Number,defaultIndex:Number,initialOptions:Array,visibleItemCount:Number},data:function(){return{startY:0,offset:0,duration:0,startOffset:0,options:a(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{defaultIndex:function(){this.setIndex(this.defaultIndex)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2},columnStyle:function(){return{height:this.itemHeight*this.visibleItemCount+"px"}},wrapperStyle:function(){return{transition:this.duration+"ms",transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",lineHeight:this.itemHeight+"px"}},optionStyle:function(){return{height:this.itemHeight+"px"}}},methods:{onTouchStart:function(t){this.startY=t.touches[0].clientY,this.startOffset=this.offset,this.duration=0},onTouchMove:function(t){var e=t.touches[0].clientY-this.startY;this.offset=Object(o["f"])(this.startOffset+e,-this.count*this.itemHeight,this.itemHeight)},onTouchEnd:function(){if(this.offset!==this.startOffset){this.duration=r;var t=Object(o["f"])(Math.round(-this.offset/this.itemHeight),0,this.count-1);this.setIndex(t,!0)}},adjustIndex:function(t){t=Object(o["f"])(t,0,this.count);for(var e=t;e<this.count;e++)if(!this.isDisabled(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!this.isDisabled(this.options[n]))return n},isDisabled:function(t){return Object(o["d"])(t)&&t.disabled},getOptionText:function(t){return Object(o["d"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){t=this.adjustIndex(t)||0,this.offset=-t*this.itemHeight,t!==this.currentIndex&&(this.currentIndex=t,e&&this.$emit("change",t))},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]}}}),c={props:{title:String,loading:Boolean,showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,visibleItemCount:{type:Number,default:5},itemHeight:{type:Number,default:44}}};e["a"]=Object(i["a"])({render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.b()},[t.showToolbar?n("div",{staticClass:"van-hairline--top-bottom",class:t.b("toolbar")},[t._t("default",[n("div",{class:t.b("cancel"),on:{click:function(e){t.emit("cancel")}}},[t._v("\n "+t._s(t.cancelButtonText||t.$t("cancel"))+"\n ")]),t.title?n("div",{staticClass:"van-ellipsis",class:t.b("title"),domProps:{textContent:t._s(t.title)}}):t._e(),n("div",{class:t.b("confirm"),on:{click:function(e){t.emit("confirm")}}},[t._v("\n "+t._s(t.confirmButtonText||t.$t("confirm"))+"\n ")])])],2):t._e(),t.loading?n("div",{class:t.b("loading")},[n("loading")],1):t._e(),n("div",{class:t.b("columns"),style:t.columnsStyle,on:{touchmove:function(t){t.preventDefault()}}},[t._l(t.simple?[t.columns]:t.columns,function(e,i){return n("picker-column",{key:i,attrs:{"value-key":t.valueKey,"initial-options":t.simple?e:e.values,"class-name":e.className,"default-index":e.defaultIndex,"item-height":t.itemHeight,"visible-item-count":t.visibleItemCount},on:{change:function(e){t.onChange(i)}}})}),n("div",{staticClass:"van-hairline--top-bottom",class:t.b("frame"),style:t.frameStyle})],2)])},name:"picker",mixins:[c],components:{PickerColumn:l},props:{columns:Array,valueKey:{type:String,default:"text"}},data:function(){return{children:[]}},computed:{frameStyle:function(){return{height:this.itemHeight+"px"}},columnsStyle:function(){return{height:this.itemHeight*this.visibleItemCount+"px"}},simple:function(){return this.columns.length&&!this.columns[0].values}},watch:{columns:function(){this.setColumns()}},methods:{setColumns:function(){var t=this,e=this.simple?[{values:this.columns}]:this.columns;e.forEach(function(e,n){t.setColumnValues(n,a(e.values))})},emit:function(t){this.simple?this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit(t,this.getValues(),this.getIndexes())},onChange:function(t){this.simple?this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit("change",this,this.getValues(),t)},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&n.setValue(e)},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&n.setIndex(e)},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&JSON.stringify(n.options)!==JSON.stringify(e)&&(n.options=e,n.setIndex(0))},getValues:function(){return this.children.map(function(t){return t.getValue()})},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var e=this;t.forEach(function(t,n){e.setColumnIndex(n,t)})}}})}}]);
  2. //# sourceMappingURL=chunk-5ff29452.0171f176.js.map