videoGoods-list-index.d643f8bf.js 18 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["videoGoods-list-index"],{"0288":function(t,e,n){"use strict";n.r(e);var i=n("738c"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"0905":function(t,e,n){"use strict";n.r(e);var i=n("539e"),a=n("1604");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("df51");var s=n("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"d93513ae",null,!1,i["a"],void 0);e["default"]=r.exports},1604:function(t,e,n){"use strict";n.r(e);var i=n("d664"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},3618:function(t,e,n){"use strict";n.r(e);var i=n("5d9d"),a=n("0288");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("5ebb0");var s=n("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"3ca6fda0",null,!1,i["a"],void 0);e["default"]=r.exports},"4c41":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-3ca6fda0] .u-form-item--right__content__slot > uni-view,[data-v-3ca6fda0] .u-form-item--right__content__slot > div,[data-v-3ca6fda0] .u-form-item--right__content__slot > span,[data-v-3ca6fda0] .u-form-item--right__content__slot > uni-text{width:100%}.menu .menuContent[data-v-3ca6fda0]{padding:0 %?30?%;background:#fff}.menu .menuPoa[data-v-3ca6fda0]{position:absolute;left:0;right:0;bottom:0;background:rgba(0,0,0,.5);transition:background-color .2s ease-in;z-index:3}.menu .menuConcent[data-v-3ca6fda0]{padding:0 %?16?% %?30?%;overflow-x:hidden;overflow-y:auto;background:#fff;max-height:80%;transition:.3s all}.menu .iconfont[data-v-3ca6fda0]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.menu.on .menuHeader .iconfont[data-v-3ca6fda0]{-webkit-transform:rotate(0deg);transform:rotate(0deg)}.menu.on .menuPoa[data-v-3ca6fda0]{background:transparent;-webkit-transform:translateY(-200%);transform:translateY(-200%)}.menuTitle[data-v-3ca6fda0]{padding:%?12?% %?30?%;font-size:%?30?%;font-weight:700;color:#262626;background:#fff}.menuHeader[data-v-3ca6fda0]{display:flex;align-items:center;justify-content:space-between}.menuHeader .iconfont[data-v-3ca6fda0]{position:relative;right:%?-18?%;z-index:6;color:#8c8c8c;font-size:%?50?%;transition:.3s all}.scrollView[data-v-3ca6fda0]{flex:1;width:0;overflow:hidden;background:#fff}.scrollView .list[data-v-3ca6fda0]{white-space:nowrap;padding:%?8?% 0;font-size:%?28?%}.scrollView .list .item[data-v-3ca6fda0]{display:inline-block;padding:0 %?20?%}.scrollView .list .item.first[data-v-3ca6fda0]{padding-left:0}.scrollView .list .item .box[data-v-3ca6fda0]{color:#8c8c8c;transition:.3s all}.scrollView .list .item .box.active[data-v-3ca6fda0]{color:#262626;font-weight:700}',""]),t.exports=e},"4efe":function(t,e,n){var i=n("858b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("5b74c406",i,!0,{sourceMap:!1,shadowMode:!1})},"539e":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"menuBox"},t._l(t.categoryList,(function(e){return n("v-uni-view",{key:e.id,staticClass:"item"},[n("v-uni-view",{staticClass:"box",class:[t.getItemClass(e.id)],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.change(e.id)}}},[t._v(t._s(e.name))])],1)})),1)},a=[]},"571c":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("b7c7"));n("bf0f"),n("2797"),n("bd06"),n("e966"),n("aa9c"),n("8f71");var o=i(n("6b25")),s=n("a47f"),r=i(n("551f")),d=i(n("3618")),c=i(n("468e")),l={components:{singleHeader:o.default,pageHeader:d.default,list:c.default},mixins:[s.diySysPageMixin],data:function(){return{menus:[{name:this.$t("videoGoods.list.follow"),sort_type:1},{name:this.$t("goods.recommend"),sort_type:0},{name:this.$t("list.latest"),sort_type:2}],sort_type:0,categoryList:[],cat_id:void 0,scrollIntoView:"",scrollTopY:0,current:0,listData:{},isOpenAdd:!1,isAuthor:!1,refresherEnabled:!0,refresherTtriggered:!1}},computed:{getMenuClass:function(){var t=this;return function(e){return e===t.sort_type?"active":""}}},onShow:function(){var t=this;r.default.videoAuditApplyConfig().then((function(e){0===e.code&&(t.isOpenAdd=e.data.is_author_audit,t.isAuthor=e.data.is_author,t.isApply=e.data.is_apply)}))},onLoad:function(){this.getCategoryList()},methods:{getCategoryList:function(){var t=this,e=[],n={};r.default.categoryList().then((function(i){0===i.code&&(e=i.data||[],e.length&&(t.cat_id=e[0].id,e.forEach((function(t,e){n[e]={id:t.id,page:1,list:[],count:0,isEnd:!1}}))),t.listData=n,t.categoryList=e,t.videoGoodsList())}))},clearData:function(t){var e=this.categoryList,n=this.current,i=this.listData,a=e[n].id,o=e.findIndex((function(t){return t.id===a}));i[o]={page:1,list:[],count:0,isEnd:!1},this.$refs.waterfall[n].clear(),this.videoGoodsList(t)},videoGoodsList:function(t){var e=this.categoryList,n=this.current,i=this.sort_type,o=this.listData,s=e[n].id,d=o[n],c=d.list,l=d.page;d.isEnd||r.default.videoGoodsList({sort_type:i,limit:20,page:l,cat_id:s}).then((function(e){if(t&&t(),0===e.code){var n=e.data,i=n.list,o=n.row_count;d.count=parseInt(o),i.length&&(c.push.apply(c,(0,a.default)(i)),d.page=d.page+1),c.length>=d.count&&(d.isEnd=!0)}})).catch((function(){t&&t()}))},like:function(t){var e=t.id,n=t.is_like,i=this.current,a=this.$refs.waterfall[i];0===n?r.default.videoGoodsVote({vl_id:e,type:"1"},!1).then((function(n){0===n.code&&(a.modify(e,"is_like",1),a.modify(e,"like_count",parseInt(t.like_count)+1))})):r.default.videoGoodsCancelVote({vl_id:e,type:"1"},!1).then((function(n){0===n.code&&(a.modify(e,"is_like",0),a.modify(e,"like_count",parseInt(t.like_count)-1))}))},changeMenus:function(t){var e=this.sort_type,n=this.listData;this.current;if(e!==t){for(var i in this.sort_type=t,n)n[i]={page:1,list:[],count:0,isEnd:!1};var a=this.$refs["waterfall"];a.length&&a.forEach((function(t){t.clear()})),this.videoGoodsList()}},changeCatId:function(t){this.cat_id=t,this.scrollIntoView="item".concat(t),this.videoGoodsList()},handleClickTab:function(t){this.cat_id=t,this.current=this.categoryList.findIndex((function(e){return e.id===t}))},changeSwiper:function(t){var e=t.detail.current;this.current=e,this.changeCatId(this.categoryList[e].id)},scrolltolower:function(){this.videoGoodsList()},add:function(){var t=this.categoryList,e=this.isOpenAdd,n=this.isAuthor,i=this.isApply;if(e&&!n)return i?void this.$utils.showModal("提示","已经提交审核请耐心等待!",!1,(function(){uni.navigateBack({delta:1})})):void this.$utils.toUrl("/videoGoods/register/index");uni.showActionSheet({itemList:[this.$t("videoGoods.list.photograph"),this.$t("videoGoods.userInfo.video")],success:function(e){var n=e.tapIndex;uni.navigateTo({url:"/videoGoods/add/index",success:function(e){e.eventChannel.emit("acceptDataFromOpenedPage",{type:0===n?"2":"1",categoryList:t.filter((function(t){return t.id}))})}})}})},refresherrefresh:function(){var t=this;this.refresherTtriggered||(this.refresherTtriggered=!0,this.clearData((function(){t.refresherTtriggered=!1})))}}};e.default=l},"5d9d":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"menu",class:[t.getClass]},[n("v-uni-view",{staticClass:"menuContent"},[n("v-uni-view",{staticClass:"menuHeader"},[n("v-uni-scroll-view",{staticClass:"scrollView",attrs:{"scroll-x":"true","scroll-into-view":t.scrollIntoView,"scroll-anchoring":!0,"scroll-with-animation":!0}},[n("div",{staticClass:"list"},t._l(t.categoryList,(function(e,i){return n("v-uni-view",{key:e.id,staticClass:"item",class:[0===i?"first":"",t.catId==e.id?"active":""],attrs:{id:"item"+e.id}},[n("v-uni-view",{staticClass:"box",class:[t.getItemClass(e.id)],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.change(e.id)}}},[t._v(t._s(e.name))])],1)})),1)]),n("i",{staticClass:"iconfont icon-arrow-down",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.isShow=!t.isShow}}})],1),n("v-uni-view",{staticClass:"menuPoa",style:{top:"calc("+t.statusBarHeight+"px + 80rpx)"}},[t.isShow?n("v-uni-view",{staticClass:"menuTitle"},[t._v("全部分类")]):t._e(),n("v-uni-view",{staticClass:"menuConcent"},[n("category",{attrs:{categoryList:t.categoryList,catId:t.catId},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),function(e){return t.change(e)}.apply(void 0,arguments)}}})],1)],1)],1)],1)},a=[]},"5ebb0":function(t,e,n){"use strict";var i=n("c39d"),a=n.n(i);a.a},"738c":function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var a=i(n("0905")),o={components:{category:a.default},props:{categoryList:{type:Array,default:function(){return[]}},catId:{type:[String,Number],default:void 0},scrollIntoView:{type:String,default:""},current:{type:Number,default:0}},data:function(){return{isShow:!1}},computed:{getItemClass:function(){var t=this;return function(e){return e===t.catId?"active":""}},getClass:function(){return this.isShow?"":"on"}},methods:{change:function(t){this.isShow=!1,this.catId!==t&&this.$emit("change",t)}}};e.default=o},"7fbf":function(t,e,n){var i=n("b1b4");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("08fbdaf6",i,!0,{sourceMap:!1,shadowMode:!1})},"858b":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-65d743d8] .u-form-item--right__content__slot > uni-view,[data-v-65d743d8] .u-form-item--right__content__slot > div,[data-v-65d743d8] .u-form-item--right__content__slot > span,[data-v-65d743d8] .u-form-item--right__content__slot > uni-text{width:100%}.list[data-v-65d743d8]{display:flex;flex-direction:column;height:100vh;overflow:hidden;box-sizing:border-box;padding-bottom:env(safe-area-inset-bottom)}.headerNav[data-v-65d743d8]{display:flex;align-items:center;justify-content:center;font-weight:400;color:#262626;font-size:%?30?%}.headerNav .item[data-v-65d743d8]{padding:0 %?16?%;-webkit-transition:.3s all;transition:.3s all}.headerNav .active[data-v-65d743d8]{font-size:%?40?%;font-weight:700}.scrollViewXScroll[data-v-65d743d8]{flex:1;width:100%}.swiper[data-v-65d743d8],\n.swiperItem[data-v-65d743d8]{height:100%}.scrollViewY[data-v-65d743d8]{position:relative;display:flex;flex-wrap:wrap;width:100%;background:#f2f2f2;height:100%}.xItem[data-v-65d743d8]{height:%?300?%}.noMore[data-v-65d743d8]{padding:%?40?% 0;font-size:%?22?%;text-align:center;color:#c1c1c1}.addForm[data-v-65d743d8]{position:fixed;right:0;bottom:%?148?%;display:flex;align-items:center;padding:%?10?% %?14?% %?10?% %?20?%;background:#f0250e;border-radius:32px 0 0 32px;color:#fff}.addForm .iconfont[data-v-65d743d8]{font-size:%?40?%}.addForm .text[data-v-65d743d8]{margin-left:%?8?%;font-size:%?28?%}',""]),t.exports=e},8784:function(t,e,n){"use strict";n.r(e);var i=n("9a3e"),a=n("f4ff");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("bc06");var s=n("828b"),r=Object(s["a"])(a["default"],i["b"],i["c"],!1,null,"65d743d8",null,!1,i["a"],void 0);e["default"]=r.exports},"9a3e":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uWaterfall:n("0481").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"list"},[n("singleHeader",{staticClass:"boxHeight"},[n("v-uni-view",{staticClass:"headerNav"},t._l(t.menus,(function(e){return n("v-uni-view",{key:e.sort_type,staticClass:"item",class:[t.getMenuClass(e.sort_type)],on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeMenus(e.sort_type)}}},[t._v(t._s(e.name))])})),1)],1),n("pageHeader",{staticClass:"boxHeight",attrs:{categoryList:t.categoryList,catId:t.cat_id,scrollIntoView:t.scrollIntoView,statusBarHeight:t.statusBarHeight},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.handleClickTab.apply(void 0,arguments)}}}),n("v-uni-view",{staticClass:"scrollViewXScroll"},[n("v-uni-swiper",{staticClass:"swiper",attrs:{current:t.current},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeSwiper.apply(void 0,arguments)}}},t._l(t.listData,(function(e,i){return n("v-uni-swiper-item",{key:i,staticClass:"swiperItem"},[n("v-uni-scroll-view",{staticClass:"scrollViewY",attrs:{"scroll-y":"true","scroll-into-view":t.scrollIntoView,"scroll-anchoring":!0,"scroll-with-animation":!0,"refresher-enabled":t.refresherEnabled,"refresher-triggered":t.refresherTtriggered},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},refresherrefresh:function(e){arguments[0]=e=t.$handleEvent(e),t.refresherrefresh.apply(void 0,arguments)}}},[n("u-waterfall",{ref:"waterfall",refInFor:!0,attrs:{value:e.list,idKey:"id"},scopedSlots:t._u([{key:"left",fn:function(e){var i=e.leftList;return[n("list",{attrs:{list:i,isWaterfall:!0},on:{like:function(e){arguments[0]=e=t.$handleEvent(e),t.like.apply(void 0,arguments)}}})]}},{key:"right",fn:function(e){var i=e.rightList;return[n("list",{attrs:{list:i,isWaterfall:!0},on:{like:function(e){arguments[0]=e=t.$handleEvent(e),t.like.apply(void 0,arguments)}}})]}}],null,!0)}),n("v-uni-view",{staticClass:"noMore"},[t._v(t._s(t.$t("home.noMore")))])],1)],1)})),1)],1),n("v-uni-view",{staticClass:"addForm",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.add.apply(void 0,arguments)}}},[n("i",{staticClass:"iconfont icon-video"}),n("v-uni-view",{staticClass:"text"},[t._v(t._s(t.$t("videoGoods.list.add")))])],1),n("transitionPage")],1)},o=[]},b1b4:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */[data-v-d93513ae] .u-form-item--right__content__slot > uni-view,[data-v-d93513ae] .u-form-item--right__content__slot > div,[data-v-d93513ae] .u-form-item--right__content__slot > span,[data-v-d93513ae] .u-form-item--right__content__slot > uni-text{width:100%}.menuBox[data-v-d93513ae]{overflow:hidden}.menuBox .item[data-v-d93513ae]{float:left;width:25%;overflow:hidden;padding:%?12?% %?14?%}.menuBox .box[data-v-d93513ae]{height:%?68?%;line-height:%?68?%;border-radius:%?8?%;background:#f8f8f8;font-size:%?26?%;font-weight:700;color:#262626;text-align:center}.menuBox .box.active[data-v-d93513ae]{background:#fdf1f0;color:#f0250e}',""]),t.exports=e},bc06:function(t,e,n){"use strict";var i=n("4efe"),a=n.n(i);a.a},c39d:function(t,e,n){var i=n("4c41");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("d3b9efa6",i,!0,{sourceMap:!1,shadowMode:!1})},d664:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={props:{categoryList:{type:Array,default:function(){return[]}},catId:{type:[String,Number],default:void 0}},data:function(){return{}},computed:{getItemClass:function(){var t=this;return function(e){return e===t.catId?"active":""}}},methods:{change:function(t){this.catId!==t&&this.$emit("change",t)}}};e.default=i},df51:function(t,e,n){"use strict";var i=n("7fbf"),a=n.n(i);a.a},f4ff:function(t,e,n){"use strict";n.r(e);var i=n("571c"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a}}]);