12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5d4c5b93"],{"0bfe":function(t,e,n){},"3c73":function(t,e,n){},"6ff9":function(t,e,n){"use strict";n("3c73")},"7e74":function(t,e,n){"use strict";var i=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)])},a=[],s={name:"TitleControl",props:{title:{type:String,required:!0},showSearch:{type:Boolean,default:!0}},data:function(){return{content:""}}},c=s,r=(n("e6d2"),n("2877")),o=Object(r["a"])(c,i,a,!1,null,"52e2b05d",null);e["a"]=o.exports},"97bc":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAfJJREFUOE91ks1qU1EUhdc6N2lNGuNPJ1YEFUWTm858BEeOSgcVhRJLm0ZwZqORithERDESOxMsqdQiKDgofQAfwVmTKigqiDrxL71JWpN7l9zUio3xDNde395rczbR5cUn1gYJ3vVLgi6vzu9c6bTxb8Eec/bJ0g0A4wSsTRAugId0eb2yEPm85W+D+9MK72o5GVJZgJFuKQA5Egs/ApHixznWaY+vnQZZBHSgO/BPyA+QMoynawN0dVPQua14/2vgxyb4SBav/dkxkXLOSngMyHQH6ZEYLZciT/w6Y0n1s6eepzQkMgfgE+UVACR+NyiLJgtggFJO5LJr3BztlDMKaVbAUsNtZd8t7PmOEVl21En5YKUaKeEZ3UNj33aHrECBwDAYuNiO6othK7AswDbATLkaeeCb2xNHZCWiznkPyBOs1N3mkN+cscn1Y3RbRRocpIvbMjoD4IgRp3zOo+4BeEOPT2VhmsD7luddoj1ZOyXPmzVEpYVA5lUp9NaeaJwkXB+AYE1V5kPPj6cahwNoFSXYMGYz6om0gnW3doHAFQGLzfWNW69/7q35taM9X/uCO3qvEkgKuBO2+u6/mGNz28nFktV+E2QOxDA95dsTDWcgLHlN5V4uRr9sO7nOfxtMbcQ9NYu+bhjMrJR6Vzs9vwBmpsxjhoi/2gAAAABJRU5ErkJggg=="},"9cdf":function(t,e,n){"use strict";n("dd07")},"9ea2":function(t,e,n){"use strict";n("bf4e")},ac86:function(t,e,n){"use strict";n.r(e);n("d25f");var i=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(n){return e("div",{key:n.id,staticClass:"list-item"},[t.manageType?e("div",{staticClass:"radio"},[e("el-checkbox",{model:{value:n.checked,callback:function(e){t.$set(n,"checked",e)},expression:"item.checked"}})],1):t._e(),e("div",{staticClass:"card",style:t.manageType?{width:"calc(100% - 60px)"}:""},[e("MyBuyCard",{attrs:{info:n,manageType:t.manageType},on:{handleDelete:function(e){return t.handleDelete([n])},handleToDetail:function(e){return t.handleToDetail(n,{id:"item_id",article_id:"article_id"})}}})],1)])})),t.finished?e("el-empty",{attrs:{description:"没有更多数据"}}):t._e()],2)])])},a=[],s=(n("1c01"),n("58b2"),n("8e6e"),n("456d"),n("28a5"),n("6762"),n("2fdb"),n("2909")),c=n("ade3"),r=(n("6d67"),n("ac6a"),n("f3e2"),function(){var t=this,e=t._self._c;return e("div",{staticClass:"card",on:{click:function(e){return t.$emit("handleToDetail")}}},[e("CardBox",t._g({staticClass:"card-box",attrs:{btnList:t.btnList}},t.$listeners),[e("div",{staticClass:"left"},[e("img",{attrs:{src:t.info.cover,alt:""}}),e("div",{staticClass:"type"},[t._v(t._s("系列"))])]),e("div",{staticClass:"right"},[e("div",{staticClass:"title"},[t._v(t._s(t.info.title))]),e("div",{staticClass:"info"},[e("div",{staticClass:"left"},[e("img",{staticClass:"icon",attrs:{src:n("97bc"),alt:""}}),t.info.recently_title?e("div",{staticClass:"last"},[t._v("\n 上次看到:"+t._s(t.info.recently_title)+"\n ")]):e("div",{staticClass:"last"},[t._v("尚未观看")])]),e("div",{staticClass:"num"},[t._v(t._s(t.info.total_sequel)+"集")])])])])],1)}),o=[],l=n("c191"),d={name:"MyBuyCard",components:{CardBox:l["a"]},props:{info:{type:Object},manageType:{type:Boolean,default:!1}},data:function(){return{}},computed:{btnList:function(){var t=["del"];return this.manageType?[]:t}},mounted:function(){}},u=d,f=(n("6ff9"),n("2877")),p=Object(f["a"])(u,r,o,!1,null,"74cff052",null),h=p.exports,b=n("7e74"),g=n("f523");function v(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function m(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?v(Object(n),!0).forEach((function(e){Object(c["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var y={components:{MyBuyCard:h,TitleControl:b["a"]},data:function(){return{list:[],params:{page:1,page_num:20,sort_type:1},finished:!1,manageType:!1,allChecked:!1,type:0,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;g["a"].getPurchaseArticle(this.params).then((function(e){var n=e.data,i=n.list.map((function(t){return m({checked:!1},t)}));t.list=1===t.params.page?i:[].concat(Object(s["a"])(t.list),Object(s["a"])(i)),i.length<t.params.page_num?t.finished=!0:t.params.page++}))},handleDelete:function(t){var e=this;this.showConfirmPopup("确定要删除该信息?").then((function(){var n={id:"",type:4};n.id=t.map((function(t){return t.id})).join(","),n.id&&g["a"].batchesDel(n).then((function(t){t.data;var i=e.list.map((function(t){return n.id.split(",").includes(t.id+"")?"":t})).filter((function(t){return t}));e.list=i,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"};this.$router.push({path:"/image-text-collection",query:{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.title.includes(t)})):(this.list=this.list_copy,this.list_copy="")}}},C=y,O=(n("9cdf"),Object(f["a"])(C,i,a,!1,null,"8f937b4e",null));e["default"]=O.exports},bf4e:function(t,e,n){},c191:function(t,e,n){"use strict";n("6762"),n("2fdb");var i=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)},a=[],s=(n("1c01"),n("58b2"),n("8e6e"),n("d25f"),n("456d"),n("ade3")),c=n("53ca");n("ac6a"),n("f3e2");function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){Object(s["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,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(c["a"])(e)&&"del"==e.type&&(t=o(o({},e),{},{show:!0}))})),t}}},d=l,u=(n("9ea2"),n("2877")),f=Object(u["a"])(d,i,a,!1,null,"42f5fe43",null);e["a"]=f.exports},dd07:function(t,e,n){},e6d2:function(t,e,n){"use strict";n("0bfe")}}]);
- //# sourceMappingURL=chunk-5d4c5b93.ddfe49d5.js.map
|