glhcp/server/public/pc/_nuxt/890084b.js

1 line
12 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(window.webpackJsonp=window.webpackJsonp||[]).push([[50,18,20],{439:function(e,t,o){"use strict";var r=o(18),n=o(2),l=o(3),c=o(137),d=o(27),f=o(19),v=o(273),m=o(54),h=o(136),_=o(272),x=o(5),y=o(97).f,C=o(45).f,w=o(25).f,S=o(440),I=o(441).trim,N="Number",R=n.Number,$=R.prototype,E=n.TypeError,k=l("".slice),F=l("".charCodeAt),T=function(e){var t=_(e,"number");return"bigint"==typeof t?t:j(t)},j=function(e){var t,o,r,n,l,c,d,code,f=_(e,"number");if(h(f))throw E("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=I(f),43===(t=F(f,0))||45===t){if(88===(o=F(f,2))||120===o)return NaN}else if(48===t){switch(F(f,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+f}for(c=(l=k(f,2)).length,d=0;d<c;d++)if((code=F(l,d))<48||code>n)return NaN;return parseInt(l,r)}return+f};if(c(N,!R(" 0o1")||!R("0b1")||R("+0x1"))){for(var M,z=function(e){var t=arguments.length<1?0:R(T(e)),o=this;return m($,o)&&x((function(){S(o)}))?v(Object(t),o,z):t},A=r?y(R):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),O=0;A.length>O;O++)f(R,M=A[O])&&!f(z,M)&&w(z,M,C(R,M));z.prototype=$,$.constructor=z,d(n,N,z)}},440:function(e,t,o){var r=o(3);e.exports=r(1..valueOf)},441:function(e,t,o){var r=o(3),n=o(33),l=o(17),c=o(442),d=r("".replace),f="["+c+"]",v=RegExp("^"+f+f+"*"),m=RegExp(f+f+"*$"),h=function(e){return function(t){var o=l(n(t));return 1&e&&(o=d(o,v,"")),2&e&&(o=d(o,m,"")),o}};e.exports={start:h(1),end:h(2),trim:h(3)}},442:function(e,t){e.exports="\t\n\v\f\r    \u2028\u2029\ufeff"},443:function(e,t,o){var content=o(446);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(15).default)("3181fc86",content,!0,{sourceMap:!1})},444:function(e,t,o){"use strict";o.r(t);o(439),o(39),o(274);var r={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(e){this.priceFormat()}},methods:{priceFormat:function(){var e=this.price,t={};null!==e&&(e=String(e).split("."),t.first=e[0],t.second=e[1],this.priceSlice=t)}}},n=(o(445),o(9)),component=Object(n.a)(r,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("span",{class:(e.lineThrough?"line-through":"")+"price-format",style:{color:e.color,"font-weight":e.weight}},[e.showSubscript?o("span",{style:{"font-size":e.subscriptSize+"px","margin-right":"1px"}},[e._v("¥")]):e._e(),e._v(" "),o("span",{style:{"font-size":e.firstSize+"px","margin-right":"1px"}},[e._v(e._s(e.priceSlice.first))]),e._v(" "),e.priceSlice.second?o("span",{style:{"font-size":e.secondSize+"px"}},[e._v("."+e._s(e.priceSlice.second))]):e._e()])}),[],!1,null,null,null);t.default=component.exports},445:function(e,t,o){"use strict";o(443)},446:function(e,t,o){var r=o(14)(!1);r.push([e.i,".price-format{display:flex;align-items:baseline}",""]),e.exports=r},455:function(e,t,o){var content=o(468);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(15).default)("368b5a27",content,!0,{sourceMap:!1})},467:function(e,t,o){"use strict";o(455)},468:function(e,t,o){var r=o(14)(!1);r.push([e.i,".v-upload .el-upload--picture-card[data-v-9cabb86c]{width:76px;height:76px;line-height:76px}.v-upload .el-upload-list--picture-card .el-upload-list__item[data-v-9cabb86c]{width:76px;height:76px}",""]),e.exports=r},469:function(e,t,o){"use strict";o.r(t);o(439),o(40);var r=o(188),n={components:{},props:{limit:{type:Number,default:1},isSlot:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},onChange:{type:Function,default:function(){}}},watch:{},data:function(){return{url:r.a.baseUrl}},created:function(){},computed:{},methods:{success:function(e,t,o){this.autoUpload&&(this.$message({message:"上传成功",type:"success"}),this.$emit("success",o))},remove:function(e,t){this.$emit("remove",t)},error:function(e){this.$message({message:"上传失败,请重新上传",type:"error"})},beforeAvatarUpload:function(e){var t=e.name.substring(e.name.lastIndexOf(".")+1);console.log("fdsadsf");var o="jpg"===t,r="png"===t;return o||r?o||r||"jpeg"===t:(this.$message({message:"上传文件只能是 jpg, jpeg, png格式!",type:"warning"}),!1)}}},l=(o(467),o(9)),component=Object(l.a)(n,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"v-upload"},[o("el-upload",{attrs:{"list-type":"picture-card",action:e.url+"/api/file/formimage",limit:e.limit,"on-success":e.success,"on-error":e.error,"on-remove":e.remove,"on-change":e.onChange,headers:{token:e.$store.state.token},"auto-upload":e.autoUpload,accept:"image/jpg,image/jpeg,image/png","before-upload":e.beforeAvatarUpload}},[e.isSlot?e._t("default"):o("div",[o("div",{staticClass:"muted xs"},[e._v("上传图片")])])],2)],1)}),[],!1,null,"9cabb86c",null);t.default=component.exports},553:function(e,t,o){var content=o(639);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[e.i,content,""]]),content.locals&&(e.exports=content.locals);(0,o(15).default)("5a556318",content,!0,{sourceMap:!1})},638:function(e,t,o){"use strict";o(553)},639:function(e,t,o){var r=o(14)(!1);r.push([e.i,".evaluate[data-v-6381a0fe]{width:1010px;padding:0 10px}.evaluate .goods .goods-con[data-v-6381a0fe],.evaluate .goods .goods-hd[data-v-6381a0fe]{padding:10px 20px;border-bottom:1px solid #e5e5e5}.evaluate .goods .goods-con .goods-item[data-v-6381a0fe],.evaluate .goods .goods-hd .goods-item[data-v-6381a0fe]{padding:10px 0}.evaluate .goods .info .goods-img[data-v-6381a0fe]{width:72px;height:72px;margin-right:10px}.evaluate .goods .num[data-v-6381a0fe],.evaluate .goods .price[data-v-6381a0fe],.evaluate .goods .total[data-v-6381a0fe]{width:150px}.evaluate .evaluate-con[data-v-6381a0fe]{padding:20px}.evaluate .evaluate-con .goods-rate .item[data-v-6381a0fe]{margin-bottom:18px}.evaluate .evaluate-con .name[data-v-6381a0fe]{margin-right:24px;flex:none}.evaluate .evaluate-con .evaluate-input[data-v-6381a0fe]{align-items:flex-start}.evaluate .evaluate-con .evaluate-input .el-textarea[data-v-6381a0fe]{width:630px}.evaluate .evaluate-con .evaluate-input .submit-btn[data-v-6381a0fe]{width:100px;height:32px;cursor:pointer}",""]),e.exports=r},681:function(e,t,o){"use strict";o.r(t);var r=o(6),n=(o(65),o(81),o(39),o(98),o(53),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},asyncData:function(e){return Object(r.a)(regeneratorRuntime.mark((function t(){var o,r,n,l,data;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=e.$get,r=e.query,n=r.id,t.next=4,o("goods_comment/getCommentPage",{params:{order_goods_id:n}});case 4:return l=t.sent,data=l.data,t.abrupt("return",{goodsInfo:data,id:n});case 7:case"end":return t.stop()}}),t)})))()},layout:"user",data:function(){return{goodsInfo:{},goodsRate:0,descRate:0,serverRate:0,deliveryRate:0,comment:"",fileList:[],goodsTexts:["差评","差评","中评","好评","好评"]}},methods:{onSuccess:function(e){console.log("res",e),this.fileList=e.map((function(e){return e.response.data})),console.log("fileList",this.fileList)},onSubmit:function(){var e=this,t=this.goodsRate,o=this.fileList,r=this.comment,n=this.deliveryRate,l=this.descRate,c=this.serverRate,image=o.map((function(e){return e.uri}));return t?l?c?n?void this.$post("goods_comment/addGoodsComment",{id:parseInt(this.id),goods_comment:t,service_comment:c,express_comment:n,description_comment:l,comment:r,image:image,order_goods_id:this.$route.query.id}).then((function(t){1==t.code&&(e.$message({message:"评价成功",type:"success"}),setTimeout((function(){e.$router.replace({path:"/user/evaluation"})}),1500))})):this.$message({message:"请对配送服务进行评分",type:"error"}):this.$message({message:"请对服务态度进行评分",type:"error"}):this.$message({message:"请对描述相符进行评分",type:"error"}):this.$message({message:"请对商品进行评分",type:"error"})}}}),l=(o(638),o(9)),component=Object(l.a)(n,(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"evaluate"},[o("div",{staticClass:"goods"},[e._m(0),e._v(" "),o("div",{staticClass:"goods-con"},[o("div",{staticClass:"goods-item flex "},[o("div",{staticClass:"info flex flex-1"},[o("img",{staticClass:"goods-img",attrs:{src:e.goodsInfo.goods_item.image,alt:""}}),e._v(" "),o("div",{staticClass:"goods-info flex flex-1"},[o("div",{staticClass:"goods-name line-2"},[e._v("\n "+e._s(e.goodsInfo.name)+"\n ")]),e._v(" "),o("div",{staticClass:"sm lighter m-t-8"},[e._v(e._s(e.goodsInfo.spec_value_str))])])]),e._v(" "),o("div",{staticClass:"price flex row-center"},[o("price-formate",{attrs:{price:e.goodsInfo.goods_price,weight:"400"}})],1),e._v(" "),o("div",{staticClass:"num flex row-center"},[e._v(e._s(e.goodsInfo.goods_num))]),e._v(" "),o("div",{staticClass:"total flex row-center"},[o("price-formate",{attrs:{price:e.goodsInfo.total_price,weight:"400"}})],1)])])]),e._v(" "),o("div",{staticClass:"evaluate-con"},[o("div",{staticClass:"goods-rate"},[o("div",{staticClass:"flex item"},[o("div",{staticClass:"name"},[e._v("商品评价")]),e._v(" "),o("el-rate",{attrs:{"show-text":"","text-color":"#FF9E2C",texts:e.goodsTexts},model:{value:e.goodsRate,callback:function(t){e.goodsRate=t},expression:"goodsRate"}})],1),e._v(" "),o("div",{staticClass:"flex item"},[o("div",{staticClass:"name"},[e._v("描述相符")]),e._v(" "),o("el-rate",{model:{value:e.descRate,callback:function(t){e.descRate=t},expression:"descRate"}})],1),e._v(" "),o("div",{staticClass:"flex item"},[o("div",{staticClass:"name"},[e._v("服务态度")]),e._v(" "),o("el-rate",{model:{value:e.serverRate,callback:function(t){e.serverRate=t},expression:"serverRate"}})],1),e._v(" "),o("div",{staticClass:"flex item"},[o("div",{staticClass:"name"},[e._v("配送服务")]),e._v(" "),o("el-rate",{model:{value:e.deliveryRate,callback:function(t){e.deliveryRate=t},expression:"deliveryRate"}})],1)]),e._v(" "),o("div",{staticClass:"evaluate-input flex"},[o("div",{staticClass:"name"},[e._v("商品评价")]),e._v(" "),o("div",[o("el-input",{attrs:{type:"textarea",placeholder:"收到商品您有什么想法或者反馈,用几个字来评价下商品吧~",maxlength:"150",rows:6,"show-word-limit":"",resize:"none"},model:{value:e.comment,callback:function(t){e.comment=t},expression:"comment"}}),e._v(" "),o("div",{staticClass:"upload m-t-16"},[o("upload",{attrs:{limit:9},on:{success:e.onSuccess}}),e._v(" "),o("div",{staticClass:"muted m-t-8"},[e._v("\n 最多可上传9张图片支持jpg、png格式图片大小1M以内\n ")])],1),e._v(" "),o("div",{staticClass:"submit-btn white bg-primary m-t-16 flex row-center",on:{click:e.onSubmit}},[e._v("\n 提交评价\n ")])],1)])])])}),[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"goods-hd lighter flex"},[o("div",{staticClass:"info flex flex-1"},[e._v("商品信息")]),e._v(" "),o("div",{staticClass:"price flex row-center"},[e._v("单价")]),e._v(" "),o("div",{staticClass:"num flex row-center"},[e._v("数量")]),e._v(" "),o("div",{staticClass:"total flex row-center"},[e._v("合计")])])}],!1,null,"6381a0fe",null);t.default=component.exports;installComponents(component,{PriceFormate:o(444).default,Upload:o(469).default})}}]);