bztang-admin/addons/yun_shop/static/app/js/chunk-2fc112cd.1d34a7de.js

1 line
6.2 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2fc112cd"],{"4e8e":function(t,e,i){var o=i("b73f");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("7ac11523",o,!0,{sourceMap:!1,shadowMode:!1})},"539f":function(t,e,i){"use strict";i("4e8e")},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var o=document.documentElement,a=document.body,s={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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(){}}}},b73f:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#voice_list[data-v-b802f216]{padding-top:42px;background:#fff}#voice_list #content .order[data-v-b802f216]{background:#fff;position:fixed;top:2.5rem;width:23.4375rem;height:2.625rem;line-height:2.625rem;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .625rem;border-bottom:.0625rem solid #ebebeb;font-weight:700}#voice_list #content .order[data-v-b802f216],#voice_list #content .order li[data-v-b802f216]:last-child{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;font-size:16px}#voice_list #content .order li[data-v-b802f216]:last-child{color:#999;font-weight:400}#voice_list #content .order li:last-child i[data-v-b802f216]{font-size:1.5rem;color:#999;margin-left:.375rem}#voice_list #content .chapter_box[data-v-b802f216]{padding-left:.875rem;padding-bottom:1.25rem}#voice_list #content .chapter_box .box[data-v-b802f216]{padding:.625rem .625rem .625rem 0;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;border-bottom:.0625rem solid #ebebeb}#voice_list #content .chapter_box .box .left[data-v-b802f216]{width:16.25rem;text-align:left}#voice_list #content .chapter_box .box .left .name[data-v-b802f216]{font-size:16px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.875rem}#voice_list #content .chapter_box .box .left .name .pay-money[data-v-b802f216]{width:2.125rem;height:1.125rem;border-radius:.3125rem;border:.0625rem solid #ff2c29;display:inline-block;text-align:center;line-height:1.125rem;vertical-align:text-top;font-size:12px;color:#ff2c29;margin-right:.2rem}#voice_list #content .chapter_box .box .left .time[data-v-b802f216]{color:#8c8c8c;line-height:1.875rem;font-size:14px}#voice_list #content .chapter_box .box .right[data-v-b802f216]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}#voice_list #content .chapter_box .box .right i[data-v-b802f216]{font-size:1.5rem;color:#666;margin-right:.375rem}#voice_list #content .chapter_box .box .right span[data-v-b802f216]{font-size:16px;color:#666}",""]),t.exports=e},c544:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"voice_list"}},[i("c-title",{attrs:{hide:!1,text:"音频列表"}}),i("div",{attrs:{id:"content"}},[i("ul",{staticClass:"order"},[i("li",[t._v("共"+t._s(t.total)+"章节")]),i("li",{on:{click:t.changeAsc}},[t._v(t._s(t.isAsc?"顺序":"倒序")),i("i",{staticClass:"iconfont icon-order_lower"})])]),i("div",{staticClass:"chapter_box"},t._l(t.voiceList,(function(e,o){return i("div",{key:o,staticClass:"box",on:{click:function(i){return t.toVoice(e)}}},[i("ul",{staticClass:"left"},[i("li",{staticClass:"name"},[e.has_one_article_pay?i("span",{staticClass:"pay-money"},[t._v("付费")]):t._e(),t._v(t._s(e.title))]),e.belongs_to_category?i("li",{staticClass:"time"},[t._v(t._s(e.virtual_at)+"   "+t._s(e.belongs_to_category.name))]):t._e()]),t._m(0,!0)])})),0)])],1)},a=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"right"},[i("i",{staticClass:"iconfont icon-yduibofang"}),i("span",[t._v("播放")])])}],s=(i("e7e5"),i("d399")),n=(i("99af"),i("6968")),c=i("ac0d"),l={mixins:[c["a"]],data:function(){return{isAsc:!0,voiceList:[],display_order:"",total:0,isLoadMore:!0,page:1,total_page:0}},activated:function(){this.initData(),this.getData()},methods:{changeAsc:function(){this.isAsc=!this.isAsc,this.isAsc?this.display_order="":this.display_order=1,this.getData()},toVoice:function(t){t.has_one_article_pay?t.has_one_record?this.$router.push(this.fun.getUrl("VoiceDetail",{article_id:t.id})):this.$router.push(this.fun.getUrl("payList",{id:t.id},{fromTarget:"voiceList"})):this.$router.push(this.fun.getUrl("VoiceDetail",{article_id:t.id}))},initData:function(){this.isAsc=!0,this.voiceList=[],this.display_order="",this.total=0,this.isLoadMore=!0,this.page=1,this.total_page=0},getData:function(){var t=this;t.isLoadMore=!1,t.page=1,$http.get("plugin.article.api.article.audioArticle",{display_order:this.display_order},"加载中...").then((function(e){1===e.result?(t.isLoadMore=!0,t.total_page=e.data.last_page,t.total=e.data.total,t.total_page||(t.total_page=0),t.total||(t.total=0),t.voiceList=e.data.data):Object(s["a"])(e.msg)}),(function(t){}))},getMoreData:function(){var t=this;t.isLoadMore=!1,this.page>=this.total_page||(this.page=this.page+1,$http.get("",{page:t.page},"加载中...").then((function(e){if(t.isLoadMore=!0,1!==e.result)return t.page=t.page-1,void(t.isLoadMore=!1);var i=e.data.data;t.voiceList=t.voiceList.concat(i)}),(function(t){})))}},components:{cTitle:n["a"]}},r=l,d=r,h=(i("539f"),i("2877")),f=Object(h["a"])(d,o,a,!1,null,"b802f216",null);e["default"]=f.exports}}]);