app-sub-service.js 39 KB

1
  1. (this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["pagesVideo/app-sub-service"],{"20cf":function(t,e,s){"use strict";s.r(e);var i=s("6ca9"),a=s("7946");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var n=s("f0c5"),c=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},"31bc":function(t,e,s){"use strict";var i=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(s("a34a")),r=i(s("448a")),n=i(s("9523")),c=i(s("c973")),o=i(s("aeee"));function l(t,e){var s="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return u(t,e)}(t))||e&&t&&"number"===typeof t.length){s&&(t=s);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,n=!0,c=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){c=!0,r=t},f:function(){try{n||null==s.return||s.return()}finally{if(c)throw r}}}}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=new Array(e);s<e;s++)i[s]=t[s];return i}function f(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function d(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?f(Object(s),!0).forEach((function(e){(0,n.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):f(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var _={components:{cDrawer:o.default},data:function(){return{searchInfo:{},list:[],total:0,page:0,skip:0,limit:10,is_bottom:!1,scrollTop:0,drawer:{title:"\u7b5b\u9009",show:!1,mode:"right"},isnoList:[],firmList:[],typeList:[],placeList:[],yearList:[],actorList:[]}},onLoad:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,e.next=3,s.searchOther();case 3:return e.next=5,s.search();case 5:case"end":return e.stop()}}),e)})))()},onHide:function(){},onPullDownRefresh:function(){var t=(0,c.default)(a.default.mark((function t(){var e;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,e.clearPage(),t.next=4,e.search();case 4:uni.stopPullDownRefresh();case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{search:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,n,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,i={skip:s.skip,limit:s.limit},e.next=4,s.$api("videos","GET",d(d({},i),s.searchInfo));case 4:n=e.sent,"0"==n.errcode&&(c=[].concat((0,r.default)(s.list),(0,r.default)(n.data)),s.$set(s,"list",c),s.$set(s,"total",n.total));case 6:case"end":return e.stop()}}),e)})))()},toInput:function(t){var e=t.detail.value;e?this.$set(this.searchInfo,"title",e):delete this.searchInfo.title,this.clearPage(),this.search()},toPage:function(){var t=this.list,e=this.limit;if(this.total>t.length){uni.showLoading({title:"\u52a0\u8f7d\u4e2d",mask:!0});var s=this.page+1;this.$set(this,"page",s);var i=s*e;this.$set(this,"skip",i),this.search(),uni.hideLoading()}else this.$set(this,"is_bottom",!0)},toScroll:function(t){var e=this.scrollTop;this.$set(this,"scrollTop",t.detail.scrollTop);var s=Math.sign(e-t.detail.scrollTop);1==s&&this.$set(this,"is_bottom",!1)},toFilter:function(){this.$set(this,"drawer",{title:"\u7b5b\u9009",show:!0,mode:"right"})},toReset:function(){this.$set(this,"searchInfo",{}),this.clearPage(),this.search()},toSave:function(){this.clearPage(),this.toClose(),this.search()},toClose:function(){this.$set(this,"drawer",{title:"\u7b5b\u9009",show:!1,mode:"right"})},videoView:function(t){uni.navigateTo({url:"/pagesVideo/video/index?id=".concat(t._id)})},searchOther:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,r,n,c,o,u;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,e.next=3,s.$api("dictdata","GET",{type:"is_no"});case 3:return i=e.sent,"0"==i.errcode&&s.$set(s,"isnoList",i.data),e.next=7,s.$api("scenetype","GET",{is_use:"0"});case 7:if(i=e.sent,"0"!=i.errcode){e.next=31;break}r=l(i.data),e.prev=10,r.s();case 12:if((n=r.n()).done){e.next=23;break}return c=n.value,o=void 0,u="","\u5382\u5546"==c.title?u="firm":"\u7c7b\u578b"==c.title?u="type":"\u4ea7\u5730"==c.title?u="place":"\u5e74\u4efd"==c.title?u="year":"\u6f14\u5458"==c.title&&(u="actor"),e.next=19,s.$api("scenedata","GET",{is_use:"0",type_id:c._id});case 19:o=e.sent,"0"==o.errcode&&s.$set(s,"".concat(u,"List"),o.data);case 21:e.next=12;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e["catch"](10),r.e(e.t0);case 28:return e.prev=28,r.f(),e.finish(28);case 31:case"end":return e.stop()}}),e,null,[[10,25,28,31]])})))()},clearPage:function(){this.$set(this,"list",[]),this.$set(this,"skip",0),this.$set(this,"limit",10),this.$set(this,"page",0),this.searchInfo.title||delete this.searchInfo.title}}};e.default=_},"6ca9":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return i}));var i={uniIcons:s("e268").default,uniPopup:s("0f3a").default,uniPopupDialog:s("34a7").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[t._$s(2,"i",1==t.video_user_vip)?s("video",{attrs:{src:t._$s(2,"a-src",t.info.vUrl),poster:t._$s(2,"a-poster",t.info.iUrl),title:t._$s(2,"a-title",t.info.title),_i:2}}):t._$s(3,"e",0==t.video_user_vip)?s("image",{staticClass:t._$s(3,"sc","image"),attrs:{src:t._$s(3,"a-src",t.info.iUrl),_i:3}}):t._e()]),s("view",{staticClass:t._$s(4,"sc","two"),attrs:{_i:4}},[s("view",{staticClass:t._$s(5,"sc","two_1"),attrs:{_i:5}},t._l(t._$s(6,"f",{forItems:t.tabList}),(function(e,i,a,r){return s("view",{key:t._$s(6,"f",{forIndex:a,key:i}),class:t._$s("6-"+r,"c",["list",t.active==i?"active":""]),attrs:{_i:"6-"+r},on:{click:function(e){return t.tabChange(i)}}},[s("span",[t._v(t._$s("7-"+r,"t0-0",t._s(e.title)))])])})),0),s("view",{staticClass:t._$s(8,"sc","two_2"),attrs:{_i:8}},[t._$s(9,"i",0===t.active)?s("view",{staticClass:t._$s(9,"sc","tab_1"),attrs:{_i:9}},[s("view",{staticClass:t._$s(10,"sc","btn"),attrs:{_i:10}},[s("view",{staticClass:t._$s(11,"sc","btn_1"),attrs:{_i:11},on:{click:function(e){return t.toLikes()}}},[s("span",{staticClass:t._$s(12,"sc","span"),attrs:{_i:12}},[s("uni-icons",{attrs:{type:1==t.likeInfo.is?"heart-filled":"heart",size:"15",color:"va(--rgbfff)",_i:13}}),s("span")],1)]),s("view",{staticClass:t._$s(15,"sc","btn_1"),attrs:{_i:15},on:{click:function(e){return t.toCollects()}}},[s("span",{staticClass:t._$s(16,"sc","span"),attrs:{_i:16}},[s("uni-icons",{attrs:{type:1==t.collectInfo.is?"heart-filled":"heart",size:"15",color:"va(--rgbfff)",_i:17}}),s("span")],1)]),s("view",{staticClass:t._$s(19,"sc","btn_1"),attrs:{_i:19},on:{click:function(e){return t.toShare()}}},[s("span",{staticClass:t._$s(20,"sc","span"),attrs:{_i:20}},[s("uni-icons",{attrs:{type:"redo-filled",size:"15",color:"va(--rgbfff)",_i:21}}),s("span")],1)])]),s("view",{staticClass:t._$s(23,"sc","title"),attrs:{_i:23}},[s("span",[s("uni-icons",{attrs:{type:"heart-filled",size:"15",color:"var(--rgbfff)",_i:25}})],1),s("span",[t._$s(27,"i","1"==t.info.is_vip)?s("uni-icons",{attrs:{type:"vip-filled",size:"15",color:"var(--rgbffd)",_i:27}}):t._e(),t._v(t._$s(26,"t1-0",t._s(t.info.title)))],1)]),s("view",{staticClass:t._$s(28,"sc","actor"),attrs:{_i:28}},[s("span",[s("uni-icons",{attrs:{type:"person-filled",size:"15",color:"var(--rgbfff)",_i:30}})],1),s("span",{attrs:{_i:31},on:{click:function(e){return t.toCommon("pagesVideo/more/index","head_actor="+t.info.head_actor)}}},[t._v(t._$s(31,"t0-0",t._s(t.info.head_actor_name)))])]),s("view",{staticClass:t._$s(32,"sc","actor"),attrs:{_i:32}},[s("view",{staticClass:t._$s(33,"sc","actor_1"),attrs:{_i:33}},[s("uni-icons",{attrs:{type:"staff",size:"15",color:"var(--rgbfff)",_i:34}})],1),s("view",{staticClass:t._$s(35,"sc","actor_2"),attrs:{_i:35}},[s("scroll-view",{staticClass:t._$s(36,"sc","actor_scroll_view"),attrs:{_i:36}},t._l(t._$s(37,"f",{forItems:t.info.actorList}),(function(e,i,a,r){return s("view",{key:t._$s(37,"f",{forIndex:a,key:i}),staticClass:t._$s("37-"+r,"sc","actorList"),attrs:{_i:"37-"+r},on:{click:function(s){return t.toCommon("pagesVideo/more/index","head_actor="+e._id)}}},[s("image",{staticClass:t._$s("38-"+r,"sc","image"),attrs:{src:t._$s("38-"+r,"a-src",e.img_url&&e.img_url.length>0?e.img_url[0].url:""),_i:"38-"+r}}),s("view",{staticClass:t._$s("39-"+r,"sc","name textOver"),attrs:{_i:"39-"+r}},[t._v(t._$s("39-"+r,"t0-0",t._s(e.title)))])])})),0)])]),s("view",{staticClass:t._$s(40,"sc","brief"),attrs:{_i:40}},[s("span",[s("uni-icons",{attrs:{type:"star-filled",size:"15",color:"var(--rgbfff)",_i:42}})],1),s("span",[t._v(t._$s(43,"t0-0",t._s(t.info.brief)))])]),s("view",{staticClass:t._$s(44,"sc","other"),attrs:{_i:44}},[s("view",{staticClass:t._$s(45,"sc","other_1"),attrs:{_i:45}},[s("uni-icons",{attrs:{type:"videocam-filled",size:"15",color:"var(--rgbfff)",_i:46}})],1),s("view",{staticClass:t._$s(47,"sc","other_2"),attrs:{_i:47}},t._l(t._$s(48,"f",{forItems:t.firmvideoList}),(function(e,i,a,r){return s("view",{key:t._$s(48,"f",{forIndex:a,key:i}),staticClass:t._$s("48-"+r,"sc","firmvideoList"),attrs:{_i:"48-"+r},on:{click:function(s){return t.videoView(e)}}},[s("image",{staticClass:t._$s("49-"+r,"sc","image"),attrs:{src:t._$s("49-"+r,"a-src",e.img_url&&e.img_url.length>0?e.img_url[0].url:""),_i:"49-"+r}}),s("view",{staticClass:t._$s("50-"+r,"sc","name textOver"),attrs:{_i:"50-"+r}},[t._v(t._$s("50-"+r,"t0-0",t._s(e.title)))]),s("view",{staticClass:t._$s("51-"+r,"sc","other"),attrs:{_i:"51-"+r}},[s("view",{staticClass:t._$s("52-"+r,"sc","other_1"),attrs:{_i:"52-"+r}},[s("uni-icons",{attrs:{type:"eye",color:"var(--rgbfff)",size:"12",_i:"53-"+r}}),t._v(t._$s("52-"+r,"t1-0",t._s(e.view_num)))],1),s("view",{staticClass:t._$s("54-"+r,"sc","other_2"),attrs:{_i:"54-"+r}},[t._v(t._$s("54-"+r,"t0-0",t._s(e.time_num)))])])])})),0)])]):t._$s(55,"e",1===t.active)?s("view",{staticClass:t._$s(55,"sc","tab_2"),attrs:{_i:55}},[s("scroll-view",{staticClass:t._$s(56,"sc","scroll-view"),attrs:{_i:56},on:{scrolltolower:t.toPage,scroll:t.toScroll}},[s("view",{staticClass:t._$s(57,"sc","list-scroll-view"),attrs:{_i:57}},[s("view",{staticClass:t._$s(58,"sc","tab_2_1"),attrs:{_i:58}},t._l(t._$s(59,"f",{forItems:t.discussList}),(function(e,i,a,r){return s("view",{key:t._$s(59,"f",{forIndex:a,key:i}),staticClass:t._$s("59-"+r,"sc","discussList"),attrs:{_i:"59-"+r}},[s("view",{staticClass:t._$s("60-"+r,"sc","dis_1"),attrs:{_i:"60-"+r}},[s("view",{staticClass:t._$s("61-"+r,"sc","l"),attrs:{_i:"61-"+r}},[s("image",{staticClass:t._$s("62-"+r,"sc","image"),attrs:{src:t._$s("62-"+r,"a-src",e.user_img_url&&e.user_img_url.length>0?e.user_img_url[0].url:""),_i:"62-"+r}})]),s("view",{staticClass:t._$s("63-"+r,"sc","c"),attrs:{_i:"63-"+r}},[t._v(t._$s("63-"+r,"t0-0",t._s(e.user_name)))]),s("view",{staticClass:t._$s("64-"+r,"sc","r"),attrs:{_i:"64-"+r}},[t._v(t._$s("64-"+r,"t0-0",t._s(e.create_time)))])]),s("view",{staticClass:t._$s("65-"+r,"sc","dis_2"),attrs:{_i:"65-"+r}},[t._v(t._$s("65-"+r,"t0-0",t._s(e.content)))])])})),0)])]),s("view",{staticClass:t._$s(66,"sc","chatBtn"),attrs:{_i:66}},[s("button",{attrs:{_i:67},on:{click:t.diaChat}})])]):t._e()])]),s("uni-popup",{ref:"dialog",attrs:{type:"dialog",_i:68}},[s("uni-popup-dialog",{attrs:{mode:"input",title:"\u8bc4\u8bba","before-close":!0,_i:69},on:{close:t.diaClose,confirm:t.diaSave}})],1)],1)},r=[]},7946:function(t,e,s){"use strict";s.r(e);var i=s("c3b4"),a=s.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},"7ab2":function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return i}));var i={uniDrawer:s("0f30").default,uniIcons:s("e268").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",[s("uni-drawer",{ref:"drawerShow",attrs:{mode:t.drawer.mode,maskClick:!0,width:290,_i:1},on:{change:t.drawerChange}},[s("view",{staticClass:t._$s(2,"sc","drawer"),attrs:{_i:2}},[s("view",{staticClass:t._$s(3,"sc","drawer_1"),attrs:{_i:3}},[s("view",{staticClass:t._$s(4,"sc","left textOver"),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.drawer.title||"\u5f39\u7a97")))]),s("view",{staticClass:t._$s(5,"sc","right"),attrs:{_i:5}},[s("uni-icons",{attrs:{type:"clear",size:"30",_i:6},on:{click:function(e){return t.toClose()}}})],1)]),s("view",{staticClass:t._$s(7,"sc","drawer_2"),attrs:{_i:7}},[s("scroll-view",{staticClass:t._$s(8,"sc","scroll-view"),attrs:{_i:8}},[s("view",{staticClass:t._$s(9,"sc","list-scroll-view"),attrs:{_i:9}},[s("view",{staticClass:t._$s(10,"sc","info"),attrs:{_i:10}},[t._t("default",null,{_i:11})],2)])])])])])],1)},r=[]},9687:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return i}));var i={uniIcons:s("e268").default,uniForms:s("42e9").default,uniFormsItem:s("9e90").default,uniDataCheckbox:s("07ac").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[s("view",{staticClass:t._$s(2,"sc","one_1"),attrs:{_i:2}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchInfo.title,expression:"searchInfo.title"}],attrs:{_i:3},domProps:{value:t._$s(3,"v-model",t.searchInfo.title)},on:{blur:t.toInput,input:function(e){e.target.composing||t.$set(t.searchInfo,"title",e.target.value)}}})]),s("view",{staticClass:t._$s(4,"sc","one_2"),attrs:{_i:4}},[s("button",{attrs:{_i:5},on:{click:function(e){return t.toFilter()}}})])]),s("view",{staticClass:t._$s(6,"sc","two"),attrs:{_i:6}},[s("scroll-view",{staticClass:t._$s(7,"sc","scroll-view"),attrs:{_i:7},on:{scrolltolower:t.toPage,scroll:t.toScroll}},[s("view",{staticClass:t._$s(8,"sc","list-scroll-view"),attrs:{_i:8}},[s("view",{staticClass:t._$s(9,"sc","two_1"),attrs:{_i:9}},t._l(t._$s(10,"f",{forItems:t.list}),(function(e,i,a,r){return s("view",{key:t._$s(10,"f",{forIndex:a,key:i}),staticClass:t._$s("10-"+r,"sc","list"),attrs:{_i:"10-"+r},on:{click:function(s){return t.videoView(e)}}},[s("image",{staticClass:t._$s("11-"+r,"sc","image"),attrs:{src:t._$s("11-"+r,"a-src",e.img_url&&e.img_url.length>0?e.img_url[0].url:""),_i:"11-"+r}}),s("view",{staticClass:t._$s("12-"+r,"sc","name textOver"),attrs:{_i:"12-"+r}},[t._v(t._$s("12-"+r,"t0-0",t._s(e.title)))]),s("view",{staticClass:t._$s("13-"+r,"sc","other"),attrs:{_i:"13-"+r}},[s("view",{staticClass:t._$s("14-"+r,"sc","other_1"),attrs:{_i:"14-"+r}},[s("uni-icons",{attrs:{type:"eye",color:"var(--rgbfff)",size:"12",_i:"15-"+r}}),t._v(t._$s("14-"+r,"t1-0",t._s(e.view_num)))],1),s("view",{staticClass:t._$s("16-"+r,"sc","other_2"),attrs:{_i:"16-"+r}},[t._v(t._$s("16-"+r,"t0-0",t._s(e.time_num)))])]),t._$s("17-"+r,"i","1"==e.is_vip)?s("view",{staticClass:t._$s("17-"+r,"sc","vip"),attrs:{_i:"17-"+r}},[s("span")]):t._e()])})),0)])])]),s("c-drawer",{attrs:{drawer:t.drawer,_i:19},on:{toClose:t.toClose}},[s("view",{staticClass:t._$s(20,"sc","drawer_one"),attrs:{_i:20}},[s("view",{staticClass:t._$s(21,"sc","drawer_one_1"),attrs:{_i:21}},[s("uni-forms",{ref:"searchInfo",attrs:{model:t.searchInfo,"label-width":"auto",_i:22}},[s("uni-forms-item",{attrs:{_i:23}},[[s("view",{staticClass:t._$s(25,"sc","label"),attrs:{_i:25}}),s("view",{staticClass:t._$s(26,"sc","value"),attrs:{_i:26}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.isnoList,map:{text:"label",value:"value"},_i:27},model:{value:t._$s(27,"v-model",t.searchInfo.is_vip),callback:function(e){t.$set(t.searchInfo,"is_vip",e)},expression:"searchInfo.is_vip"}})],1)]],2),s("uni-forms-item",{attrs:{_i:28}},[[s("view",{staticClass:t._$s(30,"sc","label"),attrs:{_i:30}}),s("view",{staticClass:t._$s(31,"sc","value"),attrs:{_i:31}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.isnoList,map:{text:"label",value:"value"},_i:32},model:{value:t._$s(32,"v-model",t.searchInfo.is_hot),callback:function(e){t.$set(t.searchInfo,"is_hot",e)},expression:"searchInfo.is_hot"}})],1)]],2),s("uni-forms-item",{attrs:{_i:33}},[[s("view",{staticClass:t._$s(35,"sc","label"),attrs:{_i:35}}),s("view",{staticClass:t._$s(36,"sc","value"),attrs:{_i:36}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.firmList,map:{text:"title",value:"id"},_i:37},model:{value:t._$s(37,"v-model",t.searchInfo.firm_id),callback:function(e){t.$set(t.searchInfo,"firm_id",e)},expression:"searchInfo.firm_id"}})],1)]],2),s("uni-forms-item",{attrs:{_i:38}},[[s("view",{staticClass:t._$s(40,"sc","label"),attrs:{_i:40}}),s("view",{staticClass:t._$s(41,"sc","value"),attrs:{_i:41}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.typeList,map:{text:"title",value:"id"},_i:42},model:{value:t._$s(42,"v-model",t.searchInfo.type_id),callback:function(e){t.$set(t.searchInfo,"type_id",e)},expression:"searchInfo.type_id"}})],1)]],2),s("uni-forms-item",{attrs:{_i:43}},[[s("view",{staticClass:t._$s(45,"sc","label"),attrs:{_i:45}}),s("view",{staticClass:t._$s(46,"sc","value"),attrs:{_i:46}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.placeList,map:{text:"title",value:"id"},_i:47},model:{value:t._$s(47,"v-model",t.searchInfo.place_id),callback:function(e){t.$set(t.searchInfo,"place_id",e)},expression:"searchInfo.place_id"}})],1)]],2),s("uni-forms-item",{attrs:{_i:48}},[[s("view",{staticClass:t._$s(50,"sc","label"),attrs:{_i:50}}),s("view",{staticClass:t._$s(51,"sc","value"),attrs:{_i:51}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.yearList,map:{text:"title",value:"id"},_i:52},model:{value:t._$s(52,"v-model",t.searchInfo.year),callback:function(e){t.$set(t.searchInfo,"year",e)},expression:"searchInfo.year"}})],1)]],2),s("uni-forms-item",{attrs:{_i:53}},[[s("view",{staticClass:t._$s(55,"sc","label"),attrs:{_i:55}}),s("view",{staticClass:t._$s(56,"sc","value"),attrs:{_i:56}},[s("uni-data-checkbox",{attrs:{mode:"tag",localdata:t.actorList,map:{text:"title",value:"id"},_i:57},model:{value:t._$s(57,"v-model",t.searchInfo.head_actor),callback:function(e){t.$set(t.searchInfo,"head_actor",e)},expression:"searchInfo.head_actor"}})],1)]],2)],1)],1),s("view",{staticClass:t._$s(58,"sc","drawer_one_2"),attrs:{_i:58}},[s("button",{attrs:{_i:59},on:{click:function(e){return t.toReset()}}}),s("button",{attrs:{_i:60},on:{click:function(e){return t.toSave()}}})])])])],1)},r=[]},"9cb2":function(t,e,s){"use strict";s.r(e);var i=s("31bc"),a=s.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},ab1c:function(t,e,s){"use strict";s.r(e);var i=s("c042"),a=s("d66b");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var n=s("f0c5"),c=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},abe0:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{drawer:{type:Object}},data:function(){return{}},methods:{drawerChange:function(t){0==t&&this.$emit("toClose")},drawerOpen:function(){this.$refs.drawerShow.open()},toClose:function(){this.$emit("toClose")},drawerClose:function(){this.$refs.drawerShow.close()}},watch:{drawer:function(t,e){1==t.show&&0==e.show?this.drawerOpen():0==t.show&&1==e.show&&this.drawerClose()}}};e.default=i},aeee:function(t,e,s){"use strict";s.r(e);var i=s("7ab2"),a=s("b0d9");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var n=s("f0c5"),c=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},b0d9:function(t,e,s){"use strict";s.r(e);var i=s("abe0"),a=s.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a},bcdd:function(t,e,s){"use strict";var i=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(s("a34a")),r=i(s("448a")),n=i(s("9523")),c=i(s("c973"));function o(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?o(Object(s),!0).forEach((function(e){(0,n.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}var u={data:function(){return{searchInfo:{},list:[],total:0,page:0,skip:0,limit:10,is_bottom:!1,scrollTop:0}},onLoad:function(t){this.$set(this,"searchInfo",t),this.searchOther(),this.search()},onHide:function(){},onPullDownRefresh:function(){var t=(0,c.default)(a.default.mark((function t(){var e;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,e.clearPage(),t.next=4,e.search();case 4:uni.stopPullDownRefresh();case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}(),methods:{search:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,n,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,i={skip:s.skip,limit:s.limit},e.next=4,s.$api("videos","GET",l(l({},i),s.searchInfo));case 4:n=e.sent,"0"==n.errcode&&(c=[].concat((0,r.default)(s.list),(0,r.default)(n.data)),s.$set(s,"list",c),s.$set(s,"total",n.total));case 6:case"end":return e.stop()}}),e)})))()},searchOther:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t,!s.searchInfo.is_hot){e.next=5;break}uni.setNavigationBarTitle({title:"\u70ed\u64ad"}),e.next=37;break;case 5:if(!s.searchInfo.firm_id){e.next=11;break}return e.next=8,s.$api("scenedata/".concat(s.searchInfo.firm_id));case 8:i=e.sent,e.next=36;break;case 11:if(!s.searchInfo.type_id){e.next=17;break}return e.next=14,s.$api("scenedata/".concat(s.searchInfo.type_id));case 14:i=e.sent,e.next=36;break;case 17:if(!s.searchInfo.place_id){e.next=23;break}return e.next=20,s.$api("scenedata/".concat(s.searchInfo.place_id));case 20:i=e.sent,e.next=36;break;case 23:if(!s.searchInfo.year){e.next=29;break}return e.next=26,s.$api("scenedata/".concat(s.searchInfo.year));case 26:i=e.sent,e.next=36;break;case 29:if(!s.searchInfo.head_actor){e.next=35;break}return e.next=32,s.$api("scenedata/".concat(s.searchInfo.head_actor));case 32:i=e.sent,e.next=36;break;case 35:i={errcode:"0",data:{title:"\u6700\u65b0"}};case 36:"0"==i.errcode&&uni.setNavigationBarTitle({title:i.data.title});case 37:case"end":return e.stop()}}),e)})))()},toInput:function(t){var e=t.detail.value;e?this.$set(this.searchInfo,"title",e):delete this.searchInfo.title,this.clearPage(),this.search()},toPage:function(){var t=this.list,e=this.limit;if(this.total>t.length){uni.showLoading({title:"\u52a0\u8f7d\u4e2d",mask:!0});var s=this.page+1;this.$set(this,"page",s);var i=s*e;this.$set(this,"skip",i),this.search(),uni.hideLoading()}else this.$set(this,"is_bottom",!0)},toScroll:function(t){var e=this.scrollTop;this.$set(this,"scrollTop",t.detail.scrollTop);var s=Math.sign(e-t.detail.scrollTop);1==s&&this.$set(this,"is_bottom",!1)},videoView:function(t){uni.navigateTo({url:"/pagesVideo/video/index?id=".concat(t._id)})},clearPage:function(){this.$set(this,"list",[]),this.$set(this,"skip",0),this.$set(this,"limit",10),this.$set(this,"page",0),this.searchInfo.title||delete this.searchInfo.title}}};e.default=u},c042:function(t,e,s){"use strict";s.d(e,"b",(function(){return a})),s.d(e,"c",(function(){return r})),s.d(e,"a",(function(){return i}));var i={uniIcons:s("e268").default},a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("view",{staticClass:t._$s(0,"sc","content"),attrs:{_i:0}},[s("view",{staticClass:t._$s(1,"sc","one"),attrs:{_i:1}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.searchInfo.title,expression:"searchInfo.title"}],attrs:{_i:2},domProps:{value:t._$s(2,"v-model",t.searchInfo.title)},on:{blur:t.toInput,input:function(e){e.target.composing||t.$set(t.searchInfo,"title",e.target.value)}}})]),s("view",{staticClass:t._$s(3,"sc","two"),attrs:{_i:3}},[s("scroll-view",{staticClass:t._$s(4,"sc","scroll-view"),attrs:{_i:4},on:{scrolltolower:t.toPage,scroll:t.toScroll}},[s("view",{staticClass:t._$s(5,"sc","list-scroll-view"),attrs:{_i:5}},[s("view",{staticClass:t._$s(6,"sc","two_1"),attrs:{_i:6}},t._l(t._$s(7,"f",{forItems:t.list}),(function(e,i,a,r){return s("view",{key:t._$s(7,"f",{forIndex:a,key:i}),staticClass:t._$s("7-"+r,"sc","list"),attrs:{_i:"7-"+r},on:{click:function(s){return t.videoView(e)}}},[s("image",{staticClass:t._$s("8-"+r,"sc","image"),attrs:{src:t._$s("8-"+r,"a-src",e.img_url&&e.img_url.length>0?e.img_url[0].url:""),_i:"8-"+r}}),s("view",{staticClass:t._$s("9-"+r,"sc","name textOver"),attrs:{_i:"9-"+r}},[t._v(t._$s("9-"+r,"t0-0",t._s(e.title)))]),s("view",{staticClass:t._$s("10-"+r,"sc","other"),attrs:{_i:"10-"+r}},[s("view",{staticClass:t._$s("11-"+r,"sc","other_1"),attrs:{_i:"11-"+r}},[s("uni-icons",{attrs:{type:"eye",color:"var(--rgbfff)",size:"12",_i:"12-"+r}}),t._v(t._$s("11-"+r,"t1-0",t._s(e.view_num)))],1),s("view",{staticClass:t._$s("13-"+r,"sc","other_2"),attrs:{_i:"13-"+r}},[t._v(t._$s("13-"+r,"t0-0",t._s(e.time_num)))])]),t._$s("14-"+r,"i","1"==e.is_vip)?s("view",{staticClass:t._$s("14-"+r,"sc","vip"),attrs:{_i:"14-"+r}},[s("span")]):t._e()])})),0)])])])])},r=[]},c3b4:function(t,e,s){"use strict";(function(t){var i=s("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(s("a34a")),r=i(s("448a")),n=i(s("9523")),c=i(s("c973"));function o(t,e){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),s.push.apply(s,i)}return s}function l(t){for(var e=1;e<arguments.length;e++){var s=null!=arguments[e]?arguments[e]:{};e%2?o(Object(s),!0).forEach((function(e){(0,n.default)(t,e,s[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):o(Object(s)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(s,e))}))}return t}function u(t,e){var s="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!s){if(Array.isArray(t)||(s=function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var s=Object.prototype.toString.call(t).slice(8,-1);"Object"===s&&t.constructor&&(s=t.constructor.name);if("Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return f(t,e)}(t))||e&&t&&"number"===typeof t.length){s&&(t=s);var i=0,a=function(){};return{s:a,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,n=!0,c=!1;return{s:function(){s=s.call(t)},n:function(){var t=s.next();return n=t.done,t},e:function(t){c=!0,r=t},f:function(){try{n||null==s.return||s.return()}finally{if(c)throw r}}}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var s=0,i=new Array(e);s<e;s++)i[s]=t[s];return i}var d={data:function(){return{basicInfo:{},user:{},video_user_vip:!1,locationInfo:{},id:"",info:{actorList:[]},tabList:[{title:"\u8be6\u60c5"},{title:"\u8bc4\u8bba"}],active:0,firmvideoList:[],likeInfo:{},collectInfo:{},discussList:[],dtotal:0,dpage:0,dskip:0,dlimit:5,is_bottom:!1,scrollTop:0}},onShow:function(){this.searchBasic(),this.searchLocal(),this.searchUser()},onLoad:function(t){this.$set(this,"id",t.id||"63fd915b134900004000482c"),this.search(),this.searchDiscuss()},methods:{searchBasic:function(){var t=this;uni.getStorage({key:"basicInfo",success:function(e){var s=e.data;s.account_btn=s.account_btn.sort((function(t,e){return t.sort-e.sort})),t.$set(t,"basicInfo",s)}})},searchLocal:function(){},searchUser:function(){var e=this;uni.getStorage({key:"token",success:function(){var t=(0,c.default)(a.default.mark((function t(s){var i,r;return a.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return i=e.$jwt(s.data),t.next=3,e.$api("user/".concat(i._id),"GET");case 3:r=t.sent,"0"==r.errcode&&(e.$set(e,"user",r.data),e.searchLikes(),e.searchCollects());case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),fail:function(e){t("log","\u6682\u65e0\u7528\u6237\u4fe1\u606f"," at pagesVideo/video/index.vue:259")}})},searchLikes:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,i=s.user,e.next=4,s.$api("likes/selikes","POST",{user_id:i._id,video_id:s.id});case 4:r=e.sent,"0"==r.errcode&&s.$set(s,"likeInfo",r.data);case 6:case"end":return e.stop()}}),e)})))()},searchCollects:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,i=s.user,e.next=4,s.$api("collects/secollects","POST",{user_id:i._id,video_id:s.id});case 4:r=e.sent,"0"==r.errcode&&s.$set(s,"collectInfo",r.data);case 6:case"end":return e.stop()}}),e)})))()},search:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,s.user,e.next=4,s.$api("videos/".concat(s.id),"GET",{});case 4:if(i=e.sent,"0"!=i.errcode){e.next=22;break}if(r=i.data,uni.setNavigationBarTitle({title:r.title}),r.video_url&&r.video_url.length>0&&(r.vUrl=r.video_url[0].url),r.img_url&&r.img_url.length>0&&(r.iUrl=r.img_url[0].url),!r||!r.head_actor){e.next=14;break}return e.next=13,s.searchName(r.head_actor);case 13:r.head_actor_name=e.sent;case 14:if(!(r&&r.actor&&r.actor.length>0)){e.next=18;break}return e.next=17,s.searchlistName(r.actor);case 17:r.actorList=e.sent;case 18:s.$set(s,"info",r),s.updateNum(r),s.searchfirm(r.firm_id),s.judgeVip(r);case 22:case"end":return e.stop()}}),e)})))()},searchName:function(t){var e=this;return(0,c.default)(a.default.mark((function s(){var i,r;return a.default.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return i=e,s.next=3,i.$api("scenedata/".concat(t),"GET",{});case 3:if(r=s.sent,"0"!=r.errcode){s.next=10;break}if(!r.data||!r.data.title){s.next=9;break}return s.abrupt("return",r.data.title);case 9:return s.abrupt("return","\u6682\u65e0");case 10:case"end":return s.stop()}}),s)})))()},searchlistName:function(t){var e=this;return(0,c.default)(a.default.mark((function s(){var i,r,n,c,o,l;return a.default.wrap((function(s){while(1)switch(s.prev=s.next){case 0:i=e,r=[],n=u(t),s.prev=3,n.s();case 5:if((c=n.n()).done){s.next=13;break}return o=c.value,s.next=9,i.$api("scenedata/".concat(o),"GET",{});case 9:l=s.sent,(l.errcode="0")&&r.push({_id:l.data._id,title:l.data.title,img_url:l.data.img_url});case 11:s.next=5;break;case 13:s.next=18;break;case 15:s.prev=15,s.t0=s["catch"](3),n.e(s.t0);case 18:return s.prev=18,n.f(),s.finish(18);case 21:return s.abrupt("return",r);case 22:case"end":return s.stop()}}),s,null,[[3,15,18,21]])})))()},updateNum:function(e){var s=this;return(0,c.default)(a.default.mark((function i(){var r,n,c;return a.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:return r=s,n={id:e.id,view_num:e.view_num+1},i.next=4,r.$api("videos/".concat(n.id),"POST",n);case 4:c=i.sent,"0"==c.errcode&&t("log","\u89c2\u770b\u7edf\u8ba1\u5b8c\u6210\uff0c+1"," at pagesVideo/video/index.vue:350");case 6:case"end":return i.stop()}}),i)})))()},searchfirm:function(t){var e=this;return(0,c.default)(a.default.mark((function s(){var i,r;return a.default.wrap((function(s){while(1)switch(s.prev=s.next){case 0:return i=e,s.next=3,i.$api("videos","GET",{firm_id:t,skip:0,limit:6});case 3:r=s.sent,"0"==r.errcode&&i.$set(i,"firmvideoList",r.data);case 5:case"end":return s.stop()}}),s)})))()},judgeVip:function(t){var e=this.user;t&&"1"==t.is_vip?e&&e._id?e&&"0"==e.is_vip?(uni.showToast({title:"\u5f53\u524d\u8d26\u53f7\u4e0d\u662fVIP\u7528\u6237\uff0c\u65e0\u6cd5\u89c2\u770bVIP\u89c6\u9891",icon:"none"}),this.$set(this,"video_user_vip",!1)):e&&"1"==e.is_vip&&this.$set(this,"video_user_vip",!0):(uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u89c2\u770bVIP\u89c6\u9891",icon:"none"}),this.$set(this,"video_user_vip",!1)):this.$set(this,"video_user_vip",!0)},tabChange:function(t){this.$set(this,"active",t)},videoView:function(t){uni.navigateTo({url:"/pagesVideo/video/index?id=".concat(t._id)})},toCommon:function(t,e){uni.navigateTo({url:"/".concat(t,"?").concat(e)})},toLikes:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,r,n,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t,i=s.user,r=s.info,!i||!i._id){e.next=18;break}if(c={user_id:i._id,user_name:i.nick_name,video_id:r._id,title:r.title,img_url:r.img_url,view_num:r.view_num,time_num:r.time_num,follow_time:s.$moment().format("YYYY-MM-DD HH:mm:ss")},!s.likeInfo||1!=s.likeInfo.is){e.next=12;break}return e.next=8,s.$api("likes/".concat(s.likeInfo.id),"delete",{});case 8:n=e.sent,"0"==n.errcode?(uni.showToast({title:"\u53d6\u6d88\u559c\u6b22\u6210\u529f!",icon:"success"}),s.searchLikes()):uni.showToast({title:n.errmsg,icon:"none"}),e.next=16;break;case 12:return e.next=14,s.$api("likes","POST",c);case 14:n=e.sent,"0"==n.errcode?(uni.showToast({title:"\u5173\u6ce8\u559c\u6b22\u6210\u529f!",icon:"success"}),s.searchLikes()):uni.showToast({title:n.errmsg,icon:"none"});case 16:e.next=19;break;case 18:uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u5173\u6ce8\u559c\u6b22\uff01",icon:"none"});case 19:case"end":return e.stop()}}),e)})))()},toCollects:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,r,n,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(s=t,i=s.user,r=s.info,!i||!i._id){e.next=18;break}if(c={user_id:i._id,user_name:i.nick_name,video_id:r._id,title:r.title,img_url:r.img_url,time_num:r.time_num,follow_time:s.$moment().format("YYYY-MM-DD HH:mm:ss")},!s.collectInfo||1!=s.collectInfo.is){e.next=12;break}return e.next=8,s.$api("collects/".concat(s.collectInfo.id),"delete",{});case 8:n=e.sent,"0"==n.errcode?(uni.showToast({title:"\u53d6\u6d88\u6536\u85cf\u6210\u529f!",icon:"success"}),s.searchCollects()):uni.showToast({title:n.errmsg,icon:"none"}),e.next=16;break;case 12:return e.next=14,s.$api("collects","POST",c);case 14:n=e.sent,"0"==n.errcode?(uni.showToast({title:"\u5173\u6ce8\u6536\u85cf\u6210\u529f!",icon:"success"}),s.searchCollects()):uni.showToast({title:n.errmsg,icon:"none"});case 16:e.next=19;break;case 18:uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u5173\u6ce8\u6536\u85cf\uff01",icon:"none"});case 19:case"end":return e.stop()}}),e)})))()},toShare:function(){var e=this.$config.system,s=this.basicInfo;"app"==e.uniPlatform?uni.share({provider:"weixin",scene:"WXSceneSession",type:0,href:this.$config.app_url,title:e.appName,summary:"\u6211\u6b63\u5728\u73a9\u81ea\u7531\u5929\u7a7a\uff0c\u8d76\u7d27\u548c\u6211\u4e00\u8d77\u4f53\u9a8c\u5427",imageUrl:s.logo_url&&s.logo_url.length>0?s.logo_url[0].url:"",success:function(e){t("log","success:"+JSON.stringify(e)," at pagesVideo/video/index.vue:533")},fail:function(e){t("log","fail:"+JSON.stringify(e)," at pagesVideo/video/index.vue:536"),uni.showToast({title:JSON.stringify(e),icon:"none"})}}):"mp-weixin"==e.uniPlatform&&uni.showToast({title:"\u5c0f\u7a0b\u5e8f\u672a\u5f00\u901a\u5206\u4eab\u529f\u80fd\uff01",icon:"none"})},searchDiscuss:function(){var t=this;return(0,c.default)(a.default.mark((function e(){var s,i,n,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return s=t,i={skip:s.dskip,limit:s.dlimit,video_id:s.id},e.next=4,s.$api("discuss","GET",l({},i));case 4:n=e.sent,"0"==n.errcode&&(c=[].concat((0,r.default)(s.discussList),(0,r.default)(n.data)),s.$set(s,"discussList",c),s.$set(s,"dtotal",n.total));case 6:case"end":return e.stop()}}),e)})))()},diaChat:function(){var t=this.user;t&&t._id?this.$refs.dialog.open():uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u53d1\u8868\u8bc4\u8bba",icon:"none"})},diaSave:function(t){var e=this;return(0,c.default)(a.default.mark((function s(){var i,r,n,c;return a.default.wrap((function(s){while(1)switch(s.prev=s.next){case 0:if(i=e,r=i.user,!r||!r._id){s.next=14;break}if(!t){s.next=11;break}return n={user_id:r._id,user_name:r.nick_name,user_img_url:r.logo_url,video_id:i.info._id,video_title:i.info.title,content:t,create_time:i.$moment().format("YYYY-MM-DD HH:mm:ss")},s.next=7,i.$api("discuss","POST",n);case 7:c=s.sent,"0"==c.errcode?(uni.showToast({title:"\u8bc4\u8bba\u6210\u529f!",icon:"success"}),i.dclearPage(),i.searchDiscuss(),i.diaClose()):uni.showToast({title:c.errmsg,icon:"none"}),s.next=12;break;case 11:uni.showToast({title:"\u6682\u65e0\u8bc4\u8bba\u5185\u5bb9\uff0c\u65e0\u6cd5\u53d1\u8868\u8bc4\u8bba",icon:"none"});case 12:s.next=15;break;case 14:uni.showToast({title:"\u6682\u65e0\u7528\u6237\u4fe1\u606f\uff0c\u65e0\u6cd5\u53d1\u8868\u8bc4\u8bba",icon:"none"});case 15:case"end":return s.stop()}}),s)})))()},diaClose:function(){this.$refs.dialog.close()},toPage:function(){var t=this.discussList,e=this.dlimit;if(this.dtotal>t.length){uni.showLoading({title:"\u52a0\u8f7d\u4e2d",mask:!0});var s=this.dpage+1;this.$set(this,"dpage",s);var i=s*e;this.$set(this,"dskip",i),this.searchDiscuss(),uni.hideLoading()}else this.$set(this,"is_bottom",!0)},toScroll:function(t){var e=this.scrollTop;this.$set(this,"scrollTop",t.detail.scrollTop);var s=Math.sign(e-t.detail.scrollTop);1==s&&this.$set(this,"is_bottom",!1)},dclearPage:function(){this.$set(this,"discussList",[]),this.$set(this,"dskip",0),this.$set(this,"dlimit",5),this.$set(this,"dpage",0)}}};e.default=d}).call(this,s("0de9")["default"])},ccf7:function(t,e,s){"use strict";s.r(e);var i=s("9687"),a=s("9cb2");for(var r in a)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return a[t]}))}(r);var n=s("f0c5"),c=Object(n["a"])(a["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);e["default"]=c.exports},d66b:function(t,e,s){"use strict";s.r(e);var i=s("bcdd"),a=s.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){s.d(e,t,(function(){return i[t]}))}(r);e["default"]=a.a}}]);