(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/index"],{"19c1":function(e,n,t){"use strict";t.r(n);var r=t("9075"),i=t.n(r);for(var u in r)"default"!==u&&function(e){t.d(n,e,(function(){return r[e]}))}(u);n["default"]=i.a},2072:function(e,n,t){"use strict";t.d(n,"b",(function(){return i})),t.d(n,"c",(function(){return u})),t.d(n,"a",(function(){return r}));var r={uniCard:function(){return t.e("uni_modules/uni-card/components/uni-card/uni-card").then(t.bind(null,"6ed3"))},uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,"6832"))},uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,"9944"))}},i=function(){var e=this,n=e.$createElement;e._self._c},u=[]},"5f55":function(e,n,t){"use strict";(function(e){t("d69c");r(t("66fd"));var n=r(t("8fcb"));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t("543d")["createPage"])},"69d4":function(e,n,t){"use strict";var r=t("7d2f"),i=t.n(r);i.a},"7d2f":function(e,n,t){},"8fcb":function(e,n,t){"use strict";t.r(n);var r=t("2072"),i=t("19c1");for(var u in i)"default"!==u&&function(e){t.d(n,e,(function(){return i[e]}))}(u);t("69d4");var a,o=t("f0c5"),c=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);n["default"]=c.exports},9075:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=a(t("a34a")),i=a(t("a630")),u=a(t("b583"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,n,t,r,i,u,a){try{var o=e[u](a),c=o.value}catch(s){return void t(s)}o.done?n(c):Promise.resolve(c).then(r,i)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var u=e.apply(n,t);function a(e){o(u,r,i,a,c,"next",e)}function c(e){o(u,r,i,a,c,"throw",e)}a(void 0)}))}}var s={data:function(){return{extraIconList:[{color:"#ff8319",size:"22",type:"person"},{color:"#ebc200",size:"22",type:"home"},{color:"#429ff6",size:"22",type:"mail-open-filled"},{color:"#4cd964",size:"22",type:"star-filled"},{color:"#e70000",size:"22",type:"email-filled"}],src:"",userInfo:{},role:""}},onShow:function(){var n=this;return c(r.default.mark((function t(){var u;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n.role=e.getStorageSync("role"),"guest"===n.role){t.next=7;break}return t.next=4,i.default.getUser();case 4:u=t.sent,e.setStorageSync("userinfo",u.data),n.userInfo=u.data;case 7:case"end":return t.stop()}}),t)})))()},mounted:function(){var n=this;return c(r.default.mark((function t(){var i,a;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,u.default.getJson();case 2:if(i=t.sent,a=i.data.avatar,n.src=a,"guest"!=n.role){t.next=8;break}return e.navigateTo({url:"/pages/register/index"}),t.abrupt("return");case 8:case"end":return t.stop()}}),t)})))()},methods:{register:function(){e.navigateTo({url:"/pages/register/index"})},onClick:function(n){0!=n?1!=n?2!=n?3!=n?e.showToast({title:"敬请期待",icon:"error",duration:2e3}):e.navigateTo({url:"/pages/integral/index"}):e.navigateTo({url:"/pages/questionnaire/index"}):this.illness():e.navigateTo({url:"/pages/user/index"})},illness:function(){e.navigateTo({url:"/pages/illness/receive"})},logOut:function(){e.clearStorage(),e.redirectTo({url:"/pages/index/index"})}}};n.default=s}).call(this,t("543d")["default"])}},[["5f55","common/runtime","common/vendor"]]]);