| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-7c248e82"],{1426:function(t,e,r){"use strict";r.r(e),r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("3ca3"),r("ddb0"),r("b636"),r("944a"),r("0c47"),r("23dc"),r("3410"),r("d9e2"),r("159b"),r("b0c0"),r("131a"),r("fb6a");var a=r("0122"),o=r("d0ff"),i=r("c964"),n=(r("a434"),r("a15b"),r("99af"),r("4e82"),r("c740"),r("c4c8")),s=(r("d81d"),{props:{visible:{type:Boolean,default:!1},goods:{type:Object,default:function(){return{}}},attr:{type:Object,default:function(){return{}}},avatar:{type:Object,default:function(){return{}}},picture:{type:Array,default:function(){return[]}}},data:function(){return{formData:{avatar:"",nickname:"",comment:""},product_score:0,service_score:0,pics:[],add_time:""}},watch:{picture:function(t){this.pics=t.map((function(t){return t.att_dir}))},visible:function(t){t||(this.formData.nickname="",this.formData.comment="",this.product_score=0,this.service_score=0,this.add_time="")}},methods:{removeUser:function(){this.avatar.att_dir=""},removePicture:function(t){this.$emit("removePicture",t)},onChange:function(t){this.add_time=t},callGoods:function(){this.$emit("callGoods")},callAttr:function(){this.$emit("callAttr")},callPicture:function(t){this.$emit("callPicture",t)},onOk:function(){var t,e=this;return this.goods.id?this.attr.image?this.avatar.att_dir?this.formData.nickname?this.formData.comment?this.product_score?this.service_score?(t={image:{image:this.goods.image,product_id:this.goods.id},suk:this.attr.suk,avatar:this.avatar.att_dir,nickname:this.formData.nickname,comment:this.formData.comment,product_score:this.product_score,service_score:this.service_score,pics:this.pics,add_time:this.add_time},void Object(n.E)(t).then((function(t){e.$Message.success(t.msg),e.$emit("update:visible",!1)})).catch((function(t){e.$Message.error(t.msg)}))):this.$Message.error("服务分数必须是1-5之间的整数"):this.$Message.error("商品分数必须是1-5之间的整数"):this.$Message.error("请填写评论内容"):this.$Message.error("请填写用户昵称"):this.$Message.error("请选择用户头像"):this.$Message.error("请选择商品规格"):this.$Message.error("请选择商品")},onCancel:function(){this.$emit("update:visible",!1)}}}),c=(r("2277"),r("2877")),l=(s=Object(c.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("Modal",{attrs:{value:t.visible,"z-index":2,title:"添加自评",width:"700"},on:{"on-ok":t.onOk,"on-cancel":t.onCancel}},[r("Form",{attrs:{model:t.formData,"label-width":125}},[r("FormItem",{attrs:{label:"商品"}},[r("div",{staticClass:"upload-box",on:{click:t.callGoods}},[t.goods.id?r("img",{staticClass:"image",attrs:{src:t.goods.image}}):r("Icon",{attrs:{type:"ios-add"}})],1)]),t.goods.id?r("FormItem",{attrs:{label:"商品规格"}},[r("div",{staticClass:"upload-box",on:{click:t.callAttr}},[t.attr.image?r("img",{staticClass:"image",attrs:{src:t.attr.image}}):r("Icon",{attrs:{type:"ios-add"}})],1),r("div",[t._v(t._s(t.attr.suk))])]):t._e(),r("FormItem",{attrs:{label:"用户头像"}},[r("div",{staticClass:"upload-box",on:{click:function(e){return t.callPicture("单选")}}},[t.avatar.att_dir?r("img",{staticClass:"image",attrs:{src:t.avatar.att_dir}}):t._e(),t.avatar.att_dir?r("Button",{staticClass:"btn",attrs:{shape:"circle",icon:"md-close"},on:{click:function(e){return e.stopPropagation(),t.removeUser(e)}}}):r("Icon",{attrs:{type:"ios-add"}})],1)]),r("FormItem",{attrs:{label:"用户名称"}},[r("Input",{attrs:{placeholder:"请输入用户名称"},model:{value:t.formData.nickname,callback:function(e){t.$set(t.formData,"nickname",e)},expression:"formData.nickname"}})],1),r("FormItem",{attrs:{label:"评价文字"}},[r("Input",{attrs:{type:"textarea",autosize:{minRows:2},placeholder:"请输入评价文字"},model:{value:t.formData.comment,callback:function(e){t.$set(t.formData,"comment",e)},expression:"formData.comment"}})],1),r("FormItem",{attrs:{label:"商品分数"}},[r("Rate",{model:{value:t.product_score,callback:function(e){t.product_score=e},expression:"product_score"}})],1),r("FormItem",{attrs:{label:"服务分数"}},[r("Rate",{model:{value:t.service_score,callback:function(e){t.service_score=e},expression:"service_score"}})],1),r("FormItem",{attrs:{label:"评价图片"}},[t._l(t.picture,(function(e){return r("div",{key:e.att_id,staticClass:"upload-box"},[r("img",{staticClass:"image",attrs:{src:e.att_dir}}),r("Button",{staticClass:"btn",attrs:{shape:"circle",icon:"md-close"},on:{click:function(r){return t.removePicture(e.att_id)}}})],1)})),t.picture.length<8?r("div",{staticClass:"upload-box",on:{click:function(e){return t.callPicture("多选")}}},[r("Icon",{attrs:{type:"ios-add"}})],1):t._e()],2),r("FormItem",{attrs:{label:"评价时间"}},[r("DatePicker",{staticStyle:{width:"200px"},attrs:{value:t.add_time,type:"datetime",placeholder:"请选择评论时间(不选择默认当前添加时间)"},on:{"on-change":t.onChange}})],1)],1),r("template",{slot:"footer"},[r("Button",{on:{click:t.onCancel}},[t._v("取消")]),r("Button",{attrs:{type:"primary"},on:{click:t.onOk}},[t._v("确定")])],1)],2)}),[],!1,null,"28929c6a",null).exports,r("c4ad")),u=r("b0e7");function d(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */d=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},n=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(e){l=function(t,e,r){return t[e]=r}}function u(t,e,r,a){var i,n,s,c;e=e&&e.prototype instanceof m?e:m,e=Object.create(e.prototype),a=new x(a||[]);return o(e,"_invoke",{value:(i=t,n=r,s=a,c="suspendedStart",function(t,e){if("executing"===c)throw new Error("Generator is already running");if("completed"===c){if("throw"===t)throw e;return M()}for(s.method=t,s.arg=e;;){var r=s.delegate;if(r&&(r=function t(e,r){var a=r.method,o=e.iterator[a];return void 0===o?(r.delegate=null,"throw"===a&&e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method)||"return"!==a&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+a+"' method")),h):(a=f(o,e.iterator,r.arg),"throw"===a.type?(r.method="throw",r.arg=a.arg,r.delegate=null,h):(o=a.arg,o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,h):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,h)))}(r,s),r)){if(r===h)continue;return r}if("next"===s.method)s.sent=s._sent=s.arg;else if("throw"===s.method){if("suspendedStart"===c)throw c="completed",s.arg;s.dispatchException(s.arg)}else"return"===s.method&&s.abrupt("return",s.arg);if(c="executing",r=f(i,n,s),"normal"===r.type){if(c=s.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:s.done}}"throw"===r.type&&(c="completed",s.method="throw",s.arg=r.arg)}})}),e}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var h={};function m(){}function p(){}function v(){}i={};var g=(l(i,n,(function(){return this})),Object.getPrototypeOf),y=(g=g&&g(g(C([]))),g&&g!==e&&r.call(g,n)&&(i=g),v.prototype=m.prototype=Object.create(i));function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var i;o(this,"_invoke",{value:function(o,n){function s(){return new e((function(i,s){!function o(i,n,s,c){var l;i=f(t[i],t,n);if("throw"!==i.type)return(n=(l=i.arg).value)&&"object"==Object(a.a)(n)&&r.call(n,"__await")?e.resolve(n.__await).then((function(t){o("next",t,s,c)}),(function(t){o("throw",t,s,c)})):e.resolve(n).then((function(t){l.value=t,s(l)}),(function(t){return o("throw",t,s,c)}));c(i.arg)}(o,n,i,s)}))}return i=i?i.then(s,s):s()}})}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function C(t){if(t){var e,a=t[n];if(a)return a.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(a=function a(){for(;++e<t.length;)if(r.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=a}return{next:M}}function M(){return{value:void 0,done:!0}}return o(y,"constructor",{value:p.prototype=v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=l(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,c,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},b(_.prototype),l(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,r,a,o,i){void 0===i&&(i=Promise);var n=new _(u(e,r,a,o),i);return t.isGeneratorFunction(r)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},b(y),l(y,c,"Generator"),l(y,n,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e,r=Object(t),a=[];for(e in r)a.push(e);return a.reverse(),function t(){for(;a.length;){var e=a.pop();if(e in r)return t.value=e,t.done=!1,t}return t.done=!0,t}},t.values=C,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function a(r,a){return n.type="throw",n.arg=t,e.next=r,a&&(e.method="next",e.arg=void 0),!!a}for(var o=this.tryEntries.length-1;0<=o;--o){var i=this.tryEntries[o],n=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),c=r.call(i,"finallyLoc");if(s&&c){if(this.prev<i.catchLoc)return a(i.catchLoc,!0);if(this.prev<i.finallyLoc)return a(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return a(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return a(i.finallyLoc)}}}},abrupt:function(t,e){for(var a=this.tryEntries.length-1;0<=a;--a){var o=this.tryEntries[a];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}var n=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return n.type=t,n.arg=e,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),h}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(a=r.arg,k(o)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:C(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},t}s={name:"product_productEvaluate",components:{addReply:s,goodsList:l.default,uploadPictures:u.a},data:function(){var t=this;return{modals:!1,replyModal:!1,pictureModal:!1,goodsModal:!1,attrModal:!1,grid:{xl:7,lg:10,md:12,sm:12,xs:24},gridPic:{xl:6,lg:8,md:12,sm:12,xs:12},gridBtn:{xl:4,lg:8,md:8,sm:8,xs:8},formValidate:{is_reply:"",data:"",store_name:"",key:"",order:"",account:"",product_id:void 0===this.$route.params.id?0:this.$route.params.id,page:1,limit:15},fromList:{title:"选择时间",custom:!0,fromTxt:[{text:"全部",val:""},{text:"今天",val:"today"},{text:"昨天",val:"yesterday"},{text:"最近7天",val:"lately7"},{text:"最近30天",val:"lately30"},{text:"本月",val:"month"},{text:"本年",val:"year"}]},tableColumns:[{width:60,align:"center",render:function(e,r){return e("Radio",{props:{value:r.row.unique===t.attrData.unique},on:{"on-change":function(){t.attrData=r.row,t.attrModal=!1}}})}},{title:"图片",slot:"image",width:120,align:"center"},{title:"规格",key:"suk",align:"center",minWidth:120},{title:"售价",key:"ot_price",align:"center",minWidth:120},{title:"优惠价",key:"price",align:"center",minWidth:120}],value:"45",tableList:[],goodsAddType:"",goodsData:{},attrData:{},avatarData:{},pictureData:[],selectProductAttrList:[],isChoice:"",picTit:"",tableIndex:0,total:0,loading:!1,columns:[{title:"评论ID",key:"id",width:80},{title:"商品信息",slot:"info",minWidth:230},{title:"用户名称",key:"nickname",minWidth:150},{title:"评分",key:"score",sortable:!0,minWidth:90},{title:"评价内容",slot:"content",minWidth:210},{title:"回复内容",key:"merchant_reply_content",minWidth:250},{title:"评价时间",key:"add_time",sortable:!0,minWidth:150},{title:"操作",slot:"action",fixed:"right",minWidth:150}],timeVal:[],contents:{content:""},ruleInline:{content:[{required:!0,message:"请输入回复内容",trigger:"blur"}]},rows:{}}},computed:{},created:function(){0==this.$route.query.is_reply&&(this.formValidate.is_reply=this.$route.query.is_reply),this.getList()},watch:{"$route.params.id":function(t,e){this.formValidate.product_id=0,this.getList()},replyModal:function(t){t||(this.goodsData={},this.attrData={},this.avatarData={},this.pictureData=[],this.getList())}},methods:{add:function(){this.replyModal=!0},oks:function(){var t=this;this.modals=!0,this.$refs.contents.validate((function(e){if(!e)return!1;Object(n.F)(t.contents,t.rows.id).then(function(){var e=Object(i.a)(d().mark((function e(r){return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$Message.success(r.msg),t.modals=!1,t.$refs.contents.resetFields(),t.getList();case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.$Message.error(e.msg)}))}))},cancels:function(){this.modals=!1,this.$refs.contents.resetFields()},del:function(t,e,r){var a=this;e={title:e,num:r,url:"product/reply/".concat(t.id),method:"DELETE",ids:""};this.$modalSure(e).then((function(t){a.$Message.success(t.msg),a.tableList.splice(r,1),a.total=a.total-1})).catch((function(t){a.$Message.error(t.msg)}))},reply:function(t){this.modals=!0,this.rows=t},onchangeTime:function(t){this.timeVal=t,this.formValidate.data=this.timeVal[0]?this.timeVal.join("-"):"",this.formValidate.page=1,this.getList()},sortMethod:function(t){"normal"===t.order?(this.formValidate.key="",this.formValidate.order=""):(this.formValidate.key=t.key,this.formValidate.order=t.order),this.getList()},selectChange:function(t){this.formValidate.data=t,this.timeVal=[],this.formValidate.page=1,this.getList()},getList:function(){var t=this;this.loading=!0,this.formValidate.is_reply=this.formValidate.is_reply||"",this.formValidate.store_name=this.formValidate.store_name||"",Object(n.A)(this.formValidate).then(function(){var e=Object(i.a)(d().mark((function e(r){var a;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=r.data,t.tableList=a.list,t.total=r.data.count,t.loading=!1;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1,t.$Message.error(e.msg)}))},pageChange:function(t){this.formValidate.page=t,this.getList()},userSearchs:function(){this.formValidate.page=1,this.getList()},search:function(){},callGoods:function(){this.goodsModal=!0},callAttr:function(){this.attrModal=!0},getProductId:function(t){this.goodsData=t,this.goodsModal=!1,this.attrData.unique=""},getPic:function(t){this.avatarData=t,this.pictureModal=!1},getPicD:function(t){var e=Object(o.a)(this.pictureData);(e=e.concat(t)).sort((function(t,e){return t.att_id-e.att_id}));for(var r=[],a=0;a<e.length;a++)e[a+1]&&e[a].att_id!=e[a+1].att_id&&r.push(e[a]),e[a+1]||r.push(e[a]);this.pictureData=r,this.pictureModal=!1},callPicture:function(t){this.isChoice=t,this.pictureModal=!0},removePicture:function(t){var e=this.pictureData.findIndex((function(e){return e.att_id===t}));this.pictureData.splice(e,1)}}},r("c4a2"),l=Object(c.a)(s,(function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"article-manager"},[r("div",{staticClass:"i-layout-page-header header-title"},[r("div",{staticClass:"fl_header"},[t.$route.params.id?r("router-link",{attrs:{to:{path:t.$routeProStr+"/product/product_list"}}},[r("Button",{staticClass:"mr20",attrs:{icon:"ios-arrow-back",size:"small"}},[t._v("返回")])],1):t._e(),r("span",{staticClass:"ivu-page-header-title mr20"},[t._v("商品评论管理")])],1)]),r("Card",{staticClass:"ivu-mt",attrs:{bordered:!1,"dis-hover":""}},[r("Form",{ref:"formValidate",attrs:{model:t.formValidate,"label-width":75,"label-position":"left"},nativeOn:{submit:function(t){t.preventDefault()}}},[r("Row",{attrs:{type:"flex",gutter:24}},[r("Col",{attrs:{span:"24"}},[r("FormItem",{attrs:{label:"评论时间:"}},[r("RadioGroup",{staticClass:"mr",attrs:{type:"button"},on:{"on-change":function(e){return t.selectChange(t.formValidate.data)}},model:{value:t.formValidate.data,callback:function(e){t.$set(t.formValidate,"data",e)},expression:"formValidate.data"}},t._l(t.fromList.fromTxt,(function(e,a){return r("Radio",{key:a,attrs:{label:e.val}},[t._v(t._s(e.text))])})),1),r("DatePicker",{staticStyle:{width:"200px"},attrs:{editable:!1,value:t.timeVal,format:"yyyy/MM/dd",type:"daterange",placement:"bottom-end",placeholder:"请选择时间"},on:{"on-change":t.onchangeTime}})],1)],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"评价状态:"}},[r("Select",{attrs:{placeholder:"请选择",clearable:""},on:{"on-change":t.userSearchs},model:{value:t.formValidate.is_reply,callback:function(e){t.$set(t.formValidate,"is_reply",e)},expression:"formValidate.is_reply"}},[r("Option",{attrs:{value:"1"}},[t._v("已回复")]),r("Option",{attrs:{value:"0"}},[t._v("未回复")])],1)],1)],1),t.$route.params.id?t._e():r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"商品信息:","label-for":"store_name"}},[r("Input",{attrs:{size:"default","enter-button":"",placeholder:"请输入商品ID或者商品信息",clearable:""},model:{value:t.formValidate.store_name,callback:function(e){t.$set(t.formValidate,"store_name",e)},expression:"formValidate.store_name"}})],1)],1),r("Col",t._b({},"Col",t.grid,!1),[r("FormItem",{attrs:{label:"用户名称:","label-for":"account"}},[r("Input",{attrs:{size:"default","enter-button":"",placeholder:"请输入",clearable:""},model:{value:t.formValidate.account,callback:function(e){t.$set(t.formValidate,"account",e)},expression:"formValidate.account"}})],1)],1),r("Col",{staticClass:"search",attrs:{xl:3,lg:3,md:12,sm:12,xs:24}},[r("FormItem",[r("Button",{attrs:{type:"primary",icon:"ios-search"},on:{click:t.userSearchs}},[t._v("搜索")])],1)],1)],1)],1),r("Row",{attrs:{type:"flex"}},[r("Col",t._b({},"Col",t.grid,!1),[r("Button",{directives:[{name:"auth",rawName:"v-auth",value:["product-reply-save_fictitious_reply"],expression:"['product-reply-save_fictitious_reply']"}],attrs:{type:"primary",icon:"md-add"},on:{click:t.add}},[t._v("添加自评")])],1)],1),r("Table",{ref:"table",staticClass:"ivu-mt mt25",attrs:{columns:t.columns,data:t.tableList,loading:t.loading,"no-data-text":"暂无数据","no-filtered-data-text":"暂无筛选结果"},on:{"on-sort-change":t.sortMethod},scopedSlots:t._u([{key:"info",fn:function(e){return e=e.row,[r("div",{staticClass:"imgPic acea-row row-middle"},[r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],staticClass:"pictrue"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:e.image,expression:"row.image"}]})]),r("div",{staticClass:"info"},[t._v(t._s(e.store_name))])])]}},{key:"content",fn:function(e){return e=e.row,[r("div",{staticClass:"mb5 content_font"},[t._v(t._s(e.comment))]),t._l(e.pics||[],(function(t,e){return r("div",{directives:[{name:"viewer",rawName:"v-viewer"}],key:e,staticClass:"pictrue mr10"},[r("img",{directives:[{name:"lazy",rawName:"v-lazy",value:t,expression:"item"}],attrs:{src:t}})])}))]}},{key:"action",fn:function(e){var a=e.row,o=e.index;return[r("a",{on:{click:function(e){return t.reply(a)}}},[t._v("回复")]),r("Divider",{attrs:{type:"vertical"}}),r("a",{on:{click:function(e){return t.del(a,"删除评论",o)}}},[t._v("删除")])]}}])}),r("div",{staticClass:"acea-row row-right page"},[r("Page",{attrs:{total:t.total,current:t.formValidate.page,"show-elevator":"","show-total":"","page-size":t.formValidate.limit},on:{"on-change":t.pageChange}})],1)],1),r("Modal",{attrs:{scrollable:"",title:"回复内容",closable:""},model:{value:t.modals,callback:function(e){t.modals=e},expression:"modals"}},[r("Form",{ref:"contents",attrs:{model:t.contents,rules:t.ruleInline,"label-position":"right"},nativeOn:{submit:function(t){t.preventDefault()}}},[r("FormItem",{attrs:{prop:"content"}},[r("Input",{attrs:{type:"textarea",rows:4,placeholder:"请输入回复内容"},model:{value:t.contents.content,callback:function(e){t.$set(t.contents,"content",e)},expression:"contents.content"}})],1)],1),r("div",{attrs:{slot:"footer"},slot:"footer"},[r("Button",{attrs:{type:"primary"},on:{click:t.oks}},[t._v("确定")]),r("Button",{on:{click:t.cancels}},[t._v("取消")])],1)],1),r("addReply",{attrs:{visible:t.replyModal,goods:t.goodsData,attr:t.attrData,avatar:t.avatarData,picture:t.pictureData},on:{"update:visible":function(e){t.replyModal=e},callGoods:t.callGoods,callAttr:t.callAttr,callPicture:t.callPicture,removePicture:t.removePicture}}),r("Modal",{attrs:{title:"选择商品",width:"960",scrollable:"","footer-hide":""},model:{value:t.goodsModal,callback:function(e){t.goodsModal=e},expression:"goodsModal"}},[t.replyModal?r("goodsList",{on:{getProductId:t.getProductId}}):t._e()],1),r("Modal",{attrs:{title:"选择商品规格",width:"960",scrollable:"","footer-hide":""},model:{value:t.attrModal,callback:function(e){t.attrModal=e},expression:"attrModal"}},[r("Table",{attrs:{columns:t.tableColumns,data:t.goodsData.attrs,height:"500"},scopedSlots:t._u([{key:"image",fn:function(t){var e=t.row;return t.index,[r("div",{staticClass:"product-data"},[r("img",{staticClass:"image",attrs:{src:e.image}})])]}}])})],1),r("Modal",{attrs:{width:"960px",scrollable:"","footer-hide":"",closable:"",title:"上传商品图","mask-closable":!1,"z-index":1},model:{value:t.pictureModal,callback:function(e){t.pictureModal=e},expression:"pictureModal"}},[t.pictureModal?r("uploadPictures",{attrs:{isChoice:t.isChoice,gridBtn:t.gridBtn,gridPic:t.gridPic},on:{getPic:t.getPic,getPicD:t.getPicD}}):t._e()],1)],1)}),[],!1,null,"5b605e1d",null),e.default=l.exports},2277:function(t,e,r){"use strict";var a=r("5fe0");r.n(a).a},"4e82":function(t,e,r){"use strict";var a=r("23e7"),o=r("e330"),i=r("59ed"),n=r("7b0b"),s=r("07fa"),c=r("577e"),l=r("d039"),u=r("addb"),d=r("a640"),f=r("04d1"),h=r("d998"),m=r("2d00"),p=r("512ce"),v=[],g=o(v.sort),y=o(v.push),b=(r=l((function(){v.sort(void 0)})),o=l((function(){v.sort(null)})),d=d("sort"),!l((function(){if(m)return m<70;if(!(f&&3<f)){if(h)return!0;if(p)return p<603;for(var t,e,r,a="",o=65;o<76;o++){switch(t=String.fromCharCode(o),o){case 66:case 69:case 70:case 72:e=3;break;case 68:case 71:e=4;break;default:e=2}for(r=0;r<47;r++)v.push({k:t+r,v:e})}for(v.sort((function(t,e){return e.v-t.v})),r=0;r<v.length;r++)t=v[r].k.charAt(0),a.charAt(a.length-1)!==t&&(a+=t);return"DGBEFHACIJK"!==a}})));a({target:"Array",proto:!0,forced:r||!o||!d||!b},{sort:function(t){void 0!==t&&i(t);var e=n(this);if(b)return void 0===t?g(e):g(e,t);for(var r,a,o=[],l=s(e),d=0;d<l;d++)d in e&&y(o,e[d]);for(u(o,(a=t,function(t,e){return void 0===e?-1:void 0===t?1:void 0!==a?+a(t,e)||0:c(t)>c(e)?1:-1})),r=o.length,d=0;d<r;)e[d]=o[d++];for(;d<l;)delete e[d++];return e}})},"5fe0":function(t,e,r){},"74a3":function(t,e,r){},c4a2:function(t,e,r){"use strict";var a=r("74a3");r.n(a).a}}]);
|