webpackJsonp([11],{mBnz:function(t,e){t.exports="data:image/png;base64,[encoded data, 4468 characters]"},qCPf:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s={data:function(){return{res:[],loading:!1,finished:!1,refreshing:!1,isShow:!1,page:1}},methods:{snippet:function(t){return t.replace(/<[^>]*>/g,"")},goBack:function(){if(this.$router.isBack=!0,window.history.length<=1)return this.$router.push({path:"/"}),!1;this.$router.go(-1)},goTo:function(t){this.$router.push(t)},getVolunteer:function(){var t=this;this.loading=!0;var e={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"getVolunteer",e).then(function(e){0==e.data[0].length?t.isShow=!0:t.isShow=!1,t.page++,t.loading=!1,t.refreshing=!1,t.finished=!1,t.res=e.data[0],console.log(t.res[0].content),console.log(e.data)}).catch(function(e){t.loading=!1,t.refreshing=!1,console.error(e)})},onRefresh:function(){this.page=1,this.getVolunteer()},onLoad:function(){var t=this,e={uid:this.$store.state.userInfo.userid,page:this.page};this.ajax.get(this.$store.state.api+"getVolunteer",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.getVolunteer()}},n={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"pb_content",staticStyle:{background:"rgb(246 246 246)"}},[s("div",{staticClass:"pb_head",staticStyle:{height:"6rem"}},[s("div",{staticClass:"top_first"},[s("div",{staticClass:"tx"},[s("img",{attrs:{src:this.$store.state.userInfo.smailheadportrait?this.$store.state.userInfo.smailheadportrait:i("eMeI"),alt:""}})]),t._v(" "),s("div",{staticClass:"tx_right"},[s("div",{staticClass:"right_first"},[s("div",[t._v(t._s(this.$store.state.userInfo.name))]),t._v(" "),t._m(0)]),t._v(" "),s("div",[t._v(t._s(this.$store.state.userInfo.schoolName))])])]),t._v(" "),s("div",{staticClass:"rHome",on:{click:function(e){return t.goTo("/my")}}},[t._v("返回首页")])]),t._v(" "),s("div",{staticClass:"pb_content_body"},[s("div",{staticClass:"new_work"},[t._v("最新任务")]),t._v(" "),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:"work_detail",on:{click:function(i){return t.goTo("/volunteerDetail?id="+e.id)}}},[s("div",{staticClass:"work_top"},[s("div",{staticClass:"lag"},[s("img",{attrs:{src:i("C/b2"),alt:""}})]),t._v(" "),s("div",{staticClass:"work_title"},[t._v(t._s(e.workName))])]),t._v(" "),s("div",{staticClass:"work_content van-multi-ellipsis--l3",domProps:{innerHTML:t._s(t.snippet(e.content))}}),t._v(" "),s("div",{staticClass:"work_bottom"},[s("div",{staticClass:"work_time"},[t._v(t._s(e.time)+"发布")]),t._v(" "),s("div",{staticClass:"work_doing"},[t._v("进行中")])])])})],2)],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"leader"},[e("img",{attrs:{src:i("mBnz"),alt:""}})])}]};var r=i("VU/8")(s,n,!1,function(t){i("tYuD")},"data-v-95b432f6",null);e.default=r.exports},tYuD:function(t,e){}});
//# sourceMappingURL=11.c0e911b0a238722d85a1.js.map