You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/parent/static/js/pages-baby-index.fa477ed1.js

1 lines
9.4 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-baby-index"],{1076:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[t.list.length?a("v-uni-view",{staticClass:"list"},t._l(t.list,(function(e,n){return a("v-uni-view",{key:e.id,staticClass:"item",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.toDetail(e)}}},[a("v-uni-view",{staticClass:"item-top"},[a("v-uni-view",{staticClass:"item-name"},[a("v-uni-image",{attrs:{mode:"widthFix",src:i("4a26")}}),t._v("摄像头"+t._s(n+1))],1),a("v-uni-view",{staticClass:"item-time"},[t._v(t._s(e.activeTime||e.gmtCreate))])],1),a("v-uni-image",{staticClass:"item-cover",attrs:{src:"/static/images/cover.jpg",mode:"widthFix"}})],1)})),1):a("v-uni-view",{staticClass:"empty"},[a("v-uni-image",{staticClass:"empty-ico",attrs:{src:"/static/images/empty.png",mode:"widthFix"}}),a("v-uni-view",{staticClass:"empty-t"},[t._v("暂无数据")])],1)],1)},n=[]},"2edc":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.addComplaint=function(t){return n.default.post(r.addComplaint,t)},e.getArticleLast=function(t){return n.default.get(r.getArticleLast,t)},e.getClassData=function(t){return n.default.get(r.getClassData,t)},e.getIndexCate=function(){return n.default.get(r.getIndexCate)},e.getIndexData=function(t){return n.default.get(r.getIndexData,t)},e.getNewsDetail=function(t){return n.default.get(r.getNewsDetail+t)},e.getNewsList=function(t,e){return n.default.get(r.getNewsList+e,t)},e.getVideoDetail=function(t){return n.default.post(r.getVideoDetail,t)},e.getVideoList=function(t){return n.default.get(r.getVideoList,t)},e.getVideoListT=function(t){return n.default.get(r.getVideoListT,t)},e.getVideoRecord=function(t){return n.default.post(r.getVideoRecord,t)},e.getVideoUrl=function(t){return n.default.post(r.getVideoUrl,t)};var n=a(i("8ceb")),r={getIndexData:"/api/index",getIndexCate:"/api/article/category/list",getNewsDetail:"/api/article/details/",getNewsList:"/api/article/list/",addComplaint:"/api/user/complaint_add",getVideoList:"/api/parentBabyOnline",getVideoListT:"/api/teacherBabyOnline",getVideoDetail:"/api/QueryLiveStreaming",getVideoRecord:"/api/QueryRecord",getVideoUrl:"/api/QueryRecordUrlRequest",getClassData:"/api/getGradeAndClass",getArticleLast:"/api/article/get_article_last"}},"346b":function(t,e,i){"use strict";i.r(e);var a=i("4d638"),n=i.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(r);e["default"]=n.a},"4a26":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QAAAmFJREFUaEPtWd1t2zAQvqOh52aEZILKog34rfYG2aDuJE02yAZ1Jmg7QdM3AxYlbhBlgrjPhngFgSSwJMoiK7GWEBHwi80jv+/+j0YY+MKB44eRwLktOFqgtxaYz+ehUuobAITnBgkAGSLex3F8U8ZS60Kc87Qn4N8w53k+lVLKYxKnCFAPNF+GsBZC3NsSeAaAiz6RUEot0zT9bUUgiqI1IuoY6MUiok2SJF+sY0BvDMPwAhE/mhgwxh7K3+tL9MeGMSJuEPHyeC8R3RHRD4N8lqbpk+ncf64DnPNKjBDRTZIktzYEoih6LBMAgIqPN501Eii5wGiBcprsxIVms9lSKfWpkL4QK1URAHRgFvJ0HQAi+l5O0zqGGGNvaRIR97vdrlC4nLLQYrG4PBwOvwCgkC2atNLx71kQBKvtdps5ZaGegH/FvGeMrUzWONVK6CK27libbY7LhBBX1i7EOX88s+tUyL67Zm7w3ehIoE3E1sg6zQOjBQZjASLaA8CdUspYLU1EJpOJnvZ0nXF5NPDjQnmeX0kprcEfE+Kc61ZlaWktLwQehBArSwCVbY6jqxcCUggxHTKBfRAE07pusYkY59yl5/JiAY1R+78eyP80AS7NFJ8d/F+LeiPggrvN3pFAG+11ITtaoAsttjlj2BZAxOs4jn8WMlmdOhxLfButWss6jZSOJd4aRIuNxpbl5Nso51y/NOtic9ZFRJlSamVqGBsfd7UlAOCr4SXZO6mXNn2jlLqVUuqWvbIaCbxKvPxX8ME76qML6v4TsAri/wm0zV3WFmhziU/ZkYBP7dqc/Rda8UtAChIvCgAAAABJRU5ErkJggg=="},"4a9d":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.empty[data-v-20713eca]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin-top:%?300?%}.empty .empty-ico[data-v-20713eca]{width:%?300?%;margin-bottom:%?30?%}.empty .empty-t[data-v-20713eca]{color:#666}.content[data-v-20713eca]{display:flex;flex-direction:column;min-height:100vh;background-color:#f8f8f8;padding:%?0?% %?0?% %?10?%}.content .filter[data-v-20713eca]{width:%?750?%;height:%?204?%;background:#fff;border-radius:%?0?% %?0?% %?0?% %?0?%;opacity:1;margin:%?16?% 0;padding:%?32?%}.content .filter-list[data-v-20713eca]{width:100%;display:flex;align-items:center;overflow-x:scroll;margin-bottom:%?32?%}.content .filter-list .filter-item[data-v-20713eca]{flex-shrink:0;width:%?110?%;height:%?54?%;background:hsla(0,0%,83.9%,.2);border-radius:%?40?% %?40?% %?40?% %?40?%;opacity:1;text-align:center;line-height:%?54?%;font-size:%?26?%;font-weight:700;color:rgba(51,51,51,.3);margin-right:%?40?%}.content .filter-list .filter-item-active[data-v-20713eca]{flex-shrink:0;width:%?110?%;height:%?54?%;background:#ffd13e;border-radius:%?40?% %?40?% %?40?% %?40?%;opacity:1;text-align:center;line-height:%?54?%;font-size:%?26?%;font-weight:700;color:#333;margin-right:%?40?%}.content .list[data-v-20713eca]{padding:0 %?30?%}.content .list .item[data-v-20713eca]{width:%?690?%;height:%?484?%;background:#fff;border-radius:%?32?% %?32?% %?32?% %?32?%;opacity:1;padding:%?38?% %?38?% %?32?%;box-sizing:border-box;margin-top:%?16?%}.content .list .item .item-top[data-v-20713eca]{display:flex;align-items:center;justify-content:space-between;margin-bottom:%?20?%}.content .list .item .item-top .item-name[data-v-20713eca]{display:flex;align-items:center;font-size:%?32?%;font-family:PingFang SC-Bold,PingFang SC;font-weight:700;color:#333;line-height:%?48?%}.content .list .item .item-top .item-name uni-image[data-v-20713eca]{width:%?38?%;margin-right:%?16?%}.content .list .item .item-top .item-time[data-v-20713eca]{font-size:%?24?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:rgba(51,51,51,.8);line-height:%?40?%}.content .list .item .item-cover[data-v-20713eca]{width:%?626?%}',""]),t.exports=e},"4d638":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("c7eb")),r=a(i("1da1")),s=(a(i("5951")),i("2edc")),c={components:{},computed:{},data:function(){return{list:[],classes:[],treeData:[],grades:[],currentGradeIndex:0,currentClassIndex:0}},onLoad:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){var i;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=uni.getStorageSync("token-p"),i){e.next=3;break}return e.abrupt("return",uni.reLaunch({url:"/pages/login/index"}));case 3:return e.next=5,t.getvideo();case 5:case"end":return e.stop()}}),e)})))()},onPageScroll:function(t){},onReachBottom:function(){},methods:{getvideo:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getVideoList)().then((function(e){t.list=e.data.ipcList}));case 2:case"end":return e.stop()}}),e)})))()},getTvideo:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getVideoListT)({gradeId:t.gradeId,classId:t.classId}).then((function(e){t.list=e.data.ipcList}));case 2:case"end":return e.stop()}}),e)})))()},getClass:function(){var t=this;return(0,r.default)((0,n.default)().mark((function e(){return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getClassData)().then((function(e){t.treeData=e.data.treeData,t.classes=e.data.treeData[0].childen,t.gradeId=e.data.treeData[0].grade_id,t.classId=e.data.treeData[0].childen[0].class_id}));case 2:case"end":return e.stop()}}),e)})))()},clickG:function(t,e){this.currentGradeIndex=e,this.currentClassIndex=0,this.classes=t.childen,this.gradeId=t.grade_id,t.childen?this.classId=t.childen[0].class_id:this.classId=null,this.getTvideo()},clickC:function(t,e){this.currentClassIndex=e,this.classId=t.class_id,this.getTvideo()},toDetail:function(t){uni.navigateTo({url:"/pages/video/index?iotId="+t.iotId})}}};e.default=c},"5ab8":function(t,e,i){var a=i("4a9d");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("e76e26c4",a,!0,{sourceMap:!1,shadowMode:!1})},c265:function(t,e,i){"use strict";var a=i("5ab8"),n=i.n(a);n.a},e61a:function(t,e,i){"use strict";i.r(e);var a=i("1076"),n=i("346b");for(var r in n)["default"].indexOf(r)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(r);i("c265");var s=i("f0c5"),c=Object(s["a"])(n["default"],a["b"],a["c"],!1,null,"20713eca",null,!1,a["a"],void 0);e["default"]=c.exports}}]);