(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/login/login"],{"2dfc":function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return a}));var a={axBody:function(){return t.e("components/ax-body/ax-body").then(t.bind(null,"e199"))}},o=function(){var e=this,n=e.$createElement;e._self._c;e._isMounted||(e.e0=function(n){e.agreement=!e.agreement})},i=[]},4622:function(e,n,t){"use strict";(function(e,n){var a=t("47a9");t("6a42");a(t("3240"));var o=a(t("f521"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])},"89ba":function(e,n,t){"use strict";t.r(n);var a=t("b104"),o=t.n(a);for(var i in a)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return a[e]}))}(i);n["default"]=o.a},b104:function(e,n,t){"use strict";(function(e){var a=t("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=a(t("7eb4")),i=a(t("ee10")),c=a(t("4874")),r={onLoad:function(){var n=this;e.getPrivacySetting({success:function(e){n.privacy.name=e.privacyContractName,n.privacy.need=e.needAuthorization}})},data:function(){return{agreement:!1,privacy:{need:!0,name:""}}},methods:{checkPrivacy:function(){e.openPrivacyContract()},onGetPhoneNumber:function(n){var t=this;console.log(n);e.login({provider:"weixin",success:function(a){a.code&&n.detail.code&&t.$api.base("post","/api/v1/auth/wx/miniapp/phone-code-login",{code:a.code,phoneCode:n.detail.code}).then(function(){var n=(0,i.default)(o.default.mark((function n(a){var i,r;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.setStorageSync(c.default.keyname.accessToken,null===a||void 0===a||null===(i=a.data)||void 0===i?void 0:i.accessToken),e.setStorageSync(c.default.keyname.refreshToken,null===a||void 0===a||null===(r=a.data)||void 0===r?void 0:r.refreshToken),e.getStorageSync("ADMIN_USERID")&&e.request({url:"https://channel-api.zonelife.cn/zs/channel/admin/ums/umsAdminUser/distributionBindUser",method:"POST",header:{"content-type":"application/json"},data:{userId:a.userInfo.id,adminUserId:e.getStorageSync("ADMIN_USERID")},success:function(e){console.info(e.data,"----扫码接口调用"),setTimeout((function(){t.$app.storage.remove("ADMIN_USERID")}),500)},fail:function(e){console.log(e,"----错误信息")}}),t.$app.storage.get("FRIM_ID")&&t.$api.base("post","/userApi/add-firm-user?firmId="+parseInt(t.$app.storage.get("FRIM_ID")),{},{error:!1}).then((function(e){t.$app.popup.alert(e.msg),setTimeout((function(){t.$app.storage.remove("FRIM_ID")}),500),console.log(e,"----企业用户通过扫码进入")})).catch((function(e){setTimeout((function(){t.$app.storage.remove("FRIM_ID")}),500)})),t.$app.url.back();case 5:case"end":return n.stop()}}),n)})));return function(e){return n.apply(this,arguments)}}())}})},cancelLogin:function(){this.$app.url.back()}}};n.default=r}).call(this,t("df3c")["default"])},e301:function(e,n,t){},e8b2:function(e,n,t){"use strict";var a=t("e301"),o=t.n(a);o.a},f521:function(e,n,t){"use strict";t.r(n);var a=t("2dfc"),o=t("89ba");for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t("e8b2");var c=t("828b"),r=Object(c["a"])(o["default"],a["b"],a["c"],!1,null,"4fdad700",null,!1,a["a"],void 0);n["default"]=r.exports}},[["4622","common/runtime","common/vendor"]]]);