You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
33 KiB
1 line
33 KiB
1 year ago
|
(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(
|