(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"18bb":function(t,n,e){"use strict";e.r(n);var i=e("ff25"),c=e.n(i);for(var r in i)"default"!==r&&function(t){e.d(n,t,(function(){return i[t]}))}(r);n["default"]=c.a},"4da5":function(t,n,e){},"524b":function(t,n,e){"use strict";e.d(n,"b",(function(){return c})),e.d(n,"c",(function(){return r})),e.d(n,"a",(function(){return i}));var i={uniNoticeBar:function(){return e.e("uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar").then(e.bind(null,"207c"))},uniSection:function(){return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null,"9d71"))},uniCard:function(){return e.e("uni_modules/uni-card/components/uni-card/uni-card").then(e.bind(null,"6ed3"))}},c=function(){var t=this,n=t.$createElement;t._self._c},r=[]},"723c":function(t,n,e){"use strict";(function(t){e("d69c");i(e("66fd"));var n=i(e("bec0"));function i(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])},bec0:function(t,n,e){"use strict";e.r(n);var i=e("524b"),c=e("18bb");for(var r in c)"default"!==r&&function(t){e.d(n,t,(function(){return c[t]}))}(r);e("d642");var o,a=e("f0c5"),u=Object(a["a"])(c["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],o);n["default"]=u.exports},d642:function(t,n,e){"use strict";var i=e("4da5"),c=e.n(i);c.a},ff25:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=o(e("a34a")),c=o(e("8325")),r=o(e("b583"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,n,e,i,c,r,o){try{var a=t[r](o),u=a.value}catch(s){return void e(s)}a.done?n(u):Promise.resolve(u).then(i,c)}function u(t){return function(){var n=this,e=arguments;return new Promise((function(i,c){var r=t.apply(n,e);function o(t){a(r,i,c,o,u,"next",t)}function u(t){a(r,i,c,o,u,"throw",t)}o(void 0)}))}}var s=t.getAccountInfoSync().miniProgram.appId,l={data:function(){return{list:[{url:"/static/h1.png",title:"核酸检测报备",path:"/pages/illness/index",isUser:!0},{url:"/static/h3.png",title:"返(来)长报备"},{url:"/static/h2.png",title:"检测点查询",path:"/pages/illness/testingRoom"},{url:"/static/h4.png",title:"疫苗接种点查询"}],policyList:[{title:"失业证",text:"失业证办理",cover:"/static/syz.png"},{title:"生育证",text:"生育证办理",cover:"/static/shengyu.png"},{title:"居住证",text:"居住证办理",cover:"/static/jzz.png"},{title:"老年公交卡",text:"公交卡办理",cover:"/static/gjk.png"},{title:"残疾证",text:"残疾证办理",cover:"/static/cjz.png"},{title:"困难群众",text:"困难群众帮扶",cover:"/static/knqz.png"},{title:"退役军人",text:"退役军人登记",cover:"/static/tyjr.png"}],notice:"通知公告",autoplay:!0,interval:3e3,duration:500,indicatorDots:!1,bannerList:["/static/1.jpg","/static/3.jpg"]}},mounted:function(){var n=this;return u(i.default.mark((function e(){var o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=n,wx.login({success:function(){var n=u(i.default.mark((function n(e){var a,u,l,d;return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=e.code,n.next=3,r.default.login({code:a,appId:s});case 3:if(u=n.sent,!u||200!=u.code){n.next=12;break}return t.setStorageSync("token",u.data.token),t.setStorageSync("userinfo",u.data.user),t.setStorageSync("role",u.data.role),n.next=10,c.default.getSystemNoticeNew();case 10:d=n.sent,o.notice=null===(l=d.data)||void 0===l?void 0:l.noticeTitle;case 12:case"end":return n.stop()}}),n)})));function e(t){return n.apply(this,arguments)}return e}()});case 2:case"end":return e.stop()}}),e)})))()},methods:{morBtn:function(){t.switchTab({url:"/pages/policy/index"})},illnessBtn:function(n){var e=t.getStorageSync("role");n.isUser&&e&&"guest"==e?t.navigateTo({url:"/pages/user/index?path=".concat(n.path)}):n.path?t.navigateTo({url:n.path}):t.showToast({title:"敬请期待",icon:"error",duration:2e3})},policyBtn:function(n){t.setStorage({key:"policyItem",data:n.title,success:function(){t.switchTab({url:"/pages/policy/index"})}})},getMore:function(){t.navigateTo({url:"/pages/notice/index"})}},onShow:function(){t.removeStorageSync("policyItem")}};n.default=l}).call(this,e("543d")["default"])}},[["723c","common/runtime","common/vendor"]]]);