bztang-admin/addons/yun_shop/static/app/js/chunk-00ae1419.a963128f.js

1 line
10 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-00ae1419"],{"4f2d":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"addevaluate"}},[i("c-title",{attrs:{hide:!1,text:"追加评价"}}),i("div",{attrs:{id:"shop"}},[i("div",{staticClass:"goods"},[i("div",{staticClass:"img"},[i("img",{attrs:{src:t.good.thumb}})]),i("div",{staticClass:"warp",staticStyle:{flex:"1"}},[i("div",{staticClass:"ul inner"},[i("div",{staticClass:"li name"},[t._v(t._s(t.good.title))]),i("div",{staticClass:"li product_price"},[i("text",{staticClass:"small"},[t._v("¥")]),t._v(t._s(t.good.goods_price))])]),i("div",{staticClass:"ul price"},[i("div",{staticClass:"li option"},[t._v("规格: "+t._s(t.good.goods_option_title))]),i("div",{staticClass:"li option"},[t._v("×"+t._s(t.good.total))])])])]),i("div",{staticStyle:{"text-align":"left",margin:"0.5rem 0"}},[i("div",{staticClass:"name"},[t._v("已好评")]),i("van-rate",{attrs:{"disabled-color":"#ff9900",disabled:""},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1),i("div",{staticClass:"option"},[t._v(t._s(t.comment))])]),i("div",{attrs:{id:"pjall"}},[t._m(0),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.reComment,expression:"reComment"}],attrs:{placeholder:"这次买的商品满意吗不满意可意追加评价内容。长度在5-100字之间",type:"textarea",rows:"4"},domProps:{value:t.reComment},on:{input:function(e){e.target.composing||(t.reComment=e.target.value)}}})]),i("div",{staticClass:"shai-tu"},[i("span",[t._v("晒图:")]),i("div",{staticClass:"imgs-box"},[t._l(t.fileList4,(function(e,a){return[i("div",{key:a,staticClass:"photobox"},[i("img",{attrs:{src:e.url}}),i("van-icon",{staticClass:"delete-icon",attrs:{name:"close"},on:{click:function(e){return t.removeImg_1(a)}}})],1)]})),i("van-uploader",{attrs:{disabled:t.fileList4.length>=5,"after-read":t.multipleMethod_1,multiple:""}},[i("div",{staticStyle:{"padding-left":"1rem","padding-top":"1rem",width:"5rem",height:"5rem",border:"1px dashed #c0ccda"}},[i("img",{staticClass:"avatar",staticStyle:{"max-height":"3rem"},attrs:{src:a("9619f")}})])])],2)]),i("van-button",{attrs:{color:"#f15353",type:"primary"},on:{click:t.toReComment}},[t._v("发表追评")])],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"pj"}},[a("span",[t._v("追加评价:")])])}],d=(a("e7e5"),a("d399")),s=(a("d81d"),a("e9c4"),a("a434"),a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d"),a("9861"),a("6968")),n={data:function(){return{toi:this.fun.getKeyByI(),value:3,comment:"",reComment:"",good:"",comment_id:"",item:"",photosize:2097152,upNumMaxOther:"",uploadUrl:"",fileList3:[],fileList4:[]}},methods:{toReComment:function(){var t=this;0==this.reComment.length?t.$dialog.confirm({message:"您还没有输入相关的评论内容"}).then((function(){t.submitData()})).catch((function(){})):t.submitData()},submitData:function(){var t=this,e=[];0!=t.fileList3.length&&(e=t.fileList3.map((function(t){return t.url}))),$http.post("goods.comment.append-comment",{id:this.item.id,order_goods_id:this.order_goods_id,content:this.reComment,images:JSON.stringify(e),i:this.fun.getKeyByI(),type:this.fun.getTyep()}).then((function(e){1==e.result?t.$dialog.alert({message:e.msg}).then((function(){t.$router.go(-1)})):t.$dialog.alert({message:e.msg})}),(function(t){}))},removeImg_1:function(t){this.fileList3.splice(t,1),this.fileList4.splice(t,1),this.upNumMaxOther=this.fileList3.length},multipleMethod_1:function(t,e){if(t&&t.length)for(var a=0;a<t.length;a++)this.onRead_2(t[a],e);else this.onRead_2(t,e)},onRead_2:function(t,e){var a=this,i=new FormData;if(5==this.upNumMaxOther||this.upNumMaxOther>=5)return this.$notify({background:"#fef0f0",message:"图片数量已达到上限",color:"#f56c6c"}),!1;!0===e?i.append("file",t):i.append("file",t.file),i.append("attach","upload"),d["a"].loading({message:" ",forbidClick:!0}),axios.post(this.uploadUrl,i,{headers:{"Content-Type":"multipart/form-data"}}).then((function(i){var o=i.data;1==o.result?(a.upNumMax++,a.fileList3.push({url:o.data.img}),!0===e?a.fileList4.push({url:URL.createObjectURL(t)}):a.fileList4.push({url:URL.createObjectURL(t.file)}),d["a"].clear()):(Object(d["a"])(o.msg),d["a"].clear())})).catch((function(t){d["a"].clear()}))},getNetData:function(){var t=this;$http.post("goods.comment.append-comment-page",{goods_id:this.goods_id,order_id:this.order_id,order_goods_id:this.order_goods_id}).then((function(e){if(1!==e.result)return t.$toast(e.msg);t.item=e.data.comment,t.value=t.item.level,t.comment=t.item.content}))}},activated:function(){this.good=this.$route.params.item,this.toi=this.fun.getKeyByI(),this.uploadUrl=this.fun.getRealUrl("upload.uploadPic",{}),this.good?(this.goods_id=this.good.goods_id,this.order_id=this.$route.params.order_id,this.order_goods_id=this.good.id,this.getNetData()):this.$router.go(-1)},components:{cTitle:s["a"]}},l=n,r=l,c=(a("ca10"),a("2877")),u=Object(c["a"])(r,i,o,!1,null,"d378d2fa",null);e["default"]=u.exports},7930:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#addevaluate #shop[data-v-d378d2fa]{background:#fff;padding:.625rem}#addevaluate #shop .option[data-v-d378d2fa]{color:#888;font-size:12px;text-align:left}#addevaluate .goods[data-v-d378d2fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-webkit-align-items:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-flow:row wrap;-ms-flex-flow:row wrap;flex-flow:row wrap;background:#efeded;padding:.3125rem;margin-bottom:.3125rem}#addevaluate .goods .wrap[data-v-d378d2fa]{width:70%;padding:.8rem 1rem 0 0}#addevaluate .goods .img[data-v-d378d2fa]{width:6rem;height:6rem;overflow:hidden}#addevaluate .goods .img img[data-v-d378d2fa]{width:100%;height:100%;-o-object-fit:fill;object-fit:fill}#addevaluate .goods .inner[data-v-d378d2fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .6rem;text-align:left}#addevaluate .goods .inner .name[data-v-d378d2fa]{max-width:10rem;text-align:left;color:#333;margin-bottom:.6rem;font-size:.8rem}#addevaluate .goods .price[data-v-d378d2fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:0 .6rem;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;color:#333}#addevaluate #pjall[data-v-d378d2fa]{background:#fff;padding:.9375rem}#addevaluate #pjall textarea[data-v-d378d2fa]{width:87%;margin-top:.625rem;padding:.625rem}#addevaluate #pjall #pj[data-v-d378d2fa]{text-align:left}#addevaluate #pjall #pj span[data-v-d378d2fa]{float:left;font-size:14px;padding-right:.625rem}#addevaluate .shai-tu[data-v-d378d2fa]{background:#fff;padding:.9375rem;text-align:left}#addevaluate .shai-tu .imgs-box[data-v-d378d2fa]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin-top:.4rem}#addevaluate .shai-tu .photobox[data-v-d378d2fa]{position:relative;margin:0 .5rem .5rem 0;height:5rem;width:5rem}#addevaluate .shai-tu .photobox img[data-v-d378d2fa]{width:100%;height:100%}#addevaluate .shai-tu .photobox .delete-icon[data-v-d378d2fa]{font-size:1rem;width:1.2rem;height:1.2rem;position:absolute;top:.1rem;right:.1rem;color:red;font-weight:900}#addevaluate button[data-v-d378d2fa]{width:100%}",""]),t.exports=e},"8f13":function(t,e,a){var i=a("7930");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var o=a("499e").default;o("6b2c558a",i,!0,{sourceMap:!1,shadowMode:!1})},"9619f":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAGv0lEQVR4Xu2dUYgVZRiGv292C89uiQQREVFEBhaUheZFIokXQtBNN5nmRRey5IaU7PyzexEdunFmznI2pNWQ6EIs7b7Ai3ApKrKMJAgFJcoL6SaCaPdIuztfzLK7oOn6enbc+c+c91zKO///z/N+PHrOGTwqXfZqNBovZln2nIg8KyKb8ttX1e/M7AdV/do591k3IdFuudkDBw482tPTc2yh9CXu+/Ts7OyOkZGR37qBTVcMQJIke1V1HC3UzK6o6n7n3GH0mk7NVX4A4jjeHgTByXYKUtVtYRieaufaTrmm0gNw8ODB1a1W66Kq3ttOIWZ2uVarrdu3b9/f7VzfCddUegDSNP1YRHYus4hjzrndy1zD28srOwDNZvOemZmZP4sg39/ff/fg4OA/Razl2xqVHYA4jrcEQfBlQcA3O+e+KWgtr5ap7ACkafq6iBwqiPaAc+5IQWt5tUxlByBJkjFVfbMg2mPOuf0FreXVMlUegHFV3VsQ7cPOuaLWKuhIxSzDAcA4cgAwTv6kkiShAYA6aAAAkojQABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMEw2AcfInRQNgXdAAGCcaAOPkT4oGwLqgATBONADGyZ8UDYB1QQNgnGgAjJM/KRoA64IGwDjRABgnf1I0ANYFDYBxogEwTv6kaACsCxoA40QDYJz8SdEAWBc0AMaJBsA4+ZOiAbAuaACMU3caYP7/3M9/XWu9ma3CWPmRUtUXRGRjEacxszMi8nkRa63U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