(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/index/index"],{"176f":function(t,n,e){"use strict";e.r(n);var i=e("2c7c"),o=e("8c76");for(var a in o)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return o[t]}))}(a);e("6abf");var r=e("f0c5"),u=Object(r["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);n["default"]=u.exports},"2c7c":function(t,n,e){"use strict";e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return a})),e.d(n,"a",(function(){return i}));var i={uniTransition:function(){return Promise.all([e.e("common/vendor"),e.e("uni_modules/uni-transition/components/uni-transition/uni-transition")]).then(e.bind(null,"cf7e"))},uniNoticeBar:function(){return e.e("uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar").then(e.bind(null,"5f32"))},uniSection:function(){return e.e("uni_modules/uni-section/components/uni-section/uni-section").then(e.bind(null,"74c7"))}},o=function(){var t=this.$createElement;this._self._c},a=[]},"489a":function(t,n,e){},"6abf":function(t,n,e){"use strict";var i=e("489a"),o=e.n(i);o.a},"6bf8":function(t,n,e){"use strict";(function(t,n){var i=e("4ea4");e("8316");i(e("66fd"));var o=i(e("176f"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(o.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},"8c76":function(t,n,e){"use strict";e.r(n);var i=e("9369"),o=e.n(i);for(var a in i)["default"].indexOf(a)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(a);n["default"]=o.a},9369:function(t,n,e){"use strict";(function(t,i){var o=e("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=o(e("2eee")),r=o(e("c973")),u=o(e("a53c")),c=o(e("62fc")),s=t.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 n=this;return(0,r.default)(a.default.mark((function e(){var o,l,d,f,p,h,v;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.hideTabBar(),n.timeout=setTimeout((function(){n.show()}),3e3),e.next=4,c.default.getJson();case 4:o=e.sent,l=o.data,d=l.list,f=l.bannerList,p=l.governList,h=l.construct,n.list=d,n.bannerList=f,n.govern=p,n.construct=h,v=n,i.login({success:function(){var n=(0,r.default)(a.default.mark((function n(e){var i,o,r,l,d;return a.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return i=e.code,n.next=3,c.default.login({code:i,appId:s});case 3:if(o=n.sent,!o||200!=o.code){n.next=12;break}return t.setStorageSync("token",o.data.token),t.setStorageSync("userinfo",o.data.user),t.setStorageSync("role",o.data.role),n.next=10,u.default.getSystemNoticeNew();case 10:d=n.sent,v.notice="0"==(null===(r=d.data)||void 0===r?void 0:r.status)?null===(l=d.data)||void 0===l?void 0:l.noticeTitle:"";case 12:case"end":return n.stop()}}),n)})));return function(t){return n.apply(this,arguments)}}()});case 12:case"end":return e.stop()}}),e)})))()},methods:{show:function(){clearTimeout(this.timeout),this.dhshow=!this.dhshow,i.showTabBar()},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/register/index?path=".concat(n.path)}):n.appId?this.toMiniProgram(n.appId,n.appPath):n.path?t.navigateTo({url:n.path}):t.showToast({title:"敬请期待",icon:"error",duration:2e3})},policyBtn:function(n){t.navigateTo({url:n.path})},getMore:function(){t.navigateTo({url:"/pages/notice/index"})},toMiniProgram:function(n,e){t.navigateToMiniProgram({appId:n,path:e,success:function(t){return!0},fail:function(n){return t.showToast({title:"跳转小程序失败",icon:"none",duration:3e3}),console.log("跳转小程序失败",n),!1}})}},onShow:function(){t.removeStorageSync("policyItem")}};n.default=l}).call(this,e("543d")["default"],e("bc2e")["default"])}},[["6bf8","common/runtime","common/vendor"]]]);