船员公众号
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
gzh_chuanyuan/unpackage/dist/build/web/static/js/pages-user-video.2671a92c.js

1 lines
4.9 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-user-video"],{"3b65":function(t,i,e){"use strict";e.r(i);var n=e("a1b1"),a=e.n(n);for(var o in n)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return n[t]}))}(o);i["default"]=a.a},"4ac4":function(t,i,e){"use strict";e.r(i);var n=e("84d5"),a=e("3b65");for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);e("c46f");var r=e("828b"),s=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"3c44c51a",null,!1,n["a"],void 0);i["default"]=s.exports},"84d5":function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return o})),e.d(i,"a",(function(){return n}));var n={uEmpty:e("7018").default,uPopup:e("8741").default},a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"video"},[t._l(t.list,(function(i,n){return e("v-uni-view",{key:n,staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPage(i.video_url)}}},[e("v-uni-image",{staticClass:"pic",attrs:{src:i.image}}),e("v-uni-view",{staticClass:"n"},[t._v(t._s(i.title))]),e("v-uni-image",{staticClass:"play",attrs:{src:t.staticUrl("/static/icon-play.png")}})],1)})),0==t.total?e("v-uni-view",{staticClass:"empty",staticStyle:{"margin-top":"250rpx"}},[e("u-empty",{attrs:{mode:"data",text:"暂无相关信息"}})],1):t._e(),e("u-popup",{attrs:{show:t.isShow,closeable:!0,mode:"center"},on:{close:function(i){arguments[0]=i=t.$handleEvent(i),t.close.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"video-popup"},[e("v-uni-video",{attrs:{src:t.video_url,autoplay:!0,controls:!0}})],1)],1)],2)},o=[]},"886c":function(t,i,e){var n=e("c86c");i=n(!1),i.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.video[data-v-3c44c51a]{width:100%;min-height:calc(100vh - 44px);background-color:#f6f6f6;padding:0 %?25?% %?25?%;overflow:hidden;box-sizing:border-box}.video-popup[data-v-3c44c51a]{width:%?690?%;height:%?480?%}.video-popup uni-video[data-v-3c44c51a]{width:100%;height:100%}.video .item[data-v-3c44c51a]{padding:%?20?%;overflow:hidden;border-radius:%?20?%;margin-top:%?20?%;background-color:#fff;position:relative}.video .item .pic[data-v-3c44c51a]{width:100%;height:%?300?%;border-radius:%?10?%}.video .item .n[data-v-3c44c51a]{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:%?30?%;font-weight:400;color:#222;margin-top:%?30?%}.video .item .play[data-v-3c44c51a]{width:%?80?%;height:%?80?%;position:absolute;left:50%;top:%?150?%;margin-left:%?-40?%;z-index:2}',""]),t.exports=i},a1b1:function(t,i,e){"use strict";e("6a54");var n=e("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("c223"),e("473f"),e("bf0f"),e("aa9c");var a=n(e("2634")),o=n(e("2fdc")),r={data:function(){return{isShow:!1,list:[],total:1,page:1,category_id:"",video_url:""}},onLoad:function(t){this.category_id=t.id,this.getList()},onReachBottom:function(){this.list.length<=this.total&&(this.page++,this.getCircleList())},methods:{close:function(){this.isShow=!1},openPage:function(t){this.isShow=!0,this.video_url=t},getList:function(){var t=this;return(0,o.default)((0,a.default)().mark((function i(){var e,n,o,r;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:return uni.showLoading({title:"加载中"}),i.next=3,t.$api.videoList({page:t.page,category_id:t.category_id});case 3:e=i.sent,n=e.code,o=e.data,r=e.msg,200==n?(uni.hideLoading(),t.list=t.arrayUnique(t.list.concat(o.list),"id"),t.total=o.total):(uni.hideLoading(),uni.showToast({icon:"none",title:r}));case 8:case"end":return i.stop()}}),i)})))()},arrayUnique:function(t,i){var e={};return t.reduce((function(t,n){return!e[n[i]]&&(e[n[i]]=t.push(n)),t}),[])}}};i.default=r},c46f:function(t,i,e){"use strict";var n=e("f22d"),a=e.n(n);a.a},f22d:function(t,i,e){var n=e("886c");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=e("967d").default;a("6f2059ec",n,!0,{sourceMap:!1,shadowMode:!1})}}]);