(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/user/user"],{"0fc6":function(n,e,t){"use strict";t.d(e,"b",(function(){return o})),t.d(e,"c",(function(){return r})),t.d(e,"a",(function(){}));var o=function(){var n=this.$createElement;this._self._c},r=[]},"507c":function(n,e,t){},a9dc:function(n,e,t){"use strict";(function(n){var o=t("3b2d");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,a=function(n,e){if(!e&&n&&n.__esModule)return n;if(null===n||"object"!==o(n)&&"function"!==typeof n)return{default:n};var t=c(e);if(t&&t.has(n))return t.get(n);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in n)if("default"!==u&&Object.prototype.hasOwnProperty.call(n,u)){var i=a?Object.getOwnPropertyDescriptor(n,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=n[u]}r.default=n,t&&t.set(n,r);return r}(t("f817"));function c(n){if("function"!==typeof WeakMap)return null;var e=new WeakMap,t=new WeakMap;return(c=function(n){return n?t:e})(n)}var u={data:function(){return{userInfo:null}},onShow:function(){this.getData()},onLoad:function(){r=this,r.getData()},methods:{toLogin:function(){n.getUserProfile({success:function(n){var e=n.userInfo;a.save({nickName:e.nickName,avatarUrl:e.avatarUrl}).then((function(n){if(0==n.code)return r.$dialog.showSuccess("登录失败");r.userInfo=n.data}))},fail:function(){r.$dialog.showSuccess("登录失败")}})},getData:function(){a.info({}).then((function(n){if(0==n.code)return r.$dialog.showSuccess(n.msg);r.userInfo=n.data}))},outLogin:function(e){r.$dialog.showError("确定要退出登录吗",(function(e){e.confirm&&a.save({nickName:"",avatarUrl:""}).then((function(e){if(0==e.code)return r.$dialog.showSuccess("登录失败");r.userInfo=null,n.clearStorageSync(),n.switchTab({url:"/pages/index/index"})}))}))},callMobile:function(e){n.makePhoneCall({phoneNumber:e,success:function(n){console.log(n)},fail:function(n){console.log(n)}})},showService:function(){}}};e.default=u}).call(this,t("a261")["default"])},adff:function(n,e,t){"use strict";var o=t("507c"),r=t.n(o);r.a},c011:function(n,e,t){"use strict";t.r(e);var o=t("0fc6"),r=t("f22c");for(var a in r)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return r[n]}))}(a);t("adff");var c=t("828b"),u=Object(c["a"])(r["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],void 0);e["default"]=u.exports},cce7:function(n,e,t){"use strict";(function(n,e){var o=t("47a9");t("9861");o(t("3240"));var r=o(t("c011"));n.__webpack_require_UNI_MP_PLUGIN__=t,e(r.default)}).call(this,t("a261")["default"],t("a261")["createPage"])},f22c:function(n,e,t){"use strict";t.r(e);var o=t("a9dc"),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(n){t.d(e,n,(function(){return o[n]}))}(a);e["default"]=r.a}},[["cce7","common/runtime","common/vendor"]]]);