(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/home/index"],{"1c5f":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void0;varo=n("3c6c");functioni(t,e){varn="undefined"!==typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeoft)returnr(t,e);varn=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)returnArray.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnr(t,e)}(t))||e&&t&&"number"===typeoft.length){n&&(t=n);varo=0,i=function(){};return{s:i,n:function(){returno>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throwt},f:i}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}vara,u=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){vart=n.next();returnu=t.done,t},e:function(t){c=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(c)throwa}}}}functionr(t,e){(null==e||e>t.length)&&(e=t.length);for(varn=0,o=newArray(e);n<e;n++)o[n]=t[n];returno}vara={data:function(){return{outBizNo:"",visible:!1,list:[],selTitle:"",tabName:"推荐",status:"nomore",loadingText:"努力加载中",loadmoreText:"轻轻上拉",nomoreText:"实在没有了",tabList:[{name:"推荐"}]}},onLoad:function(){this.$scope.onClose=this.onClose,this.$scope.onSuccess=this.onSuccess,this.$scope.onFailure=this.onFailure},onPullDownRefresh:function(){this.selTitle="",this.load("sx")},onShow:function(){this.getDetail(),this.load()},methods:{generateOutBizNo:function(){vart=(newDate).getTime(),e=Math.floor(1e4*Math.random()).toString().padStart(4,"0");return"job_auth_".concat(t,"_").concat(e)},handleTap:function(){this.outBizNo=this.generateOutBizNo(),this.visible=!0},onFailure:function(t){vare=t.code,n=t.message;console.log(e,n),this.visible=!0},onClose:function(){this.visible=!1},onSuccess:function(e){varn=this;this.visible=!1,(0,o.getResume)(e,(function(){t.showToast({title:"登录成功",icon:"none"}),n.getDetail(),n.addTab()}))},getDetail:function(){vare=this;t.getStorageSync("jy-recruit-token")&&this.$http.get("/person/person/details",{}).then((function(n){if(!n.data)returnt.showToast({title:"登录信息有误,请重新登录",icon:"none"}),voidt.clearStorageSync();e.userInfo=n.data,e.$http.get("/objective/l",{personId:n.data.id}).then((function(t){e.tabList=[{name:"推荐"}];varn,o=i(t.data.list);try{for(o.s();!(n=o.n()).done;){varr=n.value;e.tabList.push({name:r.industryName,province:r.province,city:r.city})}}catch(a){o.e(a)}finally{o.f()}}))}))},addTab:function(){t.getStorageSync("jy-recruit-token")?t.navigateTo({url:"/pages/user/resume/addIntention?id=".concat(this.userInfo.id)}):this.handleTap()},changeTabs:function(t){this.tabName=t.name,this.load()},load:function(e){varn=this,o="",i="";"推荐"!=this.tabName&&(o=this.tabList.find((function(t){returnt.name==n.tabName})).province,i=this.tabList.find((function(t){returnt.name==n.tabName})).city),this.$http.get("/public/recruit/l",{status:"up",baseCode:"jyjfb",selTitle:this.selTitle,city:i,province:o,industryName:"推荐"==this.tabName?"":this.tabName}).then((function(o){n.list=o.data.list,"sx"==e&&(t.stopPullDownRefresh(),setTimeout((function(){t.showToast({title:"刷新成功",icon:"none"})}),500))}))},toDetail:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};t.navigateTo({url:"/pages/home/jobDetails?id=".concat(e.id,"&source=jyzp")})}}};e.default=a}).call(this,n("6861")["default"])},"49f6":function(t,e,n){"use strict";(function(t){vare=n("47a9");n("9db3");e(n("3240"));varo=e(n("f97d"));my.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("6861")["createPage"])},"84fc":function(t,e,n){"use strict";varo=n("c23e"),i=n.n(o);i.a},becd:function(t,e,n){"use strict";n.d(e,"b",(function(){returni})),n.d(e,"c",(function(){returnr})),n.d(e,"a",(function(){returno}));varo={uSearch:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,"53eb"))},uTabs:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"f251"))},uIcon:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"1eac"))},"u-Image":function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u--image/u--image")]).then(n.bind(null,"2788"))},uLoadmore:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,"8a48"))}},i=function(){vart=this.$createElement;this._self._c},r=[]},c1bf:function(t,e,n){"use strict";n.r(e);varo=n("1c5f"),i=n.n(o);for(varrino)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){returno[t]}))}(r);e["default"]=i.a},c23e:function(t,e,n){},f97d:function(t,e,n){"use strict";n.r(e);varo=n("becd"),i=n("c1bf");for(varrini)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){returni[t]}))}(r);n("84fc");vara=n("828b"),u=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void0);e["default"]=u.exports}},[["49f6","common/runtime","common/vendor"]]]);
\ No newline at end of file
(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/home/index"],{"1c5f":function(t,e,n){"use strict";(function(t){varo=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void0;vari=o(n("af34")),a=n("3c6c");functionr(t,e){varn="undefined"!==typeofSymbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"===typeoft)returnu(t,e);varn=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)returnArray.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))returnu(t,e)}(t))||e&&t&&"number"===typeoft.length){n&&(t=n);varo=0,i=function(){};return{s:i,n:function(){returno>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throwt},f:i}}thrownewTypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}vara,r=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){vart=n.next();returnr=t.done,t},e:function(t){s=!0,a=t},f:function(){try{r||null==n.return||n.return()}finally{if(s)throwa}}}}functionu(t,e){(null==e||e>t.length)&&(e=t.length);for(varn=0,o=newArray(e);n<e;n++)o[n]=t[n];returno}vars={data:function(){return{pageNum:1,pageSize:10,outBizNo:"",visible:!1,list:[],selTitle:"",tabName:"推荐",status:"nomore",loadingText:"努力加载中",loadmoreText:"轻轻上拉",nomoreText:"实在没有了",tabList:[{name:"推荐"}]}},onLoad:function(){this.$scope.onClose=this.onClose,this.$scope.onSuccess=this.onSuccess,this.$scope.onFailure=this.onFailure},onPullDownRefresh:function(){this.selTitle="",this.pageNum=1,this.load("sx")},onShow:function(){this.getDetail(),this.load()},methods:{generateOutBizNo:function(){vart=(newDate).getTime(),e=Math.floor(1e4*Math.random()).toString().padStart(4,"0");return"job_auth_".concat(t,"_").concat(e)},loadMore:function(){"loadmore"==this.status&&(this.pageNum=this.pageNum+1,this.load())},handleTap:function(){this.outBizNo=this.generateOutBizNo(),this.visible=!0},onFailure:function(t){vare=t.code,n=t.message;console.log(e,n),this.visible=!0},onClose:function(){this.visible=!1},onSuccess:function(e){varn=this;this.visible=!1,(0,a.getResume)(e,(function(){t.showToast({title:"登录成功",icon:"none"}),n.getDetail(),n.addTab()}))},getDetail:function(){vare=this;t.getStorageSync("jy-recruit-token")&&this.$http.get("/person/person/details",{}).then((function(n){if(!n.data)returnt.showToast({title:"登录信息有误,请重新登录",icon:"none"}),voidt.clearStorageSync();e.userInfo=n.data,e.$http.get("/objective/l",{personId:n.data.id}).then((function(t){e.tabList=[{name:"推荐"}];varn,o=r(t.data.list);try{for(o.s();!(n=o.n()).done;){vari=n.value;e.tabList.push({name:i.industryName,province:i.province,city:i.city})}}catch(a){o.e(a)}finally{o.f()}}))}))},addTab:function(){t.getStorageSync("jy-recruit-token")?t.navigateTo({url:"/pages/user/resume/addIntention?id=".concat(this.userInfo.id)}):this.handleTap()},changeTabs:function(t){this.tabName=t.name,this.load()},load:function(e){varn=this,o="",a="";"推荐"!=this.tabName&&(o=this.tabList.find((function(t){returnt.name==n.tabName})).province,a=this.tabList.find((function(t){returnt.name==n.tabName})).city),this.status="loading",this.$http.get("/public/recruit/l",{status:"up",baseCode:"jyjfb",selTitle:this.selTitle,city:a,province:o,industryName:"推荐"==this.tabName?"":this.tabName,pageNum:this.pageNum,pageSize:this.pageSize}).then((function(o){n.list=1==n.pageNum?o.data.list:[].concat((0,i.default)(n.list),(0,i.default)(o.data.list)),n.status=n.list.length>=o.data.total?"nomore":"loadmore","sx"==e&&(t.stopPullDownRefresh(),setTimeout((function(){t.showToast({title:"刷新成功",icon:"none"})}),500))}))},toDetail:function(){vare=arguments.length>0&&void0!==arguments[0]?arguments[0]:{};t.navigateTo({url:"/pages/home/jobDetails?id=".concat(e.id,"&source=jyzp")})}}};e.default=s}).call(this,n("6861")["default"])},"49f6":function(t,e,n){"use strict";(function(t){vare=n("47a9");n("9db3");e(n("3240"));varo=e(n("f97d"));my.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("6861")["createPage"])},"4a30":function(t,e,n){"use strict";n.d(e,"b",(function(){returni})),n.d(e,"c",(function(){returna})),n.d(e,"a",(function(){returno}));varo={uSearch:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-search/u-search")]).then(n.bind(null,"53eb"))},uTabs:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-tabs/u-tabs")]).then(n.bind(null,"f251"))},uIcon:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(n.bind(null,"1eac"))},"u-Image":function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u--image/u--image")]).then(n.bind(null,"2788"))},uLoadmore:function(){returnPromise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-loadmore/u-loadmore")]).then(n.bind(null,"8a48"))}},i=function(){vart=this.$createElement;this._self._c},a=[]},"84fc":function(t,e,n){"use strict";varo=n("c23e"),i=n.n(o);i.a},c1bf:function(t,e,n){"use strict";n.r(e);varo=n("1c5f"),i=n.n(o);for(varaino)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){returno[t]}))}(a);e["default"]=i.a},c23e:function(t,e,n){},f97d:function(t,e,n){"use strict";n.r(e);varo=n("4a30"),i=n("c1bf");for(varaini)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){returni[t]}))}(a);n("84fc");varr=n("828b"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void0);e["default"]=u.exports}},[["49f6","common/runtime","common/vendor"]]]);