| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[40],{1027:function(t,e,l){"use strict";l.r(e);l(12),l(13),l(6),l(16),l(11),l(17);var r=l(4),menu=(l(14),l(90),l(36),l(717)),n=(l(412),l(5));function o(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(object);t&&(l=l.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,l)}return e}function c(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?o(Object(source),!0).forEach((function(e){Object(r.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):o(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var d={data:function(){return{o2o_status:3,districtVal:[],strShow:!1,district_select:[],props:{value:"v",children:"c",label:"n"},district:[],o2o_info:"",agreement_show:!1,agreementChoose:!0,imageUrl:"",dialogVisible:!1,uploadUrl:"",apply:{realname:"",mobile:"",province_id:"",city_id:"",district_id:"",street_id:"",id_card_front:"",id_card_side:"",electrician_card:"",remark:""}}},components:{Menu:menu.default},head:function(){return{title:"申请-".concat(this.basicSet.seo.title),meta:[{name:"keywords",content:"申请,".concat(this.basicSet.seo.keywords)},{name:"description",content:"".concat(this.basicSet.seo.description)}]}},mounted:function(){window.localStorage.getItem("provinceData")?this.district=JSON.parse(window.localStorage.getItem("provinceData")):this._initAddressInfo(),this.getData(),this.uploadUrl=this.fun.getRealUrl("upload.uploadPic",{})},computed:c(c({},Object(n.b)(["basic_info","basicSet"])),{},{workername:function(){return this.basic_info.globalParameter&&this.basic_info.globalParameter.assemble_worker_name?this.basic_info.globalParameter.assemble_worker_name:"安装师傅"}}),methods:{_initAddressInfo:function(){var t=this;this.fun.$get("member.member-address.address",{},"正在获取").then((function(e){if(1==e.result){var l=[],r=[];e.data.province.map((function(t){l.push({v:t.id,n:t.areaname,c:[]})})),e.data.city.map((function(t){r.push({parentid:t.parentid,v:t.id,n:t.areaname,c:[]})})),e.data.district.map((function(t){r.map((function(e){t.parentid==e.v&&e.c.push({v:t.id,n:t.areaname})}))})),r.map((function(t){l.map((function(e){t.parentid==e.v&&e.c.push({v:t.v,n:t.n,c:t.c})}))})),l.map((function(t){0==t.c.length?t.c="":t.c.map((function(t){0==t.c.length&&(t.c="")}))})),t.district=l,l&&window.localStorage.setItem("provinceData",JSON.stringify(l))}}))},getStreet:function(param){var t=this;this.fun.$get("member.memberAddress.street",{district_id:param}).then((function(e){1===e.result&&!t.fun.isTextEmpty(e.data)&&e.data.length>0?(t.districtVal=e.data,t.strShow=!0):t.strShow=!1})).catch((function(t){console.log(t)}))},setApplyData:function(){if(this.apply.province_id=this.district_select[0],this.apply.city_id=this.district_select[1],this.apply.district_id=this.district_select[2],this.fun.isTextEmpty(this.apply.realname))this.$message.error("请填写真实姓名");else if(this.fun.isTextEmpty(this.apply.mobile))this.$message.error("请填写手机号码");else if(this.fun.isMoblie(this.apply.mobile))this.$message.error("请输入正确的手机号");else if(this.fun.isTextEmpty(this.apply.province_id)||this.fun.isTextEmpty(this.apply.city_id)||this.fun.isTextEmpty(this.apply.district_id))this.$message.error("请选择省市区");else if(this.fun.isTextEmpty(this.apply.street_id))this.$message.error("请在后台系统-交易设置-开启街道地址");else if(this.fun.isTextEmpty(this.apply.id_card))this.$message.error("请填写身份证号");else if(this.fun.isTextEmpty(this.apply.id_card_front))this.$message.error("请上传身份证正面");else if(this.fun.isTextEmpty(this.apply.id_card_side))this.$message.error("请上传身份证背面");else if(this.agreementChoose){var t=this,e={apply:this.apply};this.fun.$post("plugin.assemble.Frontend.Modules.WorkerApply.Controllers.apply",e,"提交中").then((function(e){1===e.result?(t.$message.success(e.msg),t.getData()):t.$message.error(e.msg)}))}else this.$message.error("请同意注册协议")},handleChange:function(){this.$refs.refSubCat.getCheckedNodes()[0].parent&&this.$refs.refSubCat.getCheckedNodes()[0].parent.parent&&this.getStreet(this.district_select[2])},handleFrontSuccess:function(t,e){this.apply.id_card_front=t.data.img_url},handleSideSuccess:function(t,e){this.apply.id_card_side=t.data.img_url},handleelecSuccess:function(t,e){this.apply.electrician_card=t.data.img_url},getData:function(){var t=this;this.fun.$get("plugin.assemble.Frontend.Modules.WorkerApply.Controllers.page",{},"正在获取").then((function(e){1===e.result?(t.o2o_status=1,t.o2o_info=e.data.agreement):t.o2o_status=2}))}}},f=(l(942),l(1)),component=Object(f.a)(d,(function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"install_apply"},[l("div",{staticClass:"apply_content m-auto flex"},[l("Menu"),t._v(" "),l("div",{staticClass:"right_info"},[l("div",{staticClass:"brancumb"},[t._v("\n 营销互动 > "),l("span",[t._v(t._s(t.workername)+"申请")])]),t._v(" "),2==t.o2o_status?l("div",{staticClass:"flex flex-j-c flex-a-c",staticStyle:{"font-size":"18px"}},[t._v("您的申请已提交,等待平台审核")]):t._e(),t._v(" "),1==t.o2o_status?l("div",{staticClass:"form_content"},[l("el-form",{ref:"form",attrs:{"label-width":"150px",model:t.apply}},[l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"姓名"}},[l("div",{staticClass:"flex flex-a-c"},[l("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:t.apply.realname,callback:function(e){t.$set(t.apply,"realname",e)},expression:"apply.realname"}})],1)]),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"手机号码"}},[l("div",{staticClass:"flex flex-a-c"},[l("el-input",{attrs:{placeholder:"请输入手机号码"},model:{value:t.apply.mobile,callback:function(e){t.$set(t.apply,"mobile",e)},expression:"apply.mobile"}})],1)]),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"所在地区"}},[l("el-cascader",{attrs:{options:t.district,props:t.props},on:{change:t.handleChange},model:{value:t.district_select,callback:function(e){t.district_select=e},expression:"district_select"}})],1),t._v(" "),t.strShow?l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"街道"}},[l("el-select",{attrs:{placeholder:"请选择"},model:{value:t.apply.street_id,callback:function(e){t.$set(t.apply,"street_id",e)},expression:"apply.street_id"}},t._l(t.districtVal,(function(t){return l("el-option",{key:t.id,attrs:{value:t.id,label:t.areaname}})})),1)],1):t._e(),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"身份证号"}},[l("div",{staticClass:"flex flex-a-c"},[l("el-input",{attrs:{placeholder:"请输入身份证号码"},model:{value:t.apply.id_card,callback:function(e){t.$set(t.apply,"id_card",e)},expression:"apply.id_card"}})],1)]),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"上传身份证正面"}},[l("el-upload",{staticClass:"avatar-uploader",attrs:{"on-success":t.handleFrontSuccess,action:t.uploadUrl,"show-file-list":!1}},[t.apply.id_card_front?l("img",{staticClass:"avatar",attrs:{src:t.apply.id_card_front}}):l("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"上传身份证反面"}},[l("el-upload",{staticClass:"avatar-uploader",attrs:{"on-success":t.handleSideSuccess,action:t.uploadUrl,"show-file-list":!1}},[t.apply.id_card_side?l("img",{staticClass:"avatar",attrs:{src:t.apply.id_card_side}}):l("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"上传电工证"}},[l("el-upload",{staticClass:"avatar-uploader",attrs:{"on-success":t.handleelecSuccess,action:t.uploadUrl,"show-file-list":!1}},[t.apply.electrician_card?l("img",{staticClass:"avatar",attrs:{src:t.apply.electrician_card}}):l("i",{staticClass:"el-icon-plus avatar-uploader-icon"})])],1),t._v(" "),l("el-form-item",{staticClass:"flex flex-a-c flex-j-c",attrs:{label:"备注信息"}},[l("el-input",{attrs:{type:"textarea",rows:4,placeholder:"填写备注信息"},model:{value:t.apply.remark,callback:function(e){t.$set(t.apply,"remark",e)},expression:"apply.remark"}})],1),t._v(" "),l("div",{staticClass:"flex flex-j-c"},[l("div",{staticClass:"agreement col_red",on:{click:function(e){t.agreement_show=!0}}},[t._v("注册协议")]),t._v(" "),l("div",{staticStyle:{width:"352px"}},[l("el-checkbox",{model:{value:t.agreementChoose,callback:function(e){t.agreementChoose=e},expression:"agreementChoose"}})],1)])],1),t._v(" "),l("div",{staticClass:"btn_wrap flex"},[l("div",{staticClass:"btn flex flex-a-c flex-j-c",on:{click:t.setApplyData}},[t._v("提交")])])],1):t._e()]),t._v(" "),l("el-dialog",{attrs:{title:"注册协议",visible:t.agreement_show,width:"30%",center:""},on:{"update:visible":function(e){t.agreement_show=e}}},[l("div",{domProps:{innerHTML:t._s(t.o2o_info)}})])],1)])}),[],!1,null,"210eb7b2",null);e.default=component.exports},823:function(t,e,l){var content=l(943);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,l(8).default)("e5edf908",content,!0,{sourceMap:!1})},942:function(t,e,l){"use strict";l(823)},943:function(t,e,l){var r=l(7)(!1);r.push([t.i,".col_red[data-v-210eb7b2]{color:#f11111}.col_green[data-v-210eb7b2]{color:#44be95}.col_white[data-v-210eb7b2]{color:#fff}.flex-col[data-v-210eb7b2]{flex-direction:column}.flex-j-c[data-v-210eb7b2]{justify-content:center}.flex-j-sb[data-v-210eb7b2]{justify-content:space-between}.flex-j-ar[data-v-210eb7b2]{justify-content:space-around}.flex-a-c[data-v-210eb7b2]{align-items:center}.flex-a-e[data-v-210eb7b2]{align-items:flex-end}.w[data-v-210eb7b2]{width:1200px}.m-auto[data-v-210eb7b2]{margin:0 auto}.height-one[data-v-210eb7b2]{height:100%}.flex[data-v-210eb7b2]{display:flex}.text-overflow[data-v-210eb7b2]{-webkit-line-clamp:4}.text-overflow[data-v-210eb7b2],.text-overflow-2[data-v-210eb7b2]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.text-overflow-2[data-v-210eb7b2]{-webkit-line-clamp:2}.text-overflow-3[data-v-210eb7b2]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.overflow-hide[data-v-210eb7b2],.text-overflow-3[data-v-210eb7b2]{overflow:hidden;text-overflow:ellipsis}.overflow-hide[data-v-210eb7b2]{white-space:nowrap}.hiddenScroll[data-v-210eb7b2]{scrollbar-width:none;-ms-overflow-style:none;overflow-x:hidden;overflow-y:scroll}.hiddenScroll[data-v-210eb7b2]::-webkit-scrollbar{display:none}.finger-point[data-v-210eb7b2]{cursor:pointer}.cursor-default[data-v-210eb7b2]{cursor:default}.el-icon-circle-close[data-v-210eb7b2]{color:#fff}.install_apply .apply_content[data-v-210eb7b2]{width:1200px;padding:32px 0}.install_apply .apply_content .right_info[data-v-210eb7b2]{margin-left:24px;width:940px}.install_apply .apply_content .right_info .brancumb[data-v-210eb7b2]{color:#666;margin-bottom:31px;font-size:16px}.install_apply .apply_content .right_info .brancumb span[data-v-210eb7b2]{color:var(--color)}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2]{width:512px;margin:0 auto}.install_apply .apply_content .right_info .form_content .title[data-v-210eb7b2]{margin-bottom:17px;font-size:16px}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .el-cascader,.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .el-select{width:352px}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .el-form-item__label{font-size:16px}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .el-form-item__content{margin-left:0!important;font-size:16px}.install_apply .apply_content .right_info .form_content .el-input[data-v-210eb7b2]{width:352px;height:44px;border-radius:3px;font-size:16px}.install_apply .apply_content .right_info .form_content .el-textarea[data-v-210eb7b2]{width:352px;border-radius:3px}.install_apply .apply_content .right_info .form_content .agreement[data-v-210eb7b2]{width:138px;text-align:right;padding-right:12px;cursor:pointer}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .avatar-uploader{width:352px}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .avatar-uploader .el-upload{border:1px dashed #d9d9d9;border-radius:6px;cursor:pointer;position:relative;overflow:hidden}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .avatar-uploader-icon{font-size:28px;color:#8c939d;width:178px;height:178px;line-height:178px;text-align:center}.install_apply .apply_content .right_info .form_content[data-v-210eb7b2] .avatar{width:178px;height:178px;display:block}.install_apply .apply_content .right_info .btn_wrap[data-v-210eb7b2]{width:472px;margin:0 auto;justify-content:flex-end}.install_apply .apply_content .right_info .btn_wrap .btn[data-v-210eb7b2]{width:185px;height:50px;background-color:#f11111;color:#fff;cursor:pointer;font-size:20px}",""]),t.exports=r}}]);
|