bztang-admin/addons/yun_shop/static/app/js/chunk-4ba05b90.37267f84.js

1 line
5.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4ba05b90"],{"253a":function(t,e,a){t.exports=a.p+"static/app/img/img_default.a608a24a.png"},3162:function(t,e,a){var i=a("bdab");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("968183da",i,!0,{sourceMap:!1,shadowMode:!1})},"60eb":function(t,e,a){"use strict";a("3162")},ac0d:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));var i=document.documentElement,o=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return i&&i.scrollTop?t=i.scrollTop:o&&(t=o.scrollTop),t},getClientHeight:function(){var t=0;return t=o.clientHeight&&i.clientHeight?Math.min(o.clientHeight,i.clientHeight):Math.max(o.clientHeight,i.clientHeight),t},getScrollHeight:function(){return Math.max(o.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},bdab:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#pay_essay[data-v-dd608404]{background-color:#fff;height:100vh}#pay_essay .content[data-v-dd608404]{padding:0 .75rem;background-color:#fff}#pay_essay .content .list[data-v-dd608404]{padding:1.375rem 0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;border-bottom:1px solid #ececec}#pay_essay .content .list .image[data-v-dd608404]{width:7.125rem;height:5.5625rem;-webkit-box-sizing:border-box;box-sizing:border-box}#pay_essay .content .list .image img[data-v-dd608404]{width:100%;height:100%}#pay_essay .content .list .left[data-v-dd608404]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin-right:1rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between}#pay_essay .content .list .left .title[data-v-dd608404]{color:#333;text-align:left;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}#pay_essay .content .list .left .author[data-v-dd608404]{margin-top:.5rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;font-size:12px;color:#666;text-align:left;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}",""]),t.exports=e},eebb:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"pay_essay"}},[i("c-title",{attrs:{hide:!1,text:"已付费文章"}}),i("div",{staticClass:"content"},[i("van-pull-refresh",{on:{refresh:t.loadTop},model:{value:t.isLoading,callback:function(e){t.isLoading=e},expression:"isLoading"}},t._l(t.datas,(function(e,o){return i("div",{key:o,staticClass:"list",on:{click:function(a){return t.toNoticeInfo(e)}}},[i("div",{staticClass:"left"},[i("div",{staticClass:"title"},[t._v(t._s(e.title))]),i("div",{staticClass:"author"},[i("span",[t._v(t._s(e.author))]),i("span",[t._v(t._s(e.virtual_at))])])]),i("div",{staticClass:"image"},[e.thumb?i("img",{attrs:{src:e.thumb}}):t._e(),e.thumb?t._e():i("img",{attrs:{src:a("253a")}})])])})),0)],1)],1)},o=[],n=(a("e7e5"),a("d399")),s=(a("99af"),a("6968")),l=a("ac0d"),c={mixins:[l["a"]],data:function(){return{isLoadMore:!0,page:1,total_page:0,datas:[],isLoading:!1}},activated:function(){this.getData()},deactivated:function(){},mounted:function(){},methods:{toNoticeInfo:function(t){this.$router.push(this.fun.getUrl("articleContent",{id:t.id}))},loadTop:function(){this.initData(),this.getData(),this.$refs.loadmore.onTopLoaded()},initData:function(){this.page=1,this.total_page=0,this.isLoadMore=!0,this.datas=[]},getData:function(){var t=this;this.isLoadMore=!1,this.page=1,$http.get("plugin.article-pay.api.index.articlePayData",{page:this.page,art:"payed"},"加载中").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.getPayed.articles.last_page,t.total_page||(t.total_page=0),t.datas=e.data.getPayed.articles.data,t.isLoading=!1):(Object(n["a"])(e.msg),t.isLoading=!1)}),(function(t){})).catch((function(t){}))},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("plugin.article-pay.api.index.articlePayData",{page:this.page,art:"payed"},"加载中").then((function(e){if(t.isLoadMore=!0,1===e.result){var a=e.data.getPayed.articles.data;t.datas=t.datas.concat(a)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})).catch((function(t){})))}},components:{cTitle:s["a"]}},d=c,r=d,p=(a("60eb"),a("2877")),u=Object(p["a"])(r,i,o,!1,null,"dd608404",null);e["default"]=u.exports}}]);