12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/my/index"],{27:function(e,n,t){"use strict";(function(e){t(5);r(t(4));var n=r(t(28));function r(e){return e&&e.__esModule?e:{default:e}}wx.__webpack_require_UNI_MP_PLUGIN__=t,e(n.default)}).call(this,t(1)["createPage"])},28:function(e,n,t){"use strict";t.r(n);var r=t(29),o=t(31);for(var i in o)"default"!==i&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t(34);var u,a=t(11),c=Object(a["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);c.options.__file="pages/my/index.vue",n["default"]=c.exports},29:function(e,n,t){"use strict";t.r(n);var r=t(30);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},30:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));try{r={uniCard:function(){return t.e("uni_modules/uni-card/components/uni-card/uni-card").then(t.bind(null,142))},uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,149))},uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,156))}}}catch(a){if(-1===a.message.indexOf("Cannot find module")||-1===a.message.indexOf(".vue"))throw a;console.error(a.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},i=!1,u=[];o._withStripped=!0},31:function(e,n,t){"use strict";t.r(n);var r=t(32),o=t.n(r);for(var i in r)"default"!==i&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},32:function(e,n,t){"use strict";(function(e){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=u(t(18)),o=u(t(33)),i=u(t(24));function u(e){return e&&e.__esModule?e:{default:e}}function a(e,n,t,r,o,i,u){try{var a=e[i](u),c=a.value}catch(s){return void t(s)}a.done?n(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var n=this,t=arguments;return new Promise((function(r,o){var i=e.apply(n,t);function u(e){a(i,r,o,u,c,"next",e)}function c(e){a(i,r,o,u,c,"throw",e)}u(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 i;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,o.default.getUser();case 4:i=t.sent,e.setStorageSync("userinfo",i.data),n.userInfo=i.data;case 7:case"end":return t.stop()}}),t)})))()},mounted:function(){var n=this;return c(r.default.mark((function t(){var o,u;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i.default.getJson();case 2:if(o=t.sent,u=o.data.avatar,n.src=u,"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){console.log(n),0!=n?1!=n?e.showToast({title:"敬请期待",icon:"error",duration:2e3}):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(1)["default"])},34:function(e,n,t){"use strict";t.r(n);var r=t(35),o=t.n(r);for(var i in r)"default"!==i&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},35:function(e,n,t){}},[[27,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/index.js.map
|