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
20 KiB
1 line
20 KiB
5 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-apply"],{"3f61":function(t,e,i){"use strict";i("7a82");var n=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("d3b7"),i("3ca3"),i("ddb0"),i("d81d"),i("a434"),i("c740"),i("99af"),i("3c65"),i("ac1f"),i("00b4");var a=n(i("3835")),r=n(i("5530")),o=n(i("c7eb")),s=n(i("1da1")),l=n(i("9de8")),c=i("26cb"),u={components:{wPicker:l.default},data:function(){return{isLoad:!1,options:{},cityList:[],cityIndex:-1,storeList:[],storeIndex:0,tipArr:{1:[{text:"审核成功后将直接入驻平台",color:0}],2:[{text:"恭喜您,审核通过!",color:0},{text:"快去管理订单吧",color:0}],3:[{text:"平台管理员已取消授权",color:0}],4:[{text:"请联系平台管理人员询问原因",color:0}]},buttonArr:{1:[{text:"个人中心",type:"cancel"}],2:[{text:"去管理",type:"confirm"}],3:[{text:"个人中心",type:"cancel"}],4:[{text:"再次申请",type:"confirm"},{text:"个人中心",type:"cancel"}]},title:{1:"等待审核",2:"您已经是"+this.$t("action.attendantName")+"了",3:"取消授权",4:"申请失败"},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",4:"https://lbqny.migugu.com/admin/public/apply_fail.jpg"},coach_status:-1,max_level:0,authTime:0,timer:null,form:{id:0,admin_id:0,partner_id:0,coach_name:"",mobile:"",short_code:"",sex:0,birthday:"",work_time:"",city_id:"",store_id:"",lng:"",lat:"",address:"",text:"",id_code:"",id_card:[],license:[],work_img:[],self_img:[],video:[]},rule:[{name:"coach_name",checkType:"isNotNull",errorMsg:"输入您的姓名",regType:2},{name:"birthday",checkType:"isNotNull",errorMsg:"请选择您的生日",regType:2},{name:"mobile",checkType:"isMobile",errorMsg:"输入手机号"},{name:"city_id",checkType:"isNotNull",errorMsg:"请选择意向工作城市"},{name:"work_img",checkType:"isNotNull",errorMsg:"请上传工作形象照"}],lockTap:!1}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location}}),onLoad:function(t){var e=this;return(0,s.default)((0,o.default)().mark((function i(){var n,a,r,s,l,c;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t,a=n.admin_id,r=void 0===a?0:a,s=n.partner_id,l=void 0===s?0:s,!r&&!l){i.next=7;break}return i.next=4,e.updateCommonOptions(t);case 4:i.t0=i.sent,i.next=8;break;case 7:i.t0=t;case 8:return t=i.t0,e.options=t,e.form.admin_id=r,e.form.partner_id=l,e.$util.showLoading(),i.next=15,e.initIndex();case 15:c=e.coach_status,uni.setNavigationBarTitle({title:-1==c?"申请"+e.$t("action.attendantName"):""}),e.isLoad=!0;case 18:case"end":return i.stop()}}),i)})))()},onUnload:function(){this.timer&&clearInterval(this.timer)},methods:(0,r.default)((0,r.default)((0,r.default)({},(0,c.mapActions)(["getConfigInfo","getUserInfo","updateCommonOptions"])),(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,e=this;return(0,s.default)((0,o.default)().mark((function i(){var n,r,s,l,c,u,d,p,f,m,h,v,g,x,b,y;return(0,o.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n=t.length>0&&void 0!==t[0]&&t[0],n||!e.$jweixin.isWechat()){i.next=5;break}return i.next=4,e.$jweixin.initJssdk();case 4:e.$jweixin.wxReady((function(){e.$jweixin.hideOptionMenu()}));case 5:if(e.configInfo.id&&e.configInfo.hasOwnProperty("plugAuth")&&(!e.configInfo.hasOwnProperty("plugAuth")||e.configInfo.plugAuth.hasOwnProperty("store"))&&!n){i.next=8;break}return i.next=8,e.getConfigInfo();case 8:return i.next=10,e.getCityList();case 10:return i.next=12,Promise.all([e.$api.technician.coachInfo(),e.getStoreList()]);case 12:if(r=i.sent,s=(0,a.default)(r,1),l=s[0],e.$util.setNavigationBarColor({bg:e.primaryColor}),e.max_level=l.max_level,!l||l.id){i.next=20;break
|