bztang-admin/addons/yun_shop/static/app/js/chunk-9ae0559e.ee0df1e8.js

1 line
6.1 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9ae0559e","chunk-2d0d83d6"],{"3fb5":function(t,i,e){var a=e("24fb");i=a(!1),i.push([t.i,'#Advertising-adList .main[data-v-1969b4d2]{padding:.875rem;background:#fff}#Advertising-adList .main img[data-v-1969b4d2]{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}#Advertising-adList .main .list[data-v-1969b4d2]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding-bottom:.875rem}#Advertising-adList .main .list .list-img[data-v-1969b4d2]{width:4.375rem;height:5.188rem;background-color:#fff;border-radius:.313rem;overflow:hidden;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;position:relative}#Advertising-adList .main .list .list-img[data-v-1969b4d2]:after{content:"";position:absolute;left:0;top:0;border:1px solid #a6a6a6;width:200%;height:200%;-webkit-transform:scale(.5);transform:scale(.5);-webkit-transform-origin:left top;transform-origin:left top}#Advertising-adList .main .list .list-right[data-v-1969b4d2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;overflow:hidden;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;text-align:left}#Advertising-adList .main .list .list-right .list-title[data-v-1969b4d2]{text-align:left;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;color:#1e1e1e;font-size:15px}#Advertising-adList .main .list .list-right .list-member[data-v-1969b4d2]{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;font-size:12px;color:#202020;overflow:hidden}#Advertising-adList .main .list .list-right .list-member .member-img[data-v-1969b4d2]{width:1.25rem;height:1.281rem;overflow:hidden;border-radius:50%;margin-right:.25rem;background-color:#c5c5c5;-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0}#Advertising-adList .main .list .list-right .list-member .member-name[data-v-1969b4d2]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}',""]),t.exports=i},"79db":function(t,i,e){t.exports=e.p+"static/app/img/empty-image-search.ef236a93.png"},"8b5b":function(t,i,e){var a=e("3fb5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=e("499e").default;s("74d40b24",a,!0,{sourceMap:!1,shadowMode:!1})},a021:function(t,i,e){"use strict";e.r(i);var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{attrs:{id:"Advertising-adList"}},[e("c-title",{attrs:{hide:!1,text:"广告列表"}}),e("div",{staticClass:"main"},[t._l(t.list,(function(i,a){return e("div",{key:i.id,staticClass:"list",on:{click:function(e){return e.stopPropagation(),t.gotoADPlay(i.id,a)}}},[e("div",{staticClass:"list-img"},[e("img",{attrs:{src:i.has_one_advertising_apply&&i.has_one_advertising_apply.video_cover,alt:""}})]),e("div",{staticClass:"list-right"},[e("div",{staticClass:"list-title"},[t._v(t._s(i.has_one_advertising_apply&&i.has_one_advertising_apply.title))]),e("div",{staticClass:"list-member"},[e("div",{staticClass:"member-img"},[e("img",{attrs:{src:i.has_one_member&&i.has_one_member.avatar_image,alt:""}})]),e("div",{staticClass:"member-name"},[t._v(t._s(i.has_one_member&&i.has_one_member.nickname))])])])])})),e("yz-blank",{attrs:{datas:t.list,text:"暂无广告可播放",isBtn:!0,btnText:"返回"}})],2)],1)},s=[],n=(e("e7e5"),e("d399")),o=(e("99af"),e("14d9"),e("ac0d")),l=e("eb17"),r={mixins:[o["a"]],data:function(){return{list:[],tag:"all",page:1,isLoadMore:!0,total_page:0}},activated:function(){this.getData()},components:{yzBlank:l["default"]},computed:{},methods:{getData:function(){var t=this,i={};"all"!=this.$route.params.tag&&(i.put_in_type="video"==this.$route.params.tag?"2":"1",i.put_in_id=this.$route.params.id),$http.get("plugin.ad-serving.frontend.advertising.index.getList",i,"").then((function(i){1===i.result?(t.list=i.data.list.data,t.isLoadMore=!0,t.total_page=i.data.list.last_page,t.total_page||(t.total_page=0)):(Object(n["a"])(i.msg),t.fun.isTextEmpty(i.data)&&t.$router.go(-1))})).catch((function(t){}))},getMoreData:function(){this.isLoadMore=!1;var t=this;if(!(t.page>=t.total_page)){t.page+=1;var i={};"all"!=this.$route.params.tag&&(i.put_in_type="video"==this.$route.params.tag?"2":"1",i.put_in_id=this.$route.params.id),i.page=t.page,$http.get("plugin.ad-serving.frontend.advertising.index.getList",i,"加载中").then((function(i){if(t.isLoadMore=!0,1!=i.result)return t.page=t.page-1,void(t.isLoadMore=!1);var e=i.data.list.data;t.list=t.list.concat(e)})).catch((function(t){}))}},gotoADPlay:function(t,i){var e=Math.ceil((i+1)/15);this.$router.push(this.fun.getUrl("advertisingPlayPage",{tag:this.$route.params.tag,id:this.$route.params.id,aid:t,page:e}))}}},d=r,c=(e("f414"),e("2877")),g=Object(c["a"])(d,a,s,!1,null,"1969b4d2",null);i["default"]=g.exports},ac0d:function(t,i,e){"use strict";e.d(i,"a",(function(){return n}));var a=document.documentElement,s=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 a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.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(){}}}},f414:function(t,i,e){"use strict";e("8b5b")}}]);