index.js 4.4 KB

12
  1. (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),i=t(31);for(var o in i)"default"!==o&&function(e){t.d(n,e,(function(){return i[e]}))}(o);t(34);var u,a=t(11),s=Object(a["default"])(i["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],u);s.options.__file="pages/my/index.vue",n["default"]=s.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 i})),t.d(n,"staticRenderFns",(function(){return u})),t.d(n,"recyclableRender",(function(){return o})),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,268))},uniList:function(){return t.e("uni_modules/uni-list/components/uni-list/uni-list").then(t.bind(null,275))},uniListItem:function(){return t.e("uni_modules/uni-list/components/uni-list-item/uni-list-item").then(t.bind(null,282))}}}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 i=function(){var e=this,n=e.$createElement;e._self._c},o=!1,u=[];i._withStripped=!0},31:function(e,n,t){"use strict";t.r(n);var r=t(32),i=t.n(r);for(var o in r)"default"!==o&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.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)),i=u(t(33)),o=u(t(24));function u(e){return e&&e.__esModule?e:{default:e}}function a(e,n,t,r,i,o,u){try{var a=e[o](u),s=a.value}catch(c){return void t(c)}a.done?n(s):Promise.resolve(s).then(r,i)}function s(e){return function(){var n=this,t=arguments;return new Promise((function(r,i){var o=e.apply(n,t);function u(e){a(o,r,i,u,s,"next",e)}function s(e){a(o,r,i,u,s,"throw",e)}u(void 0)}))}}var c={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 s(r.default.mark((function t(){var o;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:o=t.sent,e.setStorageSync("userinfo",o.data),n.userInfo=o.data;case 7:case"end":return t.stop()}}),t)})))()},mounted:function(){var n=this;return s(r.default.mark((function t(){var i,u;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.default.getJson();case 2:if(i=t.sent,u=i.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){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=c}).call(this,t(1)["default"])},34:function(e,n,t){"use strict";t.r(n);var r=t(35),i=t.n(r);for(var o in r)"default"!==o&&function(e){t.d(n,e,(function(){return r[e]}))}(o);n["default"]=i.a},35:function(e,n,t){}},[[27,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/my/index.js.map