(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"0da8":function(e,n,t){"use strict";var o=t("f0a8"),a=t.n(o);a.a},"1cb1":function(e,n,t){"use strict";(function(e){t("a87f");o(t("66fd"));var n=o(t("60e5"));function o(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},5191:function(e,n,t){"use strict";t.r(n);var o=t("7b67"),a=t.n(o);for(var c in o)"default"!==c&&function(e){t.d(n,e,(function(){return o[e]}))}(c);n["default"]=a.a},"60e5":function(e,n,t){"use strict";t.r(n);var o=t("778c"),a=t("5191");for(var c in a)"default"!==c&&function(e){t.d(n,e,(function(){return a[e]}))}(c);t("a9e3"),t("0da8");var i,u=t("f0c5"),r=Object(u["a"])(a["default"],o["b"],o["c"],!1,null,"207938ee",null,!1,o["a"],i);n["default"]=r.exports},"778c":function(e,n,t){"use strict";t.d(n,"b",(function(){return a})),t.d(n,"c",(function(){return c})),t.d(n,"a",(function(){return o}));var o={uniDataCheckbox:function(){return Promise.all([t.e("common/vendor"),t.e("uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox")]).then(t.bind(null,"c24e"))},uniPopup:function(){return t.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(t.bind(null,"7ae8"))}},a=function(){var e=this,n=e.$createElement;e._self._c},c=[]},"7a9a":function(e,n,t){},"7b67":function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var t={data:function(){return{value:0,range:[{value:1,text:""}],defaultavatarUrl:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/logoxin01.png",picture:{home8:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/home8.png",deng5:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/deng5.png",deng1:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/deng1.png",task15:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/task15.png",jpg7:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/7.jpg",png6:"https://horastar.obs.cn-east-3.myhuaweicloud.com/talent/6.png"},type:"center",nickname:"",gender:""}},onLoad:function(){},methods:{select:function(){console.log(this.value)},swiperChange:function(e){this.swiper.index=e.detail.current},change:function(e){console.log("当前模式："+e.type+",状态："+e.show)},exit:function(){e.navigateBack()},toggle:function(n){var t=this;1===this.value.length?e.getUserProfile({desc:"登录",success:function(n){console.log(n),t.nickname=n.userInfo.nickName,t.gender=n.userInfo.gender,e.setStorageSync("nickName",n.userInfo.nickName),e.setStorageSync("avatarUrl",n.userInfo.avatarUrl);try{t.login()}catch(o){}},fail:function(e){console.log(e)}}):e.showToast({title:"请先阅读并同意协议",icon:"none",duration:2e3})},onGetPhoneNumber:function(e){"getPhoneNumber:fail user deny"==e.detail.errMsg||(console.log(e),this.$refs.popup.open("bottom"),e.detail.encryptedData,e.detail.iv)},login:function(){var n=this;e.login({provider:"weixin",onlyAuthorize:!0,success:function(t){if(t.code){t.code;n.$https.post("/youngee/c/p/login",{code:t.code,gender:n.gender,nickname:n.nickname}).then((function(n){-6==n.data.code?e.showToast({title:"您已被拉黑，请联系客服",icon:"none",duration:2e3}):(console.log(n),e.setStorageSync("token",n.data.data.token),e.setStorageSync("cookie",n.header["Set-Cookie"]),e.navigateBack())}))}else e.showToast({title:"登录失败！",duration:2e3}),console.log("登录失败！"+t.errMsg)}})},determine:function(){e.showToast({title:"登录成功",duration:1e3}),this.$refs.popup.close()},xieyi:function(){console.log("进入协议")}}};n.default=t}).call(this,t("543d")["default"])},a9e3:function(e,n,t){"use strict";var o=t("7a9a"),a=t.n(o);a.a},f0a8:function(e,n,t){}},[["1cb1","common/runtime","common/vendor"]]]);