| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[8,19],{504:function(t,e,n){var content=n(506);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("36820b1b",content,!0,{sourceMap:!1})},505:function(t,e,n){"use strict";n(504)},506:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,".null-data[data-v-847c0814]{padding:100px}.null-data .img-null[data-v-847c0814]{height:150px;width:150px}",""]),o.locals={},t.exports=o},508:function(t,e,n){"use strict";n.r(e);var o={components:{},props:{img:{type:String},text:{type:String,default:"暂无数据"},imgStyle:{type:String,default:""}},methods:{}},c=(n(505),n(9)),component=Object(c.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-white flex-col col-center null-data"},[e("img",{staticClass:"img-null",style:t.imgStyle,attrs:{src:t.img,alt:""}}),t._v(" "),e("div",{staticClass:"muted m-t-8"},[t._v(t._s(t.text))])])}),[],!1,null,"847c0814",null);e.default=component.exports},531:function(t,e,n){t.exports=n.p+"img/news_null.da0072f.png"},550:function(t,e,n){var content=n(579);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("0a81a8de",content,!0,{sourceMap:!1})},578:function(t,e,n){"use strict";n(550)},579:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,".comment-list .comment-con>.item[data-v-0158fa1e]{align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding:20px}.comment-list .comment-con>.item .avatar img[data-v-0158fa1e]{border-radius:50%;height:44px;width:44px}.comment-list .comment-con>.item .comment-imglist[data-v-0158fa1e]{margin-top:10px}.comment-list .comment-con>.item .comment-imglist .item[data-v-0158fa1e]{height:80px;margin-right:6px;width:80px}.comment-list .comment-con>.item .reply[data-v-0158fa1e]{align-items:flex-start;background-color:#f0f0f0;padding:10px}",""]),o.locals={},t.exports=o},585:function(t,e,n){"use strict";n.r(e);var o=n(7),c=(n(48),n(309),{components:{},props:{list:{type:Array,default:function(){return[]}},type:Number,goodsId:[String,Number]},data:function(){return{commentList:[],count:0,page:1}},created:function(){this.getCommentList()},methods:{getCommentList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,data;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("pc/goodsCommentLists",{params:{id:t.type,goods_id:t.goodsId,page_size:10,page_no:t.page}});case 2:n=e.sent,data=n.data,1==n.code&&(t.commentList=data.lists,t.count=data.count);case 6:case"end":return e.stop()}}),e)})))()},changePage:function(t){this.page=t,this.getCommentList()}},watch:{goodsId:function(t){this.getCommentList()}}}),r=(n(578),n(9)),component=Object(r.a)(c,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"comment-list"},[e("div",{staticClass:"comment-con"},[t.commentList.length?[t._l(t.commentList,(function(n,o){return e("div",{key:o,staticClass:"item flex"},[e("div",{staticClass:"avatar m-r-8"},[e("img",{attrs:{src:n.avatar,alt:""}})]),t._v(" "),e("div",{staticClass:"content flex-1"},[e("div",[t._v(t._s(n.nickname))]),t._v(" "),e("div",{staticClass:"lighter",staticStyle:{margin:"5px 0 10px"}},[e("span",[t._v(t._s(n.create_time))]),t._v(" "),e("span",[t._v("|")]),t._v(" "),e("span",[t._v("规格:"+t._s(n.spec_value_str))])]),t._v(" "),e("div",[t._v("\n "+t._s(n.comment)+"\n ")]),t._v(" "),e("div",{staticClass:"comment-imglist flex"},t._l(n.image,(function(img,t){return e("div",{key:t,staticClass:"item"},[e("el-image",{staticStyle:{height:"100%",width:"100%"},attrs:{"preview-src-list":n.image,src:img,fit:"contain"}})],1)})),0),t._v(" "),n.reply?e("div",{staticClass:"flex reply m-t-16"},[e("div",{staticClass:"flex-none"},[t._v("商家回复:")]),t._v(" "),e("div",{staticClass:"lighter"},[t._v("\n "+t._s(n.reply)+"\n ")])]):t._e()])])})),t._v(" "),t.count?e("div",{staticClass:"pagination flex row-center",staticStyle:{padding:"38px 0"}},[e("el-pagination",{attrs:{background:"","hide-on-single-page":"",layout:"prev, pager, next",total:t.count,"prev-text":"上一页","next-text":"下一页","page-size":10},on:{"current-change":t.changePage}})],1):t._e()]:e("null-data",{attrs:{img:n(531),text:"暂无评价~"}})],2)])}),[],!1,null,"0158fa1e",null);e.default=component.exports;installComponents(component,{NullData:n(508).default})}}]);
|