| 12 |
- (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/monitor/index"],{879:function(e,n,t){"use strict";(function(e,n){var r=t(4);t(26);r(t(25));var o=r(t(880));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t(1)["default"],t(2)["createPage"])},880:function(e,n,t){"use strict";t.r(n);var r=t(881),o=t(883);for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t(885);var c,u=t(32),s=Object(u["default"])(o["default"],r["render"],r["staticRenderFns"],!1,null,null,null,!1,r["components"],c);s.options.__file="pages/monitor/index.vue",n["default"]=s.exports},881:function(e,n,t){"use strict";t.r(n);var r=t(882);t.d(n,"render",(function(){return r["render"]})),t.d(n,"staticRenderFns",(function(){return r["staticRenderFns"]})),t.d(n,"recyclableRender",(function(){return r["recyclableRender"]})),t.d(n,"components",(function(){return r["components"]}))},882:function(e,n,t){"use strict";var r;t.r(n),t.d(n,"render",(function(){return o})),t.d(n,"staticRenderFns",(function(){return c})),t.d(n,"recyclableRender",(function(){return i})),t.d(n,"components",(function(){return r}));try{r={uniNavBar:function(){return t.e("components/uni-nav-bar/uni-nav-bar").then(t.bind(null,1164))},uIcon:function(){return t.e("uview-ui/components/u-icon/u-icon").then(t.bind(null,1128))}}}catch(u){if(-1===u.message.indexOf("Cannot find module")||-1===u.message.indexOf(".vue"))throw u;console.error(u.message),console.error("1. 排查组件名称拼写是否正确"),console.error("2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom"),console.error("3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件")}var o=function(){var e=this,n=e.$createElement;e._self._c},i=!1,c=[];o._withStripped=!0},883:function(e,n,t){"use strict";t.r(n);var r=t(884),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},884:function(e,n,t){"use strict";(function(e){var r=t(4);Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=r(t(41)),i=r(t(18)),c=r(t(11)),u=r(t(43));function s(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function a(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?s(Object(t),!0).forEach((function(n){(0,c.default)(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):s(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var l=function(){t.e("components/equip-item/equip-item").then(function(){return resolve(t(1250))}.bind(null,t)).catch(t.oe)},f={data:function(){return{listArr:[],page:1,accessToken:"",counts:"",isTop:!1,contenttf:!1}},onLoad:function(){this.getEquipList()},onPullDownRefresh:function(){this.page=1,this.listArr=[],this.getEquipList(),setTimeout((function(){e.stopPullDownRefresh()}),1e3)},onReachBottom:function(){if(this.page++,this.counts==this.listArr.length)return!1;this.getEquipList()},onPageScroll:function(e){e.scrollTop>200?this.isTop=!0:this.isTop=!1},methods:{getEquipList:function(){var e=this;return(0,u.default)(o.default.mark((function n(){var t,r,c;return o.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,e.$myRequest({url:"/api/api_gateway?method=camera.camera_manage.list_camera",data:{page:e.page}});case 2:t=n.sent,console.log(t),0==t.counts?e.contenttf=!0:e.contenttf=!1,r=t.data,c=r.map((function(e){return e.imei=e.device_id,e.is_online=e.status,a(a({},e),{},{device_status:e.status})})),console.log(t),console.log(e.listArr),e.listArr=[].concat((0,i.default)(e.listArr),(0,i.default)(c)),e.accessToken=t.accessToken,e.counts=t.counts;case 12:case"end":return n.stop()}}),n)})))()},clickLeft:function(){e.switchTab({url:"../index/index"})},itemClick:function(n){e.navigateTo({url:"/pages/webview/webview?device_id="+n.device_id+"&accessToken="+this.accessToken})},top:function(){e.pageScrollTo({scrollTop:0,duration:500})},siminfo:function(n){e.navigateTo({url:"./sim?simid="+n})}},components:{equipItem:l}};n.default=f}).call(this,t(2)["default"])},885:function(e,n,t){"use strict";t.r(n);var r=t(886),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},886:function(e,n,t){}},[[879,"common/runtime","common/vendor"]]]);
- //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/monitor/index.js.map
|