(my["webpackJsonp"]=my["webpackJsonp"]||[]).push([["pages/home/jobDetails"],{"67b1":function(t,n,e){"use strict";e.r(n);var i=e("69a3"),o=e.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(u);n["default"]=o.a},"69a3":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var e={data:function(){return{recruitId:"",detail:{},userInfo:[],token:"",signUp:!1,collect:!1,loginShow:!1}},onLoad:function(n){var e=this;console.log(n),this.recruitId=n.id,this.token=t.getStorageSync("jy-recruit-token")||"",this.$http.get("/public/recruit/details",{id:n.id}).then((function(t){e.detail=t.data,e.getSignRecord()})),this.getLoginInfo()},methods:{toCompanyDetails:function(n){t.setStorageSync("ogrDetails",n),t.navigateTo({url:"/pages/home/companyDetails"})},getLoginInfo:function(){var n=this;t.getStorageSync("jy-recruit-token")&&this.$http.get("/person/person/details",{}).then((function(t){n.userInfo=t.data,n.$http.get("/objective/l",{personId:t.data.id}).then((function(t){n.userInfo.tabList=t.data.list||[]}))}))},shoucang:function(){var n=this;this.token?this.$http.post("/collect/c",{recruitId:this.recruitId}).then((function(e){n.collect=!n.collect,t.showToast({title:n.collect?"收藏成功":"取消成功",icon:"none"})})):this.loginShow=!0},getSignRecord:function(){var t=this;this.token&&(this.$http.post("/signRecord/have",{recruitId:this.recruitId}).then((function(n){t.signUp="1"==n.data})),this.$http.post("/collect/have",{recruitId:this.recruitId}).then((function(n){t.collect="1"==n.data})))},deliver:function(){var n=this;this.token?this.userInfo.name&&this.userInfo.tabList.length>0?this.$http.post("/signRecord/c",{recruitId:this.recruitId}).then((function(e){n.signUp=!0,t.showToast({title:"报名成功",icon:"none"})})):(t.showToast({title:"请先完善简历",icon:"none"}),t.navigateTo({url:"/pages/user/resume/index"})):this.loginShow=!0},loginSuccess:function(t){this.loginShow=!1,t&&(this.token=t,this.getSignRecord(),this.getLoginInfo())}}};n.default=e}).call(this,e("6861")["default"])},8008:function(t,n,e){"use strict";(function(t){var n=e("47a9");e("9db3");n(e("3240"));var i=n(e("e83e"));my.__webpack_require_UNI_MP_PLUGIN__=e,t(i.default)}).call(this,e("6861")["createPage"])},b924:function(t,n,e){},c619:function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"a",(function(){return i}));var i={uIcon:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-icon/u-icon")]).then(e.bind(null,"1eac"))},"u-Image":function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u--image/u--image")]).then(e.bind(null,"2788"))},uButton:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uview-ui/components/u-button/u-button")]).then(e.bind(null,"110b"))}},o=function(){var t=this.$createElement;this._self._c},u=[]},e44a:function(t,n,e){"use strict";var i=e("b924"),o=e.n(i);o.a},e83e:function(t,n,e){"use strict";e.r(n);var i=e("c619"),o=e("67b1");for(var u in o)["default"].indexOf(u)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(u);e("e44a");var c=e("828b"),r=Object(c["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=r.exports}},[["8008","common/runtime","common/vendor"]]]);