(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["my/recruit/index"],{292:function(e,t,n){"use strict";(function(e){n(5);o(n(4));var t=o(n(293));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=n,e(t.default)}).call(this,n(1)["createPage"])},293:function(e,t,n){"use strict";n.r(t);var o=n(294),i=n(296);for(var a in i)"default"!==a&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n(298);var s,u=n(11),c=Object(u["default"])(i["default"],o["render"],o["staticRenderFns"],!1,null,null,null,!1,o["components"],s);c.options.__file="my/recruit/index.vue",t["default"]=c.exports},294:function(e,t,n){"use strict";n.r(t);var o=n(295);n.d(t,"render",(function(){return o["render"]})),n.d(t,"staticRenderFns",(function(){return o["staticRenderFns"]})),n.d(t,"recyclableRender",(function(){return o["recyclableRender"]})),n.d(t,"components",(function(){return o["components"]}))},295:function(e,t,n){"use strict";var o;n.r(t),n.d(t,"render",(function(){return i})),n.d(t,"staticRenderFns",(function(){return s})),n.d(t,"recyclableRender",(function(){return a})),n.d(t,"components",(function(){return o}));try{o={uIcon:function(){return n.e("uview-ui/components/u-icon/u-icon").then(n.bind(null,508))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范，文档：https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范，需手动引入，并在 components 中注册该组件")}var i=function(){var e=this,t=e.$createElement;e._self._c},a=!1,s=[];i._withStripped=!0},296:function(e,t,n){"use strict";n.r(t);var o=n(297),i=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},297:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{hotCitys:["杭州","天津","北京","上海","深圳","广州","成都","重庆","厦门"],locationValue:"正在定位...",city:"",money:"",teamNumber:"",userName:"",phone:"",age:"",headImg:[],bb:!0,XCXIsSelect:"是"}},onLoad:function(){this.XCXIsSelect=this.$queue.getData("XCXIsSelect"),"否"==this.XCXIsSelect?e.setNavigationBarTitle({title:"隐私政策"}):e.setNavigationBarTitle({title:"骑手招募"}),this.getChannel()},methods:{headImgremove:function(e){this.headImg=""},getChannel:function(){var e=this,t=this.$queue.getData("userId");this.$Request.getT("/app/artificer/selectAgencyById?userId="+t).then((function(t){0==t.code&&(null==t.data?e.bb=1:(e.bb=t.data.status,e.city=t.data.city,e.age=t.data.age,e.headImg=t.data.img,e.userName=t.data.name,e.phone=t.data.phone),console.log(e.bb))}))},Getcity:function(e,t){var n=this;this.$Request.get("/app/Login/selectCity",{lat:e,lng:t}).then((function(e){console.log(e),n.city=e.data.city,console.log(n.address)}))},goCity:function(){var t=this;e.chooseLocation({success:function(e){console.log("位置名称："+e.name),console.log("详细地址："+e.address),console.log("纬度："+e.latitude),console.log("经度："+e.longitude),t.Getcity(e.latitude,e.longitude)}})},save:function(){var t=this;if(""!==this.city)if(""!==this.userName)if(""!==this.phone&&11==this.phone.length)if(""!==this.age)if(""!=this.headImg){var n=this.$queue.getData("userId"),o={userId:n,name:this.userName,phone:this.phone,age:this.age,city:this.city,img:this.headImg};this.$Request.postJson("/app/artificer/insertAgency",o).then((function(n){0==n.code?(e.hideLoading(),t.$queue.showToast("提交成功！"),setTimeout((function(t){e.navigateBack()}),1e3)):(e.hideLoading(),t.$queue.showToast(n.msg))}))}else this.$queue.showToast("请上传头像");else this.$queue.showToast("请输入年龄");else this.$queue.showToast("请输入正确的手机号！");else this.$queue.showToast("请输入姓名");else this.$queue.showToast("请输入代理城市")},addImage:function(){var t=this;e.chooseImage({count:1,sourceType:["album","camera"],success:function(n){for(var o=0;o<1;o++)t.$queue.showLoading("上传中..."),e.uploadFile({url:t.config("APIHOST1")+"/alioss/upload",filePath:n.tempFilePaths[o],name:"file",success:function(n){console.log(n.data),t.headImg=JSON.parse(n.data).data,console.log(t.headImg),e.hideLoading()}})}})}}};t.default=n}).call(this,n(1)["default"])},298:function(e,t,n){"use strict";n.r(t);var o=n(299),i=n.n(o);for(var a in o)"default"!==a&&function(e){n.d(t,e,(function(){return o[e]}))}(a);t["default"]=i.a},299:function(e,t,n){}},[[292,"common/runtime","common/vendor"]]]);
//# sourceMappingURL=../../../.sourcemap/mp-weixin/my/recruit/index.js.map