(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"18bb":function(n,t,e){"use strict";e.r(t);var o=e("ff25"),i=e.n(o);for(var r in o)"default"!==r&&function(n){e.d(t,n,(function(){return o[n]}))}(r);t["default"]=i.a},"4da5":function(n,t,e){},"723c":function(n,t,e){"use strict";(function(n){e("d69c");o(e("66fd"));var t=o(e("bec0"));function o(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=e,n(t.default)}).call(this,e("543d")["createPage"])},acf6:function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return r})),e.d(t,"a",(function(){return o}));var o={uniTransition:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-transition/components/uni-transition/uni-transition")]).then(e.bind(null,"4e5c"))},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"))}},i=function(){var n=this,t=n.$createElement;n._self._c},r=[]},bec0:function(n,t,e){"use strict";e.r(t);var o=e("acf6"),i=e("18bb");for(var r in i)"default"!==r&&function(n){e.d(t,n,(function(){return i[n]}))}(r);e("d642");var u,a=e("f0c5"),c=Object(a["a"])(i["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],u);t["default"]=c.exports},d642:function(n,t,e){"use strict";var o=e("4da5"),i=e.n(o);i.a},ff25:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=u(e("a34a")),i=u(e("8325")),r=u(e("b583"));function u(n){return n&&n.__esModule?n:{default:n}}function a(n,t,e,o,i,r,u){try{var a=n[r](u),c=a.value}catch(s){return void e(s)}a.done?t(c):Promise.resolve(c).then(o,i)}function c(n){return function(){var t=this,e=arguments;return new Promise((function(o,i){var r=n.apply(t,e);function u(n){a(r,o,i,u,c,"next",n)}function c(n){a(r,o,i,u,c,"throw",n)}u(void 0)}))}}var s=n.getAccountInfoSync().miniProgram.appId,l={data:function(){return{styles:{width:"100vw",height:"100vh"},modeClass:["fade","zoom-in"],dhshow:!0,list:[],policyList:[],notice:"通知公告",autoplay:!0,interval:3e3,duration:500,indicatorDots:!1,bannerList:[],govern:[],construct:[],timeout:null}},mounted:function(){var t=this;return c(o.default.mark((function e(){var u,a,l,d,f,h,v;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return wx.hideTabBar(),t.timeout=setTimeout((function(){t.show()}),3e3),e.next=4,r.default.getJson();case 4:u=e.sent,a=u.data,l=a.list,d=a.bannerList,f=a.governList,h=a.construct,t.list=l,t.bannerList=d,t.govern=f,t.construct=h,v=t,wx.login({success:function(){var t=c(o.default.mark((function t(e){var u,a,c,l;return o.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return u=e.code,t.next=3,r.default.login({code:u,appId:s});case 3:if(a=t.sent,!a||200!=a.code){t.next=12;break}return n.setStorageSync("token",a.data.token),n.setStorageSync("userinfo",a.data.user),n.setStorageSync("role",a.data.role),t.next=10,i.default.getSystemNoticeNew();case 10:l=t.sent,v.notice=null===(c=l.data)||void 0===c?void 0:c.noticeTitle;case 12:case"end":return t.stop()}}),t)})));function e(n){return t.apply(this,arguments)}return e}()});case 12:case"end":return e.stop()}}),e)})))()},methods:{show:function(){clearTimeout(this.timeout),this.dhshow=!this.dhshow,wx.showTabBar()},morBtn:function(){n.switchTab({url:"/pages/policy/index"})},illnessBtn:function(t){var e=n.getStorageSync("role");t.isUser&&e&&"guest"==e?n.navigateTo({url:"/pages/register/index?path=".concat(t.path)}):t.path?n.navigateTo({url:t.path}):n.showToast({title:"敬请期待",icon:"error",duration:2e3})},policyBtn:function(t){n.navigateTo({url:t.path})},getMore:function(){n.navigateTo({url:"/pages/notice/index"})}},onShow:function(){n.removeStorageSync("policyItem")}};t.default=l}).call(this,e("543d")["default"])}},[["723c","common/runtime","common/vendor"]]]);