1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-goods_comment_con-index"],{"06d9":function(t,e,r){"use strict";var n=r("e353"),o=r.n(n);o.a},1172:function(t,e,r){"use strict";r.r(e);var n=r("b5c0"),o=r("9e1b");for(var i in o)"default"!==i&&function(t){r.d(e,t,(function(){return o[t]}))}(i);r("06d9");var u,a=r("f0c5"),c=Object(a["a"])(o["default"],n["b"],n["c"],!1,null,"c02998e2",null,!1,n["a"],u);e["default"]=c.exports},"2fec":function(t,e,r){"use strict";r("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r("7d4f"),o=r("c496"),i=r("2f62"),u={components:{},data:function(){return{pics:[],scoreList:[{name:"商品质量",stars:["","","","",""],index:-1},{name:"服务态度",stars:["","","","",""],index:-1},{name:"物流服务",stars:["","","","",""],index:-1}],orderId:"",unique:"",productInfo:{},cart_num:0,isAuto:!1,isShowAuth:!1}},computed:(0,i.mapGetters)(["isLogin"]),onLoad:function(t){if(!t.uni&&t.order_id)return this.$util.Tips({title:"缺少参数"},{tab:3,url:1});this.unique=t.uni,this.orderId=t.order_id,this.isLogin?this.getOrderProduct():(0,o.toLogin)()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getOrderProduct()},authColse:function(t){this.isShowAuth=t},getOrderProduct:function(){var t=this,e=this;(0,n.orderProduct)(e.unique).then((function(t){e.$set(e,"productInfo",t.data.cart_info),e.cart_num=t.data.product_num})).catch((function(e){t.$util.Tips({title:e},{tab:3,url:1})}))},stars:function(t,e){this.scoreList[e].index=t},DelPic:function(t){var e=this;this.pics[t];e.pics.splice(t,1),e.$set(e,"pics",e.pics)},uploadpic:function(){var t=this;t.$util.uploadImageOne("upload/image",(function(e){t.pics.push(e.data.path),t.$set(t,"pics",t.pics)}))},formSubmit:function(t){t.detail.formId;var e=t.detail.value,r=this,o=r.scoreList[0].index+1===0?"":r.scoreList[0].index+1,i=r.scoreList[1].index+1===0?"":r.scoreList[1].index+1,u=r.scoreList[2].index+1===0?"":r.scoreList[2].index+1;if(!e.comment)return r.$util.Tips({title:"请填写你对宝贝的心得!"});e.product_score=o,e.service_score=i,e.postage_score=u,e.pics=r.pics,uni.showLoading({title:"正在发布评论……"}),(0,n.orderComment)(this.unique,e).then((function(t){return uni.hideLoading(),r.$util.Tips({title:"感谢您的评价!",icon:"success"},"/pages/order_details/index?order_id="+r.orderId)})).catch((function(t){return uni.hideLoading(),r.$util.Tips({title:t})}))}}};e.default=u},"7d4f":function(t,e,r){"use strict";var n=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getCartCounts=i,e.getCartList=u,e.changeCartNum=a,e.cartDel=c,e.getOrderList=s,e.orderProduct=d,e.orderComment=l,e.orderPay=f,e.orderData=p,e.unOrderCancel=v,e.orderDel=g,e.getOrderDetail=h,e.groupOrderDetail=m,e.getPayOrder=b,e.orderAgain=x,e.orderTake=w,e.express=_,e.ordeRefundReason=C,e.orderRefundVerify=y,e.orderConfirm=L,e.getCouponsOrderPrice=A,e.postOrderComputed=k,e.orderCreate=O,e.groupOrderList=P,e.refundBatch=$,e.refundProduct=I,e.refundApply=z,e.refundMessage=D,e.refundList=T,e.refundDetail=B,e.expressList=E,e.refundBackGoods=S,e.refundDel=M,e.refundExpress=R,e.verifyCode=q,e.presellOrderPay=j,e.receiptOrder=F,e.getReceiptOrder=G,e.getCallBackUrlApi=J;var o=n(r("112d"));function i(){return o.default.get("user/cart/count")}function u(){return o.default.get("user/cart/lst")}function a(t,e){return o.default.post("user/cart/change/"+t,e)}function c(t){return o.default.post("user/cart/delete",t)}function s(t){return o.default.get("order/list",t)}function d(t){return o.default.get("reply/product/"+t)}function l(t,e){return o.default.post("reply/"+t,e)}function f(t,e){return o.default.post("order/pay/"+t,e)}function p(){return o.default.get("order/number")}function v(t){return o.default.post("order/cancel/"+t)}function g(t){return o.default.post("order/del/"+t)}function h(t){return o.default.get("order/detail/"+t)}function m(t){return o.default.get("order/group_order_detail/"+t)}function b(t){return o.default.get("order/status/"+t)}function x(t){return o.default.post("user/cart/again",t)}function w(t){return o.default.post("order/take/"+t)}function _(t){return o.default.post("order/express/"+t)}function C(){return o.default.get("order/refund/reason")}function y(t){return o.default.post("order/refund/verify",t)}function L(t){return o.default.post("order/check",t)}function A(t,e){return o.default.get("coupons/order/"+t,e)}function k(t,e){return o.default.post("/order/computed/"+t,e)}function O(t){return o.default.post("order/create",t,{noAuth:!0})}function P(t){return o.default.get("order/group_order_list",t,{noAuth:!0})}function $(t){return o.default.get("refund/batch_product/"+t,{noAuth:!0})}function I(t,e){return o.default.get("refund/product/"+t,e,{noAuth:!0})}function z(t,e){return o.default.post("refund/apply/"+t,e,{noAuth:!0})}function D(){return o.default.get("common/refund_message",{noAuth:!0})}function T(t){return o.default.get("refund/list",t,{noAuth:!0})}function B(t){return o.default.get("refund/detail/"+t,{noAuth:!0})}function E(){return o.default.get("common/express")}function S(t,e){return o.default.post("refund/back_goods/"+t,e,{noAuth:!0})}function M(t){return o.default.post("refund/del/"+t,{noAuth:!0})}function R(t){return o.default.get("refund/express/"+t,{noAuth:!0})}function q(t){return o.default.get("order/verify_code/"+t)}function j(t,e){return o.default.post("presell/pay/"+t,e)}function F(t){return o.default.get("user/receipt/order",t)}function G(t){return o.default.get("user/receipt/order/"+t)}function J(t){return o.default.get("common/pay_key/"+t,{},{noAuth:!0})}},"8ed3":function(t,e,r){var n=r("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/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.evaluate-con .score[data-v-c02998e2]{background-color:#fff;border-top:%?1?% solid #f5f5f5;font-size:%?28?%;color:#282828;padding:%?48?% %?30?% %?65?% %?30?%}.evaluate-con .score .item ~ .item[data-v-c02998e2]{margin-top:%?30?%}.evaluate-con .score .item .starsList[data-v-c02998e2]{padding:0 %?35?% 0 %?40?%}.evaluate-con .score .item .starsList .iconfont[data-v-c02998e2]{font-size:%?40?%;color:#aaa}.evaluate-con .score .item .starsList .iconfont ~ .iconfont[data-v-c02998e2]{margin-left:%?20?%}.evaluate-con .score .item .evaluate[data-v-c02998e2]{color:#aaa;font-size:%?24?%}.evaluate-con .score .textarea[data-v-c02998e2]{width:%?690?%;background-color:#fafafa;-webkit-border-radius:%?10?%;border-radius:%?10?%;margin-top:%?48?%}.evaluate-con .score .textarea uni-textarea[data-v-c02998e2]{font-size:%?28?%;padding:%?38?% %?30?% 0 %?30?%;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;height:%?160?%}.evaluate-con .score .textarea .placeholder[data-v-c02998e2]{color:#bbb}.evaluate-con .score .textarea .list[data-v-c02998e2]{margin-top:%?25?%;padding-left:%?5?%}.evaluate-con .score .textarea .list .pictrue[data-v-c02998e2]{width:%?140?%;height:%?140?%;margin:0 0 %?35?% %?25?%;position:relative;font-size:%?22?%;color:#bbb}.evaluate-con .score .textarea .list .pictrue[data-v-c02998e2]:nth-last-child(1){border:%?1?% solid #ddd;-webkit-box-sizing:border-box;box-sizing:border-box}.evaluate-con .score .textarea .list .pictrue uni-image[data-v-c02998e2]{width:100%;height:100%;-webkit-border-radius:%?3?%;border-radius:%?3?%}.evaluate-con .score .textarea .list .pictrue .icon-guanbi1[data-v-c02998e2]{font-size:%?45?%;position:absolute;top:%?-20?%;right:%?-20?%}.evaluate-con .score .textarea .list .pictrue .icon-icon25201[data-v-c02998e2]{color:#bfbfbf;font-size:%?50?%}.evaluate-con .score .evaluateBnt[data-v-c02998e2]{font-size:%?30?%;color:#fff;width:%?690?%;height:%?86?%;-webkit-border-radius:%?43?%;border-radius:%?43?%;text-align:center;line-height:%?86?%;margin-top:%?45?%}',""]),t.exports=e},"9e1b":function(t,e,r){"use strict";r.r(e);var n=r("2fec"),o=r.n(n);for(var i in n)"default"!==i&&function(t){r.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},b5c0:function(t,e,r){"use strict";var n;r.d(e,"b",(function(){return o})),r.d(e,"c",(function(){return i})),r.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",[r("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(e){arguments[0]=e=t.$handleEvent(e),t.formSubmit.apply(void 0,arguments)}}},[t.productInfo.product?r("v-uni-view",{staticClass:"evaluate-con"},[r("v-uni-view",{staticClass:"goodsStyle acea-row row-between"},[r("v-uni-view",{staticClass:"pictrue"},[t.productInfo.productAttr.image?r("v-uni-image",{attrs:{src:t.productInfo.productAttr.image}}):r("v-uni-image",{attrs:{src:t.productInfo.product.image}})],1),r("v-uni-view",{staticClass:"text acea-row row-between"},[r("v-uni-view",{staticClass:"name line2"},[t._v(t._s(t.productInfo.product.store_name))]),r("v-uni-view",{staticClass:"money"},[r("v-uni-view",[t._v("¥"+t._s(t.productInfo.productAttr.price))]),r("v-uni-view",{staticClass:"num"},[t._v("x"+t._s(t.cart_num))])],1)],1)],1),r("v-uni-view",{staticClass:"score"},[t._l(t.scoreList,(function(e,n){return r("v-uni-view",{key:n,staticClass:"item acea-row row-middle"},[r("v-uni-view",[t._v(t._s(e.name))]),r("v-uni-view",{staticClass:"starsList"},t._l(e.stars,(function(o,i){return r("v-uni-text",{key:i,staticClass:"iconfont",class:e.index>=i?"icon-shitixing font-color":"icon-kongxinxing",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.stars(i,n)}}})})),1),r("v-uni-text",{staticClass:"evaluate"},[t._v(t._s(-1===e.index?"":e.index+1+"分"))])],1)})),r("v-uni-view",{staticClass:"textarea"},[r("v-uni-textarea",{attrs:{placeholder:"商品满足你的期待么?说说你的想法,分享给想买的他们吧~",name:"comment","placeholder-class":"placeholder"}}),r("v-uni-view",{staticClass:"list acea-row row-middle"},[t._l(t.pics,(function(e,n){return r("v-uni-view",{key:n,staticClass:"pictrue"},[r("v-uni-image",{attrs:{src:e}}),r("v-uni-text",{staticClass:"iconfont icon-guanbi1 font-color",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.DelPic(n)}}})],1)})),t.pics.length<6?r("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.uploadpic.apply(void 0,arguments)}}},[r("v-uni-text",{staticClass:"iconfont icon-icon25201"}),r("v-uni-view",[t._v("上传图片")])],1):t._e()],2)],1),r("v-uni-button",{staticClass:"evaluateBnt bg-color",attrs:{formType:"submit"}},[t._v("立即评价")])],2)],1):t._e()],1)],1)},i=[]},e353:function(t,e,r){var n=r("8ed3");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("4f06").default;o("0c4e750d",n,!0,{sourceMap:!1,shadowMode:!1})}}]);
|