webpackJsonp([37],{"a/h5":function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var e={data:function(){return{smailheadportrait:this.$store.state.userInfo.smailheadportrait,name:this.$store.state.userInfo.name,className:this.$store.state.userInfo.classnameA,loading:!1,finished:!1,refreshing:!1,page:1,isShow:!0,askList:[]}},methods:{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)},onRefresh:function(){this.page=1,this.getAsk()},getAsk:function(){var t=this;this.loading=!0;var a={page:this.page};this.ajax.get(this.$store.state.api+"getAskApp",a).then(function(a){0==a.data[0].length?t.isShow=!0:t.isShow=!1,t.page++,t.loading=!1,t.refreshing=!1,t.finished=!1,t.askList=a.data[0]}).catch(function(a){t.loading=!1,t.refreshing=!1,console.error(a)})},onLoad:function(){var t=this,a={page:this.page};this.ajax.get(this.$store.state.api+"getAskApp",a).then(function(a){t.loading=!1,t.refreshing=!1,console.log(a.data[0][0]),t.askList=t.askList.concat(a.data[0]);var s=t.askList.length?t.askList[0].num:0;t.askList.length<s?(t.page++,t.loading=!1):(t.finished=!0,t.loading=!0)}).catch(function(a){t.loading=!1,t.refreshing=!1,console.error(a)})}},created:function(){this.page=1,this.getAsk()}},i={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"pb_content2",staticStyle:{background:"#fff"}},[e("div",{staticClass:"pb_head"},[e("van-icon",{staticClass:"pb_back",attrs:{name:"arrow-left",color:"#fff",size:"1.2rem"},on:{click:t.goBack}}),t._v(" "),e("span",[t._v("问卷调查")])],1),t._v(" "),e("div",{staticClass:"pb_content_body"},[e("div",{staticClass:"li_head"},[e("div",{staticClass:"li_head_portal"},[e("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t.smailheadportrait?t.smailheadportrait:s("eMeI"),expression:"\n            smailheadportrait\n              ? smailheadportrait\n              : require('../../assets/icon/portal.png')\n          "}],attrs:{alt:""}})]),t._v(" "),e("div",{staticClass:"li_head_body"},[e("div",{staticClass:"li_myClass"},[t._v("\n          "+t._s(t.name)+" "),e("span",[t._v(t._s(t.className))])])])]),t._v(" "),e("van-pull-refresh",{staticStyle:{"padding-top":"0.5rem"},attrs:{"looing-text":"释放刷新","pulling-text":"下拉刷新"},on:{refresh:t.onRefresh},model:{value:t.refreshing,callback:function(a){t.refreshing=a},expression:"refreshing"}},[e("van-list",{attrs:{finished:t.finished,"finished-text":"没有更多啦",offset:"10","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},[t.isShow?e("van-empty",{staticClass:"custom-image",attrs:{image:s("0vHl"),description:"暂无数据"}}):e("div",{staticClass:"ask_box"},t._l(t.askList,function(a){return e("div",{key:a.id,staticClass:"ask_content"},[e("span",[t._v(t._s(a.title))]),t._v(" "),e("van-button",{attrs:{type:"small",color:"#e9bc3c"},on:{click:function(s){return t.goTo("/my/ask/askDetail?id="+a.id)}}},[t._v("参与问卷调查")])],1)}),0)],1)],1)],1)])},staticRenderFns:[]};var n=s("VU/8")(e,i,!1,function(t){s("rv6e")},"data-v-5a75afad",null);a.default=n.exports},rv6e:function(t,a){}});
//# sourceMappingURL=37.d19ea312b07a34dde26e.js.map