| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-post_comment-post_comment"],{"0530":function(e,t,i){"use strict";i.r(t);var a=i("0b08"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},"065f":function(e,t,i){"use strict";i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return n})),i.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"price-container",class:e.themeName},[i("v-uni-view",{class:["price-wrap",{"price-wrap--disabled":e.lineThrough}],style:{color:e.color}},[i("v-uni-view",{staticClass:"fix-pre",style:{fontSize:e.minorSize}},[e._t("prefix",[e._v(e._s(e.prefix))])],2),i("v-uni-view",{staticClass:"content",style:{"font-weight":e.fontWeight}},[i("v-uni-text",{staticClass:"integer",style:{fontSize:e.mainSize}},[e._v(e._s(e.integer))]),i("v-uni-text",{staticClass:"decimals",style:{fontSize:e.minorSize}},[e._v(e._s(e.decimals))])],1),i("v-uni-view",{staticClass:"fix-suf",style:{fontSize:e.minorSize}},[e._t("suffix",[e._v(e._s(e.suffix))])],2)],1)],1)},n=[]},"0669":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.apichangeExpressInfo=t.apiVerificationOrderList=t.apiVerificationOrderDetail=t.apiVerificationOrderConfirm=t.apiOrderPlace=t.apiOrderLogistics=t.apiOrderList=t.apiOrderDetail=t.apiOrderDelete=t.apiOrderConfirm=t.apiOrderClose=t.apiExpressInfo=t.apiDeliveryType=t.apiCommentLists=t.apiCommentGoodsLists=t.apiCommentGoodsInfo=t.apiCommentCategory=t.apiCommentAdd=t.apiAfterSalePost=t.apiAfterSaleList=t.apiAfterSaleGoods=t.apiAfterSaleDetail=t.apiAfterSaleCancel=void 0,t.getwechatSyncCheck=function(e){return n.default.get("order/wechatSyncCheck",{params:e})},t.getwxReceiveDetail=function(e){return n.default.get("order/wxReceiveDetail",{params:e})};var n=a(i("bd92"));t.apiDeliveryType=function(){return n.default.get("order/getDeliveryType")};t.apiOrderLogistics=function(e){return n.default.get("order/orderTraces",{params:e})};t.apiOrderPlace=function(e){return n.default.post("order/placeOrder",e)};t.apiOrderList=function(e){return n.default.get("order/lists",{params:e})};t.apiOrderDetail=function(e){return n.default.get("order/detail",{params:e})};t.apiOrderClose=function(e){return n.default.post("order/cancel",e)};t.apiOrderConfirm=function(e){return n.default.post("order/confirm",e)};t.apiOrderDelete=function(e){return n.default.post("order/del",e)};t.apiVerificationOrderList=function(e){return n.default.get("verification/lists",{params:e})};t.apiVerificationOrderDetail=function(e){return n.default.get("verification/verification",{params:e})};t.apiVerificationOrderConfirm=function(e){return n.default.post("verification/verificationConfirm",e)};t.apiCommentLists=function(e){return n.default.get("goods_comment/lists",{params:e})};t.apiCommentGoodsLists=function(e){return n.default.get("goods_comment/commentGoodsLists",{params:e})};t.apiCommentAdd=function(e){return n.default.post("goods_comment/add",e)};t.apiCommentCategory=function(e){return n.default.get("goods_comment/commentCategory",{params:e})};t.apiCommentGoodsInfo=function(e){return n.default.get("goods_comment/commentGoodsInfo",{params:e})};t.apiAfterSaleGoods=function(e){return n.default.get("after_sale/orderGoodsInfo",{params:e})};t.apiAfterSalePost=function(e){return n.default.post("after_sale/apply",e)};t.apiAfterSaleList=function(e){return n.default.get("after_sale/lists",{params:e})};t.apiAfterSaleDetail=function(e){return n.default.get("after_sale/detail",{params:e})};t.apiAfterSaleCancel=function(e){return n.default.post("after_sale/cancel",e)};t.apiExpressInfo=function(e){return n.default.post("after_sale/returnGoods",e)};t.apichangeExpressInfo=function(e){return n.default.post("after_sale/changeDelivery",e)}},"0b08":function(e,t,i){"use strict";i("6a54");var a=i("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(i("9b1b")),o=i("0669"),r={data:function(){return{goodsData:{},commentObj:{order_goods_id:0,goods_comment:0,service_comment:0,description_comment:0,express_comment:0,comment:"",image:[]}}},onLoad:function(e){this.commentObj.order_goods_id=e.id,this.getGoodsInfo()},methods:{getGoodsInfo:function(){var e=this;(0,o.apiCommentGoodsInfo)({order_goods_id:this.commentObj.order_goods_id}).then((function(t){e.goodsData=t}))},onAddComment:function(){var e=this;return this.commentObj.goods_comment?this.commentObj.description_comment?this.commentObj.service_comment?this.commentObj.express_comment?void(0,o.apiCommentAdd)((0,n.default)({},this.commentObj)).then((function(t){console.log(t),e.$toast({title:"评论成功"},{tab:3,url:1})})):this.$toast({title:"请选择配送服务"}):this.$toast({title:"请选择服务态度"}):this.$toast({title:"请选择描述相符"}):this.$toast({title:"请选择商品评价"})}}};t.default=r},1266:function(e,t,i){"use strict";i.r(t);var a=i("065f"),n=i("c592");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("afc2");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"38923d38",null,!1,a["a"],void 0);t["default"]=s.exports},"1e1c":function(e,t,i){"use strict";i.r(t);var a=i("4b3b"),n=i("0530");for(var o in n)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return n[e]}))}(o);i("7af5");var r=i("828b"),s=Object(r["a"])(n["default"],a["b"],a["c"],!1,null,"100d8bdf",null,!1,a["a"],void 0);t["default"]=s.exports},"4b3b":function(e,t,i){"use strict";i.d(t,"b",(function(){return n})),i.d(t,"c",(function(){return o})),i.d(t,"a",(function(){return a}));var a={uImage:i("566d").default,price:i("1266").default,uRate:i("8aa5").default,uploader:i("2745").default},n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{class:e.themeName},[i("v-uni-view",{staticClass:"flex bg-white m-t-20",staticStyle:{padding:"20rpx"}},[i("u-image",{attrs:{width:"180rpx",height:"180rpx","lazy-load":!0,src:e.goodsData.goods_image}}),i("v-uni-view",{staticClass:"m-l-20",staticStyle:{flex:"1"}},[i("v-uni-view",{staticClass:"line-2 nr"},[e._v(e._s(e.goodsData.goods_name))]),i("v-uni-view",{staticClass:"row-between flex m-t-20"},[i("v-uni-view",{staticClass:"price flex primary"},[i("price",{attrs:{content:e.goodsData.goods_price,color:"#101010",mainSize:"36rpx",minorSize:"28rpx"}})],1),i("v-uni-view",{staticClass:"muted"},[e._v("x "+e._s(e.goodsData.goods_num))])],1)],1)],1),i("v-uni-view",{staticClass:"bg-white p-l-20"},[i("v-uni-view",{staticClass:"comment flex"},[i("v-uni-view",{staticClass:"nr label"},[e._v("商品评价")]),i("u-rate",{attrs:{count:5,gutter:"20",size:"38","inactive-color":"#E5E5E5","inactive-icon":"star-fill"},model:{value:e.commentObj.goods_comment,callback:function(t){e.$set(e.commentObj,"goods_comment",t)},expression:"commentObj.goods_comment"}}),1==e.commentObj.goods_comment||2==e.commentObj.goods_comment?i("v-uni-text",{staticClass:"m-l-30 tips-comment"},[e._v("差评")]):e._e(),3==e.commentObj.goods_comment?i("v-uni-text",{staticClass:"m-l-30 tips-comment"},[e._v("中评")]):e._e(),e.commentObj.goods_comment>=4?i("v-uni-text",{staticClass:"m-l-30 tips-comment"},[e._v("好评")]):e._e()],1),i("v-uni-view",{staticClass:"comment p-t-0"},[i("v-uni-view",{staticClass:"muted nr"},[e._v("其它评价")]),i("v-uni-view",{staticClass:"flex m-t-20"},[i("v-uni-view",{staticClass:"nr label"},[e._v("描述相符")]),i("u-rate",{attrs:{count:5,gutter:"20",size:"38","inactive-color":"#E5E5E5","inactive-icon":"star-fill"},model:{value:e.commentObj.description_comment,callback:function(t){e.$set(e.commentObj,"description_comment",t)},expression:"commentObj.description_comment"}})],1),i("v-uni-view",{staticClass:"flex m-t-20"},[i("v-uni-view",{staticClass:"nr label"},[e._v("服务态度")]),i("u-rate",{attrs:{count:5,gutter:"20",size:"38","inactive-color":"#E5E5E5","inactive-icon":"star-fill"},model:{value:e.commentObj.service_comment,callback:function(t){e.$set(e.commentObj,"service_comment",t)},expression:"commentObj.service_comment"}})],1),i("v-uni-view",{staticClass:"flex m-t-20"},[i("v-uni-view",{staticClass:"nr label"},[e._v("配送服务")]),i("u-rate",{attrs:{count:5,gutter:"20",size:"38","inactive-color":"#E5E5E5","inactive-icon":"star-fill"},model:{value:e.commentObj.express_comment,callback:function(t){e.$set(e.commentObj,"express_comment",t)},expression:"commentObj.express_comment"}})],1)],1)],1),i("v-uni-view",{staticClass:"bg-white m-t-20 p-b-30"},[i("v-uni-view",{staticClass:"md p-t-20 p-l-30"},[e._v("商品描述")]),i("v-uni-view",{staticClass:"p-l-20 p-r-20 m-t-20 p-b-20"},[i("v-uni-textarea",{staticClass:"desc nr",attrs:{name:"address",placeholder:"宝贝收到还满意吗,说说你的使用心得。分享给想买的他们吧!!","auto-blur":!0},model:{value:e.commentObj.comment,callback:function(t){e.$set(e.commentObj,"comment",t)},expression:"commentObj.comment"}})],1),i("v-uni-view",{staticClass:"p-l-20"},[i("uploader",{attrs:{deletable:!0,"preview-size":"160rpx",maxUpload:6,mutiple:!0,"image-fit":"aspectFill"},model:{value:e.commentObj.image,callback:function(t){e.$set(e.commentObj,"image",t)},expression:"commentObj.image"}})],1)],1),i("v-uni-view",{staticClass:"p-l-30 p-r-30 m-t-50"},[i("v-uni-view",{staticClass:"btn white flex lg row-center br60",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onAddComment.apply(void 0,arguments)}}},[e._v("立即评价")])],1)],1)},o=[]},"7af5":function(e,t,i){"use strict";var a=i("90be"),n=i.n(a);n.a},"84e3":function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/* 颜色变量 */\n/** S Font\'s size **/\n/** E Font\'s size **/[data-v-38923d38]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.price-container[data-v-38923d38]{display:inline-block}.price-wrap[data-v-38923d38]{display:flex;align-items:baseline}.price-wrap--disabled[data-v-38923d38]{position:relative}.price-wrap--disabled[data-v-38923d38]::before{position:absolute;left:0;top:50%;right:0;-webkit-transform:translateY(-50%);transform:translateY(-50%);display:block;content:"";height:.05em;background-color:currentColor}',""]),e.exports=t},"90be":function(e,t,i){var a=i("ccf6");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("563e8dd6",a,!0,{sourceMap:!1,shadowMode:!1})},a814:function(e,t,i){var a=i("84e3");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var n=i("967d").default;n("5314be22",a,!0,{sourceMap:!1,shadowMode:!1})},afc2:function(e,t,i){"use strict";var a=i("a814"),n=i.n(a);n.a},c592:function(e,t,i){"use strict";i.r(t);var a=i("e9e8"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(e){i.d(t,e,(function(){return a[e]}))}(o);t["default"]=n.a},ccf6:function(e,t,i){var a=i("c86c");t=a(!1),t.push([e.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-100d8bdf]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.comment[data-v-100d8bdf]{padding:%?30?% 0;border-top:%?1?% solid #f2f2f2}.comment .label[data-v-100d8bdf]{width:%?140?%;text-align:left}.red_theme .comment .tips-comment[data-v-100d8bdf]{color:#ff2c3c}.orange_theme .comment .tips-comment[data-v-100d8bdf]{color:#f7971e}.pink_theme .comment .tips-comment[data-v-100d8bdf]{color:#fa444d}.gold_theme .comment .tips-comment[data-v-100d8bdf]{color:#e0a356}.blue_theme .comment .tips-comment[data-v-100d8bdf]{color:#2f80ed}.green_theme .comment .tips-comment[data-v-100d8bdf]{color:#2ec840}.desc[data-v-100d8bdf]{width:100%;height:%?240?%;border-radius:%?10?%;box-sizing:border-box;background-color:#f8f8f8;padding:%?20?% %?30?% 0 %?30?%}.btn[data-v-100d8bdf]{height:%?84?%}.red_theme .btn[data-v-100d8bdf]{background-color:#ff2c3c}.orange_theme .btn[data-v-100d8bdf]{background-color:#f7971e}.pink_theme .btn[data-v-100d8bdf]{background-color:#fa444d}.gold_theme .btn[data-v-100d8bdf]{background-color:#e0a356}.blue_theme .btn[data-v-100d8bdf]{background-color:#2f80ed}.green_theme .btn[data-v-100d8bdf]{background-color:#2ec840}",""]),e.exports=t},e9e8:function(e,t,i){"use strict";i("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,i("64aa");var a=i("7398"),n={name:"Price",props:{content:{type:String|Number,required:!0},prec:{type:Number,default:2},autoPrec:{type:Boolean,default:!0},color:{type:String,default:"inherit"},mainSize:{type:String,default:"inherit"},minorSize:{type:String,default:"inherit"},lineThrough:{type:Boolean,default:!1},fontWeight:{type:String|Number,default:"normal"},prefix:{type:String,default:"¥"},suffix:{type:String,default:""}},computed:{integer:function(){return(0,a.formatPrice)({price:this.content,take:"int"})},decimals:function(){var e=(0,a.formatPrice)({price:this.content,take:"dec",prec:this.prec});return e=e%10==0?e.substr(0,e.length-1):e,this.autoPrec?1*e?"."+e:"":this.prec?"."+e:""}}};t.default=n}}]);
|