zx/public/static/js/pages-users-goods_comment_c...

1 line
12 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([["pages-users-goods_comment_con-index"],{"1e36":function(t,e,r){"use strict";var n=r("aa37"),o=r.n(n);o.a},"3f1d":function(t,e,r){"use strict";r.r(e);var n=r("dca6"),o=r("9208");for(var a in o)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return o[t]}))}(a);r("1e36");var i=r("828b"),u=Object(i["a"])(o["default"],n["b"],n["c"],!1,null,"39c2acb2",null,!1,n["a"],void 0);e["default"]=u.exports},5676:function(t,e,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.applyInvoiceApi=function(t,e){return o.default.post("order/receipt/".concat(t),e)},e.cartDel=function(t){return o.default.post("user/cart/delete",t)},e.cartProductAttr=function(t){return o.default.get("store/product/get_attr_value/".concat(t))},e.changeCartNum=function(t,e){return o.default.post("user/cart/change/"+t,e)},e.createOrder=function(t){return o.default.post("v2/order/create",t,{noAuth:!0})},e.develiveryDetail=function(t){return o.default.get("order/delivery/".concat(t))},e.express=function(t){return o.default.post("order/express/"+t)},e.expressList=function(){return o.default.get("common/express")},e.getCallBackUrlApi=function(t){return o.default.get("common/pay_key/"+t,{},{noAuth:!0})},e.getCartCounts=function(){return o.default.get("user/cart/count")},e.getCartList=function(){return o.default.get("user/cart/lst")},e.getCouponsOrderPrice=function(t,e){return o.default.get("coupons/order/"+t,e)},e.getOrderConfirm=function(t){return o.default.post("v2/order/check",t)},e.getOrderDetail=function(t){return o.default.get("order/detail/"+t)},e.getOrderList=function(t){return o.default.get("order/list",t)},e.getPayOrder=function(t){return o.default.get("order/status/"+t)},e.getReceiptOrder=function(t){return o.default.get("user/receipt/order/"+t)},e.groupOrderDetail=function(t){return o.default.get("order/group_order_detail/"+t)},e.groupOrderList=function(t){return o.default.get("order/group_order_list",t,{noAuth:!0})},e.integralOrderPay=function(t,e){return o.default.post("order/points/pay/"+t,e)},e.ordeRefundReason=function(){return o.default.get("order/refund/reason")},e.orderAgain=function(t){return o.default.post("user/cart/again",t)},e.orderComment=function(t,e){return o.default.post("reply/"+t,e)},e.orderConfirm=function(t){return o.default.post("order/check",t)},e.orderCreate=function(t){return o.default.post("order/create",t,{noAuth:!0})},e.orderData=function(){return o.default.get("order/number")},e.orderDel=function(t){return o.default.post("order/del/"+t)},e.orderPay=function(t,e){return o.default.post("order/pay/"+t,e)},e.orderProduct=function(t){return o.default.get("reply/product/"+t)},e.orderRefundVerify=function(t){return o.default.post("order/refund/verify",t)},e.orderTake=function(t){return o.default.post("order/take/"+t)},e.postOrderComputed=function(t,e){return o.default.post("/order/computed/"+t,e)},e.presellOrderPay=function(t,e){return o.default.post("presell/pay/"+t,e)},e.receiptOrder=function(t){return o.default.get("user/receipt/order",t)},e.refundApply=function(t,e){return o.default.post("refund/apply/"+t,e,{noAuth:!0})},e.refundBackGoods=function(t,e){return o.default.post("refund/back_goods/"+t,e,{noAuth:!0})},e.refundBatch=function(t){return o.default.get("refund/batch_product/"+t,{noAuth:!0})},e.refundCancelApi=function(t){return o.default.post("refund/cancel/".concat(t))},e.refundDel=function(t){return o.default.post("refund/del/"+t,{noAuth:!0})},e.refundDetail=function(t){return o.default.get("refund/detail/"+t,{noAuth:!0})},e.refundExpress=function(t){return o.default.get("refund/express/"+t,{noAuth:!0})},e.refundList=function(t){return o.default.get("refund/list",t,{noAuth:!0})},e.refundMessage=function(){return o.default.get("common/refund_message",{noAuth:!0})},e.refundOrderExpress=function(t,e){return o.default.get("server/".concat(t,"/refund/express/").concat(e))},e.refundProduct=function(t,e){return o.default.get("refund/product/"+t,e,{noAuth:!0})},e.unOrderCancel=function(t){return o.default.post("order/cancel/"+t)},e.verifyCode=function(t){return o.default.get("order/verify_code/"+t)},r("c223");var o=n(r("fea3"))},9208:function(t,e,r){"use strict";r.r(e);var n=r("94e1"),o=r.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){r.d(e,t,(function(){return n[t]}))}(a);e["default"]=o.a},"94e1":function(t,e,r){"use strict";r("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r("dd2b"),r("aa9c");var n=r("5676"),o=r("8f59"),a=r("e44d"),i={components:{},data:function(){return{pics:[],scoreList:[{name:"商品质量",stars:["","","","",""],index:-1},{name:"服务态度",stars:["","","","",""],index:-1},{name:"物流服务",stars:["","","","",""],index:-1}],orderId:"",unique:"",productInfo:{},cart_num:0}},computed:(0,o.mapGetters)(["isLogin","viewColor"]),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,a.toLogin)()},methods:{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){this.pics[t];this.pics.splice(t,1),this.$set(this,"pics",this.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,a=r.scoreList[1].index+1===0?"":r.scoreList[1].index+1,i=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=a,e.postage_score=i,e.pics=r.pics,uni.showLoading({title:"正在发布评论……"}),(0,n.orderComment)(this.unique,e).then((function(t){uni.hideLoading(),r.$util.Tips({title:"感谢您的评价!",icon:"success"}),setTimeout((function(){uni.redirectTo({url:"/pages/order_details/index?order_id="+r.orderId})}),500)})).catch((function(t){return uni.hideLoading(),r.$util.Tips({title:t})}))}}};e.default=i},9819:function(t,e,r){var n=r("c86c");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-39c2acb2]{background-color:#fff;border-top:1px solid #f5f5f5;font-size:%?28?%;color:#282828;padding:%?48?% %?30?% %?65?% %?30?%}.evaluate-con .score .item ~ .item[data-v-39c2acb2]{margin-top:%?30?%}.evaluate-con .score .item .starsList[data-v-39c2acb2]{padding:0 %?35?% 0 %?40?%}.evaluate-con .score .item .starsList .iconfont[data-v-39c2acb2]{font-size:%?40?%;color:#aaa}.evaluate-con .score .item .starsList .iconfont ~ .iconfont[data-v-39c2acb2]{margin-left:%?20?%}.evaluate-con .score .item .evaluate[data-v-39c2acb2]{color:#aaa;font-size:%?24?%}.evaluate-con .score .textarea[data-v-39c2acb2]{width:%?690?%;background-color:#fafafa;border-radius:%?10?%;margin-top:%?48?%}.evaluate-con .score .textarea uni-textarea[data-v-39c2acb2]{font-size:%?28?%;padding:%?38?% %?30?% 0 %?30?%;width:100%;box-sizing:border-box;height:%?160?%}.evaluate-con .score .textarea .placeholder[data-v-39c2acb2]{color:#bbb}.evaluate-con .score .textarea .list[data-v-39c2acb2]{margin-top:%?25?%;padding-left:%?5?%}.evaluate-con .score .textarea .list .pictrue[data-v-39c2acb2]{width:%?140?%;height:%?140?%;margin:0 0 %?35?% %?25?%;position:relative;font-size:%?22?%;color:#bbb}.evaluate-con .score .textarea .list .pictrue[data-v-39c2acb2]:nth-last-child(1){border:1px solid #ddd;box-sizing:border-box}.evaluate-con .score .textarea .list .pictrue uni-image[data-v-39c2acb2]{width:100%;height:100%;border-radius:%?3?%}.evaluate-con .score .textarea .list .pictrue .icon-guanbi1[data-v-39c2acb2]{font-size:%?45?%;position:absolute;top:%?-20?%;right:%?-20?%}.evaluate-con .score .textarea .list .pictrue .icon-icon25201[data-v-39c2acb2]{color:#bfbfbf;font-size:%?50?%}.evaluate-con .score .evaluateBnt[data-v-39c2acb2]{font-size:%?30?%;color:#fff;width:%?690?%;height:%?86?%;border-radius:%?43?%;text-align:center;line-height:%?86?%;margin-top:%?45?%;background-color:var(--view-theme)}',""]),t.exports=e},aa37:function(t,e,r){var n=r("9819");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=r("967d").default;o("2083d5f2",n,!0,{sourceMap:!1,shadowMode:!1})},dca6:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return o})),r.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{style:t.viewColor},[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"},[t._v(t._s(t.productInfo.product.store_name))]),r("v-uni-view",{staticClass:"money"},[r("v-uni-view",[t._v("¥"+t._s(3==t.productInfo.product_type?t.productInfo.productAssistAttr.assist_price: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,a){return r("v-uni-text",{key:a,staticClass:"iconfont",class:e.index>=a?"icon-shitixing font-color":"icon-kongxinxing",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.stars(a,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",attrs:{formType:"submit"}},[t._v("立即评价")])],2)],1):t._e()],1)],1)},o=[]}}]);