glhcp/server/public/_nuxt/678763f.js

1 line
13 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[54,12,16,18],{488:function(t,e,n){var content=n(491);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("d7ac674a",content,!0,{sourceMap:!1})},489:function(t,e,n){"use strict";n.r(e);n(300);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=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},l=(n(490),n(9)),component=Object(l.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},490:function(t,e,n){"use strict";n(488)},491:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".price-format{align-items:baseline;display:flex}",""]),o.locals={},t.exports=o},492:function(t,e,n){var content=n(494);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("1e01d57a",content,!0,{sourceMap:!1})},493:function(t,e,n){"use strict";n(492)},494:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}",""]),o.locals={},t.exports=o},495: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:{}},l=(n(493),n(9)),component=Object(l.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 mt8"},[t._v(t._s(t.text))])])}),[],!1,null,"93598fb0",null);e.default=component.exports},512:function(t,e,n){t.exports=n.p+"img/news_null.da0072f.png"},517:function(t,e,n){"use strict";var o=n(2),l=n(110).find,r=n(194),c="find",d=!0;c in[]&&Array(1)[c]((function(){d=!1})),o({target:"Array",proto:!0,forced:d},{find:function(t){return l(this,t,arguments.length>1?arguments[1]:void 0)}}),r(c)},538:function(t,e,n){var content=n(558);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("3ee50391",content,!0,{sourceMap:!1})},557:function(t,e,n){"use strict";n(538)},558:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".evaluation-list[data-v-de1b98b2]{padding:0 10px}.evaluation-list .list1 .shop-info[data-v-de1b98b2]{background-color:#f6f6f6;padding:10px 16px}.evaluation-list .list1 .item[data-v-de1b98b2]{align-items:stretch}.evaluation-list .list1 .item .item-hd[data-v-de1b98b2]{background:#f2f2f2;height:40px;padding:0 20px}.evaluation-list .list1 .item .item-hd .status[data-v-de1b98b2]{text-align:right;width:300px}.evaluation-list .list1 .item .goods[data-v-de1b98b2]{padding-bottom:16px}.evaluation-list .list1 .item .goods .goods-all[data-v-de1b98b2]{border:1px solid #e5e5e5;padding-top:16px}.evaluation-list .list1 .item .goods .goods-item[data-v-de1b98b2]{padding:0 16px 16px}.evaluation-list .list1 .item .goods .goods-item .goods-img[data-v-de1b98b2]{height:72px;margin-right:10px;width:72px}.evaluation-list .list1 .item .operate[data-v-de1b98b2]{width:200px}.evaluation-list .list1 .item .operate .btn[data-v-de1b98b2]{background-color:#ff2c3c;border:1px solid hsla(0,0%,90%,.898);border-radius:2px;cursor:pointer;height:32px;width:104px}.evaluation-list .list2 .user[data-v-de1b98b2]{margin-right:14px}.evaluation-list .list2>.item[data-v-de1b98b2]{align-items:flex-start;border-bottom:1px dashed #e5e5e5;padding:15px 0;width:920px}.evaluation-list .list2>.item .avatar img[data-v-de1b98b2]{border-radius:50%;height:44px;width:44px}.evaluation-list .list2>.item .comment-imglist[data-v-de1b98b2]{margin-top:10px}.evaluation-list .list2>.item .comment-imglist .item[data-v-de1b98b2]{height:80px;margin-right:6px;width:80px}.evaluation-list .list2>.item .reply[data-v-de1b98b2]{align-items:flex-start;background-color:#f6f6f6;padding:10px}.evaluation-list .list2>.item .goods[data-v-de1b98b2]{background-color:#f6f6f6;padding:14px;width:922px}.evaluation-list .list2>.item .goods .goods-img[data-v-de1b98b2]{height:72px;width:72px}",""]),o.locals={},t.exports=o},593:function(t,e,n){var content=n(677);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(18).default)("0978f630",content,!0,{sourceMap:!1})},608:function(t,e,n){"use strict";n.r(e);n(30);var o={props:{list:{type:Array,default:function(){return[]}},type:{type:String},userInfo:{type:Object,default:function(){}}},data:function(){return{lists:[{image:"fdasf",goods_name:"hsdfsafsa",id:" ",spec_value_str:" spec_value_str",goods_price:"100"}]}}},l=(n(557),n(9)),component=Object(l.a)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"evaluation-list"},[1==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:"flex shop-info"},[e("div",{staticClass:"flex",staticStyle:{"margin-right":"100px"}},[e("div",{staticClass:"m-r-8",staticStyle:{width:"16px",height:"16px"}},[e("el-image",{staticStyle:{height:"100%",width:"100%"},attrs:{src:n.shop.logo,fit:"contain"}})],1),t._v(" "),e("div",{staticClass:"xs"},[t._v("\n "+t._s(n.shop.name)+"\n ")])]),t._v(" "),e("div",{staticClass:"xs muted",staticStyle:{"margin-right":"100px"}},[t._v("\n 下单时间:"+t._s(n.create_time)+"\n ")]),t._v(" "),e("div",{staticClass:"xs muted"},[t._v("\n 订单编号:"+t._s(n.order_sn)+"\n ")])]),t._v(" "),e("div",{staticClass:"goods-all"},t._l(n.order_goods_un_comment,(function(n,o){return e("div",{staticClass:"goods-item flex"},[e("nuxt-link",{attrs:{to:"/goods_details/".concat(n.goods_id)}},[e("el-image",{staticClass:"goods-img",attrs:{src:n.goods_item.image,alt:""}})],1),t._v(" "),e("div",{staticClass:"goods-info flex-col flex-1"},[e("div",{staticClass:"goods-name flex row-between",staticStyle:{"align-items":"flex-start"}},[e("div",{staticClass:"line1",staticStyle:{width:"600px"}},[t._v("\n "+t._s(n.goods_name)+"\n ")]),t._v(" "),e("div",{staticClass:"operate flex row-end"},[e("nuxt-link",{staticClass:"btn sm flex row-center white",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.goods_item.spec_value_str))]),t._v(" "),e("div",{staticClass:"primary"},[e("price-formate",{attrs:{price:n.goods_price}})],1)])],1)})),0)])])})),0):t._e(),t._v(" "),2==t.type?e("div",{staticClass:"list2 flex-col"},t._l(t.list,(function(n,o){return e("div",{key:o,staticClass:"item flex"},[e("div",{staticClass:"user"},[e("el-image",{staticStyle:{height:"44px",width:"44px","border-radius":"50%"},attrs:{src:t.userInfo.avatar}})],1),t._v(" "),e("div",{},[e("div",{staticClass:"user_name m-b-5",staticStyle:{"font-size":"14px",color:"#101010"}},[t._v("\n "+t._s(t.userInfo.nickname)+"\n ")]),t._v(" "),e("div",{staticClass:"muted sm"},[t._v("评价时间:"+t._s(n.create_time))]),t._v(" "),e("div",{staticClass:"m-t-10"},[t._v("\n "+t._s(n.comment)+"\n ")]),t._v(" "),e("div",{staticClass:"comment-imglist flex"},t._l(n.goods_comment_image_arr,(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_image_arr,src:img,fit:"contain"}})],1)})),0),t._v(" "),n.reply?e("div",{staticClass:"flex reply mt16"},[e("div",{staticClass:"primary"},[t._v("商家回复:")]),t._v(" "),e("div",{staticClass:"lighter"},[t._v("\n "+t._s(n.reply)+"\n ")])]):t._e(),t._v(" "),e("nuxt-link",{attrs:{to:"/goods_details/".concat(n.goods.id)}},[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:"flex m-b-8"},[e("div",{staticClass:"flex",staticStyle:{width:"451px"}},[e("div",{staticClass:"xs line-1 m-r-5"},[t._v(t._s(n.goods.name))]),t._v(" "),e("div",{staticClass:"xs"},[t._v(t._s(n.goods_item.spec_value_str))])]),t._v(" "),e("div",{staticClass:"flex"},[e("el-image",{staticStyle:{height:"16px",width:"16px"},attrs:{src:n.shop_logo,fit:"contain"}}),t._v(" "),e("div",{staticClass:"m-l-5 xs"},[t._v("\n "+t._s(n.shop_name)+"\n ")])],1)]),t._v(" "),e("div",{staticClass:"m-t-8 primary"},[e("price-formate",{attrs:{price:n.order_goods.total_pay_price}})],1)])],1)])],1)])})),0):t._e()])}),[],!1,null,"de1b98b2",null);e.default=component.exports;installComponents(component,{PriceFormate:n(489).default})},676:function(t,e,n){"use strict";n(593)},677:function(t,e,n){var o=n(17)((function(i){return i[1]}));o.push([t.i,".user-evaluate[data-v-13bbe23c]{padding:20px 0;width:1000px}",""]),o.locals={},t.exports=o},731:function(t,e,n){"use strict";n.r(e);n(30);var o=n(8),l=(n(517),n(12),n(56),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"user",watchQuery:!0,asyncData:function(t){return Object(o.a)(regeneratorRuntime.mark((function e(){var n,o,l,r,c,d,v,m,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.$get,o=t.query,l=o.type||"1",e.next=4,n("goods_comment/getUnCommentOrder",{params:{page_size:10}});case 4:return r=e.sent,c=r.data,d=c.lists,v=c.count,e.next=10,n("user/info");case 10:return m=e.sent,f=m.data,e.abrupt("return",{commentList:{lists:d,count:v},type:l,userInfo:f});case 13:case"end":return e.stop()}}),e)})))()},components:{},data:function(){return{evaluate:[{type:"1",lists:[],name:"待评价",count:0,page:1},{type:"2",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,l,r,c,d,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.type,o=t.evaluate,l=o.find((function(t){return t.type==n})),1!=n){e.next=8;break}return e.next=5,t.$get("goods_comment/getUnCommentOrder",{params:{page_size:10,page_no:l.page}});case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,t.$get("goods_comment/getCommentOrder",{params:{page_size:10,page_no:l.page}});case 10:e.t0=e.sent;case 11:r=e.t0,c=r.data,d=c.lists,v=c.count,1==r.code&&(t.commentList={lists:d,count:v});case 17: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}))}}}}),r=(n(676),n(9)),component=Object(r.a)(l,(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,l){return e("el-tab-pane",{key:l,attrs:{label:o.name,name:o.type}},[o.lists.length?[e("evaluation-list",{attrs:{list:o.lists,type:o.type,userInfo:t.userInfo}}),t._v(" "),o.count?e("div",{staticClass:"pagination flex 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(512),text:"暂无评价~"}})],2)})),1)],1)}),[],!1,null,"13bbe23c",null);e.default=component.exports;installComponents(component,{EvaluationList:n(608).default,NullData:n(495).default})}}]);