| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55,12,19,20],{498:function(t,e,n){var content=n(502);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("1df0c15c",content,!0,{sourceMap:!1})},499:function(t,e,n){"use strict";n(22),n(65);e.a={head:function(){var t=this.$store.getters.headerMeta;return{title:t.title,link:[{rel:"icon",type:"image/x-icon",href:t.ico}],meta:[{hid:"description",name:"description",content:t.description},{hid:"keywords",name:"keywords",content:t.keywords}]}}}},500:function(t,e,n){"use strict";n.r(e);n(309);var o={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},r=(n(501),n(9)),component=Object(r.a)(o,(function(){var t=this,e=t._self._c;return e("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?e("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),e("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?e("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},501:function(t,e,n){"use strict";n(498)},502:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,".price-format{align-items:baseline;display:flex}",""]),o.locals={},t.exports=o},503: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(503)},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},507: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:{}},r=(n(505),n(9)),component=Object(r.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},513:function(t,e,n){"use strict";var o=n(2),r=n(88).find,l=n(205),c="find",d=!0;c in[]&&Array(1)[c]((function(){d=!1})),o({target:"Array",proto:!0,forced:d},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),l(c)},531:function(t,e,n){t.exports=n.p+"img/news_null.da0072f.png"},541:function(t,e,n){var content=n(565);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("36471ba0",content,!0,{sourceMap:!1})},564:function(t,e,n){"use strict";n(541)},565:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,".evaluation-list[data-v-0d03b704]{padding:0 10px}.evaluation-list .list1 .item[data-v-0d03b704]{align-items:stretch;border-bottom:1px solid #e5e5e5}.evaluation-list .list1 .item .item-hd[data-v-0d03b704]{background:#f2f2f2;height:40px;padding:0 20px}.evaluation-list .list1 .item .item-hd .status[data-v-0d03b704]{text-align:right;width:300px}.evaluation-list .list1 .item .goods[data-v-0d03b704]{padding:17px 0}.evaluation-list .list1 .item .goods .goods-item[data-v-0d03b704]{padding:10px 20px}.evaluation-list .list1 .item .goods .goods-item .goods-img[data-v-0d03b704]{height:72px;margin-right:10px;width:72px}.evaluation-list .list1 .item .operate[data-v-0d03b704]{width:200px}.evaluation-list .list1 .item .operate .btn[data-v-0d03b704]{border:1px solid #e5e5e5;border-radius:2px;cursor:pointer;height:32px;width:104px}.evaluation-list .list2>.item[data-v-0d03b704]{align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding:20px}.evaluation-list .list2>.item .avatar img[data-v-0d03b704]{border-radius:50%;height:44px;width:44px}.evaluation-list .list2>.item .comment-imglist[data-v-0d03b704]{margin-top:10px}.evaluation-list .list2>.item .comment-imglist .item[data-v-0d03b704]{height:80px;margin-right:6px;width:80px}.evaluation-list .list2>.item .reply[data-v-0d03b704]{align-items:flex-start;background-color:#f0f0f0;padding:10px}.evaluation-list .list2>.item .goods[data-v-0d03b704]{background-color:#f0f0f0;padding:15px;width:930px}.evaluation-list .list2>.item .goods .goods-img[data-v-0d03b704]{height:72px;width:72px}",""]),o.locals={},t.exports=o},603:function(t,e,n){var content=n(672);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(21).default)("4283efa5",content,!0,{sourceMap:!1})},624:function(t,e,n){"use strict";n.r(e);n(68),n(13),n(22),n(26),n(33),n(34),n(25),n(24);var o=n(10),r=n(14);function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}var c={props:{list:{type:Array,default:function(){return[]}},type:{type:String}},computed:function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){Object(o.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},Object(r.e)(["publicData"]))},d=c,m=(n(564),n(9)),component=Object(m.a)(d,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"evaluation-list"},[0==t.type?e("div",{staticClass:"list1"},t._l(t.list,(function(n,o){return e("div",{key:o,staticClass:"item flex"},[e("div",{staticClass:"goods"},[e("div",{staticClass:"goods-item flex"},[e("el-image",{staticClass:"goods-img",attrs:{src:n.goods_image,alt:""}}),t._v(" "),e("div",{staticClass:"goods-info flex1"},[e("div",{staticClass:"goods-name flex row-between",staticStyle:{"align-items":"flex-start"}},[e("div",{staticClass:"line-1",staticStyle:{width:"600px"}},[t._v("\n "+t._s(n.goods_name)+"\n ")]),t._v(" "),e("div",{staticClass:"operate flex-col row-end"},[e("nuxt-link",{staticClass:"btn lighter sm flex row-center",attrs:{to:"/user/evaluation/evaluate?id=".concat(n.id)}},[t._v("去评价")])],1)]),t._v(" "),e("div",{staticClass:"sm lighter m-b-8"},[t._v(t._s(n.spec_value_str))]),t._v(" "),e("div",{staticClass:"primary"},[e("price-formate",{attrs:{price:n.goods_price}})],1)])],1)])])})),0):t._e(),t._v(" "),1==t.type?e("div",{staticClass:"list2"},t._l(t.list,(function(n,o){return e("div",{key:o,staticClass:"item flex col-top"},[e("div",{},[e("el-image",{staticStyle:{height:"44px",width:"44px","border-radius":"50%"},attrs:{src:t.publicData.my.avatar}})],1),t._v(" "),n.goods_comment?e("div",{staticClass:"m-l-20"},[e("div",{staticClass:"lg m-b-10"},[t._v("\n "+t._s(t.publicData.my.nickname)+"\n ")]),t._v(" "),e("div",{staticClass:"muted sm"},[t._v("评价时间:"+t._s(n.goods_comment.create_time))]),t._v(" "),e("div",{staticClass:"m-t-10"},[t._v("\n "+t._s(n.goods_comment.comment)+"\n ")]),t._v(" "),e("div",{staticClass:"comment-imglist flex"},t._l(n.goods_comment.goods_comment_image,(function(img,t){return e("div",{key:t,staticClass:"item"},[e("el-image",{staticStyle:{height:"100%",width:"100%"},attrs:{"preview-src-list":n.goods_comment.goods_comment_image.map((function(t){return t.uri})),src:img.uri,fit:"contain"}})],1)})),0),t._v(" "),n.goods_comment.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.goods_comment.reply)+"\n ")])]):t._e(),t._v(" "),e("div",{staticClass:"goods flex m-t-16"},[e("el-image",{staticClass:"goods-img",attrs:{src:n.goods_image,alt:""}}),t._v(" "),e("div",{staticClass:"goods-info m-l-10"},[e("div",{staticClass:"line1 mb8"},[t._v(t._s(n.goods_name))]),t._v(" "),e("div",{staticClass:"sm lighter m-b-8"},[t._v(t._s(n.spec_value_str))]),t._v(" "),e("div",{staticClass:"m-t-8 primary"},[e("price-formate",{attrs:{price:n.goods_price}})],1)])],1)]):t._e()])})),0):t._e()])}),[],!1,null,"0d03b704",null);e.default=component.exports;installComponents(component,{PriceFormate:n(500).default})},671:function(t,e,n){"use strict";n(603)},672:function(t,e,n){var o=n(20)((function(i){return i[1]}));o.push([t.i,".user-evaluate{padding:10px}",""]),o.locals={},t.exports=o},730:function(t,e,n){"use strict";n.r(e);n(32);var o=n(7),r=(n(513),n(13),n(48),{mixins:[n(499).a],layout:"user-layout",watchQuery:!0,asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,r,l,c,d,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$get,o=t.query,r=o.type||"0",e.next=4,n("goods_comment/commentGoodsLists",{params:{type:r,page_size:10}});case 4:if(l=e.sent,c=l.data,d=c.lists,m=c.count,1!=l.code){e.next=11;break}return e.abrupt("return",{commentList:{lists:d,count:m},type:r});case 11:case"end":return e.stop()}}),e)})))()},components:{},data:function(){return{commentList:{},type:"0",evaluate:[{type:"0",lists:[],name:"待评价",count:0,page:1},{type:"1",lists:[],name:"已评价",count:0,page:1}]}},methods:{handleClick:function(){this.getEvaluateList()},getEvaluateList:function(){var t=this;return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,r,l,c,d,m;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.type,o=t.evaluate,r=o.find((function(t){return t.type==n})),e.next=4,t.$get("goods_comment/commentGoodsLists",{params:{page_size:10,page_no:r.page,type:n}});case 4:l=e.sent,c=l.data,d=c.lists,m=c.count,1==l.code&&(t.commentList={lists:d,count:m});case 10:case"end":return e.stop()}}),e)})))()},changePage:function(t){var e=this;this.evaluate.some((function(n){n.type==e.type&&(n.page=t)})),this.getEvaluateList()}},watch:{commentList:{immediate:!0,handler:function(t){var e=this;this.evaluate.some((function(n){if(n.type==e.type)return Object.assign(n,t),console.log(n),!0}))}}}}),l=(n(671),n(9)),component=Object(l.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"user-evaluate"},[e("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},t._l(t.evaluate,(function(o,r){return e("el-tab-pane",{key:r,attrs:{label:o.name,name:o.type}},[o.lists.length?[e("evaluation-list",{attrs:{list:o.lists,type:o.type}}),t._v(" "),o.count?e("div",{staticClass:"pagination row-center"},[e("el-pagination",{attrs:{"hide-on-single-page":"",background:"",layout:"prev, pager, next",total:o.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)],1)}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{EvaluationList:n(624).default,NullData:n(507).default})}}]);
|