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
28 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-79568fd6"],{"02a6":function(e,t,n){},"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 r(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function o(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(e,t,n){var i=o(),c=e-i,s=20,d=0;t="undefined"===typeof t?500:t;var u=function e(){d+=s;var o=Math.easeInOutQuad(d,i,c,t);r(o),d<t?a(e):n&&"function"===typeof n&&n()};u()}},"27ae":function(e,t,n){(function(n){var a,r;(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 o,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,m=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)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,f=function(e){return e.replace(l,m)},g=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("")},p=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,g)},b=function(e){return p(f(String(e)))},h=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},v=function(e,t){return t?h(b(e)):b(e)},y=function(e){return v(e,!0)};n.Uint8Array&&(o=function(e,t){for(var n="",a=0,r=e.length;a<r;a+=3){var o=e[a],i=e[a+1],c=e[a+2],d=o<<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?h(n):n});var w,T=/[\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))}},O=function(e){return e.replace(T,C)},_=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),r=[u(a>>>16),u(a>>>8&255),u(255&a)];return r.length-=[0,0,2,1][n],r.join("")},L=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,_)},x=function(e){return L(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},S=function(e){return O(L(e))},j=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},D=function(e){return S(j(e))};n.Uint8Array&&(w=function(e){return Uint8Array.from(x(j(e)),(function(e){return e.charCodeAt(0)}))});var A=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:c,atob:x,btoa:p,fromBase64:D,toBase64:v,utob:f,encode:v,encodeURI:y,btou:O,decode:D,noConflict:A,fromUint8Array:o,toUint8Array:w},"function"===typeof Object.defineProperty){var I=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};n.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",I((function(){return D(this)}))),Object.defineProperty(String.prototype,"toBase64",I((function(e){return v(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",I((function(){return v(this,!0)})))}}return n["Meteor"]&&(Base64=n.Base64),e.exports?e.exports.Base64=n.Base64:(a=[],r=function(){return n.Base64}.apply(t,a),void 0===r||(e.exports=r)),{Base64:n.Base64}}))}).call(this,n("c8ba"))},3319:function(e,t,n){},"366b":function(e,t,n){"use strict";n("99af");var a=n("9256"),r={getMemberList:"/member/page",addTag:"/member/addTag",forbiddenMember:"/member/forbidden",getMemberInfo:"/member/query/",getMemberAddress:"/memberAddress/page",getOrderList:"/order/findAdminOrderList",getCustomData:"/order/getOrderStatisticsByMid/",getCommentList:"/comment/findCommentList"};t["a"]={getMemberList:function(e){return Object(a["a"])({method:"POST",url:r.getMemberList,data:e})},addTag:function(e){return Object(a["a"])({method:"POST",url:r.addTag,data:e})},forbiddenMember:function(e){return Object(a["a"])({method:"POST",url:r.forbiddenMember,data:e})},getMemberInfo:function(e){return Object(a["a"])({method:"GET",url:"".concat(r.getMemberInfo).concat(e)})},getCustomData:function(e){return Object(a["a"])({method:"GET",url:"".concat(r.getCustomData).concat(e)})},getOrderList:function(e){return Object(a["a"])({method:"POST",url:r.getOrderList,data:e})},getCommentList:function(e){return Object(a["a"])({method:"POST",url:r.getCommentList,data:e})},getMemberAddress:function(e){return Object(a["a"])({method:"POST",url:r.getMemberAddress,data:e})}}},4023:function(e,t,n){},"4fad":function(e,t,n){var a=n("23e7"),r=n("6f53").entries;a({target:"Object",stat:!0},{entries:function(e){return r(e)}})},"652b":function(e,t,n){},"6a04":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:"custom_info_page"},[n("h2",[e._v("客户信息")]),n("div",{staticClass:"custom_info"},[n("div",{staticClass:"info_item"},[n("img",{attrs:{src:e.memberBaseInfo.headimg,alt:""}})]),n("div",{staticClass:"info_item"},[n("ul",e._l(e.infoList,(function(t,a){return n("li",{key:a},[n("p",[n("span",[e._v(e._s(t.name)+" : ")]),n("span",[e._v(e._s(t.value))])])])})),0)])]),n("div",{staticClass:"custom_tag"},[n("h2",[e._v("客户标签")]),e._l(e.tagList,(function(t,a){return n("p",{key:a},[e._v(e._s(t.tagName))])})),n("p",{on:{click:e.addTag}},[e._v("贴标签")])],2),n("div",{staticClass:"custom_data"},[n("h2",[e._v("消费数据")]),n("div",{staticClass:"data_list"},[n("p",[n("span",[e._v("下 单 数: "),n("font",[e._v(e._s(e.customData.orderCount))])],1),e._v(" 支付成功数: "),n("font",[e._v(e._s(e.customData.payOrderCount))])],1),n("p",[n("span",[e._v("售后次数: "),n("font",[e._v(e._s(e.customData.returnCount))])],1),e._v(" 售后单数: "),n("font",[e._v(e._s(e.customData.returnOrderCount))])],1)]),n("div",{staticClass:"tab_list"},e._l(e.tabList,(function(t,a){return n("p",{key:a,class:[{active:e.componentName===t.componentName}],on:{click:function(n){return e.changeTab(t)}}},[e._v(" "+e._s(t.tabName)+" ")])})),0),n("div",{staticClass:"component_content"},[n(e.componentName,{tag:"component"})],1)]),e.dialog.visible?n("labels",{attrs:{dialog:e.dialog},on:{close:e.close,confirm:e.confirm}}):e._e()],1)},r=[],o=(n("d81d"),n("96cf"),n("1da1")),i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"order_page"},[n("el-form",{attrs:{inline:""}},[n("el-form-item",{attrs:{label:"订单ID"}},[n("el-input",{attrs:{size:"mini"},model:{value:e.form.Keyword,callback:function(t){e.$set(e.form,"Keyword",t)},expression:"form.Keyword"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini"}},[e._v("查询")]),n("el-button",{attrs:{size:"mini"},on:{click:e.query}},[e._v("查询")])],1)],1),n("el-table",{staticStyle:{width:"80%"},attrs:{data:e.tableData.adminOrderDTOList,border:""}},[n("el-table-column",{attrs:{prop:"id",label:"订单ID"}}),n("el-table-column",{attrs:{prop:"storeName",label:"店铺名称"}}),n("el-table-column",{attrs:{prop:"productCount",label:"商品数量"}}),n("el-table-column",{attrs:{prop:"paySum",formatter:e.getPrice,label:"订单金额(元)"}}),n("el-table-column",{attrs:{prop:"orderStatus",formatter:e.getStatus,label:"状态"}})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.form.pageSize,page:e.form.pageIndex,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.form,"pageSize",t)},"update:page":function(t){return e.$set(e.form,"pageIndex",t)},pagination:e.query}})],1)},c=[],s=n("333d"),d=n("366b"),u={components:{Pagination:s["a"]},data:function(){return{form:{Keyword:"",pageIndex:1,pageSize:10,keywordType:1},tableData:{}}},created:function(){this.getOrderList()},methods:{getOrderList:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.form.mid=e.$route.query.id,t.next=3,d["a"].getOrderList(e.form);case 3:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data);case 6:case"end":return t.stop()}}),t)})))()},getStatus:function(e,t,n){var a={1:"待付款",2:"待发货",3:"待收货",4:"已完成",5:"已取消"};return a[n]},getPrice:function(e,t,n){return n/100},query:function(){this.getOrderList()},reset:function(){this.form={Keyword:"",pageIndex:1,pageSize:10,keywordType:1}}}},m=u,l=(n("737b"),n("2877")),f=Object(l["a"])(m,i,c,!1,null,"231eadc0",null),g=f.exports,p=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"order_page"},[n("el-table",{staticStyle:{width:"80%"},attrs:{data:e.tableData.commentDTOList,border:""}},[n("el-table-column",{attrs:{prop:"storeName",label:"店铺名称"}}),n("el-table-column",{attrs:{prop:"productName",label:"商品名称"}}),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(" 查看 ")])]}}])})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.form.pageSize,page:e.form.pageIndex,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.form,"pageSize",t)},"update:page":function(t){return e.$set(e.form,"pageIndex",t)},pagination:e.fetch}}),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)},b=[],h=n("5c96"),v=n("9590"),y=n("f56f"),w={components:{Pagination:s["a"],Dialog:h["Dialog"],detail:v["a"]},data:function(){return{form:{pageIndex:1,pageSize:10},tableData:{},dialog:{}}},created:function(){this.getCommentList()},methods:{getCommentList:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.form.mid=e.$route.query.id,t.next=3,d["a"].getCommentList(e.form);case 3:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data);case 6:case"end":return t.stop()}}),t)})))()},details:function(e){this.dialog={title:"评论详情",visible:!0,info:e}},close:function(){this.dialog={}},deletes:function(e){var t=this,n={id:e||t.dialog.info.id,action:3};t.$confirm("删除后将无法恢复评论","删除",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){y["a"].handleComment(n).then((function(e){0===e.data.code&&(t.dialog={},t.getList(),t.$message.success("删除成功"))}))}))},handle:function(e){var t=this,n=e||t.dialog.info,a={id:n.id,action:n.hideFlag?1:2},r=n.hideFlag?"显示":"隐藏";t.$confirm("确定要".concat(r,"该评论"),"".concat(r,"评论"),{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){y["a"].handleComment(a).then((function(e){0===e.data.code&&(t.getList(),t.$message.success("".concat(r,"成功")))}))}))},fetch:function(){this.getCommentList()}}},T=w,C=(n("b0da"),Object(l["a"])(T,p,b,!1,null,"86078720",null)),O=C.exports,_=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"order_page"},[n("el-table",{staticStyle:{width:"80%"},attrs:{data:e.tableData.records,border:""}},[n("el-table-column",{attrs:{prop:"username",label:"收货人"}}),n("el-table-column",{attrs:{prop:"phone",label:"联系电话"}}),n("el-table-column",{attrs:{prop:"address",label:"地址"}})],1),n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.form.size,page:e.form.current,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.form,"size",t)},"update:page":function(t){return e.$set(e.form,"current",t)},pagination:e.fetch}})],1)},L=[],x={components:{Pagination:s["a"]},data:function(){return{form:{current:1,map:{},model:{address:"",area:"",city:"",cityInfo:"",id:0,isDefault:!0,mid:0,phone:"",province:"",tag:"",username:""},order:"descending",size:10,sort:"id"},tableData:{}}},created:function(){this.getMemberAddress()},methods:{getMemberAddress:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.form.model.mid=e.$route.query.id,t.next=3,d["a"].getMemberAddress(e.form);case 3:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data);case 6:case"end":return t.stop()}}),t)})))()},fetch:function(){this.getMemberAddress()}}},S=x,j=(n("769b"),Object(l["a"])(S,_,L,!1,null,"7204a7bb",null)),D=j.exports,A=n("80bc"),I={components:{order:g,comment:O,addressInfo:D,labels:A["a"]},data:function(){return{infoList:[{name:"用户昵称",value:"",fields:"nickname"},{name:"手 机 号",value:"",fields:"phone"},{name:"性 别",value:"",fields:"sex"},{name:"注册时间",value:"",fields:"createTime"},{name:"生 日",value:"",fields:"birth"}],tagList:[],tabList:[{tabName:"TA的订单",componentName:"order"},{tabName:"TA的评论",componentName:"comment"},{tabName:"TA的收货地址",componentName:"addressInfo"}],componentName:"order",customData:{},memberBaseInfo:{},dialog:{}}},created:function(){this.getMemberInfo(),this.getCustomData()},methods:{getMemberInfo:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,d["a"].getMemberInfo(e.$route.query.id);case 2:n=t.sent,a=n.data,0===a.code&&(r=a.data,e.tagList=r.memberTagList,e.memberBaseInfo=r.memberBaseInfo,e.getInfoList(r.memberBaseInfo||{}));case 5:case"end":return t.stop()}}),t)})))()},getCustomData:function(){var e=this;return Object(o["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"].getCustomData(e.$route.query.id);case 2:n=t.sent,a=n.data,0===a.code&&(e.customData=a.data);case 5:case"end":return t.stop()}}),t)})))()},getInfoList:function(e){var t=this;t.infoList.map((function(t){t.value=e[t.fields]||"","sex"===t.fields&&(t.value="1"===t.value?"男":"女")}))},addTag:function(){this.dialog={title:"选择标签",visible:!0,id:this.$route.query.id}},confirm:function(e){var t={mid:this.$route.query.id,tagIds:e},n=this;d["a"].addTag(t).then((function(e){0===e.data.code&&(n.$message.success("操作成功"),n.getMemberInfo(),n.close())}))},close:function(){this.dialog={}},changeTab:function(e){this.componentName=e.componentName}}},K=I,k=(n("7e5c"),Object(l["a"])(K,a,r,!1,null,"3518c7d3",null));t["default"]=k.exports},"6f53":function(e,t,n){var a=n("83ab"),r=n("df75"),o=n("fc6a"),i=n("d1e7").f,c=function(e){return function(t){var n,c=o(t),s=r(c),d=s.length,u=0,m=[];while(d>u)n=s[u++],a&&!i.call(c,n)||m.push(e?[n,c[n]]:c[n]);return m}};e.exports={entries:c(!0),values:c(!1)}},"737b":function(e,t,n){"use strict";var a=n("8a08"),r=n.n(a);r.a},"769b":function(e,t,n){"use strict";var a=n("02a6"),r=n.n(a);r.a},"7e5c":function(e,t,n){"use strict";var a=n("652b"),r=n.n(a);r.a},"80bc":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"label_page"},[n("el-dialog",{attrs:{title:e.dialog.title,visible:e.dialog.visible,width:"40%","before-close":e.close},on:{"update:visible":function(t){return e.$set(e.dialog,"visible",t)}}},[n("el-form",{attrs:{"label-width":"100px"}},[n("el-form-item",{attrs:{label:"标签名称"}},[n("el-col",{attrs:{span:12}},[n("el-input",{model:{value:e.form.model.name,callback:function(t){e.$set(e.form.model,"name",t)},expression:"form.model.name"}})],1),n("el-col",{staticClass:"el_col_text",attrs:{span:6}},[n("el-button",{on:{click:e.fetch}},[e._v("查询")])],1),n("el-col",{staticClass:"el_col_text",attrs:{span:6}},[n("span",{on:{click:e.manageTag}},[e._v("管理标签")])])],1),n("el-form-item",[n("el-row",[n("el-checkbox-group",{model:{value:e.checkList,callback:function(t){e.checkList=t},expression:"checkList"}},e._l(e.tableData.records,(function(t,a){return n("el-row",{key:a},[n("el-checkbox",{attrs:{label:t.id}},[e._v(e._s(t.name))])],1)})),1)],1),n("el-row",[n("pagination",{directives:[{name:"show",rawName:"v-show",value:e.tableData.total>0,expression:"tableData.total > 0"}],attrs:{limit:e.form.size,page:e.form.current,total:Number(e.tableData.total)},on:{"update:limit":function(t){return e.$set(e.form,"size",t)},"update:page":function(t){return e.$set(e.form,"current",t)},pagination:e.fetch}})],1)],1)],1),n("div",{staticStyle:{"text-align":"center"}},[n("el-button",{on:{click:e.close}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v("确 定")])],1)],1)],1)},r=[],o=(n("4160"),n("159b"),n("96cf"),n("1da1")),i=n("ac44"),c=n("333d"),s={components:{Pagination:c["a"]},props:{dialog:{type:Object,default:function(){return{}}}},data:function(){return{form:{current:1,map:{},model:{name:"",type:""},order:"descending",size:10,sort:"id"},checkList:[],list:[{name:"潜在客户",id:"1"},{name:"土豪",id:"2"},{name:"小气",id:"3"}],tableData:{}}},created:function(){this.getLabelList(),this.queryTag()},methods:{getLabelList:function(){var e=this;return Object(o["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,i["a"].getLabelList(e.form);case 2:n=t.sent,a=n.data,0===a.code&&(e.tableData=a.data);case 5:case"end":return t.stop()}}),t)})))()},queryTag:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].queryTag(e.dialog.id);case 2:n=t.sent,a=n.data,r=[],0===a.code&&(a.data.length&&a.data.forEach((function(e){r.push(e.tagId)})),e.checkList=r);case 6:case"end":return t.stop()}}),t)})))()},fetch:function(){this.getLabelList()},manageTag:function(){this.$router.push({path:"/customer-manage/label"})},close:function(){this.$emit("close")},confirm:function(){this.$emit("confirm",this.checkList)}}},d=s,u=(n("db33"),n("2877")),m=Object(u["a"])(d,a,r,!1,null,"f06e62ea",null);t["a"]=m.exports},"8a08":function(e,t,n){},9256:function(e,t,n){"use strict";n("99af"),n("4160"),n("caad"),n("4fad"),n("d3b7"),n("159b");var a=n("5530"),r=n("bc3a"),o=n.n(r),i=n("5c96"),c=n("5657"),s=n("27ae");function d(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 u(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)}o.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",r="ceres_admin_web";return e.headers["Authorization"]="Basic ".concat(s["Base64"].encode("".concat(a,":").concat(r))),e}),(function(e){return Promise.reject(e)})),o.a.interceptors.response.use((function(e){return e}),(function(e){return Promise.reject(e)}));var m=function(e){var t={ts:Date.now()},n=e.method.toUpperCase(),r={method:n,url:"".concat("https://pos.api.admin.gznl.top").concat(e.url),responseType:e.responseType||"",timeout:2e4},i=["PUT","POST","PATCH"];i.includes(n)?r.data=e.data||{}:r.params=Object(a["a"])(Object(a["a"])({},t),e.data||{}),e.formData&&(r.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){o()(r).then((function(t){u(t,e)})).catch((function(e){d(e,t)}))}));return c};t["a"]=m},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("ul",[e.info.sensitiveFlag?n("li",[n("p",[e._v("敏感词")]),n("p",[e._v(e._s(e.info.sensitiveKeywordList.join()))])]):e._e(),e._l(e.list,(function(t,a){return n("li",{key:a,class:[{active_li:e.info.additionalComment&&2===a}],attrs:{time:e.time}},[t.show?n("p",[e._v(e._s(t.name))]):e._e(),t.show?n("p",[1===t.type?n("span",[e._v(e._s(t.value))]):n("span",e._l(t.imgList,(function(e,t){return n("img",{key:t,attrs:{src:e,alt:""}})})),0)]):e._e()])}))],2),n("div",{staticClass:"btn_list"},[n("el-button",{attrs:{type:"primary"},on:{click:e.confirm}},[e._v(e._s(e.info.hideFlag?"显示":"隐藏"))]),n("el-button",{staticClass:"delete",on:{click:e.deletes}},[e._v("删除")])],1)])},r=[];n("d81d"),n("ac1f"),n("1276");function o(e,t,n){var a=new Date(t).getTime()-new Date(e).getTime(),r=a/6e4,o=r/60;return r<60&&!n?"".concat(r,"分钟"):o<24&&!n?"".concat(o,"小时"):"".concat(parseInt(o/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(o(e.info.createTime,e.info.additionalComment.createTime),"后追加评论"))},deletes:function(){this.$emit("deletes")},confirm:function(){this.$emit("handle")}}},c=i,s=(n("bef6"),n("2877")),d=Object(s["a"])(c,a,r,!1,null,"4cc9bd96",null);t["a"]=d.exports},ac44:function(e,t,n){"use strict";n("99af");var a=n("9256"),r={getLabelList:"/memberTag/page",addLabel:"/memberTag",queryTag:"/memberTag/queryTag/",deleteTag:"/memberTag",editTag:"/memberTag",exportTag:"/memberTag/export",getTagInfo:"/memberTag/"};t["a"]={getLabelList:function(e){return Object(a["a"])({method:"POST",url:r.getLabelList,data:e})},addLabel:function(e){return Object(a["a"])({method:"POST",url:r.addLabel,data:e})},queryTag:function(e){return Object(a["a"])({method:"GET",url:"".concat(r.queryTag).concat(e)})},deleteTag:function(e){return Object(a["a"])({method:"DELETE",url:r.deleteTag,data:e})},editTag:function(e){return Object(a["a"])({method:"PUT",url:r.editTag,data:e})},exportTag:function(e){return Object(a["a"])({method:"POST",url:r.exportTag,data:e})},getTagInfo:function(e){return Object(a["a"])({method:"GET",url:"".concat(r.getTagInfo).concat(e)})}}},ac6f:function(e,t,n){},b0da:function(e,t,n){"use strict";var a=n("4023"),r=n.n(a);r.a},bef6:function(e,t,n){"use strict";var a=n("ac6f"),r=n.n(a);r.a},db33:function(e,t,n){"use strict";var a=n("3319"),r=n.n(a);r.a},f56f:function(e,t,n){"use strict";var a=n("9256"),r={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"};t["a"]={getList:function(e){return Object(a["a"])({method:"POST",url:r.getList,data:e})},handleComment:function(e){return Object(a["a"])({method:"POST",url:r.handleComment,data:e})},getSensitiveKeywordList:function(e){return Object(a["a"])({method:"POST",url:r.getSensitiveKeywordList,data:e})},setSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:r.setSensitiveKeyword,data:e})},addSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:r.addSensitiveKeyword,data:e})},editSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:r.editSensitiveKeyword,data:e})},deleteSensitiveKeyword:function(e){return Object(a["a"])({method:"POST",url:r.deleteSensitiveKeyword,data:e})},getCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:r.getCommentKeywordList,data:e})},setCommentKeywordList:function(e){return Object(a["a"])({method:"POST",url:r.setCommentKeywordList,data:e})},addCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:r.addCommentKeyword,data:e})},editCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:r.editCommentKeyword,data:e})},deleteCommentKeyword:function(e){return Object(a["a"])({method:"POST",url:r.deleteCommentKeyword,data:e})}}}}]);