12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-20b1a273"],{"009e":function(t,e,i){},"0bfe":function(t,e,i){},"0fb1":function(t,e,i){t.exports=i.p+"img/avatar.0166dac5.png"},1930:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAcFJREFUOE+t0j9o1GAYx/Hvc+Eub7wOJ2gdpLM6uTi5FHRRxNJCgjp0cXOwm4OCDgo6uNXBzaXgHxKoVEQXC106dXG7vThYhVZsTe6O5JFcWq9pvSQeZkve3/vJ8z7PK/znRyp5njr9nC9hWb4cnNk+i2Wt9KE4nmRx7HMRWg664Svg+i7ymsC5MTo4o+NY0TrQ2EW6xGaCRdkYhhZX6IZ3gccHNt8jcJ5UAFXwdk4Ax4ntY1i9cZCnKBO5zcI6sd6B+gb15BtJ7zt+8yuIprmswitbR3HsVeB02RSHrLdpmPO8lM0M9KJLqH4YEcu2iVzGNx8z8KoewY7Sq3FuRHSNjpnknfwaDGVWm4TRm7QB/4i+xzHXWJCdQQ/3BE8tks4zRG9VQlWeU7Nv40u8l//7tXHDNnCqGJU2gTlzMHMYzPq5BdRLquzRMa20b/tzh0EvvIDyqdKRhYv4znIx6HbuQ/IwD8o2aPrzZv577QGB/agEjHxQ909I5C3dZK7/3qjNozo9ACQgMF7JkbuzaPIC9Asic/hmKVeVF02hOg+cRKyb+I2FYjBdnd5sUW/93H8d8qhawBi+/CifcqVpDA/9BlUCgxW4LjtYAAAAAElFTkSuQmCC"},"1e6f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAblJREFUOE+lk79LHEEUx9/bPThiIXYpLEwE0SawN7N7xxFikVhYioWFYmPKIJJG/RNMlULS5FcTi5BCgmlstFD0uONm9iAIihdylnZ7Fp7C7XxlZE/0InpJphjmMW8+7/t+DNN/Lr7tvZRyiIjGAAzYe2Y+JKLvSqn9dv8bgFwu1x3H8TsAzwF8A/AzATxh5glm3nRd91WxWDxpga4A9nGz2dwGsMXMC0qp0+vRpJRdAN4w83AqlXrWglwBfN//YoyJtNazd5VFCLHsOE5PuVyevlRntyTnDSIaaI/cDrNKiMjW5IWtSQuwCOCh1vp1J00RQrxl5mOl1NIlQAjxCcBOGIafOwFkMpkZZn6qtX7ZUvCeiEpKqY//BPB9fx5Ar1JqzgLy+fyDRqORrlQqkbU9z+uJouisVqudJYpvphAEQb8xZrder/dVq9XzIAhGjDErRLSaKBo3xkyFYbhxaxGTTvwAsKa1/mDtbDb7OI7jUXt2XXe9VCr9TqL/2cYEsElEGsBBOp1eKRQKjb8aJCnlERH9IqITAHlm/gpgD0CTme8f5evRPM975DjOJDMPJoDOPlMnLWz3uQDc3+MRxAVPuwAAAABJRU5ErkJggg=="},"1f2d":function(t,e,i){},2079:function(t,e,i){"use strict";i("1f2d")},2501:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAWCAYAAAD0OH0aAAAAAXNSR0IArs4c6QAAAOBJREFUOE+V1MEKAVEUxvHvGESzsLCTlZSk7FiPjb0HkDJ4JCtFeQUbVt7DsGFhLaMYc49mlNKduXfmrv+/Op06l+qTRzXH/votsvZhWTxB86hp31YEGgE4eyJr6RC1h1fTz5sbBiwwzh6rEQUTpEEhSIN+ICn6A0mQBHQoEqhQLJAQcMkYOUsJAtQYuxWDxBFAgYG9EtRmXCr47g7gLgDnRUYvFsjxq+csypdIEBcHI0pAFUtAF/+BJPEPJI1DkCYOQcu+bxnc/+75uzrVlVJr6naE4LlHz4Eujlyr7hP4AGr00ZzNwUXoAAAAAElFTkSuQmCC"},"2e08":function(t,e,i){var n=i("9def"),r=i("9744"),a=i("be13");t.exports=function(t,e,i,o){var s=String(a(t)),c=s.length,l=void 0===i?" ":String(i),u=n(e);if(u<=c||""==l)return s;var d=u-c,A=r.call(l,Math.ceil(d/l.length));return A.length>d&&(A=A.slice(0,d)),o?A+s:s+A}},"2e79":function(t,e,i){"use strict";i("7468")},"400b":function(t,e,i){},"421e":function(t,e,i){"use strict";i("009e")},"449d":function(t,e,i){"use strict";i.r(e);i("d25f");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"wrap"},[e("div",{staticClass:"wrap-title"},[e("TitleControl",{attrs:{title:"我的收藏"},on:{handleChange:t.handleSearch}},[e("div",{staticClass:"control-btn",attrs:{slot:"control"},slot:"control"},[t.manageType?e("div",{staticClass:"manage cancel",on:{click:function(e){t.manageType=!1}}},[t._v("\n 取消\n ")]):e("div",{staticClass:"manage",on:{click:function(e){t.manageType=!0}}},[t._v("\n 管理\n ")])])])],1),e("div",{staticClass:"wrap-content"},[t.manageType?e("div",{staticClass:"del-box"},[e("div",{staticClass:"radio"},[e("el-checkbox",{on:{change:t.changeAllChecked},model:{value:t.allChecked,callback:function(e){t.allChecked=e},expression:"allChecked"}})],1),e("div",{staticClass:"btn",on:{click:function(e){t.handleDelete(t.list.filter((function(t){return t.checked})),0)}}},[t._v("\n 取消收藏\n ")])]):t._e(),e("div",{staticClass:"list"},[t._l(t.list,(function(i){return e("div",{key:i.id,staticClass:"list-item"},[t.manageType?e("div",{staticClass:"radio"},[e("el-checkbox",{model:{value:i.checked,callback:function(e){t.$set(i,"checked",e)},expression:"item.checked"}})],1):t._e(),e("div",{staticClass:"card",style:t.manageType?{width:"calc(100% - 60px)"}:""},[e("MyCollectCard",{attrs:{info:i,manageType:t.manageType,option:t.comment_option},on:{handleForward:function(e){return t.handleForward(i)},handleComment:function(e){return t.handleComment(i)},handleLike:function(e){return t.handleLike(i)},handleCollect:function(e){return t.handleCollect(i)},handleDelete:function(e){return t.handleDelete([i])},handleToDetail:function(e){return t.handleToDetail(i,{id:"video_id",videoArrId:"url_id"})}}})],1)])})),t.finished?e("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)]),e("CommentAll",{attrs:{info:t.info,option:t.comment_option,reportType:2},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}})],1)},r=[],a=(i("1c01"),i("58b2"),i("8e6e"),i("c5f6"),i("456d"),i("28a5"),i("6762"),i("2fdb"),i("2909")),o=(i("6d67"),i("ac6a"),i("f3e2"),i("ade3")),s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card"},[e("CardBox",t._g({staticStyle:{padding:"15px 20px"},attrs:{btnList:t.btnList}},t.$listeners),[e("div",{staticClass:"video",on:{click:function(e){return t.$emit("handleToDetail")}}},[e("CardCoverDetail",{attrs:{info:t.info}})],1),e("div",{staticClass:"footer"},[e("CardFooter",t._g({attrs:{info:t.info,dict:{is_like:"is_praise",like_num:"praise_num"}}},t.$listeners))],1)])],1)},c=[],l=i("c191"),u=i("dcfd"),d=i("fed5"),A={name:"MyCollectCard",components:{CardBox:l["a"],CardCoverDetail:u["a"],CardFooter:d["a"]},props:{info:{type:Object},manageType:{type:Boolean,default:!1}},data:function(){return{}},computed:{btnList:function(){var t=[{type:"del",value:"取消收藏"}];return this.manageType?[]:t},userInfo:function(){return this.$store.state.userInfo}}},f=A,p=(i("2e79"),i("2877")),m=Object(p["a"])(f,s,c,!1,null,"df32b004",null),g=m.exports,h=i("7e74"),v=i("2164"),b=i("f523");function C(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?C(Object(i),!0).forEach((function(e){Object(o["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):C(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var O={components:{MyCollectCard:g,TitleControl:h["a"],CommentAll:v["a"]},data:function(){return{list:[],params:{page:1,page_num:20,sort_type:1},finished:!1,manageType:!1,allChecked:!1,type:0,visible:!1,info:{},list_copy:""}},computed:{comment_option:function(){var t=this;return{listApi:function(e){return b["m"].getVideoCommentList(y({video_type:1,video_id:t.info.video_id,url_id:t.info.url_id},e),!t.info.is_vip)},likeApi:function(t){return b["m"].videoTags({type:1,like_id:t.id})},postApi:function(e){return b["m"].videoComment(y(y({},e),{},{video_id:t.info.video_id,url_id:t.info.url_id}))},postReplyApi:function(t,e){return b["m"].secondCommend(y(y({},t),{},{id:e.id}))},reportType:2,delApi:function(t){return b["m"].delComment({id:t.id})}}}},watch:{manageType:function(t){!t&&(this.allChecked=!1),this.list.forEach((function(t){return t.checked=!1}))}},mounted:function(){this.getList()},methods:{TouchBottom:function(){this.finished||this.getList()},changeAllChecked:function(t){this.list.map((function(e){return e.checked=t}))},getList:function(){var t=this;b["m"].getVideoCollect(this.params).then((function(e){var i=e.data,n=i.list.map((function(t){return y({checked:!1},t)}));t.list=1===t.params.page?n:[].concat(Object(a["a"])(t.list),Object(a["a"])(n)),n.length<t.params.page_num?t.finished=!0:t.params.page++}))},handleDelete:function(t){var e=this;this.showConfirmPopup("确定要取消收藏?").then((function(){var i={id:"",type:13};i.id=t.map((function(t){return t.id})).join(","),i.id&&b["m"].batchesDel(i).then((function(t){t.data;var n=e.list.map((function(t){return i.id.split(",").includes(t.id+"")?"":t})).filter((function(t){return t}));e.list=n,e.$message.success("取消成功!"),e.manageType=!1}))})).catch((function(t){}))},handleToDetail:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{id:"id",videoArrId:"videoArrId"};if(Object.keys(t).includes("is_normal")&&!t.is_normal)return this.$message.error("该视频已下线");this.$router.push({path:"/video-details",query:{id:t[e.id],videoArrId:t[e.videoArrId]}})},handleForward:function(t){b["m"].videoTransmit({video_id:t.video_id,url_id:t.url_id}).then((function(e){return t.transmit_num=Number(t.transmit_num)+1}))},handleComment:function(t){this.visible=!this.visible,this.info=t},handleLike:function(t){b["m"].videoTags({type:2,id:t.id}).then((function(e){var i=e.data;t.is_praise=i.tags,t.praise_num=i.tags?Number(t.praise_num)+1:Number(t.praise_num)-1}))},handleCollect:function(t){b["c"].userCollect({coll_id:t.url_id,coll_type:1}).then((function(e){var i=e.data;t.is_collect=i.status,t.collect_num=i.status?Number(t.collect_num)+1:Number(t.collect_num)-1}))},handleSearch:function(t){this.list_copy||(this.list_copy=this.list),t?this.list=this.list_copy.filter((function(e){return e.content.includes(t)})):(this.list=this.list_copy,this.list_copy="")}}},R=O,_=(i("5c25"),Object(p["a"])(R,n,r,!1,null,"ddf27906",null));e["default"]=_.exports},"565b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAPxJREFUSEvNlTFuwkAQRf+4iZALLhCJg4RDhJYWyWPRBokqIVDR4DZe25wBR6EMh8oB1j8ykotESNjYa7H1zH/7Z79mBY6PONZHf4AkSXYkZwCGLV39iMg+CIKXUufswBjzDODQUvh/+0RV8zMgjuM3EVl3CSC5CsNwUzlYAXjvElDqqer6bgBfJD89z3slOarptJGDuap+RFE08H1/AWAJwL8Cag6oBNM0fSS5JTmtkngBdjugEjPGjAF8A3hwAsiy7Mlae+ocUI7IWrsVkW5H5OyRReRYFEXuMqY1o/+nrFGK2gH6WHZu13Xp3+mHc8uA6/b09yfXvVHTul9MCqIZAaJnUgAAAABJRU5ErkJggg=="},"5c25":function(t,e,i){"use strict";i("400b")},"6e61":function(t,e,i){var n={"./收藏.png":"969e","./收藏_1.png":"1930","./点赞.png":"d2fe","./点赞_1.png":"b54a1","./评论.png":"1e6f","./转发.png":"d62e"};function r(t){var e=a(t);return i(e)}function a(t){if(!i.o(n,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return n[t]}r.keys=function(){return Object.keys(n)},r.resolve=a,t.exports=r,r.id="6e61"},7468:function(t,e,i){},"780b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAA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74":function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"title"},[e("div",{staticClass:"top"},[e("div",{staticClass:"left"},[t._v(t._s(t.title))]),e("div",{staticClass:"center"},[t.showSearch?e("el-input",{attrs:{clearable:"",placeholder:"搜索"},on:{change:function(e){return t.$emit("handleChange",e)}},model:{value:t.content,callback:function(e){t.content=e},expression:"content"}},[e("i",{staticClass:"el-icon-search el-input__icon",attrs:{slot:"suffix"},slot:"suffix"})]):t._e()],1),e("div",{staticClass:"right"},[t._t("control")],2)]),e("div",{staticClass:"bottom"},[t._t("bottom")],2)])},r=[],a={name:"TitleControl",props:{title:{type:String,required:!0},showSearch:{type:Boolean,default:!0}},data:function(){return{content:""}}},o=a,s=(i("e6d2"),i("2877")),c=Object(s["a"])(o,n,r,!1,null,"52e2b05d",null);e["a"]=c.exports},"969e":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAcJJREFUOE+l0z+IE0EUBvDv7XqKxZI0llrlDlt3lkCwUxDLA8HkwEM7z8pWRBv/NYKNYCHodYKed2JxtgYFFbJvIilSmDRaWRoLl0vW+WRCIpzsHqJT7sz7veF9s4L/XLJHfWiMuU3yp7X2OgBXdLYUMMasATgHYJ+IPEzT9PFfA8aYBQADkqsAFjwQRdHRdrud/4kU3iBJkoskm6p6whcYY96KyHrRLaZAkiTHSV4guSQii74rydPWWp3t10m+ArBDciAin5xz691u9/0UMMZ8FZF7JD9OJpNBr9f7XDC0sF6vH8nzfMmXiMglVT08B54C2J9lWbPf74/3SrZWqx2oVCrPReRbmqarU8B/rFarGySD0Wh0Zjgc7hQhjUbj4Hg8fgHgR5ZlLd/s9xBnk38G4IuqXi4CjDEPAByKomhlnsiuFOI4borIiqoulwDbJB9Za7fm+7sAY8wN/3BU9WoJcBfAd1W9WQZskdy01j5JkqRF8gpJArhjrd2I4/g8AB9vqwx4IyIfnHOnRCQPguCacy4EcGsW62sAx1T1ZCHgH5Rzbi0Igpdpmm4C8N39kjiOzwJYDsPwfqfTeVcI/Muf/QvLOM8RlyszgAAAAABJRU5ErkJggg=="},9744:function(t,e,i){"use strict";var n=i("4588"),r=i("be13");t.exports=function(t){var e=String(r(this)),i="",a=n(t);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(i+=e);return i}},"9ea2":function(t,e,i){"use strict";i("bf4e")},aa77:function(t,e,i){var n=i("5ca1"),r=i("be13"),a=i("79e5"),o=i("fdef"),s="["+o+"]",c="
",l=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),d=function(t,e,i){var r={},s=a((function(){return!!o[t]()||c[t]()!=c})),l=r[t]=s?e(A):o[t];i&&(r[i]=l),n(n.P+n.F*s,"String",r)},A=d.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=d},b54a1:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAVJJREFUOE+9lDFPwlAUhc9thQ5tYVajg4mJVNHBH+GIC5OLAcLuYuKv0Bkpi8bFQVeNg39ABwMtYnA1IQ5IaEKhvGuoERgsiBDf8IaXc7537jvJI8xo0Yw4GAnayDQ3hRB5gHQmPrLNyHXQxcGgJMvr0WaRGWtfZnJasrr4mqOPn2CBICPtpABhDps8mWOVXKT8a5CR5DAizgvAy0OmN6uhLeGSuiNB21kOddt1tSfqzIX2mfl42MDAMzHd9M8kbkoInxfziu0P3tviqdaKR+1HAkUnbLHuydpqJUfvPsjIOAmwCGxkFFww7ZQL2q0PiqUbuwS6mjCNL5cIRjGv21OCyLWqqoZ78qYCMfBkm/pW/7H/PhpdWKa2NzWImQ7sgnbSBxmZRgJMk7XGqLkdxKtnem2QKOvMU1fcAVgY3xy5gHiApBxap0rpW/8/38j4dAPFJ+AMexM0MnArAAAAAElFTkSuQmCC"},bf4e:function(t,e,i){},c191:function(t,e,i){"use strict";i("6762"),i("2fdb");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-box"},[t._t("default"),e("div",{staticClass:"btn-box"},[t.del_Btn.show?e("div",{staticClass:"del-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleDelete")}}},[e("span",[t._v(t._s(t.del_Btn.value||"删除"))])]):t._e(),t.btnList.includes("edit")?e("div",{staticClass:"edit-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleEdit")}}},[e("span",[t._v("编辑")])]):t._e(),t.btnList.includes("isRead")?e("div",{staticClass:"mark-read-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleRead")}}},[e("span",[t._v("标记已读")])]):t._e(),t.btnList.includes("unRead")?e("div",{staticClass:"mark-unread-btn",on:{click:function(e){return e.stopPropagation(),t.$emit("handleRead")}}},[e("span",[t._v("标记未读")])]):t._e()])],2)},r=[],a=(i("1c01"),i("58b2"),i("8e6e"),i("d25f"),i("456d"),i("ade3")),o=i("53ca");i("ac6a"),i("f3e2");function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={name:"CardBox",props:{btnList:{type:Array,default:function(t){return[]}}},data:function(){return{}},computed:{del_Btn:function(){var t={show:!1};return this.btnList.forEach((function(e){"string"==typeof e&&"del"==e?t.show=!0:"object"==Object(o["a"])(e)&&"del"==e.type&&(t=c(c({},e),{},{show:!0}))})),t}}},u=l,d=(i("9ea2"),i("2877")),A=Object(d["a"])(u,n,r,!1,null,"42f5fe43",null);e["a"]=A.exports},c5f6:function(t,e,i){"use strict";var n=i("7726"),r=i("69a8"),a=i("2d95"),o=i("5dbc"),s=i("6a99"),c=i("79e5"),l=i("9093").f,u=i("11e9").f,d=i("86cc").f,A=i("aa77").trim,f="Number",p=n[f],m=p,g=p.prototype,h=a(i("2aeb")(g))==f,v="trim"in String.prototype,b=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=v?e.trim():A(e,3);var i,n,r,a=e.charCodeAt(0);if(43===a||45===a){if(i=e.charCodeAt(2),88===i||120===i)return NaN}else if(48===a){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var o,c=e.slice(2),l=0,u=c.length;l<u;l++)if(o=c.charCodeAt(l),o<48||o>r)return NaN;return parseInt(c,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof p&&(h?c((function(){g.valueOf.call(i)})):a(i)!=f)?o(new m(b(e)),i,p):b(e)};for(var C,y=i("9e1e")?l(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),O=0;y.length>O;O++)r(m,C=y[O])&&!r(p,C)&&d(p,C,u(m,C));p.prototype=g,g.constructor=p,i("2aba")(n,f,p)}},d2fe:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAAXNSR0IArs4c6QAAAaZJREFUOE+tlD9oVEEQxr+Zd0YO49nYGGKTIshBPG7nXRtimUIiQiAiiAjpUgdExUIs0gm2WmkhVklh4Z/isH1vFjkSErVJHQTRpAnc25E9ziMEcx6X226Wb38738wwhBEdGhEHfUHOuasAXh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7/bDZbH4fBlYG6QYRvQMwZYx5v2aQROQzgFljzG0A2WjxisXiUWY+2+12j9fr9S+/jXIYhpsrlcq3jSzVPy3TOPgncBzBBJJNs4kAAAAASUVORK5CYII="},dcfd:function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-cover-detail"},[e("div",{staticClass:"cover-box"},[t.is_normal?e("img",{staticClass:"cover",attrs:{src:t.info.cover,alt:""}}):e("div",{staticClass:"is_normal"},[e("img",{attrs:{src:i("780b"),alt:""}})]),e("div",{staticClass:"type"},[t._v(t._s(t.is_normal?t.type:"已失效"))])]),t.is_normal?e("div",{staticClass:"info-box"},[e("div",{staticClass:"title-box"},[e("div",{staticClass:"series-title"},[t._v(t._s(t.info.series_title))]),e("div",{staticClass:"title"},[t._v(t._s(t.info.title))])]),e("div",{staticClass:"footer"},[e("img",{staticClass:"app-logo",attrs:{src:t.info.app_logo,alt:""}}),e("div",{staticClass:"app-name"},[t._v(t._s(t.info.app_name))]),e("img",{staticClass:"icon",attrs:{src:i("565b")}}),e("div",{staticClass:"read-num"},[t._v(t._s(t.info.read_num||0))])])]):e("div",{staticClass:"info-box"},[e("div",{staticClass:"is_normal"},[t._v("已失效")])])])},r=[],a=(i("6b54"),i("87b3"),i("f576"),i("f6b3"),{name:"CardCoverDetail",props:{info:{type:Object}},data:function(){return{show:!1,typeDict:{article_id:"图文",video_id:"视频"}}},computed:{type:function(){var t="";for(var e in this.typeDict)Reflect.has(this.info,e)&&(t=e);if("video_id"==t){var i=this.info.duration,n=Math.floor(i/60),r=Math.floor(i-60*n);return 0==r&&(r=1),n.toString().padStart(2,"0")+":"+r.toString().padStart(2,"0")}return this.typeDict[t]},is_normal:function(){return!Reflect.has(this.info,"is_normal")||!!this.info.is_normal}}}),o=a,s=(i("2079"),i("2877")),c=Object(s["a"])(o,n,r,!1,null,"785f94f6",null);e["a"]=c.exports},e6d2:function(t,e,i){"use strict";i("0bfe")},f576:function(t,e,i){"use strict";var n=i("5ca1"),r=i("2e08"),a=i("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);n(n.P+n.F*o,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f6b3:function(t,e,i){var n=i("5ca1");n(n.S,"Reflect",{has:function(t,e){return e in t}})},fdef:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},fed5:function(t,e,i){"use strict";i("c5f6"),i("6762"),i("2fdb");var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"card-footer"},[t.btnList.includes("share")?e("el-popover",{attrs:{placement:"bottom-start"},model:{value:t.forwardVisible,callback:function(e){t.forwardVisible=e},expression:"forwardVisible"}},[e("div",{staticClass:"tags",attrs:{slot:"reference"},slot:"reference"},[e("img",{attrs:{src:t.getIcon("转发")}}),e("span",[t._v(t._s(t.num(Number(t.info[t.keyDict.transmit_num]))))])]),e("div",{staticClass:"forward"},[e("div",{staticClass:"content"},[t._v(t._s(t.forword_url))]),e("div",{staticClass:"btn",on:{click:function(e){return t.handleCopy(t.forword_url)}}},[t._v("复制链接")])])]):t._e(),t.btnList.includes("comment")?e("div",{staticClass:"tags"},[e("img",{attrs:{src:t.getIcon("评论")},on:{click:function(e){return t.$emit("handleComment")}}}),e("span",[t._v(t._s(t.num(Number(t.info[t.keyDict.comment_num]))))])]):t._e(),t.btnList.includes("like")?e("div",{staticClass:"tags"},[e("img",{attrs:{src:t.getIcon(t.info[t.keyDict.is_like]?"点赞_1":"点赞")},on:{click:function(e){return t.$emit("handleLike")}}}),e("span",{class:{click:!!t.info[t.keyDict.is_like]}},[t._v(t._s(t.num(Number(t.info[t.keyDict.like_num]))))])]):t._e(),t.btnList.includes("collect")?e("div",{staticClass:"tags"},[e("img",{attrs:{src:t.getIcon(t.info[t.keyDict.is_collect]?"收藏_1":"收藏")},on:{click:function(e){return t.$emit("handleCollect")}}}),e("span",{class:{click:!!t.info[t.keyDict.is_collect]}},[t._v(t._s(t.num(Number(t.info[t.keyDict.collect_num]))))])]):t._e()],1)},r=[],a=(i("1c01"),i("58b2"),i("8e6e"),i("d25f"),i("456d"),i("ade3")),o=(i("ac6a"),i("f3e2"),i("a49b"));function s(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function c(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?s(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l={name:"CardFooter",props:{info:{type:Object},dict:{type:Object,default:function(){return{}}},btnList:{type:Array,default:function(){return["share","comment","like","collect"]}}},data:function(){return{forwardVisible:!1,FORWARD_URL:o["c"],keyDict:{is_collect:"is_collect",collect_num:"collect_num",is_like:"is_like",like_num:"like_num",comment_num:"comment_num",transmit_num:"transmit_num"}}},computed:{forword_url:function(){var t=this,e="",i=this.$store.state.routePath,n={video:{path:"/video-details",key:[["id","video_id"],["videoArrId","url_id"]]},"image-text":{path:"/image-text-details",key:[["id","article_id"],["item_id","item_id"]]},information:{path:"/information-details",key:[["id","datum_id"],["url_id","url_id"]]}},r=function(){if(i.includes(a)){e="".concat(o["c"]).concat(n[a].path,"?");var r=[];n[a].key.forEach((function(e){r.push("".concat(e[0],"=").concat(t.info[e[1]]))})),e+=r.join("&")}};for(var a in n)r();return e}},mounted:function(){this.keyDict=c(c({},this.keyDict),this.dict)},methods:{getIcon:function(t){return i("6e61")("./".concat(t,".png"))},num:function(t){return t?t>1e4?(t/1e4).toFixed(1)+"万":t:0},handleCopy:function(t){var e=this;navigator.clipboard.writeText(t).then((function(){e.$message.success("复制成功"),e.$emit("handleForward")}))}}},u=l,d=(i("421e"),i("2877")),A=Object(d["a"])(u,n,r,!1,null,"5ec0dce1",null);e["a"]=A.exports}}]);
- //# sourceMappingURL=chunk-20b1a273.407f9ee5.js.map
|