12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1b6e9f13"],{5294:function(e,t,n){"use strict";n.r(t);var i,a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"card"},[e._m(0),n("van-cell-group",{attrs:{border:!1}},[n("van-field",{attrs:{required:"",clearable:"",label:"手机号",placeholder:"请输入手机号",error:e.phoneError},on:{click:function(t){e.phoneError=!1}},model:{value:e.phone,callback:function(t){e.phone=t},expression:"phone"}}),n("van-field",{attrs:{center:"",clearable:"",label:"短信验证码",placeholder:"请输入短信验证码",required:"",disabled:""},model:{value:e.sms,callback:function(t){e.sms=t},expression:"sms"}},[n("van-button",{attrs:{slot:"button",size:"small",type:"primary"},slot:"button"},[e._v("发送验证码")])],1),n("van-field",{attrs:{required:"",clearable:"",label:"微信",placeholder:"请输入微信号",maxlength:"20",error:e.wechatError},on:{click:function(t){e.wechatError=!1}},model:{value:e.wechat,callback:function(t){e.wechat=t},expression:"wechat"}}),n("van-field",{attrs:{required:"",clearable:"",type:"password",label:"密码",placeholder:"请输入密码",maxlength:"16",error:e.passError},on:{click:function(t){e.passError=!1}},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}}),n("van-field",{attrs:{required:"",clearable:"",type:"password",label:"确认密码",placeholder:"请再次输入密码",maxlength:"16",error:e.passVerifyError},on:{click:function(t){e.passVerifyError=!1}},model:{value:e.passverify,callback:function(t){e.passverify=t},expression:"passverify"}}),n("van-field",{attrs:{required:"",clearable:"",label:"昵称",placeholder:"请输入昵称",maxlength:"12",error:e.usernameError},on:{click:function(t){e.usernameError=!1}},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),n("p",[e._v("性别")]),n("van-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[n("van-radio",{staticStyle:{float:"left","margin-right":"20px"},attrs:{name:"0","checked-color":"#fd6740"}},[e._v("男")]),n("van-radio",{attrs:{name:"1","checked-color":"#fd6740"}},[e._v("女")])],1),n("p",[e._v("宿舍区")]),n("van-button",{attrs:{size:"large"},on:{click:function(t){e.show=!0}}},[e._v(e._s(e.dormitory))]),n("van-actionsheet",{attrs:{actions:e.actions,"cancel-text":"取消"},on:{select:e.onSelect},model:{value:e.show,callback:function(t){e.show=t},expression:"show"}})],1),n("div",{staticClass:"card",staticStyle:{"margin-bottom":"70px"}},[n("p",[e._v("上传校卡照片")]),n("div",{staticStyle:{"margin-bottom":"10px"}},[n("form",{attrs:{method:"POST",enctype:"multipart/form-data",action:"http://gift-server.niimei.com:8866/fileserver/upload?sign=abcdefg"}},[n("add-photo",{model:{value:e.hasPhoto,callback:function(t){e.hasPhoto=t},expression:"hasPhoto"}}),n("button",{staticClass:"van-button van-button--primary van-button--large submit_button",attrs:{type:"submit",value:"Upload"},on:{click:e.next}},[e._v("下一步\n ")])],1)]),n("p",[e._v("活动仅允许深大学生参与,请上传正面校卡照片审核~")])])])},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("strong",[e._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 e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"van-slide-up"}},[e.shouldRender?n("div",{directives:[{name:"show",rawName:"v-show",value:e.value,expression:"value"}],class:e.b({withtitle:e.title})},[e.title?n("div",{staticClass:"van-hairline--top-bottom",class:e.b("header")},[n("div",{domProps:{textContent:e._s(e.title)}}),n("icon",{attrs:{name:"close"},on:{click:e.onCancel}})],1):n("ul",{staticClass:"van-hairline--bottom"},e._l(e.actions,function(t){return n("li",{class:[e.b("item",{disabled:t.disabled||t.loading}),t.className,"van-hairline--top"],on:{click:function(n){n.stopPropagation(),e.onSelect(t)}}},[t.loading?n("loading",{class:e.b("loading"),attrs:{size:"20px"}}):[n("span",{class:e.b("name")},[e._v(e._s(t.name))]),t.subname?n("span",{class:e.b("subname")},[e._v("\n "+e._s(t.subname)+"\n ")]):e._e()]],2)})),e.cancelText?n("div",{class:[e.b("cancel"),"van-hairline--top"],domProps:{textContent:e._s(e.cancelText)},on:{click:e.onCancel}}):n("div",{class:e.b("content")},[e._t("default")],2)]):e._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(e){e.disabled||e.loading||(e.callback&&e.callback(e),this.$emit("select",e))},onCancel:function(){this.$emit("input",!1),this.$emit("cancel")}}}),d=(n("66b9"),n("b650")),h=(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("cadf"),n("551c"),n("097d"),n("6ef9")),y=n("1901"),_={name:"SecurityVerify",components:(i={AddPhoto:y["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,h["a"].name,h["a"]),Object(r["a"])(i,d["a"].name,d["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:"西丽"}],hasPhoto:!1}},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<1)this.usernameError=!0;else if(-1!==this.dorId)if(!1!==this.hasPhoto){var e=!0;if(x["a"].get_data("ajaxregister?u="+this.phone+"&p="+this.password,function(t){console.log("------ Data Rcvd in Reg --------"),console.log(t),"10000"!==t.ret?(o["a"].fail("注册失败,请检查网络"),e=!1):localStorage.setItem("frontend-userid",t.model.userId)},{}),e){var t=localStorage.getItem("frontend-userid"),n=[{reviewId:"",userId:t,dormDistrict:this.dorId,userSex:parseInt(this.radio),userSchoolCard:201233222,userReviewStatus:0,reviewerId:1,reviewerNote:"nmo",reviewerNoteToUser:"noo"}];console.log(n);var i=this;x["a"].get_data("smartIdentity/saveBatch",function(e){console.log(e),"10000"===e.ret?(o["a"].success("注册成功"),i.$router.push("presentRegister")):o["a"].fail("注册失败,请检查网络")},n)}}else o["a"].fail("请上传校卡正面照片");else o["a"].fail("请选择宿舍区");else this.passVerifyError=!0}else this.phoneError=!0},onSelect:function(e){this.show=!1,this.dormitory=e.name,this.dorId=e.id}}},C=_,I=(n("fe1d"),n("2877")),w=Object(I["a"])(C,a,s,!1,null,"40137f11",null);w.options.__file="SecurityVerify.vue";t["default"]=w.exports},"5f5f":function(e,t,n){"use strict";n("68ef"),n("a526")},"66b9":function(e,t,n){"use strict";n("68ef")},"8c8e":function(e,t,n){},"8f80":function(e,t,n){"use strict";var i=n("fe7e");t["a"]=Object(i["a"])({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[e._t("default"),n("input",e._b({ref:"input",class:e.b("input"),attrs:{type:"file",accept:e.accept,disabled:e.disabled},on:{change:e.onChange}},"input",e.$attrs,!1))],2)},name:"uploader",inheritAttrs:!1,props:{disabled:Boolean,beforeRead:Function,afterRead:Function,accept:{type:String,default:"image/*"},resultType:{type:String,default:"dataUrl"},maxSize:{type:Number,default:Number.MAX_VALUE}},methods:{onChange:function(e){var t=this,n=e.target.files;!this.disabled&&n.length&&(n=1===n.length?n[0]:[].slice.call(n,0),!n||this.beforeRead&&!this.beforeRead(n)||(Array.isArray(n)?Promise.all(n.map(this.readFile)).then(function(e){var i=!1,a=n.map(function(a,s){return a.size>t.maxSize&&(i=!0),{file:n[s],content:e[s]}});t.onAfterRead(a,i)}):this.readFile(n).then(function(e){t.onAfterRead({file:n,content:e},n.size>t.maxSize)})))},readFile:function(e){var t=this;return new Promise(function(n){var i=new FileReader;i.onload=function(e){n(e.target.result)},"dataUrl"===t.resultType?i.readAsDataURL(e):"text"===t.resultType&&i.readAsText(e)})},onAfterRead:function(e,t){t?this.$emit("oversize",e):(this.afterRead&&this.afterRead(e),this.$refs.input&&(this.$refs.input.value=""))}}})},a526:function(e,t,n){},b650:function(e,t,n){"use strict";var i=n("fe7e");t["a"]=Object(i["a"])({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.tag,{tag:"component",class:e.b([e.type,e.size,{block:e.block,plain:e.plain,round:e.round,square:e.square,loading:e.loading,disabled:e.disabled,unclickable:e.disabled||e.loading,"bottom-action":e.bottomAction}]),attrs:{type:e.nativeType,disabled:e.disabled},on:{click:e.onClick}},[e.loading?n("loading",{attrs:{size:"20px",color:"default"===e.type?void 0:""}}):n("span",{class:e.b("text")},[e._t("default",[e._v(e._s(e.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(e){this.loading||this.disabled||this.$emit("click",e)}}})},bcd3:function(e,t,n){},c3a6:function(e,t,n){"use strict";n("68ef")},c63c:function(e,t,n){},e930:function(e,t,n){"use strict";n("68ef"),n("bcd3")},f253:function(e,t,n){"use strict";var i=n("fe7e"),a=n("1128");function s(e){return Array.isArray(e)?e.map(function(e){return s(e)}):"object"===typeof e?Object(a["a"])({},e):e}var o=n("a142"),r=200,l=Object(i["a"])({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:[e.b(),e.className],style:e.columnStyle,on:{touchstart:e.onTouchStart,touchmove:function(t){return t.preventDefault(),e.onTouchMove(t)},touchend:e.onTouchEnd,touchcancel:e.onTouchEnd}},[n("ul",{style:e.wrapperStyle},e._l(e.options,function(t,i){return n("li",{staticClass:"van-ellipsis",class:e.b("item",{disabled:e.isDisabled(t),selected:i===e.currentIndex}),style:e.optionStyle,domProps:{innerHTML:e._s(e.getOptionText(t))},on:{click:function(t){e.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:s(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},destroyed:function(){var e=this.$parent.children;e&&e.splice(e.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(e){this.startY=e.touches[0].clientY,this.startOffset=this.offset,this.duration=0},onTouchMove:function(e){var t=e.touches[0].clientY-this.startY;this.offset=Object(o["f"])(this.startOffset+t,-this.count*this.itemHeight,this.itemHeight)},onTouchEnd:function(){if(this.offset!==this.startOffset){this.duration=r;var e=Object(o["f"])(Math.round(-this.offset/this.itemHeight),0,this.count-1);this.setIndex(e,!0)}},adjustIndex:function(e){e=Object(o["f"])(e,0,this.count);for(var t=e;t<this.count;t++)if(!this.isDisabled(this.options[t]))return t;for(var n=e-1;n>=0;n--)if(!this.isDisabled(this.options[n]))return n},isDisabled:function(e){return Object(o["d"])(e)&&e.disabled},getOptionText:function(e){return Object(o["d"])(e)&&this.valueKey in e?e[this.valueKey]:e},setIndex:function(e,t){e=this.adjustIndex(e)||0,this.offset=-e*this.itemHeight,e!==this.currentIndex&&(this.currentIndex=e,t&&this.$emit("change",e))},setValue:function(e){for(var t=this.options,n=0;n<t.length;n++)if(this.getOptionText(t[n])===e)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}}};t["a"]=Object(i["a"])({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.b()},[e.showToolbar?n("div",{staticClass:"van-hairline--top-bottom",class:e.b("toolbar")},[e._t("default",[n("div",{class:e.b("cancel"),on:{click:function(t){e.emit("cancel")}}},[e._v("\n "+e._s(e.cancelButtonText||e.$t("cancel"))+"\n ")]),e.title?n("div",{staticClass:"van-ellipsis",class:e.b("title"),domProps:{textContent:e._s(e.title)}}):e._e(),n("div",{class:e.b("confirm"),on:{click:function(t){e.emit("confirm")}}},[e._v("\n "+e._s(e.confirmButtonText||e.$t("confirm"))+"\n ")])])],2):e._e(),e.loading?n("div",{class:e.b("loading")},[n("loading")],1):e._e(),n("div",{class:e.b("columns"),style:e.columnsStyle,on:{touchmove:function(e){e.preventDefault()}}},[e._l(e.simple?[e.columns]:e.columns,function(t,i){return n("picker-column",{key:i,attrs:{"value-key":e.valueKey,"initial-options":e.simple?t:t.values,"class-name":t.className,"default-index":t.defaultIndex,"item-height":e.itemHeight,"visible-item-count":e.visibleItemCount},on:{change:function(t){e.onChange(i)}}})}),n("div",{staticClass:"van-hairline--top-bottom",class:e.b("frame"),style:e.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 e=this,t=this.simple?[{values:this.columns}]:this.columns;t.forEach(function(t,n){e.setColumnValues(n,s(t.values))})},emit:function(e){this.simple?this.$emit(e,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit(e,this.getValues(),this.getIndexes())},onChange:function(e){this.simple?this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0)):this.$emit("change",this,this.getValues(),e)},getColumn:function(e){return this.children[e]},getColumnValue:function(e){var t=this.getColumn(e);return t&&t.getValue()},setColumnValue:function(e,t){var n=this.getColumn(e);n&&n.setValue(t)},getColumnIndex:function(e){return(this.getColumn(e)||{}).currentIndex},setColumnIndex:function(e,t){var n=this.getColumn(e);n&&n.setIndex(t)},getColumnValues:function(e){return(this.children[e]||{}).options},setColumnValues:function(e,t){var n=this.children[e];n&&JSON.stringify(n.options)!==JSON.stringify(t)&&(n.options=t,n.setIndex(0))},getValues:function(){return this.children.map(function(e){return e.getValue()})},setValues:function(e){var t=this;e.forEach(function(e,n){t.setColumnValue(n,e)})},getIndexes:function(){return this.children.map(function(e){return e.currentIndex})},setIndexes:function(e){var t=this;e.forEach(function(e,n){t.setColumnIndex(n,e)})}}})},fe1d:function(e,t,n){"use strict";var i=n("c63c"),a=n.n(i);a.a}}]);
- //# sourceMappingURL=chunk-1b6e9f13.444ad9d5.js.map
|