webpackJsonp([24],{wm8Y:function(t,e){},xntR:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={data:function(){return{name:this.$route.query.name,cid:this.$route.query.cid,res:[],loading:!1,finished:!1,refreshing:!1,isShow:!1,page:1}},methods:{snippet:function(t){return t.replace(/<[^>]*>/g,"")},goTo:function(t,e){this.$router.push(t)},goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},getWorks:function(){var t=this,e={uid:this.$store.state.userInfo.userid,cid:this.cid,page:this.page};this.ajax.get(this.$store.state.api+"getHomeSchoolByCid",e).then(function(e){0==e.data[0].length?t.isShow=!0:t.isShow=!1,t.res=e.data[0],t.loading=!1,t.refreshing=!1,t.finished=!1,console.log(e.data)}).catch(function(e){t.loading=!1,t.refreshing=!1,console.error(e)})},onRefresh:function(){this.page=1,this.getWorks()},onLoad:function(){var t=this,e={uid:this.$store.state.userInfo.userid,cid:this.cid,page:this.page};this.ajax.get(this.$store.state.api+"getHomeSchoolByCid",e).then(function(e){t.loading=!1,t.refreshing=!1,t.res=t.res.concat(e.data[0]);var i=t.res.length?t.res[0].num:0;t.res.length<i?(t.page++,t.loading=!1):(t.finished=!0,t.loading=!0),console.log(e.data)}).catch(function(e){t.loading=!1,t.refreshing=!1,console.error(e)})}},created:function(){this.page=1,this.getWorks()}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pb_content2",staticStyle:{background:"#fff"}},[s("div",{staticClass:"pb_head"},[s("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:t.goBack}}),t._v(" "),s("span",[t._v(t._s(t.name))])],1),t._v(" "),s("div",{staticClass:"pb_content_body",staticStyle:{height:"calc(100% - 3rem)"}},[s("van-pull-refresh",{staticStyle:{"padding-top":"0.5rem"},attrs:{"looing-text":"释放刷新","pulling-text":"下拉刷新"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(e){t.refreshing=e},expression:"refreshing"}},[s("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多啦",offset:"10","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},[t.isShow?s("van-empty",{staticClass:"custom-image",attrs:{image:i("0vHl"),description:"暂无数据"}}):t._e(),t._v(" "),t._l(t.res,function(e,n){return s("div",{key:n,staticClass:"my_wordBox",on:{click:function(i){return t.goTo("/workDetail2?type=1&id="+e.id)}}},[s("div",{staticClass:"my_wordBox_title"},[s("div",{staticClass:"my_wordBox_titlet"},[s("img",{directives:[{name:"lazy",rawName:"v-lazy",value:i("wl5n"),expression:"require('../../assets/icon/word.png')"}],attrs:{alt:""}}),t._v(" "),s("span",{staticClass:"van-ellipsis"},[t._v(t._s(e.workName))])])]),t._v(" "),s("div",{staticClass:"my_wordBox_content van-multi-ellipsis--l3",domProps:{innerHTML:t._s(t.snippet(e.content))}}),t._v(" "),s("div",{staticClass:"my_wordBox_bottom"},[s("div",[t._v(t._s(e.time))]),t._v(" "),s("div",{class:{finish:0!=e.haveType}},[t._v("\n              "+t._s(0!=e.haveType?"已完成":"未完成")+"\n            ")])])])})],2)],1)],1)])},staticRenderFns:[]};var a=i("VU/8")(s,n,!1,function(t){i("wm8Y")},"data-v-ddf120b8",null);e.default=a.exports}});
//# sourceMappingURL=24.9486ad5edf5bca2cb501.js.map