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

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-10bf2ac2"],{"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(),s=e-i,c=20,d=0;t="undefined"===typeof t?500:t;var u=function e(){d+=c;var o=Math.easeInOutQuad(d,i,s,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,s="2.6.4",c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(e){for(var t={},n=0,a=e.length;n<a;n++)t[e.charAt(n)]=n;return t}(c),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)},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=[c.charAt(n>>>18),c.charAt(n>>>12&63),t>=2?"=":c.charAt(n>>>6&63),t>=1?"=":c.charAt(63&n)];return a.join("")},g=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 g(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],s=e[a+2],d=o<<16|i<<8|s;n+=c.charAt(d>>>18)+c.charAt(d>>>12&63)+("undefined"!=typeof i?c.charAt(d>>>6&63):"=")+("undefined"!=typeof s?c.charAt(63&d):"=")}return t?h(n):n});var w,C=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,O=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))}},S=function(e){return e.replace(C,O)},T=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("")},_=n.atob&&"function"==typeof n.atob?function(e){return n.atob(e)}:function(e){return e.replace(/\S{1,4}/g,T)},x=function(e){return _(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},j=function(e){return S(_(e))},D=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},L=function(e){return j(D(e))};n.Uint8Array&&(w=function(e){return Uint8Array.from(x(D(e)),(function(e){return e.charCodeAt(0)}))});var A=function(){var e=n.Base64;return n.Base64=i,e};if(n.Base64={VERSION:s,atob:x,btoa:g,fromBase64:L,toBase64:v,utob:f,encode:v,encodeURI:y,btou:S,decode:L,noConflict:A,fromUint8Array:o,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 L(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=[],r=function(){return n.Base64}.apply(t,a),void 0===r||(e.exports=r)),{Base64:n.Base64}}))}).call(this,n("c8ba"))},"366b":function(e,t,n){"use strict";n("99af");var a=n("9256"),r={getMemberList:"/member/adminPage",addTag:"/member/addTag",forbiddenMember:"/member/forbidden",getMemberInfo:"/member/query/",getMemberAddress:"/memberAddress/page",getOrderList:"/order/findAdminOrderList",getCustomData:"/order/getOrderStatisticsByMid/",getCommentList:"/comment/findCommentList",getMemberBillDetials:"/member/getMemberBillDetials",editMemberBill:"/member/editMemberBill"};t["a"]={editMemberBill:function(e){return Object(a["a"])({method:"POST",url:r.editMemberBill,data:e})},getMemberBillDetials:function(e){return Object(a["a"])({method:"POST",url:r.getMemberBillDetials,data:e})},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)}})},"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",{staticStyle:{float:"left"}},[e._v("余额明细")]),n("p",{staticStyle:{float:"left","margin-top":"28px","font-size":"12px","font-weight":"700","margin-left":"10px"}},[e._v("(明细字体红色为支出,绿色为收入,黑色则为修改)")]),n("div",{staticClass:"data_list"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,border:""}},[n("el-table-column",{attrs:{prop:"createTime",label:"日期",align:"center"}}),n("el-table-column",{attrs:{prop:"title",label:"标题",align:"center"}}),n("el-table-column",{attrs:{label:"剩余(元)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s("¥")+e._s(t.row.balance))])]}}])}),n("el-table-column",{attrs:{label:"消费商户",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.tenantName))])]}}])}),n("el-table-column",{attrs:{label:"明细(元)",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0==t.row.pm?n("span",{staticStyle:{color:"red"}},[e._v(" -"+e._s(t.row.number)+" ")]):e._e(),1==t.row.pm?n("span",{staticStyle:{color:"#11b95c"}},[e._v(" +"+e._s(t.row.number)+" ")]):e._e(),2==t.row.pm?n("span",{staticStyle:{color:"#303133"}},[e._v(" "+e._s(t.row.number)+" ")]):e._e()]}}])})],1)],1),n("el-pagination",{staticStyle:{"margin-top":"20px"},attrs:{background:"","current-page":e.currentPage4,"page-sizes":[5,10,20,30],layout:"total, sizes, prev, pager, next, jumper",total:Number(e.totals)},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],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)},s=[],c=n("333d"),d=n("366b"),u={components:{Pagination:c["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,s,!1,null,"231eadc0",null),p=(f.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.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)}),g=[],b=n("5c96"),h=n("9590"),v=n("f56f"),y={components:{Pagination:c["a"],Dialog:b["Dialog"],detail:h["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(){v["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(){v["a"].handleComment(a).then((function(e){0===e.data.code&&(t.getList(),t.$message.success("".concat(r,"成功")))}))}))},fetch:function(){this.getCommentList()}}},w=y,C=(n("b0da"),Object(l["a"])(w,p,g,!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)}),S=[],T={components:{Pagination:c["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()}}},_=T,x=(n("769b"),Object(l["a"])(_,O,S,!1,null,"7204a7bb",null)),j=(x.exports,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e._v("123")])}),D=[],L={},A=L,B=Object(l["a"])(A,j,D,!1,null,"76b1b856",null),K=(B.exports,{components:{},data:function(){return{totals:null,currentPage4:1,formParams:{size:10,current:1,model:{mid:0}},tableData:[],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"},{tabName:"TA的消费记录",componentName:"consumption"}],componentName:"order",customData:{},memberBaseInfo:{},dialog:{}}},created:function(){this.getMemberInfo(),this.getCustomData(),this.getMemberBillDetials()},methods:{handleSizeChange:function(e){console.log("每页 ".concat(e," 条")),this.formParams.size=e,this.getMemberBillDetials()},handleCurrentChange:function(e){console.log("当前页: ".concat(e)),this.formParams.current=e,this.getMemberBillDetials()},getMemberBillDetials:function(){var e=this;return Object(o["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.formParams.model.mid=e.$route.query.id,t.next=3,d["a"].getMemberBillDetials(e.formParams);case 3:n=t.sent,e.tableData=n.data.data.records,e.totals=n.data.data.total,console.log(n,"小飞鼠");case 7:case"end":return t.stop()}}),t)})))()},fetch:function(){this.getMemberBillDetials()},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}}}),I=K,P=(n("7165"),Object(l["a"])(I,a,r,!1,null,"6176e083",null));t["default"]=P.exports},"6e51":function(e,t,n){},"6f53":function(e,t,n){var a=n("83ab"),r=n("df75"),o=n("fc6a"),i=n("d1e7").f,s=function(e){return function(t){var n,s=o(t),c=r(s),d=c.length,u=0,m=[];while(d>u)n=c[u++],a&&!i.call(s,n)||m.push(e?[n,s[n]]:s[n]);return m}};e.exports={entries:s(!0),values:s(!1)}},7165:function(e,t,n){"use strict";var a=n("6e51"),r=n.n(a);r.a},"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},"898e":function(e,t,n){"use strict";var a=n("b601"),r=n.n(a);r.a},"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"),s=n("5657");n("27ae");function c(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)}o.a.interceptors.request.use((function(e){var t=!1!==e.headers["X-isToken"]||e.headers["X-isToken"],n=s["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("".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 u=function(e){console.log(e,"opts");var t={ts:Date.now()},n=e.method.toUpperCase(),r={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)?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 s=new Promise((function(e,t){o()(r).then((function(t){d(t,e)})).catch((function(e){c(e,t)}))}));return s};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"})])},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")}}},s=i,c=(n("898e"),n("2877")),d=Object(c["a"])(s,a,r,!1,null,"2f675a90",null);t["a"]=d.exports},b0da:function(e,t,n){"use strict";var a=n("4023"),r=n.n(a);r.a},b601:function(e,t,n){},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",page:"/memberComment/page",update:"/memberComment",delete:"/memberComment"};t["a"]={page:function(e){return Object(a["a"])({method:"POST",url:r.page,data:e})},delete:function(e){return Object(a["a"])({method:"DELETE",url:r.delete,data:e})},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})}}}}]);