home.js 3.8 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/home/home"],{174:function(e,n,t){"use strict";(function(e,n){var o=t(4);t(26);o(t(25));var r=o(t(175));e.__webpack_require_UNI_MP_PLUGIN__=t,n(r.default)}).call(this,t(1)["default"],t(2)["createPage"])},175:function(e,n,t){"use strict";t.r(n);var o=t(176),r=t(178);for(var a in r)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(a);t(182);var i,s=t(37),u=Object(s["default"])(r["default"],o["render"],o["staticRenderFns"],!1,null,"92bb8f34",null,!1,o["components"],i);u.options.__file="pages/home/home.vue",n["default"]=u.exports},176:function(e,n,t){"use strict";t.r(n);var o=t(177);t.d(n,"render",(function(){return o["render"]})),t.d(n,"staticRenderFns",(function(){return o["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return o["recyclableRender"]})),t.d(n,"components",(function(){return o["components"]}))},177:function(e,n,t){"use strict";var o;t.r(n),t.d(n,"render",(function(){return r})),t.d(n,"staticRenderFns",(function(){return i})),t.d(n,"recyclableRender",(function(){return a})),t.d(n,"components",(function(){return o}));try{o={uSearch:function(){return Promise.all([t.e("common/vendor"),t.e("node-modules/uview-ui/components/u-search/u-search")]).then(t.bind(null,247))}}}catch(s){if(-1===s.message.indexOf("Cannot find module")||-1===s.message.indexOf(".vue"))throw s;console.error(s.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var r=function(){var e=this,n=e.$createElement,t=(e._self._c,e.informList.length),o=e.borList.length,r=0!==o?e.__map(e.borList,(function(n,t){var o=e.__get_orig(n),r=e.handleDate(n.borrowDate);return{$orig:o,m0:r}})):null;e.$mp.data=Object.assign({},{$root:{g0:t,g1:o,l0:r}})},a=!1,i=[];r._withStripped=!0},178:function(e,n,t){"use strict";t.r(n);var o=t(179),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},179:function(e,n,t){"use strict";(function(e){var o=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var r=t(180),a=o(t(181)),i=t(544),s=t(167),u={data:function(){return{keyword:"",informList:[],borList:[]}},methods:{search:function(){""===this.keyword?e.showToast({title:"请输入查询字段",icon:"none"}):e.navigateTo({url:"/pages/search/search?keyword="+this.keyword})},init:function(){var e=this;(0,i.getNewInform)(4).then((function(n){e.informList=n})),(0,s.borrowList)({pageNum:1,pageSize:1,status:0}).then((function(n){e.borList=n.data.rows}))},toMine:function(){e.navigateTo({url:"/pages/menus/menu/menu"})},toScan:function(){e.scanCode({scanType:["barCode"],success:function(n){e.navigateTo({url:"/pages/fault/fault-report/fault-report?id="+n.result})}})},toNotice:function(n){e.navigateTo({url:"/pages/notice/notice?id="+n})},handleDate:function(e){var n=new Date(e),t=n.getFullYear(),o=n.getMonth()+1,r=n.getDate();return t+"-"+o+"-"+r}},onLoad:function(){this.keyword="",(0,r.getInfo)().then((function(e){200===e.data.code&&(a.default.session.setJSON("role",e.data.roles[0]),a.default.session.setJSON("phone",e.data.user.phonenumber),a.default.session.setJSON("email",e.data.user.email),a.default.session.setJSON("nickName",e.data.user.nickName),a.default.session.setJSON("userName",e.data.user.userName))})),e.getStorageSync("Admin-Token")&&this.init()}};n.default=u}).call(this,t(2)["default"])},182:function(e,n,t){"use strict";t.r(n);var o=t(183),r=t.n(o);for(var a in o)["default"].indexOf(a)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(a);n["default"]=r.a},183:function(e,n,t){}},[[174,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/home/home.js.map