12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b0db12f"],{"1f2d":function(t,e,i){},2079:function(t,e,i){"use strict";i("1f2d")},2499:function(t,e,i){"use strict";i.r(e);i("d25f");var a=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})))}}},[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("MyCommentCard",{attrs:{info:i,manageType:t.manageType},on:{handleDelete:function(e){return t.handleDelete([i])},handleToDetail:function(e){return t.handleToDetail(i,{id:"item_id",article_id:"article_id"})}}})],1)])})),t.finished?e("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)])])},n=[],s=(i("1c01"),i("58b2"),i("8e6e"),i("456d"),i("28a5"),i("6762"),i("2fdb"),i("2909")),r=i("ade3"),c=(i("6d67"),i("ac6a"),i("f3e2"),i("7f7f"),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",{attrs:{avatar:t.userInfo.headimg,name:t.userInfo.name,time:t.info.create_at,btnList:[]}})],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)}),o=[],l=i("c191"),d=i("a7e8"),u=i("3d06"),f=i("dcfd"),p={name:"MyCommentCard",components:{CardBox:l["a"],CardHeader:d["a"],CardContent:u["a"],CardCoverDetail:f["a"]},props:{info:{type:Object},manageType:{type:Boolean,default:!1}},data:function(){return{}},computed:{btnList:function(){var t=["del"];return this.manageType?[]:t},userInfo:function(){return this.$store.state.userInfo}},mounted:function(){}},h=p,m=(i("489b"),i("2877")),g=Object(m["a"])(h,c,o,!1,null,"c9300402",null),A=g.exports,v=i("7e74"),C=i("f523");function b(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,a)}return i}function y(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?b(Object(i),!0).forEach((function(e){Object(r["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var D={components:{MyCommentCard:A,TitleControl:v["a"]},data:function(){return{list:[],params:{page:1,page_num:20,sort_type:1},finished:!1,manageType:!1,allChecked:!1,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;C["a"].getCommentArticle(this.params).then((function(e){var i=e.data,a=i.list.map((function(t){return y({checked:!1},t)}));t.list=1===t.params.page?a:[].concat(Object(s["a"])(t.list),Object(s["a"])(a)),a.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:1};i.id=t.map((function(t){return t.id})).join(","),i.id&&C["a"].batchesDel(i).then((function(t){t.data;var a=e.list.map((function(t){return i.id.split(",").includes(t.id+"")?"":t})).filter((function(t){return t}));e.list=a,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",article_id:"article_id"};if(Object.keys(t).includes("is_normal")&&!t.is_normal)return this.$message.error("该图文已下架");this.$router.push({path:"/image-text-details",query:{item_id:t[e.id],id:t[e.article_id]}})},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="")}}},j=D,k=(i("8a8e"),Object(m["a"])(j,a,n,!1,null,"4e235e67",null));e["default"]=k.exports},2894:function(t,e,i){},"2e08":function(t,e,i){var a=i("9def"),n=i("9744"),s=i("be13");t.exports=function(t,e,i,r){var c=String(s(t)),o=c.length,l=void 0===i?" ":String(i),d=a(e);if(d<=o||""==l)return c;var u=d-o,f=n.call(l,Math.ceil(u/l.length));return f.length>u&&(f=f.slice(0,u)),r?f+c:c+f}},"489b":function(t,e,i){"use strict";i("e661")},"565b":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAPxJREFUSEvNlTFuwkAQRf+4iZALLhCJg4RDhJYWyWPRBokqIVDR4DZe25wBR6EMh8oB1j8ykotESNjYa7H1zH/7Z79mBY6PONZHf4AkSXYkZwCGLV39iMg+CIKXUufswBjzDODQUvh/+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Z40S0yfO81s7Ozr25srwg6xpLRNOYWcq56XAbaVIsV1Gbzdskot7D9/3XXJeXZcIueZQhovSjjKhKHmUAhI8yYYqYbadbS0pKHl+wYEHGG+TySL0+yrgdJbj4vv+CGxH76eoOBs9e6aCQTysIOBwwyD1qg7tWmOXlM1866yKibcy8QXKDvDo5Qn0CDvtLatrW1iZJ9l3MPIqZbwjuh2IK0qQIIndGueYc8n3/izNnzuxZunTpX4WChvL/AMzbHPzNssRpAAAAAElFTkSuQmCC"},"8a8e":function(t,e,i){"use strict";i("2894")},9744:function(t,e,i){"use strict";var a=i("4588"),n=i("be13");t.exports=function(t){var e=String(n(this)),i="",s=a(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}},dcfd:function(t,e,i){"use strict";var a=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("已失效")])])])},n=[],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,a=Math.floor(i/60),n=Math.floor(i-60*a);return 0==n&&(n=1),a.toString().padStart(2,"0")+":"+n.toString().padStart(2,"0")}return this.typeDict[t]},is_normal:function(){return!Reflect.has(this.info,"is_normal")||!!this.info.is_normal}}}),r=s,c=(i("2079"),i("2877")),o=Object(c["a"])(r,a,n,!1,null,"785f94f6",null);e["a"]=o.exports},e661:function(t,e,i){},f576:function(t,e,i){"use strict";var a=i("5ca1"),n=i("2e08"),s=i("a25f"),r=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(s);a(a.P+a.F*r,"String",{padStart:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},f6b3:function(t,e,i){var a=i("5ca1");a(a.S,"Reflect",{has:function(t,e){return e in t}})}}]);
- //# sourceMappingURL=chunk-0b0db12f.33b764fc.js.map
|