(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-apply"],{"022bb":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("caad"),i("14d9"),i("d81d"),i("a434"),i("c740"),i("99af");var a=n(i("3835")),r=n(i("5530")),s=n(i("c7eb")),l=n(i("1da1")),o=n(i("62d7")),c=i("26cb"),u={components:{wPicker:o.default},data:function(){return{isLoad:!1,options:{},cityList:[],cityIndex:-1,tipArr:{"-1":[{text:"审核中不可编辑资料",color:0}],2:[{text:"快去管理订单吧",color:0}],3:[{text:"请联系平台管理人员询问原因",color:0}]},buttonArr:{"-1":[{text:"返回",type:"cancel"}],2:[{text:"去管理",type:"confirm"}],3:[{text:"再次申请",type:"confirm"},{text:"个人中心",type:"cancel"}]},title:{"-1":"您已经成功提交申请",2:"您已经是技师了",3:"平台管理员已取消授权"},image:{"-1":"https://lbqny.migugu.com/admin/public/apply_wait.jpg",2:"https://lbqny.migugu.com/admin/public/apply_suc.jpg",3:"https://lbqny.migugu.com/admin/public/apply_fail.jpg"},is_update:0,coach_status:0,form:{id:0,coach_name:"",mobile:"",company_id:null,sex:0,work_time:"",lng:"",lat:"",address:"",text:"",id_code:"",id_card:[],id_card_fan:[],id_card_people:[],license:[],work_img:[],self_img:[],city_id:"",video:[],healthy_img:[]},store_name:"",rule:[{name:"coach_name",checkType:"isNotNull",errorMsg:"输入您的姓名",regType:2},{name:"mobile",checkType:"isMobile",errorMsg:"输入手机号"},{name:"company_id",checkType:"isNotNull",errorMsg:"输入店铺名称"},{name:"work_time",checkType:"isNotNull",errorMsg:"请输入从业年份,例如:5"},{name:"city_id",checkType:"isNotNull",errorMsg:"请选择意向工作城市"},{name:"address",checkType:"isNotNull",errorMsg:"请选择所在地址"},{name:"text",checkType:"isNotNull",errorMsg:"请输入技师简介",regType:2},{name:"id_code",checkType:"isIdCard",errorMsg:"输入您的身份证号码"},{name:"id_card",checkType:"isNotNull",errorMsg:"请上传身份证人像面"},{name:"id_card_fan",checkType:"isNotNull",errorMsg:"请上传身份证国徽面"},{name:"id_card_people",checkType:"isNotNull",errorMsg:"请上传手持身份证照片"},{name:"license",checkType:"isNotNull",errorMsg:"请上传资格证书"},{name:"work_img",checkType:"isNotNull",errorMsg:"请上传工作形象照"},{name:"healthy_img",checkType:"isNotNull",errorMsg:"请上传健康证"},{name:"self_img",checkType:"isNotNull",errorMsg:"请上传个人生活照"}],lockTap:!1,companyListData:[],show:!1}},computed:(0,c.mapState)({primaryColor:function(e){return e.config.configInfo.primaryColor},subColor:function(e){return e.config.configInfo.subColor},userInfo:function(e){return e.user.userInfo},location:function(e){return e.user.location}}),onLoad:function(e){var t=this;return(0,l.default)((0,s.default)().mark((function i(){var n,a,r,l,o,c,u;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e,a=n.is_edit,r=void 0===a?0:a,t.companyList(),e.is_edit=r,i.next=5,t.updateCommonOptions(e);case 5:return e=i.sent,t.options=e,t.$util.showLoading(),i.next=10,t.initIndex();case 10:l=e,o=l.admin_id,c=void 0===o?0:o,u=t.coach_status,uni.setNavigationBarTitle({title:r?"编辑资料":c&&[2,3].includes(u)?"":"申请技师"}),t.isLoad=!0;case 14:case"end":return i.stop()}}),i)})))()},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,c.mapActions)(["getUserInfo","updateCommonOptions"])),(0,c.mapMutations)(["updateUserItem"])),{},{companyList:function(){var e=this;return(0,l.default)((0,s.default)().mark((function t(){var i;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.mine.companyList();case 2:i=t.sent,e.companyListData.push(i);case 4:case"end":return t.stop()}}),t)})))()},initIndex:function(){var e=arguments,t=this;return(0,l.default)((0,s.default)().mark((function i(){var n,a,r;return(0,s.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return n=e.length>0&&void 0!==e[0]&&e[0],i.next=3,t.getCityList();case 3:if(n||!t.$jweixin.isWechat()){i.next=7;break}return i.next=6,t.$jweixin.initJssdk();case 6:t.$jweixin.wxReady((function(){t.$jweixin.hideOptionMenu()}));case 7:return i.next=9,t.getCityList();case 9:return i.next=11,t.$api.technician.coachInfo();case 11:if(a=i.sent,t.$util.setNavigationBarColor({bg:t.primaryColor}),!a||a.id){i.next=16;break}return t.$util.hideAll(),i.abrupt("return");case 16:for(r in a.id_card=a.id_card.map((function(e){return{path:e}})),a.id_card_fan=[a.id_card[1]],a.id_card_people=[a.id_card[2]],a.id_card.splice(1,3),a.license=a.license.map((function(e){return{path:e}})),a.work_img=[{path:a.work_img}],a.healthy_img=[{path:a.healthy_img}],a.self_img=a.self_img.map((function(e){return{path:e}})),a.video=a.video&&a.video.length>0?[{path:a.video}]:[],t.cityIndex=t.cityList.findIndex((function(e){return e.id==a.city_id})),t.form)t.form[r]=a[r];t.coach_status=1==a.is_update?-1:a.status,t.is_update=a.is_update,t.$util.hideAll();case 30:case"end":return i.stop()}}),i)})))()},initRefresh:function(){this.initIndex(!0)},getCityList:function(){var e=this;return(0,l.default)((0,s.default)().mark((function t(){var i,n,a,r,l,o,c,u,d,p,f,m,v,h,g,x,_,y,b,w,C,k;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.location,i.lat){t.next=23;break}if(!e.$jweixin.isWechat()){t.next=21;break}return e.$util.showLoading(),t.next=6,e.$jweixin.wxReady2();case 6:return t.next=8,e.$jweixin.getWxLocation();case 8:if(n=t.sent,a=n.latitude,r=void 0===a?0:a,l=n.longitude,o=void 0===l?0:l,i={lng:o,lat:r,address:"定位失败",province:"",city:"",district:""},!r||!o){t.next=21;break}return c="".concat(r,",").concat(o),t.next=18,e.$api.base.getMapInfo({location:c});case 18:u=t.sent,d=JSON.parse(u),p=d.status,f=d.result,0==p&&(m=f.address,v=f.address_component,h=v.province,g=v.city,x=v.district,i={lng:o,lat:r,address:m,province:h,city:g,district:x});case 21:console.log(i,"mmnn111"),e.updateUserItem({key:"location",val:i});case 23:if(_=i,y=_.lng,b=void 0===y?0:y,w=_.lat,C=void 0===w?0:w,console.log(i,"uuuuii"),!C||!b){t.next=33;break}return t.next=28,e.$api.base.getCity({lng:b,lat:C});case 28:k=t.sent,console.log(k,"jjjjj"),e.$util.hideAll(),e.cityList=k,e.form.city_id=k.length>0?k[0].id:0;case 33:case"end":return t.stop()}}),t)})))()},pickerChange:function(e,t){console.log("picker发送选择改变,携带值为",e.target.value),this.cityIndex=e.target.value,this.form.city_id=this.cityList[this.cityIndex].id},pickerChangeCompany:function(e){console.log("picker发送选择改变,携带值为",e.value),this.store_name=e.value[0].name,this.form.company_id=e.value[0].id,this.show=!1},cancelHandle:function(){this.show=!1},imgUpload:function(e){var t=e.imagelist,i=e.imgtype;this.form[i]=t},toChooseLocation:function(e){var t=this;return(0,l.default)((0,s.default)().mark((function e(){var i,n,r,l,o,c,u;return(0,s.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$util.checkAuth({type:"userLocation"});case 2:return e.next=4,uni.chooseLocation();case 4:if(i=e.sent,n=(0,a.default)(i,2),r=n[1],l=r.address,o=void 0===l?"":l,c=r.longitude,u=r.latitude,o){e.next=13;break}return e.abrupt("return");case 13:t.form.address=o,t.form.lng=c,t.form.lat=u;case 16:case"end":return e.stop()}}),e)})))()},confirm:function(){var e=this;return(0,l.default)((0,s.default)().mark((function t(){var i,n,a;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:i=e.coach_status,n={2:"/pages/mine",3:"/technician/pages/apply"},a=n[i],e.$util.log(a),e.$util.goUrl({url:a,openType:"reLaunch"});case 5:case"end":return t.stop()}}),t)})))()},validate:function(e){var t=new this.$util.Validate;this.rule.map((function(i){var n=i.name;t.add(e[n],i)}));var i=t.start();return i},submit:function(){var e=this;return(0,l.default)((0,s.default)().mark((function t(){var i,n,a,r,l,o,c,u,d,p;return(0,s.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(i=e.$util.deepCopy(e.form),n=["id_card","id_card_fan","id_card_people","work_img","healthy_img","video"],n.map((function(e){i[e]=i[e].length>0?i[e][0].path:""})),i.license=i.license.map((function(e){return e.path})),i.self_img=i.self_img.map((function(e){return e.path})),a=e.validate(i),!a){t.next=9;break}return e.$util.showToast({title:a}),t.abrupt("return");case 9:if(r=e.options.admin_id,l=void 0===r?0:r,l&&(i.admin_id=l),i.id_card=[i.id_card,i.id_card_fan,i.id_card_people],delete i.id_card_fan,delete i.id_card_people,!e.lockTap){t.next=16;break}return t.abrupt("return");case 16:return e.lockTap=!0,e.$util.showLoading(),t.prev=18,o=e.options.is_edit,c=void 0===o?0:o,u=i.id&&c?"coachUpdateV2":"coachApply",t.next=23,e.$api.technician[u](i);case 23:d=t.sent,console.log(d,"lldd"),e.$util.hideAll(),p=i.id&&c?"":",即将跳转个人中心",e.$util.showToast({title:"提交成功".concat(p)}),setTimeout((function(){if(i.id&&c)return e.coach_status=-1,void(e.is_update=1);e.$util.back(),e.$util.goUrl({url:"/pages/mine",openType:"reLaunch"})}),1500),t.next=34;break;case 31:t.prev=31,t.t0=t["catch"](18),setTimeout((function(){e.lockTap=!1,e.$util.hideAll()}),2e3);case 34:case"end":return t.stop()}}),t,null,[[18,31]])})))()}})};t.default=u},"02fb":function(e,t,i){"use strict";i.r(t);var n=i("a163"),a=i("057d");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("a5d0");var s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"8c7a2b80",null,!1,n["a"],void 0);t["default"]=l.exports},"057d":function(e,t,i){"use strict";i.r(t);var n=i("9f70"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},"0983":function(e,t,i){var n=i("c59f");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("0d546a38",n,!0,{sourceMap:!1,shadowMode:!1})},"1e0c":function(e,t,i){var n=i("5bda");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("26b3fd4a",n,!0,{sourceMap:!1,shadowMode:!1})},"29da":function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{show:{type:Boolean,default:uni.$u.props.toolbar.show},cancelText:{type:String,default:uni.$u.props.toolbar.cancelText},confirmText:{type:String,default:uni.$u.props.toolbar.confirmText},cancelColor:{type:String,default:uni.$u.props.toolbar.cancelColor},confirmColor:{type:String,default:uni.$u.props.toolbar.confirmColor},title:{type:String,default:uni.$u.props.toolbar.title}}};t.default=n},"4d6b":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-8c7a2b80], uni-scroll-view[data-v-8c7a2b80], uni-swiper-item[data-v-8c7a2b80]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-toolbar[data-v-8c7a2b80]{height:42px;display:flex;flex-direction:row;justify-content:space-between;align-items:center}.u-toolbar__wrapper__cancel[data-v-8c7a2b80]{color:#909193;font-size:15px;padding:0 15px}.u-toolbar__title[data-v-8c7a2b80]{color:#303133;padding:0 %?60?%;font-size:16px;flex:1;text-align:center}.u-toolbar__wrapper__confirm[data-v-8c7a2b80]{color:#3c9cff;font-size:15px;padding:0 15px}',""]),e.exports=t},"5bda":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-a1c9e37c], uni-scroll-view[data-v-a1c9e37c], uni-swiper-item[data-v-a1c9e37c]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-picker[data-v-a1c9e37c]{position:relative}.u-picker__view__column[data-v-a1c9e37c]{display:flex;flex-direction:row;flex:1;justify-content:center}.u-picker__view__column__item[data-v-a1c9e37c]{display:flex;flex-direction:row;justify-content:center;align-items:center;font-size:16px;text-align:center;display:block;color:#303133}.u-picker__view__column__item--disabled[data-v-a1c9e37c]{cursor:not-allowed;opacity:.35}.u-picker--loading[data-v-a1c9e37c]{position:absolute;top:0;right:0;left:0;bottom:0;display:flex;flex-direction:row;justify-content:center;align-items:center;background-color:hsla(0,0%,100%,.87);z-index:1000}',""]),e.exports=t},"5c67":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var n={uPopup:i("958e").default,uToolbar:i("02fb").default,uLoadingIcon:i("f8fc").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("u-popup",{attrs:{show:e.show},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeHandler.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-picker"},[e.showToolbar?i("u-toolbar",{attrs:{cancelColor:e.cancelColor,confirmColor:e.confirmColor,cancelText:e.cancelText,confirmText:e.confirmText,title:e.title},on:{cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}}):e._e(),i("v-uni-picker-view",{staticClass:"u-picker__view",style:{height:""+e.$u.addUnit(e.visibleItemCount*e.itemHeight)},attrs:{indicatorStyle:"height: "+e.$u.addUnit(e.itemHeight),value:e.innerIndex,immediateChange:e.immediateChange},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeHandler.apply(void 0,arguments)}}},e._l(e.innerColumns,(function(t,n){return i("v-uni-picker-view-column",{key:n,staticClass:"u-picker__view__column"},e._l(t,(function(a,r){return e.$u.test.array(t)?i("v-uni-text",{key:r,staticClass:"u-picker__view__column__item u-line-1",style:{height:e.$u.addUnit(e.itemHeight),lineHeight:e.$u.addUnit(e.itemHeight),fontWeight:r===e.innerIndex[n]?"bold":"normal"}},[e._v(e._s(e.getItemText(a)))]):e._e()})),1)})),1),e.loading?i("v-uni-view",{staticClass:"u-picker--loading"},[i("u-loading-icon",{attrs:{mode:"circle"}})],1):e._e()],1)],1)},r=[]},"60dd":function(e,t,i){"use strict";var n=i("0983"),a=i.n(n);a.a},"933f":function(e,t,i){"use strict";var n=i("1e0c"),a=i.n(n);a.a},"96cc":function(e,t,i){var n=i("4d6b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("2fd33029",n,!0,{sourceMap:!1,shadowMode:!1})},"9f70":function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("29da")),r={name:"u-toolbar",mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],methods:{cancel:function(){this.$emit("cancel")},confirm:function(){this.$emit("confirm")}}};t.default=r},a163:function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return a})),i.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.show?i("v-uni-view",{staticClass:"u-toolbar",on:{touchmove:function(t){t.stopPropagation(),t.preventDefault(),arguments[0]=t=e.$handleEvent(t),e.noop.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"u-toolbar__cancel__wrapper",attrs:{"hover-class":"u-hover-class"}},[i("v-uni-text",{staticClass:"u-toolbar__wrapper__cancel",style:{color:e.cancelColor},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)}}},[e._v(e._s(e.cancelText))])],1),e.title?i("v-uni-text",{staticClass:"u-toolbar__title u-line-1"},[e._v(e._s(e.title))]):e._e(),i("v-uni-view",{staticClass:"u-toolbar__confirm__wrapper",attrs:{"hover-class":"u-hover-class"}},[i("v-uni-text",{staticClass:"u-toolbar__wrapper__confirm",style:{color:e.confirmColor},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}},[e._v(e._s(e.confirmText))])],1)],1):e._e()},a=[]},a5d0:function(e,t,i){"use strict";var n=i("96cc"),a=i.n(n);a.a},b5b5:function(e,t,i){"use strict";i.r(t);var n=i("ff9d"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},c23f:function(e,t,i){"use strict";i.r(t);var n=i("d7c0"),a=i("cbda");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("60dd");var s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"99be6ecc",null,!1,n["a"],void 0);t["default"]=l.exports},c59f:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.page-height[data-v-99be6ecc]{width:100%;height:100vh;background:#fff}',""]),e.exports=t},cb29:function(e,t,i){var n=i("23e7"),a=i("81d5"),r=i("44d2");n({target:"Array",proto:!0},{fill:a}),r("fill")},cbda:function(e,t,i){"use strict";i.r(t);var n=i("022bb"),a=i.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(r);t["default"]=a.a},d2cd:function(e,t,i){"use strict";i.r(t);var n=i("5c67"),a=i("b5b5");for(var r in a)["default"].indexOf(r)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(r);i("933f");var s=i("f0c5"),l=Object(s["a"])(a["default"],n["b"],n["c"],!1,null,"a1c9e37c",null,!1,n["a"],void 0);t["default"]=l.exports},d7c0:function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return r})),i.d(t,"a",(function(){return n}));var n={uPicker:i("d2cd").default},a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.isLoad?i("v-uni-view",{staticClass:"apply-pages"},[e.options.admin_id&&[2,3].includes(e.coach_status)||e.is_update?i("v-uni-view",{staticClass:"page-height"},[i("abnor",{attrs:{percent:"150%",title:e.title[e.coach_status],tip:e.tipArr[e.coach_status],button:e.buttonArr[e.coach_status],image:e.image[e.coach_status]},on:{confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.$util.goUrl({url:1,openType:"navigateBack"})}}})],1):[i("v-uni-view",{staticClass:"apply-form"},[i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[i("v-uni-view",{staticClass:"item-text"},[e._v("姓名")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",maxlength:"20",placeholder:e.rule[0].errorMsg},model:{value:e.form.coach_name,callback:function(t){e.$set(e.form,"coach_name",t)},expression:"form.coach_name"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[i("v-uni-view",{staticClass:"item-text"},[e._v("性别")]),i("v-uni-view",{staticClass:"item-input flex-1 flex-y-center"},e._l(["男","女"],(function(t,n){return i("v-uni-view",{key:n,staticClass:"flex-y-center",class:[{"mr-lg":0==n}],style:{color:e.form.sex==n?e.primaryColor:""},on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.form.sex=n}}},[i("i",{staticClass:"iconfont icon-xuanze mr-sm",class:[{"icon-xuanze-fill":e.form.sex==n}]}),e._v(e._s(t))])})),1)],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[i("v-uni-view",{staticClass:"item-text"},[e._v("手机号")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",placeholder:e.rule[1].errorMsg},model:{value:e.form.mobile,callback:function(t){e.$set(e.form,"mobile",t)},expression:"form.mobile"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.show=!0}}},[i("v-uni-view",{staticClass:"item-text"},[e._v("商家名称")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",placeholder:e.rule[2].errorMsg,disabled:!0},model:{value:e.store_name,callback:function(t){e.store_name=t},expression:"store_name"}})],1),i("u-picker",{attrs:{show:e.show,columns:e.companyListData,confirmText:"完成",keyName:"name"},on:{cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelHandle.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerChangeCompany.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[i("v-uni-view",{staticClass:"item-text"},[e._v("从业年份")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"number",placeholder:e.rule[3].errorMsg},model:{value:e.form.work_time,callback:function(t){e.$set(e.form,"work_time",t)},expression:"form.work_time"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg b-1px-b"},[i("v-uni-view",{staticClass:"item-text"},[e._v("意向工作城市")]),i("v-uni-view",{staticClass:"item-input text"},[i("v-uni-picker",{attrs:{value:e.cityIndex,range:e.cityList,"range-key":"title"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.pickerChange(t)}}},[i("v-uni-view",{staticClass:"flex-y-center"},[e._v(e._s(-1!=e.cityIndex?e.cityList[e.cityIndex].title:"请选择")),i("i",{staticClass:"iconfont icon-right ml-sm",staticStyle:{"font-size":"28rpx"}})])],1)],1)],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("所在地址")]),i("v-uni-view",{staticClass:"item-input text flex-1"},[i("v-uni-view",{staticClass:"flex-y-center text-right",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.toChooseLocation.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"flex-1 text-right"},[e._v(e._s(e.form.address||"点击右边图标设置"))]),i("i",{staticClass:"iconfont iconjuli ml-sm",style:{color:e.primaryColor}})],1)],1)],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("技师简介")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-textarea",{staticClass:"item-textarea pd-lg",attrs:{maxlength:"300",placeholder:"输入技师简介"},model:{value:e.form.text,callback:function(t){e.$set(e.form,"text",t)},expression:"form.text"}}),i("v-uni-view",{staticClass:"text-right pb-lg pr-lg"},[e._v(e._s(e.form.text.length>300?300:e.form.text.length)+"/300")])],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("身份证号")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{type:"text",placeholder:e.rule[7].errorMsg},model:{value:e.form.id_code,callback:function(t){e.$set(e.form,"id_code",t)},expression:"form.id_code"}})],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("身份证照片")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.id_card,imgtype:"id_card",imgclass:"md",text:"身份证人像面",imgsize:1},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}}),i("upload",{attrs:{imagelist:e.form.id_card_fan,imgtype:"id_card_fan",imgclass:"md",text:"身份证国徽面",imgsize:1},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.id_card_people,imgtype:"id_card_people",imgclass:"md",text:"手持身份证照片",imgsize:1},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("资格证书")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.license,imgtype:"license",text:"上传图片",imgsize:15},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)},del:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("工作形象照")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.work_img,imgtype:"work_img",text:"上传图片",imgsize:1},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("健康证")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.healthy_img,imgtype:"healthy_img",text:"上传图片",imgsize:1},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("个人生活照")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.self_img,filetype:"picture",imgtype:"self_img",text:"上传图片",imgsize:9},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)},del:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"fill-base mt-md radius-16"},[i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg"},[i("v-uni-view",{staticClass:"item-text"},[e._v("个人视频介绍")]),i("v-uni-input",{staticClass:"item-input flex-1",attrs:{disabled:!0,type:"text"}})],1),i("v-uni-view",{staticClass:"flex-between pl-lg pr-lg pb-md"},[i("upload",{attrs:{imagelist:e.form.video,filetype:"video",imgtype:"video",text:"上传视频",imgsize:1},on:{upload:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)},del:function(t){arguments[0]=t=e.$handleEvent(t),e.imgUpload.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"flex-center f-caption c-caption pd-lg"},[e._v(e._s(1==e.options.is_edit?"编辑资料将进入重新审核,审核通过之前将显示原资料":"平台不会通过任何渠道泄露您的个人信息,请放心输入"))])],1),i("v-uni-view",{staticClass:"space-max-footer"}),i("auth",{attrs:{needAuth:e.userInfo&&!e.userInfo.nickName,must:!0,type:"userInfo"},on:{go:function(t){arguments[0]=t=e.$handleEvent(t),e.submit.apply(void 0,arguments)}}},[i("fix-bottom-button",{attrs:{text:[{text:"确定申请",type:"confirm"}],bgColor:"#fff"}})],1)]],2):e._e()},r=[]},fe33:function(e,t,i){"use strict";i("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("a9e3");var n={props:{show:{type:Boolean,default:uni.$u.props.picker.show},showToolbar:{type:Boolean,default:uni.$u.props.picker.showToolbar},title:{type:String,default:uni.$u.props.picker.title},columns:{type:Array,default:uni.$u.props.picker.columns},loading:{type:Boolean,default:uni.$u.props.picker.loading},itemHeight:{type:[String,Number],default:uni.$u.props.picker.itemHeight},cancelText:{type:String,default:uni.$u.props.picker.cancelText},confirmText:{type:String,default:uni.$u.props.picker.confirmText},cancelColor:{type:String,default:uni.$u.props.picker.cancelColor},confirmColor:{type:String,default:uni.$u.props.picker.confirmColor},visibleItemCount:{type:[String,Number],default:uni.$u.props.picker.visibleItemCount},keyName:{type:String,default:uni.$u.props.picker.keyName},closeOnClickOverlay:{type:Boolean,default:uni.$u.props.picker.closeOnClickOverlay},defaultIndex:{type:Array,default:uni.$u.props.picker.defaultIndex},immediateChange:{type:Boolean,default:uni.$u.props.picker.immediateChange}}};t.default=n},ff9d:function(e,t,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("c7eb")),r=n(i("1da1"));i("ac1f"),i("00b4"),i("d81d"),i("a434"),i("cb29");var s=n(i("fe33")),l={name:"u-picker",mixins:[uni.$u.mpMixin,uni.$u.mixin,s.default],data:function(){return{lastIndex:[],innerIndex:[],innerColumns:[],columnIndex:0}},watch:{defaultIndex:{immediate:!0,handler:function(e){this.setIndexs(e,!0)}},columns:{immediate:!0,handler:function(e){this.setColumns(e)}}},methods:{getItemText:function(e){return uni.$u.test.object(e)?e[this.keyName]:e},closeHandler:function(){this.closeOnClickOverlay&&this.$emit("close")},cancel:function(){this.$emit("cancel")},confirm:function(){var e=this;this.$emit("confirm",{indexs:this.innerIndex,value:this.innerColumns.map((function(t,i){return t[e.innerIndex[i]]})),values:this.innerColumns})},changeHandler:function(e){for(var t=e.detail.value,i=0,n=0,a=0;athis.columnIndex&&(i[n]=0);this.setIndexs(i)},getColumnValues:function(e){return(0,r.default)((0,a.default)().mark((function e(){return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.$u.sleep();case 2:case"end":return e.stop()}}),e)})))(),this.innerColumns[e]},setColumns:function(e){this.innerColumns=uni.$u.deepClone(e),0===this.innerIndex.length&&(this.innerIndex=new Array(e.length).fill(0))},getIndexs:function(){return this.innerIndex},getValues:function(){var e=this;return(0,r.default)((0,a.default)().mark((function e(){return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,uni.$u.sleep();case 2:case"end":return e.stop()}}),e)})))(),this.innerColumns.map((function(t,i){return t[e.innerIndex[i]]}))}}};t.default=l}}]);