You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
shipin/public/static/js/pages-goods-order_refund_go...

1 lines
13 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods-order_refund_goods-index"],{"19f1":function(e,t,n){"use strict";n.r(t);var r=n("b432"),i=n("b52e");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("3ff8");var o=n("f0c5"),u=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"662f6429",null,!1,r["a"],void 0);t["default"]=u.exports},"1d4c":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("ac1f"),n("00b4"),n("a434"),n("14d9");var i=n("451d"),a=n("666f"),o=n("26cb"),u=r(n("66ca")),s={mixins:[u.default],data:function(){return{expressList:[],orderInfo:{},seIndex:0,refund_reason_wap_img:[],refundInfo:{refund_express:"",refund_phone:"",refund_explain:"",id:"",refund_express_name:"",refund_img:""}}},computed:(0,o.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(e,t){e&&this.getOrderInfo()},deep:!0}},onLoad:function(e){this.orderId=e.orderId,this.isLogin?this.getOrderInfo():(0,a.toLogin)()},methods:{subRefund:function(e){var t=this;return this.refundInfo.refund_express?this.refundInfo.refund_phone?/^1(3|4|5|7|8|9|6)\d{9}$/i.test(this.refundInfo.refund_phone)?(this.refundInfo.refund_express_name=this.expressList[this.seIndex].name,this.refundInfo.refund_img=this.refund_reason_wap_img.join(","),void(0,i.refundExpress)(this.refundInfo).then((function(e){return t.$util.Tips({title:e.msg,icon:"success"},{tab:5,url:"/pages/users/user_return_list/index?isT=1"})})).catch((function(e){return t.$util.Tips({title:e})}))):this.$util.Tips({title:this.$t("请输入正确的手机号码")}):this.$util.Tips({title:this.$t("请输入手机号")}):this.$util.Tips({title:this.$t("填写快递单号")})},DelPic:function(e){var t=e;this.refund_reason_wap_img[t];this.refund_reason_wap_img.splice(t,1),this.$set(this,"refund_reason_wap_img",this.refund_reason_wap_img)},uploadpic:function(){var e=this;this.$util.uploadImageOne("upload/image",(function(t){e.refund_reason_wap_img.push(t.data.url),e.$set(e,"refund_reason_wap_img",e.refund_reason_wap_img)}))},getOrderInfo:function(){var e=this;(0,i.refundOrderDetail)(e.orderId).then((function(t){e.$set(e,"orderInfo",t.data),e.expressList=t.data.express_list,e.refundInfo.id=t.data.id}))},bindPickerChange:function(e){this.$set(this,"seIndex",e.detail.value)}}};t.default=s},"3ff8":function(e,t,n){"use strict";var r=n("f773"),i=n.n(r);i.a},"451d":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.adminExpress=function(e,t){return a.default.get("admin/order/express/"+e+"".concat(t?"/refund":""))},t.aliPay=function(e,t){return a.default.get("ali_pay",{key:e,quitUrl:t},{noAuth:!0})},t.cancelRefundOrder=function(e){return a.default.post("order/refund/cancel/"+e)},t.cartDel=function(e){"object"===(0,i.default)(e)&&(e=e.join(","));return a.default.post("cart/del",{ids:e})},t.changeCartNum=function(e,t){return a.default.post("cart/num",{id:e,number:t})},t.checkShipping=function(e,t){return a.default.post("order/check_shipping",{cartId:e,new:t})},t.express=function(e,t){return a.default.get("order/express/"+e+"".concat(t?"/refund":""))},t.getCartCounts=function(e){return a.default.get("cart/count",{numType:void 0===e?0:e})},t.getCartList=function(e){return a.default.get("cart/list",e)},t.getCashierOrder=function(e,t){return a.default.get("order/cashier/".concat(e,"/").concat(t))},t.getCouponsOrderPrice=function(e,t){return a.default.get("coupons/order/"+e,t)},t.getNewOrderList=function(e){return a.default.get("order/refund/list",e)},t.getOrderDetail=function(e,t){return a.default.get("order/detail/"+e+"".concat(t?"/".concat(t):""))},t.getOrderList=function(e){return a.default.get("order/list",e)},t.getRefundOrderDetail=function(e,t){return a.default.get("order/refund_detail/"+e+"".concat(t?"/".concat(t):""))},t.getResetCart=function(e){return a.default.post("v2/reset_cart",e)},t.offlineCheckPrice=function(e){return a.default.post("order/offline/check/price",e)},t.offlineCreate=function(e){return a.default.post("order/offline/create",e)},t.ordeRefundReason=function(){return a.default.get("order/refund/reason")},t.orderAgain=function(e){return a.default.post("order/again",{uni:e})},t.orderCancel=function(e){return a.default.post("order/cancel",{id:e})},t.orderComment=function(e){return a.default.post("order/comment",e)},t.orderConfirm=function(e,t,n,r){return a.default.post("order/confirm",{cartId:e,new:t,addressId:n,shipping_type:r})},t.orderCoupon=function(e){return a.default.post("v2/order/product_coupon/"+e)},t.orderCreate=function(e,t){return a.default.post("order/create/"+e,t)},t.orderData=function(){return a.default.get("order/data")},t.orderDel=function(e){return a.default.post("order/del",{uni:e})},t.orderInvoiceDetail=function(e){return a.default.get("v2/order/invoice_detail/".concat(e))},t.orderInvoiceList=function(e){return a.default.get("v2/order/invoice_list",e)},t.orderOfflinePayType=function(){return a.default.get("order/offline/pay/type")},t.orderPay=function(e){return a.default.post("order/pay",e)},t.orderProduct=function(e){return a.default.post("order/product",{unique:e})},t.orderRefundVerify=function(e){return a.default.post("order/refund/verify",e)},t.orderTake=function(e){return a.default.post("order/take",{uni:e})},t.postOrderComputed=function(e,t){return a.default.post("order/computed/"+e,t)},t.postRefundGoods=function(e){return a.default.post("order/refund/cart_info",e)},t.refundExpress=function(e){return a.default.post("order/refund/express",e)},t.refundGoodsList=function(e){return a.default.get("order/refund/cart_info/".concat(e))},t.refundOrderDel=function(e){return a.default.get("order/refund/del/"+e,{})},t.refundOrderDetail=function(e){return a.default.get("order/refund/detail/"+e)},t.returnGoodsSubmit=function(e,t){return a.default.post("order/refund/apply/".concat(e),t)},t.vcartList=function(){return a.default.get("v2/cart_list")},n("99af");var i=r(n("53ca")),a=r(n("3160"))},"98b7":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.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/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.apply-return .list[data-v-662f6429]{background-color:#fff;margin-top:%?18?%}.apply-return .list .item[data-v-662f6429]{margin-left:%?30?%;padding-right:%?30?%;min-height:%?90?%;border-bottom:%?1?% solid #eee;font-size:%?30?%;color:#333}.apply-return .list .item .input[data-v-662f6429]{text-align:right}.apply-return .list .item .num[data-v-662f6429]{color:#282828;width:%?427?%;text-align:right}.apply-return .list .item .num .picker .reason[data-v-662f6429]{width:%?385?%}.apply-return .list .item .num .picker .iconfont[data-v-662f6429]{color:#666;font-size:%?30?%;margin-top:%?2?%}.apply-return .list .item.textarea[data-v-662f6429]{padding:%?30?% %?30?% %?30?% 0}.apply-return .list .item uni-textarea[data-v-662f6429]{height:%?100?%;font-size:%?30?%}.apply-return .list .item .placeholder[data-v-662f6429]{color:#bbb;font-size:%?30?%;text-align:right}.apply-return .list .item .title[data-v-662f6429]{height:%?95?%;width:100%}.apply-return .list .item .title .tip[data-v-662f6429]{font-size:%?30?%;color:#bbb}.apply-return .list .item .upload[data-v-662f6429]{padding-bottom:%?36?%}.apply-return .list .item .upload .pictrue[data-v-662f6429]{margin:%?22?% %?23?% 0 0;width:%?156?%;height:%?156?%;position:relative;font-size:%?24?%;color:#bbb}.apply-return .list .item .upload .pictrue[data-v-662f6429]:nth-of-type(4n){margin-right:0}.apply-return .list .item .upload .pictrue uni-image[data-v-662f6429]{width:100%;height:100%;border-radius:%?3?%}.apply-return .list .item .upload .pictrue .icon-guanbi1[data-v-662f6429]{position:absolute;font-size:%?45?%;top:%?-10?%;right:%?-10?%}.apply-return .list .item .upload .pictrue .icon-icon25201[data-v-662f6429]{color:#bfbfbf;font-size:%?50?%}.apply-return .list .item .upload .pictrue[data-v-662f6429]:nth-last-child(1){border:%?1?% solid #ddd;box-sizing:border-box}.apply-return .returnBnt[data-v-662f6429]{font-size:%?32?%;color:#fff;width:%?690?%;height:%?86?%;border-radius:%?50?%;text-align:center;line-height:%?86?%;margin:%?43?% auto}.goodsStyle .text .name[data-v-662f6429]{align-self:flex-start}.list[data-v-662f6429] .uni-input-input{text-align:right}',""]),e.exports=t},b432:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{style:e.colorStyle},[n("v-uni-form",{on:{submit:function(t){arguments[0]=t=e.$handleEvent(t),e.subRefund.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"apply-return"},[e._l(e.orderInfo.cart_info,(function(t,r){return n("v-uni-view",{key:r,staticClass:"goodsStyle acea-row row-between"},[n("v-uni-view",{staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:t.productInfo.attrInfo?t.productInfo.attrInfo.image:t.productInfo.image}})],1),n("v-uni-view",{staticClass:"text acea-row row-between"},[n("v-uni-view",{staticClass:"name line2"},[e._v(e._s(t.productInfo.store_name))]),n("v-uni-view",{staticClass:"money"},[n("v-uni-view",[e._v(e._s(e.$t("¥"))+e._s(t.truePrice))]),n("v-uni-view",{staticClass:"num"},[e._v("x"+e._s(t.cart_num))])],1)],1)],1)})),n("v-uni-view",{staticClass:"list"},[e.expressList.length?n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("快递公司")))]),n("v-uni-picker",{staticClass:"num",attrs:{value:e.seIndex,range:e.expressList,"range-key":"name"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.bindPickerChange.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"picker acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"reason"},[e._v(e._s(e.expressList[e.seIndex].name))]),n("v-uni-text",{staticClass:"iconfont icon-jiantou"})],1)],1)],1):e._e(),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("快递单号")))]),n("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:e.$t("填写快递单号"),"placeholder-class":"placeholder"},model:{value:e.refundInfo.refund_express,callback:function(t){e.$set(e.refundInfo,"refund_express",t)},expression:"refundInfo.refund_express"}})],1),n("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("联系电话")))]),n("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:e.$t("请输入手机号"),"placeholder-class":"placeholder"},model:{value:e.refundInfo.refund_phone,callback:function(t){e.$set(e.refundInfo,"refund_phone",t)},expression:"refundInfo.refund_phone"}})],1),n("v-uni-view",{staticClass:"item textarea acea-row row-between"},[n("v-uni-view",[e._v(e._s(e.$t("备注说明")))]),n("v-uni-textarea",{staticClass:"num",attrs:{placeholder:e.$t("填写备注信息,100字以内")},model:{value:e.refundInfo.refund_explain,callback:function(t){e.$set(e.refundInfo,"refund_explain",t)},expression:"refundInfo.refund_explain"}})],1),n("v-uni-view",{staticClass:"item acea-row row-between"},[n("v-uni-view",{staticClass:"title acea-row row-between-wrapper"},[n("v-uni-view",[e._v(e._s(e.$t("上传图片")))]),n("v-uni-view",{staticClass:"tip"},[e._v(e._s(e.$t("最多可上传3张")))])],1),n("v-uni-view",{staticClass:"upload acea-row row-middle"},[e._l(e.refund_reason_wap_img,(function(t,r){return n("v-uni-view",{key:r,staticClass:"pictrue"},[n("v-uni-image",{attrs:{src:t}}),n("v-uni-view",{staticClass:"iconfont icon-guanbi1 font-num",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.DelPic(r)}}})],1)})),e.refund_reason_wap_img.length<3?n("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.uploadpic.apply(void 0,arguments)}}},[n("v-uni-text",{staticClass:"iconfont icon-icon25201"}),n("v-uni-view",[e._v(e._s(e.$t("上传图片")))])],1):e._e()],2)],1)],1),n("v-uni-button",{staticClass:"returnBnt bg-color",attrs:{"form-type":"submit"}},[e._v(e._s(e.$t("提交")))])],2)],1)],1)},i=[]},b52e:function(e,t,n){"use strict";n.r(t);var r=n("1d4c"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},f773:function(e,t,n){var r=n("98b7");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("13d6018d",r,!0,{sourceMap:!1,shadowMode:!1})}}]);