1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-refund-goods-index"],{3481:function(e,t,r){var n=r("825b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=r("967d").default;a("86b529b0",n,!0,{sourceMap:!1,shadowMode:!1})},3569:function(e,t,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,r("bf0f"),r("18f7"),r("de6c"),r("dd2b"),r("aa9c");var a=n(r("2634")),o=n(r("2fdc")),i=n(r("9b1b")),u=r("5676"),d=r("a058"),c=n(r("8d6d")),s=r("8f59"),f={components:{alertBox:c.default},data:function(){return{order_id:0,isShowBox:!1,uploadImg:[],numArray:[],numIndex:0,id:"",productData:[],con:"",refund_price:"",msg:"",number:"",phone:""}},computed:(0,i.default)({},(0,s.mapGetters)(["viewColor"])),onLoad:function(e){this.id=e.id,this.refund_type=e.refund_type,this.type=e.type,this.order_id=e.order_id,Promise.all([this.refundProduct(),this.expressList()])},methods:{expressList:function(){var e=this;(0,u.expressList)().then((function(t){e.numArray=t.data}))},refundProduct:function(){var e=this;(0,u.refundDetail)(this.id).then((function(t){var r=t.data;e.productData=r.refundProduct}))},bindPickerChange:function(e){this.qsIndex=e.target.value},bindNumChange:function(e){this.numIndex=e.target.value,this.refund_price=this.unitPrice*this.numArray[e.target.value]},deleteImg:function(e){this.uploadImg.splice(e,1)},uploadpic:function(){if(this.uploadImg.length<9){var e=this;e.$util.uploadImageOne("upload/image",(function(t){e.uploadImg.push(t.data.path),e.$set(e,"uploadImg",e.uploadImg)}))}else uni.showToast({title:"最多可上传9张",icon:"none"})},bindComfirm:function(){var e=this;return(0,o.default)((0,a.default)().mark((function t(){var r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(t.prev=0,e.number){t.next=4;break}return uni.showToast({title:"请填写快递单号",icon:"none"}),t.abrupt("return");case 4:if((0,d.checkPhone)(e.phone)){t.next=7;break}return uni.showToast({title:"请填写正确的手机号码",icon:"none"}),t.abrupt("return");case 7:return t.next=9,(0,u.refundBackGoods)(e.id,{delivery_type:e.numArray[e.numIndex].label,delivery_id:e.number,delivery_phone:e.phone,ids:e.ids,delivery_mark:e.con,delivery_pics:e.uploadImg});case 9:r=t.sent,e.msg=r.message,e.isShowBox=!0,t.next=17;break;case 14:t.prev=14,t.t0=t["catch"](0),uni.showToast({title:t.t0,icon:"none"});case 17:case"end":return t.stop()}}),t,null,[[0,14]])})))()},bindClose:function(){this.isShowBox=!1,uni.redirectTo({url:"/pages/users/refund/detail?id="+this.id})}}};t.default=f},"3edb":function(e,t,r){"use strict";r.r(t);var n=r("3569"),a=r.n(n);for(var o in n)["default"].indexOf(o)<0&&function(e){r.d(t,e,(function(){return n[e]}))}(o);t["default"]=a.a},5676:function(e,t,r){"use strict";r("6a54");var n=r("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.applyInvoiceApi=function(e,t){return a.default.post("order/receipt/".concat(e),t)},t.cartDel=function(e){return a.default.post("user/cart/delete",e)},t.cartProductAttr=function(e){return a.default.get("store/product/get_attr_value/".concat(e))},t.changeCartNum=function(e,t){return a.default.post("user/cart/change/"+e,t)},t.createOrder=function(e){return a.default.post("v2/order/create",e,{noAuth:!0})},t.develiveryDetail=function(e){return a.default.get("order/delivery/".concat(e))},t.express=function(e){return a.default.post("order/express/"+e)},t.expressList=function(){return a.default.get("common/express")},t.getCallBackUrlApi=function(e){return a.default.get("common/pay_key/"+e,{},{noAuth:!0})},t.getCartCounts=function(){return a.default.get("user/cart/count")},t.getCartList=function(){return a.default.get("user/cart/lst")},t.getCouponsOrderPrice=function(e,t){return a.default.get("coupons/order/"+e,t)},t.getOrderConfirm=function(e){return a.default.post("v2/order/check",e)},t.getOrderDetail=function(e){return a.default.get("order/detail/"+e)},t.getOrderList=function(e){return a.default.get("order/list",e)},t.getPayOrder=functi
|