chunk-76fe6a9b.89ef33a8.js 16 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-76fe6a9b"],{"0a5b":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?t._e():e("div",{staticClass:"is-read",on:{click:function(e){t.$message.success("已将所有信息标为已读"),t.handleRead(t.list,1)}}},[e("img",{attrs:{src:i("9fa5"),alt:""}}),e("span",[t._v("全部已读")])]),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:"read-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 is-read",on:{click:function(e){t.handleRead(t.list.filter((function(t){return t.checked})),1)}}},[t._v("\n 已读\n ")]),e("div",{staticClass:"btn un-read",on:{click:function(e){t.handleRead(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",{ref:"card-"+i.id,refInFor:!0,staticClass:"card",style:t.manageType?{width:"calc(100% - 60px)"}:"",on:{click:function(e){return t.handleRead([i],1)}}},[e("CommentMyCard",{attrs:{info:i,manageType:t.manageType},on:{reply:function(e){return t.showReply(i)},handleDelete:function(e){return t.handleDelete(i)},handleRead:function(e){return t.handleRead([i],1-i.is_read)},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("Reply",{attrs:{info:t.info},on:{handleReply:t.handleReply},model:{value:t.replyVisible,callback:function(e){t.replyVisible=e},expression:"replyVisible"}}),t.manageType?t._e():e("ToNext",{on:{toNext:t.toNext}})],1)},a=[],s=(i("1c01"),i("58b2"),i("8e6e"),i("7514"),i("456d"),i("28a5"),i("6762"),i("2fdb"),i("20d6"),i("2909")),o=i("ade3"),r=(i("6d67"),i("ac6a"),i("f3e2"),i("f523")),c=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:"header"},[e("CardHeader",t._g({attrs:{avatar:t.info.headimg,name:t.info.user_name,time:t.info.create_at,isRead:t.info.is_read}},t.$listeners))],1),e("div",{staticClass:"content"},[e("CardContent",{attrs:{content:t.info.content}})],1),e("div",{staticClass:"target",on:{click:function(e){return t.$emit("handleToDetail")}}},[e("CardCoverDetail",{attrs:{info:t.info}})],1)])],1)},l=[],d=i("c191"),u=i("a7e8"),f=i("3d06"),h=i("dcfd"),p={name:"CommentMyCard",components:{CardBox:d["a"],CardHeader:u["a"],CardContent:f["a"],CardCoverDetail:h["a"]},props:{info:{type:Object},manageType:{type:Boolean,default:!1}},data:function(){return{}},computed:{btnList:function(){var t=["del"];return this.info.is_read?t.push("unRead"):t.push("isRead"),this.manageType?[]:t}},mounted:function(){}},A=p,m=(i("feff"),i("2877")),v=Object(m["a"])(A,c,l,!1,null,"5ef9f34e",null),g=v.exports,C=i("7e74"),b=i("55591"),y=i("3046");function R(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 w(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?R(Object(i),!0).forEach((function(e){Object(o["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var _={components:{CommentMyCard:g,TitleControl:C["a"],Reply:b["a"],ToNext:y["a"]},data:function(){return{list:[],params:{page:1,page_num:20,sort_type:1},finished:!1,manageType:!1,allChecked:!1,replyVisible:!1,info:{},list_copy:""}},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;r["m"].commentMyVideo(this.params).then((function(e){var i=e.data,n=i.list.map((function(t){return w({checked:!1},t)}));t.list=1===t.params.page?n:[].concat(Object(s["a"])(t.list),Object(s["a"])(n)),n.length<t.params.page_num?t.finished=!0:t.params.page++}))},handleDelete:function(t){var e=this,i=this;this.showConfirmPopup("确定要删除该信息?").then((function(){r["m"].batchesDel({id:t.id,type:2}).then((function(n){n.data;i.list.splice(i.list.findIndex((function(e){return e.id==t.id})),1),e.$message.success("删除成功!")}))})).catch((function(t){}))},handleRead:function(t,e){var i=this,n={id:"",type:1,is_read:e};n.id=t.map((function(t){return t.id})).join(","),n.id&&r["m"].unreadChange(n).then((function(t){i.list.forEach((function(t){n.id.split(",").includes(t.id+"")&&(t.is_read=n.is_read)})),i.manageType=!1,i.$store.dispatch("getMarkNum","video")}))},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]}})},showReply:function(t){this.replyVisible=!0,this.info=t},handleReply:function(t){var e=this;this.replyVisible=!1,r["m"].secondCommend({id:this.info.id,content:t}).then((function(t){t.data;e.$message.success("回复成功")}))},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="")},toNext:function(){var t,e,i=this;return t=0,this.list.forEach((function(e,n){var a=i.$refs["card-"+e.id][0].getBoundingClientRect(),s=a.top;s>-170&&s<=100&&(t=n)})),t!=this.list.length-1&&this.list.length?(e=this.list.slice(t+1).find((function(t){return!t.is_read})),e?void window.scrollTo(0,window.scrollY+this.$refs["card-"+e.id][0].getBoundingClientRect().top-100):this.$message.info("没有下一条未读消息!")):this.$message.info("没有下一条未读消息!")}}},j=_,k=(i("3a0d"),Object(m["a"])(j,n,a,!1,null,"9b34eed2",null));e["default"]=k.exports},"1f2d":function(t,e,i){},2079:function(t,e,i){"use strict";i("1f2d")},"2e08":function(t,e,i){var n=i("9def"),a=i("9744"),s=i("be13");t.exports=function(t,e,i,o){var r=String(s(t)),c=r.length,l=void 0===i?" ":String(i),d=n(e);if(d<=c||""==l)return r;var u=d-c,f=a.call(l,Math.ceil(u/l.length));return f.length>u&&(f=f.slice(0,u)),o?f+r:r+f}},3002:function(t,e,i){"use strict";i("59b9")},3046:function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"to-next",on:{click:function(e){return t.$emit("toNext")}}},[e("img",{attrs:{src:i("7e84"),alt:""}}),e("span",[t._v("下一条未读")])])},a=[],s={name:"ToNext",data:function(){return{}},mounted:function(){},methods:{}},o=s,r=(i("3002"),i("2877")),c=Object(r["a"])(o,n,a,!1,null,"07fb63da",null);e["a"]=c.exports},"34fa":function(t,e,i){"use strict";i("7e55")},"3a0d":function(t,e,i){"use strict";i("e98d")},55591:function(t,e,i){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"reply"},[t.visible?e("el-dialog",{attrs:{width:"600px",visible:t.visible,"before-close":function(e){return t.$emit("visible",!1)}},on:{"update:visible":function(e){t.visible=e}}},[e("div",{staticClass:"reply-content"},[e("div",{staticClass:"info"},[e("img",{staticClass:"avatar",attrs:{src:t.info[t.info_dict.headimg],alt:""}}),e("div",{staticClass:"name"},[t._v(t._s(t.info[t.info_dict.user_name]))])]),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"content"}],staticClass:"content",attrs:{placeholder:"回复@".concat(t.info[t.info_dict.user_name],":")},domProps:{value:t.content},on:{input:function(e){e.target.composing||(t.content=e.target.value)}}})]),e("div",{staticClass:"reply-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){return t.$emit("visible",!1)}}},[t._v("取 消")]),e("el-button",{staticStyle:{"background-color":"#0054f7",color:"white"},style:{opacity:t.content?1:.3,cursor:t.content?"pointer":"default"},on:{click:function(e){t.content&&(t.$emit("handleReply",t.content),t.content="")}}},[t._v("确 定")])],1)]):t._e()],1)},a=[],s={name:"Reply",props:{visible:{type:Boolean,default:!1},info:{type:Object},info_dict:{default:function(){return{headimg:"headimg",user_name:"user_name"}}}},model:{prop:"visible",event:"visible"},data:function(){return{content:""}}},o=s,r=(i("34fa"),i("2877")),c=Object(r["a"])(o,n,a,!1,null,"2ef8d99e",null);e["a"]=c.exports},"565b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAPxJREFUSEvNlTFuwkAQRf+4iZALLhCJg4RDhJYWyWPRBokqIVDR4DZe25wBR6EMh8oB1j8ykotESNjYa7H1zH/7Z79mBY6PONZHf4AkSXYkZwCGLV39iMg+CIKXUufswBjzDODQUvh/+0RV8zMgjuM3EVl3CSC5CsNwUzlYAXjvElDqqer6bgBfJD89z3slOarptJGDuap+RFE08H1/AWAJwL8Cag6oBNM0fSS5JTmtkngBdjugEjPGjAF8A3hwAsiy7Mlae+ocUI7IWrsVkW5H5OyRReRYFEXuMqY1o/+nrFGK2gH6WHZu13Xp3+mHc8uA6/b09yfXvVHTul9MCqIZAaJnUgAAAABJRU5ErkJggg=="},"59b9":function(t,e,i){},7514:function(t,e,i){"use strict";var n=i("5ca1"),a=i("0a49")(5),s="find",o=!0;s in[]&&Array(1)[s]((function(){o=!1})),n(n.P+n.F*o,"Array",{find:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),i("9c6c")(s)},"780b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAYAAAAehFoBAAAAAXNSR0IArs4c6QAABi9JREFUWEfNmV1sVEUUx/9nt7ZWW00RjLyIX6gPJKCSKAYVFcqHgIBJJYjRSndmJYYQkQcFP4H6gARDTLozLZaIEmyi8qViFUUlIgmoJCSigIovGsCQWgRLe+8xZ3PvZnrdbXfbbnXe9u6Zmd+cOXPOmTOEfrTVq1dfXFFRMT4Wi90JYBSA6wEMA1ARDNsO4BQR/UBEhzzP+3zIkCF7ampqzvV1WupLx1QqNYWIHmXmmURUXuAYZwFsIaJmpdQnBfZFQcDW2tnM/DyA0YVOlEN+PxG9qJTake94eQGvX7/+mq6urgYA1T0M3AngFwC/AmgnIhm7kpmvBHAVgJJcfYloRywWe6Kuru54b+C9Altra5jZArg0y2DHiKiFmT8oLS3dX1tb+3e2CdetW1dWXl4+jpmrmXkegBFZ5E7H4/HH6urqtvQE3SOwMeZZ2TJmjsrtJaIViURiJxFxb1px/5exGhsb72Pm5QBujfSVsZZrretz7kauP4wxawEsjvzfRkSLlVIbCoHMJZtKpeYT0RoAl0dk1mitn8rWL6uGRbMAXnI7ENGBWCz2QD52VshijDHDmXkTEU2I9FuWTdP/AhabBbA5ixm0AZistd5XCFA+ssaYCwC8DmC+I8/xeHxO1Ka7AQfe4JscB0zGKho0ADLGvBGBloN4k7ur3YCNMR+5rkvMgJmviyygaNCiaWZudc1DXJ5Sakao+QxwEBTedbakLR6Pj/Y87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STfjZ9MegIjlDSWbZnPacHRVgU1LKTRzEB2Z40S0yfO81s7Ozr25srwg6xpLRNOYWcq56XAbaVIsV1Gbzdskot7D9/3XXJeXZcIueZQhovSjjKhKHmUAhI8yYYqYbadbS0pKHl+wYEHGG+TySL0+yrgdJbj4vv+CGxH76eoOBs9e6aCQTysIOBwwyD1qg7tWmOXlM1866yKibcy8QXKDvDo5Qn0CDvtLatrW1iZJ9l3MPIqZbwjuh2IK0qQIIndGueYc8n3/izNnzuxZunTpX4WChvL/AMzbHPzNssRpAAAAAElFTkSuQmCC"},"7d2c":function(t,e,i){},"7e55":function(t,e,i){},"7e84":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAR1JREFUOE/N1D1Ow0AQhuF3iGEXIcQBoKJAHIO/joKGIEFFCbfgChScgAKEU0R0nAKa9CkhDRRBciTCIDts5Dj2rgsjsaW9fjQz366Fhpc07PHH4Olom6+lD2J5rVX5lUb0sMQydPtnKzxJbvjWQyJ2uF/ue9G2rqHJE8gzHXtZDp6r5XP0iOqWF3WYyCrW7HIrg3IwfRpC81hk9riTt3wn5aFUoQEshWfBs2STlhlmLRTRsX3PZpa26SoLhnKcXIMeTeeXR4UByMoUc9UuyAsP9qJ+KBO0C6wTmYNsZp7W52dYPb8WsYx92PwMXd2NhZLPv04oJSfff5d9oVRco/DPwYWibLBo9osHueiGQfdFWyehBFZ9MCT9vv//4A8mr7sVKTiR1wAAAABJRU5ErkJggg=="},9744:function(t,e,i){"use strict";var n=i("4588"),a=i("be13");t.exports=function(t){var e=String(a(this)),i="",s=n(t);if(s<0||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(i+=e);return i}},"9fa5":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"},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("已失效")])])])},a=[],s=(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),a=Math.floor(i-60*n);return 0==a&&(a=1),n.toString().padStart(2,"0")+":"+a.toString().padStart(2,"0")}return this.typeDict[t]},is_normal:function(){return!Reflect.has(this.info,"is_normal")||!!this.info.is_normal}}}),o=s,r=(i("2079"),i("2877")),c=Object(r["a"])(o,n,a,!1,null,"785f94f6",null);e["a"]=c.exports},e98d:function(t,e,i){},f576:function(t,e,i){"use strict";var n=i("5ca1"),a=i("2e08"),s=i("a25f"),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);n(n.P+n.F*o,"String",{padStart:function(t){return a(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}})},feff:function(t,e,i){"use strict";i("7d2c")}}]);
  2. //# sourceMappingURL=chunk-76fe6a9b.89ef33a8.js.map