1 line
2.8 KiB
JavaScript
1 line
2.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-19028dc2"],{"0e4e":function(e,t,i){"use strict";i("8edb")},"8edb":function(e,t,i){var n=i("e21e");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("499e").default;a("478f0ec1",n,!0,{sourceMap:!1,shadowMode:!1})},b054:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"knowledge_list"},[i("c-title",{attrs:{hide:!1,text:"全部知识库"}}),i("van-list",{attrs:{finished:e.finished,"finished-text":"没有更多了"},on:{load:e.onLoad},model:{value:e.loading,callback:function(t){e.loading=t},expression:"loading"}},[e._l(e.list,(function(t){return[i("div",{key:t.id,staticClass:"recommend",on:{click:function(i){return e.lintk(t.id)}}},[i("van-image",{staticClass:"img",attrs:{width:"5.7rem",height:"3.4rem",src:t.image_url}}),i("div",{staticClass:"recommend_comotent"},[i("div",{staticClass:"recom_tent_tit van-ellipsis"},[e._v(e._s(t.name))]),i("div",{staticClass:"ptag"},[e._v(e._s(t.desc))])])],1)]}))],2)],1)},a=[],o=(i("4056"),i("44bf")),s=(i("99af"),{components:{VanImage:o["a"]},data:function(){return{list:[],logo_url:"",last_page:"",finished:!1,loading:!1,current_page:1}},methods:{link:function(){this.$router.push(this.fun.getUrl("knowledgeSearch"))},lintk:function(e){this.$router.push(this.fun.getUrl("knowledgeList",{},{base_id:e}))},init:function(){this.list=[],this.current_page=1,this.finished=!1,this.loading=!1},onLoad:function(){var e=this;this.finished||$http.get("plugin.message-base.frontend.base.index",{page:this.current_page}).then((function(t){if(1==t.result){e.current_page+=1;var i=t.data,n=i.data,a=i.logo,o=i.current_page,s=i.last_page;e.logo_url=a,e.list=e.list.concat(n),e.loading=!1,o>=s&&(e.finished=!0)}}))}},created:function(){this.init()}}),l=s,d=(i("0e4e"),i("2877")),r=Object(d["a"])(l,n,a,!1,null,"52d443dc",null);t["default"]=r.exports},e21e:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".knowledge_list[data-v-52d443dc]{width:100%;min-height:100vh;text-align:left;background-color:#eff0f1}.recommend[data-v-52d443dc]{background-color:#fff;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem;border-radius:5px;margin:10px}.recommend .img[data-v-52d443dc]{-webkit-box-flex:0;-webkit-flex:0 0 5.7rem;-ms-flex:0 0 5.7rem;flex:0 0 5.7rem}.recommend .recommend_comotent[data-v-52d443dc]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.5rem;word-break:break-all;max-width:71%}.recommend .recommend_comotent .recom_tent_tit[data-v-52d443dc]{line-height:24px;font-size:14px;color:#303030}.recommend .recommend_comotent .ptag[data-v-52d443dc]{font-size:11px;color:#838383;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;word-break:break-all;overflow:hidden}",""]),e.exports=t}}]); |