(function(e){function n(n){for(var r,a,u=n[0],i=n[1],s=n[2],h=0,f=[];h0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof n[0]?n.foreach((function(n){!t[n]&&e.$href("index/index.html#/home")})):n.foreach((function(n){!t[n.name]&&e.$href(n.redirect||"index/index.html#/home")}))},$devinfo:function(){this.$message.info("此功能正在开发中",2)},isarray:function(e){return"[object array]"==object.prototype.tostring.call(e)}}},b=t("5c96"),g=t.n(b),k=(t("0fae"),t("f825")),v=t.n(k),y=(t("f8ce"),t("8aab")),w=t.n(y),s=(t("f294"),t("8c45")),t=t.n(s),x=t("f4b0"),p=t.n(x),u=t("a18c"),j=(t("be35"),t("ac1f"),t("1276"),t("466d"),t("5cc6"),t("9a8c"),t("a975"),t("735e"),t("c1ac"),t("d139"),t("3a7b"),t("d5d6"),t("82f8"),t("e91f"),t("60bd"),t("5f96"),t("3280"),t("3fcc"),t("ca91"),t("25a1"),t("cd26"),t("3c5d"),t("2954"),t("649e"),t("219c"),t("170b"),t("b39a"),t("72f7"),function(e,n){var t=e.split(","),r=t[0].match(/:(.*?);/)[1],a=atob(t[1]),c=a.length,o=new uint8array(c);while(c--)o[c]=a.charcodeat(c);return new file([o],n,{type:r})}),$=function(e){var n=new promise((function(n,t){var r=document.createelement("canvas"),a=r.getcontext("2d"),c=new image;c.src=e,c.onload=function(){r.width=c.width,r.height=c.height,a.drawimage(c,0,0,r.width,r.height),e=r.todataurl("image/jpeg",.5);var t=j(e,"压缩");console.log(t,"789"),n(t)}}));return n},o=(t("499a"),t("f39d")),i=t.n(o);t("e517");a["default"].use(l["a"]),a["default"].mixin(m),a["default"].use(g.a),a["default"].use(v.a),a["default"].use(w.a),a["default"].use(t.a),a["default"].use(p.a),a["default"].config.productiontip=!1,a["default"].prototype.$imgupload=r;a["default"].use(i.a),new a["default"]({render:function(e){return e(f)},router:u["a"],store:d["a"]}).$mount("#app")},"653a":function(e,n,t){"use strict";var r,a=t("2b0e"),c=t("2f62"),o=t("1da1"),u=t("ade3"),i=(t("96cf"),"user_get_token"),s="user_get_userinfo",h="user_login_exit",f="user_get_login_bg",l=t("2b4c"),d={usertoken:"",userinfo:{},isgettoken:!1,loginstatus:!1,loginmessage:"",loginbg:{}},p=(r={},object(u["a"])(r,i,(function(e,n){101==n.code?(e.usertoken=n.data,localstorage.aynusertoken=n.data,e.isgettoken=!0):(e.usertoken="",localstorage.aynusertoken="",e.isgettoken=!1),e.loginmessage=n.message})),object(u["a"])(r,s,(function(e,n){101==n.code?(e.userinfo=n.data||{},e.loginstatus=!0):e.loginmessage=n.message})),object(u["a"])(r,f,(function(e,n){e.loginbg=101===n.code?n.data[0]:[]})),object(u["a"])(r,h,(function(e){e.isgettoken=!1,e.loginstatus=!1,e.usertoken="",e.userinfo="",localstorage.aynusertoken=""})),r),m={getusertoken:function(){var e=object(o["a"])(regeneratorruntime.mark((function e(n,t){var r,a;return regeneratorruntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.commit,e.next=3,object(l["b"])(t);case 3:return a=e.sent,e.next=6,r(i,a);case 6:case"end":return e.stop()}}),e)})));function n(n,t){return e.apply(this,arguments)}return n}(),getuserinfo:function(){var e=object(o["a"])(regeneratorruntime.mark((function e(n){var t,r;return regeneratorruntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=n.commit,e.next=3,object(l["a"])();case 3:return r=e.sent,e.next=6,t(s,r);case 6:case"end":return e.stop()}}),e)})));function n(n){return e.apply(this,arguments)}return n}(),getloginbg:function(){var e=object(o["a"])(regeneratorruntime.mark((function e(n,t){var r,a;return regeneratorruntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=n.commit,e.next=3,content.getcontent(t);case 3:return a=e.sent,e.next=6,r(f,a);case 6:case"end":return e.stop()}}),e)})));function n(n,t){return e.apply(this,arguments)}return n}(),exitsuccess:function(e){var n=e.commit;n(h)}},b={usertoken:function(e){return e.usertoken},userinfo:function(e){return e.userinfo},isgettoken:function(e){return e.isgettoken},loginstatus:function(e){return e.loginstatus},loginmessage:function(e){return e.loginmessage},loginbg:function(e){return e.loginbg}},g={state:d,mutations:p,getters:b,actions:m};a["default"].use(c["a"]);var k=!1;n["a"]=new c["a"].store({modules:{login:g},strict:k})},"85ec":function(e,n,t){},a18c:function(e,n,t){"use strict";var r=t("2b0e"),a=t("8c4f"),c=t("653a");r["default"].use(a["a"]);var o=function(e){return t.e("chunk-1c58dcd4").then(function(){var n=[t("1e4b")];e.apply(null,n)}.bind(this)).catch(t.oe)},u=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-c0335438")]).then(function(){var n=[t("6674")];e.apply(null,n)}.bind(this)).catch(t.oe)},i=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-313277a6")]).then(function(){var n=[t("28c0")];e.apply(null,n)}.bind(this)).catch(t.oe)},s=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-6491073e")]).then(function(){var n=[t("71c6")];e.apply(null,n)}.bind(this)).catch(t.oe)},h=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-0564db33")]).then(function(){var n=[t("0545")];e.apply(null,n)}.bind(this)).catch(t.oe)},f=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-61e1e67e")]).then(function(){var n=[t("cb77")];e.apply(null,n)}.bind(this)).catch(t.oe)},l=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-42dde62e")]).then(function(){var n=[t("3032")];e.apply(null,n)}.bind(this)).catch(t.oe)},d=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-4c2446d5")]).then(function(){var n=[t("ca6f")];e.apply(null,n)}.bind(this)).catch(t.oe)},p=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-b9378834")]).then(function(){var n=[t("1b0a")];e.apply(null,n)}.bind(this)).catch(t.oe)},m=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-bbd82a78")]).then(function(){var n=[t("e9d8")];e.apply(null,n)}.bind(this)).catch(t.oe)},b=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-3762100f")]).then(function(){var n=[t("6ba6")];e.apply(null,n)}.bind(this)).catch(t.oe)},g=function(e){return promise.all([t.e("chunk-310ce850"),t.e("chunk-75247e22")]).then(function(){var n=[t("4ac5")];e.apply(null,n)}.bind(this)).catch(t.oe)},k=function(e){return t.e("chunk-7cebb122").then(function(){var n=[t("d989")];e.apply(null,n)}.bind(this)).catch(t.oe)},v=function(e){return t.e("chunk-552dc926").then(function(){var n=[t("57e7")];e.apply(null,n)}.bind(this)).catch(t.oe)},y=function(e){return t.e("chunk-70711f22").then(function(){var n=[t("45d4")];e.apply(null,n)}.bind(this)).catch(t.oe)},w=function(e){return t.e("chunk-360d4b02").then(function(){var n=[t("78c2")];e.apply(null,n)}.bind(this)).catch(t.oe)},s=function(e){return t.e("chunk-6c91c07a").then(function(){var n=[t("14fe")];e.apply(null,n)}.bind(this)).catch(t.oe)},t=function(e){return t.e("chunk-5e7d284e").then(function(){var n=[t("f35d")];e.apply(null,n)}.bind(this)).catch(t.oe)},x=[{path:"/",redirect:"/index"},{path:"/index",component:o,name:"首页",meta:{loggedin:!0}},{path:"/companyintroduction",component:u,name:"企业介绍"},{path:"/socialresponsibility",component:i,name:"社会责任"},{path:"/servicecommitment",component:s,name:"服务承诺"},{path:"/buildgarden",component:h,name:"党建园地"},{path:"/informationcenter",component:f,name:"资讯中心"},{path:"/productcenter",component:l,name:"产品中心"},{path:"/technicalservice",component:d,name:"技术服务"},{path:"/recruitpeople",component:p,name:"招贤纳士"},{path:"/contactinfomation",component:m,name:"联系方式"},{path:"/cooperation",component:b,name:"意向合作"},{path:"/infodetail",component:g,name:"文章详情"},{path:"/yunindex",component:k,name:"云养牛首页"},{path:"/smartranch",component:v,name:"智慧牧场管理平台"},{path:"/breedhealth",component:y,name:"繁育保健数字化"},{path:"/feed",component:w,name:"饲喂数字化"},{path:"/cowshed",component:s,name:"牛舍数字化"},{path:"/dairyparlor",component:t,name:"奶厅数字化"}],p=new a["a"]({routes:x});p.beforeeach((function(e,n,t){localstorage.aynusertoken?c["a"].getters.loginstatus?t():c["a"].dispatch("getuserinfo").then((function(){t()})).catch((function(e){localstorage.clear(),window.location.reload()})):t()})),n["a"]=p},be35:function(e,n,t){},e517:function(e,n,t){}}); //# sourcemappingurl=app.d051ab42.js.map