12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e04cca50"],{"096d":function(t,s,a){"use strict";a.r(s);var i=function(){var t=this,s=t._self._c;return s("div",{staticClass:"wrap"},[s("div",{staticClass:"middle-container"},[s("p",{staticClass:"middle-container-top"},[t._v("待评价")]),t._l(t.info.order_goods,(function(a,i){return s("div",{key:i,staticClass:"item-module"},[s("div",{staticClass:"item-big"},[s("div",{staticClass:"msg-module"},[s("img",{staticClass:"produt-img",attrs:{src:t.BASE_URL+a.sku_image}}),s("div",{staticClass:"msg-module-sidebar"},[s("p",{staticClass:"produt-title"},[t._v(t._s(a.sku_name))]),s("p",{staticClass:"produt-tag"})])])]),s("div",{staticClass:"produt-msg-box"},t._l(a.sku_spec_format,(function(a,i){return s("p",{key:i,staticClass:"produt-msg"},[t._v("\n "+t._s(a.spec_name)+":"+t._s(a.spec_value_name)+"\n ")])})),0),s("div",{staticClass:"price-box"},[s("span",{staticClass:"produt-price"},[t._v("¥ "+t._s(a.price))]),s("span",{staticClass:"produt-price-del"},[t._v("¥ "+t._s(a.cost_price))])]),s("div",{staticClass:"calc-box"},[s("span",{staticClass:"calc-num"},[t._v(t._s(a.num))])]),s("div",{staticClass:"total-price-box"},[s("span",{staticClass:"font-1"},[t._v("¥ "+t._s(a.goods_money))]),s("span",{staticClass:"font-2"},[t._v("(运费:"+t._s(t.info.delivery_money)+")")])])])})),s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label"},[t._v("星级评价")]),s("div",{staticClass:"star-wrap"},[s("div",{staticClass:"star-row"},[t._v("\n\t\t\t\t\t\t描述相符\n\t\t\t\t\t\t"),s("div",{staticClass:"star-box"},t._l(5,(function(i){return s("div",{on:{click:function(s){t.params.shop_desccredit=i}}},[t.params.shop_desccredit>=i?s("img",{staticClass:"star-img",attrs:{src:a("851f")}}):s("img",{staticClass:"star-img",attrs:{src:a("6c8d")}})])})),0)]),s("div",{staticClass:"star-row"},[t._v("\n\t\t\t\t\t\t卖家服务\n\t\t\t\t\t\t"),s("div",{staticClass:"star-box"},t._l(5,(function(i){return s("div",{on:{click:function(s){t.params.shop_servicecredit=i}}},[t.params.shop_servicecredit>=i?s("img",{staticClass:"star-img",attrs:{src:a("851f")}}):s("img",{staticClass:"star-img",attrs:{src:a("6c8d")}})])})),0)]),s("div",{staticClass:"star-row"},[t._v("\n\t\t\t\t\t\t物流服务\n\t\t\t\t\t\t"),s("div",{staticClass:"star-box"},t._l(5,(function(i){return s("div",{on:{click:function(s){t.params.shop_deliverycredit=i}}},[t.params.shop_deliverycredit>=i?s("img",{staticClass:"star-img",attrs:{src:a("851f")}}):s("img",{staticClass:"star-img",attrs:{src:a("6c8d")}})])})),0)])])]),s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label"},[t._v("商品评价")]),s("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"content"}],staticClass:"refund-instructions",attrs:{rows:"",placeholder:"请输入评价内容",cols:""},domProps:{value:t.content},on:{input:function(s){s.target.composing||(t.content=s.target.value)}}})]),s("div",{staticClass:"order-msg-module"},[s("p",{staticClass:"order-msg-label"},[t._v("晒图")]),s("div",{staticClass:"upload-wrap"},[s("div",{staticClass:"upload-module"},[t._l(t.images,(function(a,i){return s("div",{key:i,staticClass:"upload-box"},[s("img",{staticClass:"upload-img",attrs:{src:t.BASE_URL+a}})])})),s("div",{staticClass:"upload-box"},[s("img",{staticClass:"upload-img",attrs:{src:a("225d")}}),s("input",{attrs:{type:"file"},on:{change:function(s){return t.uploadImage(s)}}})])],2)])]),s("div",{staticClass:"btn-box-end"},[s("button",{attrs:{type:"button"},on:{click:function(s){return t.$router.back()}}},[t._v("返回")]),s("button",{attrs:{type:"button"},on:{click:function(s){return t.submit()}}},[t._v("评价")])])],2)])},e=[],n=(a("ac6a"),a("f3e2"),a("f523")),o=a("a49b"),r=a("5c96"),c={data:function(){return{BASE_URL:o["a"],id:0,info:{},content:"",images:[],params:{order_id:0,order_no:"",member_name:"",member_headimg:"",is_anonymous:0,goods_evaluate:[],shop_desccredit:5,shop_servicecredit:5,shop_deliverycredit:5}}},mounted:function(){var t=this.$route.query;this.id=parseInt(t.id||0),this.id>0&&this.getInfo(),this.getUserInfo()},methods:{uploadImage:function(t,s){var a=this,i=t.target.files[0];i&&Object(n["u"])(i).then((function(t){var s=t.data;a.images.push(s.pic_path)}))},submit:function(){var t=this;if(0===this.content.length)return r["Message"].warning("请输入评价内容");this.params.goods_evaluate.forEach((function(s){s["content"]=t.content,s["images"]=t.images.join(",")})),Object(r["MessageBox"])({type:"warning",title:"提示",message:"确定提交评价?",showCancelButton:!0}).then((function(){n["d"].add(t.params).then((function(s){var a=s.message;r["Message"].success(a),setTimeout((function(){return t.$router.back()}),1e3)}))}))},getUserInfo:function(){var t=this;n["i"].info().then((function(s){var a=s.data;t.params.member_name=a.nickname,t.params.member_headimg=a.headimg}))},getInfo:function(){var t=this;n["o"].detail({order_id:this.id}).then((function(s){var a=s.data,i=[];a.order_goods.forEach((function(t){"string"===typeof t.sku_spec_format&&(i.push({goods_id:t.goods_id,order_goods_id:t.order_goods_id,sku_id:t.sku_id,site_id:t.site_id,sku_name:t.sku_name,sku_price:t.price,sku_image:t.sku_image}),t.sku_spec_format=JSON.parse(t.sku_spec_format||"[]"))})),t.params.goods_evaluate=i,t.params.order_id=a.order_id,t.params.order_no=a.order_no,t.info=a})).finally((function(){}))}}},d=c,p=(a("fd3a"),a("2877")),u=Object(p["a"])(d,i,e,!1,null,"33b06c52",null);s["default"]=u.exports},"225d":function(t,s,a){t.exports=a.p+"img/upload-4.6b393fb4.png"},"35f5":function(t,s,a){},"6c8d":function(t,s){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAiCAYAAAA3WXuFAAAAAXNSR0IArs4c6QAABYVJREFUWEe9mHloXFUUxr/vzkvUxsalaitqW1FsXUCp+o+oUEEr4oZIKjZWYmfyzhMXihvullapoqJWfffNTCzUBjUKblgR0Soo/qEiuBaX4lZN1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