1 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pagesA/userinfo"],{"10f9":function(t,e,i){},"218b":function(t,e,i){"use strict";(function(t){var n=i("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("2eee")),o=n(i("c973")),r=i("2e9d"),u={data:function(){return{addressData:{id:"",province:"",city:"",area:"",detail:"",userName:"",phone:"",isDefault:!1},province:[],city:[],area:[],provinceid:"",cityid:"",areaid:"",indexs:[],sexShow:!1,birthdayShow:!1,politicsShow:!1,maritalShow:!1,workShow:!1,cityShow:!1,jobShow:!1,status:"",politics:"",from:{city1:"",job:"",sexvalue:"",name:"",sex:"",birthday:"",job_name:"",industry_id:"",province_id:"",city_id:"",invitation_code:"",avatar:"",job_time:"",mobile:"",domicile_province_id:"",domicile_city_id:"",political_status_id:"",marital_status_id:"",job_status_id:"",email:""},minDate:"",minDate1:"",height:"",list:["学生","职场人"],current:0,sexdata:[["男","女","保密"]],politicslist:[[]],maritallist:[[]],cityList:[],cityids:[],joblist:[]}},onLoad:function(){this.minDate=Number(new Date("1970-01-01")),this.minDate1=Number(new Date("1980-01-01")),this.getpolitics(),this.getmarital(),this.AllArea(),this.getJob(),t.getStorageSync("from1")&&(this.from=t.getStorageSync("from1"))},methods:{workBtn:function(){this.workShow=!0,this.$refs.pickers.innerValue=new Date(16725024e5).getTime()},getpolitics:function(){var t=this;(0,r.politics)().then((function(e){t.politicslist[0]=e.data}))},getmarital:function(){var t=this;(0,r.marital)().then((function(e){t.maritallist[0]=e.data}))},getJob:function(){var t=this;(0,r.getjob)().then((function(e){t.joblist[0]=e.data}))},AllArea:function(){var t=this;(0,r.getAllArea)().then((function(e){console.log(e),t.province=e.data.map((function(t){return{name:t.name,id:t.id}})),console.log("aaa",t.province),t.city=e.data.map((function(t){return t.children.map((function(t){return{name:t.name,id:t.id}}))})),t.area=e.data.map((function(t){return t.children.map((function(t){return t.children.map((function(t){return{name:t.name,id:t.id}}))}))}));var i=[],n=[],a=[];if(t.province.map((function(t){i.push({name:t.name,id:t.id})})),t.city[0].map((function(t){n.push({name:t.name,id:t.id})})),t.area[0][0].map((function(t){a.push({name:t.name,id:t.id})})),t.cityList=[i,n,a],console.log(33,t.cityList),t.addressData.province&&t.addressData.city&&t.addressData.area){var o=t.province.findIndex((function(e){return e.name==t.addressData.province}));t.columns[1]=t.city[o].map((function(t){return t.name}));var r=t.city[o].findIndex((function(e){return e.name==t.addressData.city}));t.columns[2]=t.area[o][r].map((function(t){return t.name}));var u=t.area[o][r].findIndex((function(e){return e.name==t.addressData.area}));t.indexs=[o,r,u],console.log(t.indexs)}}))},changeHandler:function(t){var e=t.columnIndex,i=(t.value,t.values,t.indexs),n=t.picker,a=void 0===n?this.$refs.uPicker:n;0===e&&(a.setColumnValues(1,this.city[i[0]].map((function(t){return{name:t.name,id:t.id}}))),a.setColumnValues(2,this.area[i[0]][0].map((function(t){return{name:t.name,id:t.id}})))),1===e&&a.setColumnValues(2,this.area[i[0]][i[1]].map((function(t){return{name:t.name,id:t.id}})))},sectionChange:function(t){this.current=t,this.from.job_role=0==t?"student":"employee"},sexConfirm:function(t){"男"==t.value[0]?(this.from.sexvalue="男",this.from.sex="male"):"女"==t.value[0]?(this.from.sexvalue="女",this.from.sex="female"):(this.from.sexvalue="保密",this.from.sex="secret"),this.sexShow=!1},birthdayBtn:function(){this.birthdayShow=!0,this.$refs.picker.innerValue=new Date(946656e6).getTime()},birthdayConfirm:function(e){var i=this;return(0,o.default)(a.default.mark((function n(){var o,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=t.$u.timeFormat,n.next=3,o(e.value,"yyyy-mm-dd");case 3:r=n.sent,i.from.birthday=r,i.birthdayShow=!1;case 6:case"end":return n.stop()}}),n)})))()},politicsConfirm:function(t){this.from.political_status_id=t.value[0].id,this.politics=t.value[0].name,this.politicsShow=!1},maritalConfirm:function(t){this.from.marital_status_id=t.value[0].id,this.status=t.value[0].name,this.maritalShow=!1},workConfirm:function(e){var i=this;return(0,o.default)(a.default.mark((function n(){var o,r;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return o=t.$u.timeFormat,n.next=3,o(e.value,"yyyy-mm-dd");case 3:r=n.sent,i.from.job_time=r,i.workShow=!1;case 6:case"end":return n.stop()}}),n)})))()},cityconfirm:function(t){var e=t.value[0].name+t.value[1].name+t.value[2].name;String(t.value[0].id),String(t.value[1].id),String(t.value[2].id);this.from.province_id=t.value[1].id,this.from.city_id=t.value[0].id,this.from.city1=e,this.cityShow=!1},jobConfirm:function(t){this.from.job=t.value[0].name,this.from.job_status_id=t.value[0].id,this.jobShow=!1},close:function(){this.sexShow=!1,this.birthdayShow=!1,this.politicsShow=!1,this.maritalShow=!1,this.workShow=!1,this.cityShow=!1,this.jobShow=!1},next:function(){this.from.name?this.from.sexvalue?this.from.birthday?this.from.job?this.from.job_time?this.from.city1?(t.setStorageSync("addressData",this.addressData),t.setStorageSync("from1",this.from),t.navigateTo({url:"../pagesA/work"})):this.$u.toast("请选择所在城市"):this.$u.toast("请选择工作时间"):this.$u.toast("请选择求职状态"):this.$u.toast("请选择出生年月"):this.$u.toast("请选择性别"):this.$u.toast("请填写姓名")},return1:function(){t.navigateBack()},getHeight:function(){var e=this,i=t.createSelectorQuery().in(this);i.select("#height").boundingClientRect((function(t){e.height=2*t.height})).exec()}}};e.default=u}).call(this,i("543d")["default"])},"496d":function(t,e,i){"use strict";i.r(e);var n=i("4eef"),a=i("aa1a");for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("9f66");var r=i("f0c5"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},"4eef":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uNavbar:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-navbar/u-navbar")]).then(i.bind(null,"f893"))},"u-Input":function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u--input/u--input")]).then(i.bind(null,"2603"))},uPicker:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-picker/u-picker")]).then(i.bind(null,"1aa1"))},uDatetimePicker:function(){return Promise.all([i.e("common/vendor"),i.e("node-modules/uview-ui/components/u-datetime-picker/u-datetime-picker")]).then(i.bind(null,"fad6"))}},a=function(){var t=this,e=t.$createElement;t._self._c;t._isMounted||(t.e0=function(e){t.sexShow=!0},t.e1=function(e){t.jobShow=!0},t.e2=function(e){t.cityShow=!0},t.e3=function(e){t.cityShow=!1})},o=[]},"9f66":function(t,e,i){"use strict";var n=i("10f9"),a=i.n(n);a.a},aa1a:function(t,e,i){"use strict";i.r(e);var n=i("218b"),a=i.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},b398:function(t,e,i){"use strict";(function(t,e){var n=i("4ea4");i("9f7d");n(i("66fd"));var a=n(i("496d"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(a.default)}).call(this,i("bc2e")["default"],i("543d")["createPage"])}},[["b398","common/runtime","common/vendor"]]]);
|