glhcp/server/public/mobile/static/js/bundle-pages-goods_reviews-...

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode 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([["bundle-pages-goods_reviews-goods_reviews"],{"0d00":function(t,e,i){"use strict";i.r(e);var n=i("aa0e"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"104d":function(t,e,i){"use strict";i("a434"),i("e25e"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i("2075"),a=i("e9dc"),o=(i("357b"),{data:function(){return{action:n.baseURL+"/api/file/formimage",goodsRate:0,descRate:0,serverRate:0,deliveryRate:0,goodsRateDesc:"",fileList:[],goodsInfo:{shop:{},goods_item:{}},comment:"",type:""}},onLoad:function(){this.id=this.$Route.query.id,this.getCommentInfoFun()},methods:{onSuccess:function(t){this.fileList.push(t.data.base_uri)},onRemove:function(t){this.fileList.splice(t,1)},goodsRateChange:function(t){var e="";e=t<=2?"差评":3==t?"中评":"好评",this.goodsRateDesc=e},onSubmit:function(){var t=this,e=this.goodsRate,i=this.fileList,n=this.comment,o=this.deliveryRate,s=this.descRate,r=this.serverRate;return e?s?r?o?void(0,a.goodsComment)({order_goods_id:parseInt(this.id),goods_comment:e,service_comment:r,express_comment:o,description_comment:s,comment:n,image:i}).then((function(e){1==e.code&&(t.$toast({title:"评价成功"},{tab:3,url:1}),uni.$emit("refreshcomment"))})):this.$toast({title:"请对配送服务进行评分"}):this.$toast({title:"请对服务态度进行评分"}):this.$toast({title:"请对描述相符进行评分"}):this.$toast({title:"请对商品进行评分"})},getCommentInfoFun:function(){var t=this;(0,a.getCommentInfo)({order_goods_id:this.id}).then((function(e){1==e.code&&(t.goodsInfo=e.data)}))}}});e.default=o},"1dd9":function(t,e,i){"use strict";var n=i("fc5a"),a=i.n(n);a.a},"37b6":function(t,e,i){"use strict";function n(t,e,i){this.$children.map((function(a){t===a.$options.name?a.$emit.apply(a,[e].concat(i)):n.apply(a,[t,e].concat(i))}))}i("99af"),i("d81d"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={methods:{dispatch:function(t,e,i){var n=this.$parent||this.$root,a=n.$options.name;while(n&&(!a||a!==t))n=n.$parent,n&&(a=n.$options.name);n&&n.$emit.apply(n,[e].concat(i))},broadcast:function(t,e,i){n.call(this,t,e,i)}}};e.default=a},"55c1":function(t,e,i){"use strict";var n=i("4ea4");i("a9e3"),i("498a"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=n(i("37b6")),o={name:"u-input",mixins:[a.default],props:{value:{type:[String,Number],default:""},type:{type:String,default:"text"},inputAlign:{type:String,default:"left"},placeholder:{type:String,default:"请输入内容"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},placeholderStyle:{type:String,default:"color: #c0c4cc;"},confirmType:{type:String,default:"done"},customStyle:{type:Object,default:function(){return{}}},fixed:{type:Boolean,default:!1},focus:{type:Boolean,default:!1},passwordIcon:{type:Boolean,default:!0},border:{type:Boolean,default:!1},borderColor:{type:String,default:"#dcdfe6"},autoHeight:{type:Boolean,default:!0},selectOpen:{type:Boolean,default:!1},height:{type:[Number,String],default:""},clearable:{type:Boolean,default:!0},cursorSpacing:{type:[Number,String],default:0},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},trim:{type:Boolean,default:!0},showConfirmbar:{type:Boolean,default:!0}},data:function(){return{defaultValue:this.value,inputHeight:70,textareaHeight:100,validateState:!1,focused:!1,showPassword:!1,lastValue:""}},watch:{value:function(t,e){this.defaultValue=t,t!=e&&"select"==this.type&&this.handleInput({detail:{value:t}})}},computed:{inputMaxlength:function(){return Number(this.maxlength)},getStyle:function(){var t={};return t.minHeight=this.height?this.height+"rpx":"textarea"==this.type?this.textareaHeight+"rpx":this.inputHeight+"rpx",t=Object.assign(t,this.customStyle),t},getCursorSpacing:function(){return Number(this.cursorSpacing)},uSelectionStart:function(){return String(this.selectionStart)},uSelectionEnd:function(){return String(this.selectionEnd)}},created:function(){this.$on("on-form-item-error",this.onFormItemError)},methods:{handleInput:function(t){var e=this,i=t.detail.value;this.trim&&(i=this.$u.trim(i)),this.$emit("input",i),this.defaultValue=i,setTimeout((function(){e.dispatch("u-form-item","on-form-change",i)}),40)},handleBlur:function(t){var e=this;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",t.detail.value),setTimeout((function(){e.dispatch("u-form-item","on-form-blur",t.detail.value)}),40)},onFormItemError:function(t){this.validateState=t},onFocus:function(t){this.focused=!0,this.$emit("focus")},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},inputClick:function(){this.$emit("click")}}};e.default=o},"57a8":function(t,e,i){"use strict";i.r(e);var n=i("55c1"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},"5a93":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".price-format[data-v-0a5a34e0]{font-family:Avenir,SourceHanSansCN,PingFang SC,Arial,Hiragino Sans GB,Microsoft YaHei,sans-serif}",""]),t.exports=e},"5cb0":function(t,e,i){"use strict";i.r(e);var n=i("74f4"),a=i("57a8");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7404");var s,r=i("f0c5"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"1203163a",null,!1,n["a"],s);e["default"]=u.exports},7404:function(t,e,i){"use strict";var n=i("c4f7"),a=i.n(n);a.a},"74f4":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uIcon:i("4569").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"u-input",class:{"u-input--border":t.border,"u-input--error":t.validateState},style:{padding:"0 "+(t.border?20:0)+"rpx",borderColor:t.borderColor,textAlign:t.inputAlign},on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.inputClick.apply(void 0,arguments)}}},["textarea"==t.type?i("v-uni-textarea",{staticClass:"u-input__input u-input__textarea",style:[t.getStyle],attrs:{value:t.defaultValue,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled,maxlength:t.inputMaxlength,fixed:t.fixed,focus:t.focus,autoHeight:t.autoHeight,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"cursor-spacing":t.getCursorSpacing,"show-confirm-bar":t.showConfirmbar},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}):i("v-uni-input",{staticClass:"u-input__input",style:[t.getStyle],attrs:{type:"password"==t.type?"text":t.type,value:t.defaultValue,password:"password"==t.type&&!t.showPassword,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled||"select"===t.type,maxlength:t.inputMaxlength,focus:t.focus,confirmType:t.confirmType,"cursor-spacing":t.getCursorSpacing,"selection-end":t.uSelectionEnd,"selection-start":t.uSelectionStart,"show-confirm-bar":t.showConfirmbar},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.handleBlur.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.handleInput.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"u-input__right-icon u-flex"},[t.clearable&&""!=t.value&&t.focused?i("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}},[i("u-icon",{attrs:{size:"32",name:"close-circle-fill",color:"#c0c4cc"}})],1):t._e(),t.passwordIcon&&"password"==t.type?i("v-uni-view",{staticClass:"u-input__right-icon__clear u-input__right-icon__item"},[i("u-icon",{attrs:{size:"32",name:t.showPassword?"eye-fill":"eye",color:"#c0c4cc"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showPassword=!t.showPassword}}})],1):t._e(),"select"==t.type?i("v-uni-view",{staticClass:"u-input__right-icon--select u-input__right-icon__item",class:{"u-input__right-icon--select--reverse":t.selectOpen}},[i("u-icon",{attrs:{name:"arrow-down-fill",size:"26",color:"#c0c4cc"}})],1):t._e()],1)],1)},o=[]},"79a3":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var n={uImage:i("7171").default,priceFormat:i("8312").default,uRate:i("ba13").default,uInput:i("5cb0").default,uUpload:i("48b9").default},a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"goods-reviews"},[i("v-uni-view",{staticClass:"bg-white flex p-20"},[i("u-image",{attrs:{width:"160rpx",height:"160rpx","border-radius":"6rpx",src:t.goodsInfo.goods_item.image}}),i("v-uni-view",{staticClass:"goods-desc flex-1 m-l-24"},[i("v-uni-view",{staticClass:"goods-name line-2"},[t._v(t._s(t.goodsInfo.goods_name))]),i("v-uni-view",{staticClass:"m-t-10 xs muted"},[t._v(t._s(t.goodsInfo.goods_item.spec_value_str))]),i("v-uni-view",{staticClass:"flex row-between m-t-20"},[i("price-format",{attrs:{price:t.goodsInfo.goods_price,"subscript-size":26,"first-size":30,"second-size":30}}),i("v-uni-view",{staticClass:"nr"},[t._v("x"+t._s(t.goodsInfo.goods_num))])],1)],1)],1),i("v-uni-view",{staticClass:"goods-evaluate bg-white flex"},[i("v-uni-view",{staticClass:"lable"},[t._v("商品评价")]),i("u-rate",{attrs:{name:"goodsRate",count:5,size:42,"active-color":"#FF2C3C"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.goodsRateChange.apply(void 0,arguments)}},model:{value:t.goodsRate,callback:function(e){t.goodsRate=e},expression:"goodsRate"}}),i("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:!(0==t.goodsRate),expression:"!(goodsRate == 0)"}],class:"desc "+(t.goodsRate<=2?"muted":"primary")+" "},[t._v(t._s(t.goodsRateDesc))])],1),i("v-uni-view",{staticClass:"bg-white p-20 lighter"},[t._v(t._s(t.goodsInfo.shop.name))]),i("v-uni-view",{staticClass:"rate bg-white"},[i("v-uni-view",{staticClass:"item flex m-b-20"},[i("v-uni-view",{staticClass:"lable"},[t._v("描述相符")]),i("u-rate",{attrs:{name:"descRate",size:42,"active-color":"#FF2C3C"},model:{value:t.descRate,callback:function(e){t.descRate=e},expression:"descRate"}})],1),i("v-uni-view",{staticClass:"item flex m-b-20"},[i("v-uni-view",{staticClass:"lable"},[t._v("服务态度")]),i("u-rate",{attrs:{name:"serverRate",size:42,"active-color":"#FF2C3C"},model:{value:t.serverRate,callback:function(e){t.serverRate=e},expression:"serverRate"}})],1),i("v-uni-view",{staticClass:"item flex m-b-20"},[i("v-uni-view",{staticClass:"lable"},[t._v("配送服务")]),i("u-rate",{attrs:{name:"deliveryRate",size:42,"active-color":"#FF2C3C"},model:{value:t.deliveryRate,callback:function(e){t.deliveryRate=e},expression:"deliveryRate"}})],1)],1),i("v-uni-view",{staticClass:"goods-dec bg-white m-t-20"},[i("v-uni-view",{staticClass:"title m-b-20 md bold"},[t._v("商品描述")]),i("v-uni-view",{staticClass:"p-20",staticStyle:{"background-color":"#F8F8F8"}},[i("u-input",{attrs:{type:"textarea",placeholder:"宝贝收到还满意吗,说说你的使用心得。分享给想买的他们吧!!",border:!1,height:160},model:{value:t.comment,callback:function(e){t.comment=e},expression:"comment"}})],1),i("v-uni-view",{staticClass:"m-t-20"},[i("u-upload",{ref:"uUpload",attrs:{"show-progress":!1,header:{token:t.$store.getters.token},"max-count":8,width:"150",height:"150",action:t.action,"upload-text":"上传图片"},on:{"on-success":function(e){arguments[0]=e=t.$handleEvent(e),t.onSuccess.apply(void 0,arguments)},"on-remove":function(e){arguments[0]=e=t.$handleEvent(e),t.onRemove.apply(void 0,arguments)}}})],1),i("v-uni-view",{staticClass:"muted m-t-20 m-b-10"},[t._v("支持jpg、png、jpeg格式的图片最多可上传8张")])],1),i("v-uni-button",{staticClass:"btn br60",attrs:{type:"primary",size:"lg"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onSubmit.apply(void 0,arguments)}}},[t._v("立即评价")])],1)},o=[]},"79f0":function(t,e,i){"use strict";i.r(e);var n=i("79a3"),a=i("e41a");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("1dd9");var s,r=i("f0c5"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"73126346",null,!1,n["a"],s);e["default"]=u.exports},"7eac":function(t,e,i){"use strict";var n=i("ab77"),a=i.n(n);a.a},8312:function(t,e,i){"use strict";i.r(e);var n=i("a126"),a=i("0d00");for(var o in a)"default"!==o&&function(t){i.d(e,t,(function(){return a[t]}))}(o);i("7eac");var s,r=i("f0c5"),u=Object(r["a"])(a["default"],n["b"],n["c"],!1,null,"0a5a34e0",null,!1,n["a"],s);e["default"]=u.exports},"9b09":function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */.u-input[data-v-1203163a]{position:relative;flex:1;display:flex;flex-direction:row}.u-input__input[data-v-1203163a]{font-size:%?28?%;color:#303133;flex:1}.u-input__textarea[data-v-1203163a]{width:auto;font-size:%?28?%;color:#303133;padding:%?10?% 0;line-height:normal;flex:1}.u-input--border[data-v-1203163a]{border-radius:%?6?%;border-radius:4px;border:1px solid #dcdfe6}.u-input--error[data-v-1203163a]{border-color:#fa3534!important}.u-input__right-icon__item[data-v-1203163a]{margin-left:%?10?%}.u-input__right-icon--select[data-v-1203163a]{transition:-webkit-transform .4s;transition:transform .4s;transition:transform .4s,-webkit-transform .4s}.u-input__right-icon--select--reverse[data-v-1203163a]{-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}',""]),t.exports=e},a126:function(t,e,i){"use strict";var n;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return n}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-text",{class:(t.lineThrough?"line-through":"")+" price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?i("v-uni-text",{style:{"font-size":t.subscriptSize+"rpx","margin-right":"2rpx"}},[t._v("¥")]):t._e(),i("v-uni-text",{style:{"font-size":t.firstSize+"rpx","margin-right":"1rpx"}},[t._v(t._s(t.priceSlice.first))]),t.priceSlice.second?i("v-uni-text",{style:{"font-size":t.secondSize+"rpx"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()],1)},o=[]},aa0e:function(t,e,i){"use strict";i("a9e3"),i("acd8"),i("ac1f"),i("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:[String,Number],default:28},secondSize:{type:[String,Number],default:28},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:[String,Number],default:28},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&&void 0!==t?(t=parseFloat(t),t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e):this.priceSlice={first:0}}}};e.default=n},ab77:function(t,e,i){var n=i("5a93");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("0d47c85e",n,!0,{sourceMap:!1,shadowMode:!1})},c4f7:function(t,e,i){var n=i("9b09");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("5682a912",n,!0,{sourceMap:!1,shadowMode:!1})},e41a:function(t,e,i){"use strict";i.r(e);var n=i("104d"),a=i.n(n);for(var o in n)"default"!==o&&function(t){i.d(e,t,(function(){return n[t]}))}(o);e["default"]=a.a},eeef:function(t,e,i){var n=i("24fb");e=n(!1),e.push([t.i,".goods-reviews[data-v-73126346]{padding:%?20?% 0 %?40?%}.goods-reviews .rate[data-v-73126346]{padding:%?20?% %?20?%}.goods-reviews .lable[data-v-73126346]{width:%?170?%}.goods-reviews .goods-dec[data-v-73126346]{padding:%?30?% %?20?%}.goods-reviews .btn[data-v-73126346]{width:%?698?%;margin:%?30?% %?26?% 0}.goods-reviews .goods-evaluate[data-v-73126346]{padding:%?20?%;border:%?1?% solid #f2f2f2}",""]),t.exports=e},fc5a:function(t,e,i){var n=i("eeef");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var a=i("4f06").default;a("65c5d087",n,!0,{sourceMap:!1,shadowMode:!1})}}]);