You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1 lines
18 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-49f16a06"],{"09f4":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),Math.easeInOutQuad=function(e,t,n,a){return e/=a/2,e<1?n/2*e*e+t:(e--,-n/2*(e*(e-2)-1)+t)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function o(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=r(),c=e-i,s=20,d=0;t="undefined"===typeof t?500:t;var u=function e(){d+=s;var r=Math.easeInOutQuad(d,i,c,t);o(r),d<t?a(e):n&&"function"===typeof n&&n()};u()}},1975:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comment_manage_page"},[n("div",{staticClass:"content"},[n("el-tabs",{on:{"tab-click":e.selectItem},model:{value:e.formParams.type,callback:function(t){e.$set(e.formParams,"type",t)},expression:"formParams.type"}},e._l(e.tabList,(function(e,t){return n("el-tab-pane",{key:t,attrs:{label:e.name,name:e.id}})})),1),n("div",{staticClass:"toolbar"},[n("el-form",{attrs:{inline:!0,model:e.formParams}},[n("el-form-item",{attrs:{label:"活动文章类型"}},[n("el-select",{attrs:{placeholder:"请选择"},model:{value:e.formParams.model.relationalId,callback:function(t){e.$set(e.formParams.model,"relationalId",t)},expression:"formParams.model.relationalId"}},e._l(e.activityList,(function(e){return n("el-option",{key:e.value,attrs:{label:e.mainTitle,value:e.id}})})),1)],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.query}},[e._v(" 查询 ")]),n("el-button",{attrs:{plain:"",size:"mini"},on:{click:e.reset}},[e._v(" 重置 ")])],1)],1)],1),n("div",{staticClass:"content_table"},[n("div",{staticClass:"table"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData.records,border:""}},[n("el-table-column",{attrs:{prop:"mid",label:"用户ID"}}),n("el-table-column",{attrs:{prop:"likes",label:"点赞数量"}}),n("el-table-column",{attrs:{prop:"createTime",label:"评论日期"}}),n("el-table-column",{attrs:{prop:"content",label:"评论内容"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",{staticStyle:{"white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},[e._v(e._s(t.row.content))])]}}])}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.details(t.row)}}},[e._v(" 查看 ")]),n("el-button",{attrs:{type:"text",size:"small"},nativeOn:{click:function(n){return n.preventDefault(),e.deletes(t.row.id)}}},[e._v(" 删除 ")])]}}])})],1)],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.formParams.pageSize,page:e.formParams.pageIndex,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.formParams,"pageSize",t)},"update:page":function(t){return e.$set(e.formParams,"pageIndex",t)},pagination:e.fetch}})],1)],1),n("Dialog",{attrs:{title:e.dialog.title,visible:e.dialog.visible,fullscreen:!1,"before-close":e.close,width:"55%"},on:{"update:visible":function(t){return e.$set(e.dialog,"visible",t)}}},[e.dialog.visible?n("detail",{attrs:{info:e.dialog.info},on:{deletes:e.deletes,handle:e.handle}}):e._e()],1)],1)},o=[],r=(n("96cf"),n("1da1")),i=n("333d"),c=n("9590"),s=n("5c96"),d=n("f56f"),u=n("282d"),l={components:{Pagination:i["a"],Dialog:s["Dialog"],detail:c["a"]},data:function(){return{formParams:{current:1,map:{},model:{relationalId:"",relationalType:1},order:"descending",size:10,sort:"id"},date:[],tableData:{total:0},tabList:[{name:"全部评论",id:"1"},{name:"敏感评论",id:"2"}],dialog:{},activityList:[]}},created:function(){this.getList(),this.getActivityTweetsList()},methods:{getActivityTweetsList:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a,o,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n={pageNum:1,pageSize:10,searchKey:"",state:"",type:2},e.loading=!0,t.next=4,u["a"].page(n);case 4:a=t.sent,o=a.data,r=o.code,0===r&&(e.activityList=o.data.list);case 8:case"end":return t.stop()}}),t)})))()},getList:function(){var e=this;return Object(r["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].page(e.formParams);case 2:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data);case 5:case"end":return t.stop()}}),t)})))()},query:function(){this.getList()},details:function(e){this.dialog={title:"评论详情",visible:!0,info:e}},handle:function(e){var t=this,n=e||t.dialog.info,a={id:n.id,action:n.hideFlag?1:2},o=n.hideFlag?"显示":"隐藏";t.$confirm("确定要".concat(o,"该评论"),"".concat(o,"评论"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].handleComment(a).then((function(e){0===e.data.code&&(t.getList(),t.$message.success("".concat(o,"成功")))}))}))},deletes:function(e){var t=this;t.$confirm("删除后将无法恢复评论","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){d["a"].delete({ids:[e]}).then((function(e){0===e.data.code&&(t.dialog={},t.getList(),t.$message.success("删除成功"))}))}))},reset:function(){this.formParams={current:1,map:{},model:{relationalId:"",relationalType:1},order:"descending",size:10,sort:"id"}},fetch:function(){this.getList()},selectItem:function(){this.getList()},close:function(){this.dialog={}}}},m=l,f=(n("c316"),n("2877")),p=Object(f["a"])(m,a,o,!1,null,"7707ab89",null);t["default"]=p.exports},"27ae":function(e,t,n){(function(n){var a,o;(function(t,n){e.exports=n(t)})("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n?n:this,(function(n){"use strict";n=n||{};var r,i=n.Base64,c="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(e){for(var t={},n=0,a=e.length;n<a;n++)t[e.charAt(n)]=n;return t}(s),u=String.fromCharCode,l=function(e){if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?u(192|t>>>6)+u(128|63&t):u(224|t>>>12&15)+u(128|t>>>6&63)+u(128|63&t)}t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return u(240|t>>>18&7)+u(128|t>>>12&63)+u(128|t>>>6&63)+u(128|63&t)},m=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(m,l)},p=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0),a=[s.charAt(n>>>18),s.charAt(n>>>12&63),t>=2?"=":s.charAt(n>>>6&63),t>=1?"=":s.charAt(63&n)];return a.join("")},h=n.btoa&&"function"==typeof n.btoa?function(e){return n.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,p)},b=function(e){return h(f(String(e)))},g=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?g(b(e)):b(e)},y=function(e){return v(e,!0)};n.Uint8Array&&(r=function(e,t){for(var n="",a=0,o=e.length;a<o;a+=3){var r=e[a],i=e[a+1],c=e[a+2],d=r<<16|i<<8|c;n+=s.charAt(d>>>18)+s.charAt(d>>>12&63)+("undefined"!=typeof i?s.charAt(d>>>6&63):"=")+("undefined"!=typeof c?s.charAt(63&d):"=")}return t?g(n):n});var w,O=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,C=function(e){switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return u(55296+(n>>>10))+u(56320+(1023&n));case 3:return u((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return u((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},j=function(e){return e.replace(O,C)},S=function(e){var t=e.length,n=t%4,a=(t>0?d[e.charAt(0)]<<18:0)|(t>1?d[e.charAt(1)]<<12:0)|(t>2?d[e.charAt(2)]<<6:0)|(t>3?d[e.charAt(3)]:0),o=[u(a>>>16),u(a>>>8&255),u(255&a)];return o.length-=[0,0,2,1][n],o.join("")},T=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,S)},P=function(e){return T(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},x=function(e){return j(T(e))},A=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},K=function(e){return x(A(e))};n.Uint8Array&&(w=function(e){return Uint8Array.from(P(A(e)),(function(e){return e.charCodeAt(0)}))});var L=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:c,atob:P,btoa:h,fromBase64:K,toBase64:v,utob:f,encode:v,encodeURI:y,btou:j,decode:K,noConflict:L,fromUint8Array:r,toUint8Array:w},"function"===typeof Object.defineProperty){var B=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",B((function(){return K(this)}))),Object.defineProperty(String.prototype,"toBase64",B((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",B((function(){return v(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:(a=[],o=function(){return n.Base64}.apply(t,a),void 0===o||(e.exports=o)),{Base64:n.Base64}}))}).call(this,n("c8ba"))},"282d":function(e,t,n){"use strict";var a=n("5530"),o=n("9256"),r={page:{method:"POST",url:"/information/list"},update:{method:"PUT",url:"/information"},save:{method:"POST",url:"/information"},delete:{method:"DELETE",url:"/information"},activityPush:{method:"POST",url:"/app-push/notify"}};t["a"]={page:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])(Object(a["a"])(Object(a["a"])({},r.page),{},{data:e,custom:t}))},save:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])(Object(a["a"])(Object(a["a"])({},r.save),{},{data:e,custom:t}))},update:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])(Object(a["a"])(Object(a["a"])({},r.update),{},{data:e,custom:t}))},delete:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])(Object(a["a"])(Object(a["a"])({},r.delete),{},{data:e,custom:t}))},activityPush:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(o["a"])(Object(a["a"])(Object(a["a"])({},r.activityPush),{},{data:e,custom:t}))}}},"4fad":function(e,t,n){var a=n("23e7"),o=n("6f53").entries;a({target:"Object",stat:!0},{entries:function(e){return o(e)}})},"6f53":function(e,t,n){var a=n("83ab"),o=n("df75"),r=n("fc6a"),i=n("d1e7").f,c=function(e){return function(t){var n,c=r(t),s=o(c),d=s.length,u=0,l=[];while(d>u)n=s[u++],a&&!i.call(c,n)||l.push(e?[n,c[n]]:c[n]);return l}};e.exports={entries:c(!0),values:c(!1)}},"898e":function(e,t,n){"use strict";var a=n("b601"),o=n.n(a);o.a},9256:function(e,t,n){"use strict";n("99af"),n("4160"),n("caad"),n("4fad"),n("d3b7"),n("159b");var a=n("5530"),o=n("bc3a"),r=n.n(o),i=n("5c96"),c=n("5657");n("27ae");function s(e,t){"ECONNABORTED"===e.code?Object(i["Message"])({message:"请求超时"}):e.response&&e.response.data?Object(i["Message"])({message:e.response.data}):e.message&&Object(i["Message"])({message:e.message}),t(e)}function d(e,t){e.data.isError&&(4e4===e.data.code||40001===e.data.code||40002===e.data.code||40003===e.data.code||40005===e.data.code||40006===e.data.code||40008===e.data.code?i["MessageBox"].alert(e.data.msg,"提醒",{confirmButtonText:"确定",callback:function(){window.location.hash="/login"}}):i["Message"].error(e.data.msg)),t(e)}r.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],n=c["a"].get("TOKEN","");n&&t&&(e.headers.token="Bearer "+n);var a="ceres_admin_web",o="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat("".concat(a,":").concat(o)),e}),(function(e){return Promise.reject(e)})),r.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var u=function(e){console.log(e,"opts");var t={ts:Date.now()},n=e.method.toUpperCase(),o={method:n,url:"".concat("https://pos.admin.api.lotus-wallet.com").concat(e.url),responseType:e.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(n)?o.data=e.data||{}:o.params=Object(a["a"])(Object(a["a"])({},t),e.data||{}),e.formData&&(o.transformRequest=[function(e){var t=new FormData;return e&&Object.entries(e).forEach((function(e){t.append(e[0],e[1])})),t}]);var c=new Promise((function(e,t){r()(o).then((function(t){d(t,e)})).catch((function(e){s(e,t)}))}));return c};t["a"]=u},9590:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"detail_page"},[n("div",[e._v(" "+e._s(e.info.content)+" ")]),n("div",{staticClass:"btn_list"})])},o=[];n("d81d"),n("ac1f"),n("1276");function r(e,t,n){var a=new Date(t).getTime()-new Date(e).getTime(),o=a/6e4,r=o/60;return o<60&&!n?"".concat(o,"分钟"):r<24&&!n?"".concat(r,"小时"):"".concat(parseInt(r/24),"天")}var i={props:{info:{type:Object,default:function(){}}},data:function(){return{list:[{name:"评论",value:"商品好看有实用,强烈推荐购买。这台电脑买来不是玩游戏的,没那爱好。主要用来给孩子上网课,大人偶尔会看看电影视频这些,所以配的4K显示器。京东快递很麻利,从山东调货,隔天就到了,非常感谢。",type:1,fields:"commentText"},{name:"图片",value:"商品好看有实用,强烈推荐购买。这台电脑买来不是玩游戏的,没那爱好。主要用来给孩子上网课,大人偶尔会看看电影视频这些,所以配的4K显示器。京东快递很麻利,从山东调货,隔天就到了,非常感谢。",type:2,imgList:["http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg"],fields:"commentImgs"},{name:"追评",value:"机器外观精致小巧,性能也足够家用。",type:1,fields:"additionalComment",fieldsItem:"commentText"},{name:"图片",value:"机器外观精致小巧,性能也足够家用。",type:2,imgList:["http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg","http://cereshop.oss-cn-shenzhen.aliyuncs.com/admin/2020/07/6b0d6d7a-8ec8-4fdd-b75d-8b6590683543.jpg"],fields:"additionalComment",fieldsItem:"commentImgs"}],time:""}},watch:{info:{handler:function(){this.getList()},deep:!0}},created:function(){this.getList()},methods:{getList:function(){var e=this;e.list.map((function(t){e.info[t.fields]&&(t.value=e.info[t.fields],t.show=!0,"additionalComment"===t.fields&&(t.value=e.info.additionalComment[t.fieldsItem],"commentImgs"===t.fieldsItem&&(t.imgList=e.info.additionalComment.commentImgsFlag?e.info.additionalComment.commentImgs.split(","):[],t.show=e.info.additionalComment.commentImgsFlag)),"commentImgs"===t.fields&&(t.imgList=e.info.commentImgsFlag?e.info.commentImgs.split(","):[],t.show=e.info.commentImgsFlag))})),e.info.additionalComment&&(e.time="".concat(r(e.info.createTime,e.info.additionalComment.createTime),"后追加评论"))},deletes:function(){this.$emit("deletes")},confirm:function(){this.$emit("handle")}}},c=i,s=(n("898e"),n("2877")),d=Object(s["a"])(c,a,o,!1,null,"2f675a90",null);t["a"]=d.exports},b601:function(e,t,n){},c316:function(e,t,n){"use strict";var a=n("db9d"),o=n.n(a);o.a},db9d:function(e,t,n){},f56f:function(e,t,n){"use strict";var a=n("9256"),o={getList:"/comment/findCommentList",handleComment:"/comment/handleComment",getSensitiveKeywordList:"/comment/findSensitiveKeywordList",setSensitiveKeyword:"/comment/updateSensitiveKeywordSetting",addSensitiveKeyword:"/comment/addSensitiveKeyword",editSensitiveKeyword:"/comment/updateSensitiveKeyword",deleteSensitiveKeyword:"/comment/deleteSensitiveKeyword",getCommentKeywordList:"/comment/findCommentKeywordList",setCommentKeywordList:"/comment/updateCommentKeywordSetting",addCommentKeyword:"/comment/addCommentKeyword",editCommentKeyword:"/comment/updateCommentKeyword",deleteCommentKeyword:"/comment/deleteCommentKeyword",page:"/memberComment/page",update:"/memberComment",delete:"/memberComment"};t["a"]={page:function(e){return Object(a["a"])({method:"POST",url:o.page,data:e})},delete:function(e){return Object(a["a"])({method:"DELETE",url:o.delete,data:e})},getList:function(e){return Object(a["a"])({method:"POST",url:o.getList,data:e})},handleComment:function(e){return Object(a["a"])({method:"POST",url:o.handleComment,data:e})},getSensitiveKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.getSensitiveKeywordList,data:e})},setSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.setSensitiveKeyword,data:e})},addSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.addSensitiveKeyword,data:e})},editSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.editSensitiveKeyword,data:e})},deleteSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:o.deleteSensitiveKeyword,data:e})},getCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.getCommentKeywordList,data:e})},setCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:o.setCommentKeywordList,data:e})},addCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.addCommentKeyword,data:e})},editCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.editCommentKeyword,data:e})},deleteCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:o.deleteCommentKeyword,data:e})}}}}]);