bztang-admin/addons/yun_shop/static/app/js/chunk-fe4f2298.c109bc60.js

1 line
16 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe4f2298","chunk-2d0d83d6","chunk-2d0c0a97"],{"03ff":function(t,e,i){var o=i("27fb");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("3642e58d",o,!0,{sourceMap:!1,shadowMode:!1})},"27fb":function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,"#video-list .load[data-v-0745fbd4]{text-align:center}#video-list .load img[data-v-0745fbd4]{width:3rem}#video-list .banner[data-v-0745fbd4]{width:100%;min-height:10rem}#video-list .banner img[data-v-0745fbd4]{width:100%}#video-list .video-list[data-v-0745fbd4]{margin:.5rem .5rem 3.5rem .5rem;text-align:left}#video-list .video-list ul[data-v-0745fbd4]{vertical-align:top;display:inline-block;width:48%}#video-list .video-list li[data-v-0745fbd4]{position:relative;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;background-color:#fff;border-radius:6px;margin-bottom:.5rem;overflow:hidden}#video-list .video-list .play[data-v-0745fbd4]{position:absolute;top:45%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}#video-list .video-list ul[data-v-0745fbd4]:first-child{margin-right:.5rem}#video-list .video-list p[data-v-0745fbd4]{font-size:14px;color:#333;font-weight:700;padding:5px 10px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#video-list .video-list .video-img[data-v-0745fbd4]{width:100%;height:auto}#video-list .video-list .people[data-v-0745fbd4]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:5px}#video-list .video-list .people img[data-v-0745fbd4]{-webkit-box-flex:0;-webkit-flex:0 0 1.5rem;-ms-flex:0 0 1.5rem;flex:0 0 1.5rem;width:1.5rem;height:1.5rem;border-radius:50%;margin:0 5px}#video-list .video-list .people span[data-v-0745fbd4]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1.5rem;margin:0 5px;font-size:11px;color:#8c8c8c;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}#video-list .button[data-v-0745fbd4]{height:3.5rem;z-index:2001}#video-list .button img[data-v-0745fbd4]{width:100%;height:100%}#video-list .footer[data-v-0745fbd4]{position:fixed;bottom:0;background:#fff;z-index:100}#video-list .footer[data-v-0745fbd4],#video-list .footer ul[data-v-0745fbd4]{width:100%;height:3.125rem;-webkit-box-sizing:border-box;box-sizing:border-box}#video-list .footer ul[data-v-0745fbd4]{padding:.5rem}#video-list .footer ul li[data-v-0745fbd4]{width:20%;float:left;font-size:12px;color:#828282}#video-list .footer ul li i[data-v-0745fbd4]{font-size:1.25rem}#video-list .footer ul .openMyShop[data-v-0745fbd4]{width:3.4375rem;height:3.4375rem;background:#f15353;border-radius:50%;line-height:1.25rem;padding-top:.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;color:#fff;-webkit-box-shadow:0 0 0 .375rem #e6e6e6;box-shadow:0 0 0 .375rem #e6e6e6;position:relative;bottom:1.125rem;font-size:14px;z-index:100;margin:0 auto}#video-list .cursor-box[data-v-0745fbd4]{position:fixed;bottom:15%;right:50%;-webkit-transform:translateX(11rem);transform:translateX(11rem);color:#fff;z-index:999;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}#video-list .cursor-box #imgs[data-v-0745fbd4]{width:3rem;height:3rem;z-index:9999;position:relative}#video-list .cursor-box .rotateImg[data-v-0745fbd4]{transform:rotate(135deg);-webkit-transform:rotate(135deg)}#video-list .cursor-box .normalImg[data-v-0745fbd4],#video-list .cursor-box .rotateImg[data-v-0745fbd4]{-webkit-transition:-webkit-transform .5s;transition:-webkit-transform .5s;transition:transform .5s;transition:transform .5s,-webkit-transform .5s}#video-list .cursor-box .normalImg[data-v-0745fbd4]{transform:rotate(0deg);-webkit-transform:rotate(0deg)}#video-list .cursor-box .btn[data-v-0745fbd4]{width:3rem;height:3rem;border-radius:50%;background-image:-webkit-linear-gradient(318deg,#fe7575,#fc3d3d),-webkit-linear-gradient(#7f5e5e,#7f5e5e);background-image:linear-gradient(132deg,#fe7575,#fc3d3d),linear-gradient(#7f5e5e,#7f5e5e);background-blend-mode:normal,normal;-webkit-box-shadow:0 .125rem .5rem .125rem rgba(90,14,14,.24);box-shadow:0 .125rem .5rem .125rem rgba(90,14,14,.24);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;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;font-size:12px;-webkit-transition:all .35s ease-in-out;transition:all .35s ease-in-out}#video-list .cursor-box .btn i[data-v-0745fbd4]{padding-top:.2rem;font-size:1.5rem}#video-list .cursor-box .btn .btn-text[data-v-0745fbd4]{padding-bottom:.2rem}#video-list .cursor-box .btn_1[data-v-0745fbd4]{margin-bottom:5px}#video-list .cursor-box .active1[data-v-0745fbd4]{opacity:1;-webkit-transform:scale(1) translateY(-50%);transform:scale(1) translateY(-50%)}#video-list .cursor-box .active2[data-v-0745fbd4]{opacity:1;-webkit-transform:scale(1) translateX(0) translateY(0);transform:scale(1) translateX(0) translateY(0)}#video-list .bounce-enter-active[data-v-0745fbd4]{-webkit-animation:bounce-in 1s;animation:bounce-in 1s}#video-list .bounce-leave-active[data-v-0745fbd4]{animation:bounce-in 1s reverse}",""]),t.exports=e},4379:function(t,e,i){t.exports=i.p+"static/app/img/video-loading.c4a4193d.gif"},"56c2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAA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fjwGc6lubm5tbI12NjYxatVvuERecRZglS7wcJ0FOtyurq6qZggW4rFIpMSNZmRkZGVtkOH0TwTOHI3L1LBNuJJwHvga9CuxJvcc+F79jCvu5BGPLDLqoQeS7ADPwari+0F92JKK1sHmAF+0hEEoCOdZ4nO8GLlLhh344cPYXrTv8mgicjVwn+tNd3sfPHgmGk8wHUh0dt7Ms8EfA6UqwSxmgcoSNPdRJHAv3zL4G2SA8I41g0a1gE1wceaFccjpUlxHNKidLtL6gWJ0htbZaBIvkzoCvWg8I4DaKF/QmIep2KBN6jkiKgg+4XOMmkngZHQQYRPLFn41ODKWBC5eV/+bFHOKCzq4vE4ec2mVigmLQgkYMe4vBzm8V4p0k0/BNgABEZD5etFqLVAAAAAElFTkSuQmCC"},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},91753:function(t,e,i){"use strict";i.r(e);var o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{attrs:{id:"video-list"}},[o("c-title",{attrs:{hide:!1,text:"视频分享"}}),1==t.is_rotation?o("div",{staticClass:"banner"},[o("van-swipe",{attrs:{autoplay:3e3}},t._l(t.bannerList,(function(t,e){return o("van-swipe-item",{key:e},[o("a",{attrs:{href:t.url}},[o("img",{staticClass:"banner-item",attrs:{src:t.img}})])])})),1)],1):t._e(),t.is_show_cate?[o("van-tabs",{on:{click:t.getData},model:{value:t.category_id,callback:function(e){t.category_id=e},expression:"category_id"}},t._l(t.cateList,(function(t){return o("van-tab",{key:t.id,attrs:{title:t.name,name:t.id}})})),1)]:t._e(),o("div",{staticClass:"video-list"},[o("ul",{ref:"newArray1",staticClass:"zq-waterfall-left"},t._l(t.newArray1,(function(e,a){return o("li",{key:a,on:{click:function(i){return t.toVideo(e)}}},[o("img",{staticClass:"video-img",attrs:{src:e.cover,alt:""}}),o("p",[t._v(t._s(e.title))]),e.member?o("div",{staticClass:"people"},[o("img",{attrs:{src:e.member.avatar,alt:""}}),o("span",[t._v(t._s(e.member.nickname))])]):t._e(),o("img",{staticClass:"play",attrs:{src:i("56c2"),alt:""}})])})),0),o("ul",{ref:"newArray2",staticClass:"zq-waterfall-right"},t._l(t.newArray2,(function(e,a){return o("li",{key:a,on:{click:function(i){return t.toVideo(e)}}},[o("img",{staticClass:"video-img",attrs:{src:e.cover,alt:""}}),o("p",[t._v(t._s(e.title))]),e.member?o("div",{staticClass:"people"},[o("img",{attrs:{src:e.member.avatar,alt:""}}),o("span",[t._v(t._s(e.member.nickname))])]):t._e(),o("img",{staticClass:"play",attrs:{src:i("56c2"),alt:""}})])})),0),t.showLoading?t._e():o("div",{staticClass:"load"},[o("img",{attrs:{src:i("4379"),alt:"loading"}})]),o("div",{staticStyle:{height:"3rem"}})]),o("yz-blank",{directives:[{name:"show",rawName:"v-show",value:t.showLoading,expression:"showLoading"}],attrs:{datas:t.videoList,text:"抱歉,该分类暂无数据...",isBtn:!1}}),o("div",{staticClass:"cursor-box"},[o("div",{staticClass:"btn btn_1",on:{click:function(e){return t.goUrl("releaseVideo")}}},[o("i",{staticClass:"iconfont icon-video_recording"}),o("span",{staticClass:"btn-text"},[t._v("发布")])]),o("div",{staticClass:"btn btn_2",on:{click:function(e){return t.goUrl("myVideo")}}},[o("i",{staticClass:"iconfont icon-video_myvideorecord"}),o("span",{staticClass:"btn-text"},[t._v("我的")])])])],2)},a=[],n=(i("e7e5"),i("d399")),s=(i("a9e3"),i("14d9"),i("99af"),i("b0c0"),i("4e82"),i("c740"),i("ac0d")),r=i("eb17"),d={mixins:[s["a"]],data:function(){return{is_show_cate:!1,cateList:[],category_id:0,videoList:[],bannerList:[],newArray1:[],newArray2:[],showLoading:!1,isLoadMore:!1,page:1,total_page:0,isOpenBtn:!1,is_rotation:0,cacheTimestamp:null}},activated:function(){void 0!==this.fun.getKey("cat_id")&&null!==this.fun.getKey("cat_id")&&(this.category_id=Number(this.fun.getKey("cat_id"))),"release"!==this.$route.params.from&&(this.getBanner(),this.getBasicSet(),this.getData()),"release"===this.$route.params.from?this.getData():window.location.href.indexOf("#/videoList")>-1&&window.videoScrollTop&&setTimeout((function(){window.scrollTo(0,window.videoScrollTop)}),200)},deactivated:function(){this.isOpenBtn=!1},mounted:function(){window.videoScrollTop=0},beforeRouteLeave:function(t,e,i){window.videoScrollTop=document.documentElement.scrollTop||document.body.scrollTop,i()},methods:{goUrl:function(t){this.$router.push(this.fun.getUrl(t))},my:function(){this.$router.push(this.fun.getUrl("myVideo"))},gotoAgreement:function(){this.$router.push(this.fun.getUrl("videoAgreement"))},changeBtn:function(){this.isOpenBtn=!this.isOpenBtn},getBanner:function(){var t=this;$http.get("plugin.video-share.frontend.set.getSlide",{}," ").then((function(e){1===e.result?(t.bannerList=e.data.slide,t.is_rotation=e.data.is_rotation):Object(n["a"])(e.msg)})).catch((function(t){}))},getBasicSet:function(){var t=this;$http.get("plugin.video-share.frontend.video.getBasicSet",{}," ").then((function(e){1===e.result?"1"==e.data.set.is_show_cate&&t.getCategory():Object(n["a"])(e.msg)})).catch((function(t){}))},getCategory:function(){var t=this;$http.get("plugin.video-share.frontend.video.getCategory",{}," ").then((function(e){1===e.result?(t.cateList=[],t.cateList.push({id:0,name:"全部"}),t.cateList=t.cateList.concat(e.data),t.is_show_cate=!0):Object(n["a"])(e.msg)})).catch((function(t){}))},getImg:function(t,e,i,o){var a=new Image,n=o,s=this;if(a.src=t,a.complete){if(n!=s.cacheTimestamp)return;e(a.width,a.height,Number(a.height)/Number(a.width))}else a.onload=function(){n==s.cacheTimestamp&&e(a.width,a.height,Number(a.height)/Number(a.width))},a.onerror=function(){i()}},getData:function(){var t=this;this.videoList=[],this.page=1,this.isLoadMore=!1,this.showLoading=!1,$http.post("plugin.video-share.frontend.video.getList",{page:this.page,search:{category_id:this.category_id}},"load").then((function(e){var i=t.$store.state.temp.mailInfo.name||"视频分享";t.fun.setWXTitle(i),1===e.result?(t.total_page=e.data.list.last_page,0===e.data.list.total&&(t.showLoading=!0),t.videoList=e.data.list.data,t.newArray1=[],t.newArray2=[],t.cacheTimestamp=Date.now(),t.$nextTick((function(){t.sort(0,t.videoList)}))):(Object(n["a"])(e.msg),t.page=t.page-1,t.isLoadMore=!1)})).catch((function(t){}))},sort:function(t,e){var i=this,o=t||0;e.length>o&&i.getImg(e[o].cover,(function(t,a,n){var s=0,r=0;document.getElementsByClassName("zq-waterfall-left")[0]&&(s=document.getElementsByClassName("zq-waterfall-left")[0].clientHeight),document.getElementsByClassName("zq-waterfall-right")[0]&&(r=document.getElementsByClassName("zq-waterfall-right")[0].clientHeight),s<=r?(i.newArray1.push(e[o]),i.$nextTick((function(){i.sort(o+1,e)}))):(i.newArray2.push(e[o]),i.$nextTick((function(){i.sort(o+1,e)})))}),(function(){e[o].cover="https://bztang.cdlfjy.com/addons/yun_shop/static/app/img/agreen_video@2x.png",i.$nextTick((function(){i.sort(o,e)}))}),this.cacheTimestamp),e.length-1==o&&(this.isLoadMore=!0,this.showLoading=!0)},getMoreData:function(){var t=this;t.isLoadMore=!1,this.showLoading=!1,this.page>=this.total_page?this.showLoading=!0:(this.page=this.page+1,$http.post("plugin.video-share.frontend.video.getList",{page:t.page,search:{category_id:t.category_id}},"加载中").then((function(e){if(1===e.result){var i=e.data.list.data,o=t.videoList.length;t.videoList=t.videoList.concat(i),t.sort(o,t.videoList)}else t.page=t.page-1,t.isLoadMore=!1}),(function(t){})))},toVideo:function(t){var e=this.videoList.findIndex((function(e,i,o){return e.id===t.id}));e=Math.ceil((e+1)/15),this.$route.query.taskID?this.$router.push(this.fun.getUrl("VideoDetail",{fromHome:1},{task_type:"video",taskID:this.$route.query.taskID,taskDay:this.$route.query.taskDay,vid:t.id,page:e,category:this.category_id>0})):this.$router.push(this.fun.getUrl("VideoDetail",{fromHome:1},{vid:t.id,page:e,category:this.category_id>0}))}},components:{yzBlank:r["default"]}},l=d,c=l,g=(i("e585"),i("2877")),m=Object(g["a"])(c,o,a,!1,null,"0745fbd4",null);e["default"]=m.exports},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var o=document.documentElement,a=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 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(){}}}},e585:function(t,e,i){"use strict";i("03ff")}}]);