pages-order-orderRefund.e67e9cb1.js 14 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-order-orderRefund"],{"05fd":function(t,e,i){"use strict";i.r(e);var o=i("64ad"),a=i("9a0c");for(var n in a)"default"!==n&&function(t){i.d(e,t,(function(){return a[t]}))}(n);i("8d11");var d,r=i("f0c5"),s=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"b9e879e4",null,!1,o["a"],d);e["default"]=s.exports},"1f07":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAjCAYAAAD8BaggAAAERklEQVRYR+2YXWgcVRTH/2ey2yab2gqlKQiirR9t1fogkWpAJFW72dk7G5LKkmgfDIUGfRAtKoIthoKKoBZESlUwSInEUaHLnc103aB9EWmgLxo/0ErEB7Hpg5iSNWxm75G7nY1L3exMkkFfvG8755z/+c25537MElY4RkdHWzs6OrYyc0uzUCKqzM7OXhwaGlpYSQoK61wsFjctLiwcJ6JHAKwPFUe0QMyn5kqlZ7PZ7B9hYkIB2ba9bkMi8QUBnWFEG/hMXS6V7stms+Wg+FBAbj4/DOaTQWLN7Mx8yLSsd4M0wgE5zjSA232xMYrFnvQ8j5uJx2IxYs97C8Cg9mNg2hRi95qBXCkfANGkL6QU0a50Ov1DkLC2F6TcqYi+BVB9cQL29gjxedPFoI26Rza2t+8FsOVqZ6XUQSK6339+JiVEKgxMzceVsgCiff7vs0T0XoP4S3Pz85/pHqNCoXC9KpeLINoRmIg5nbKsiUC/OodCPi8UswyKIeD7Bc/bR67j5ABkggLAfKFHiFuJqGnvXK0zMjJi7Ons1FN8U1AOZj6tgf4E0Oo33tcAlluaJ0whGpU7KA9cxznIwOPLOK4n4A7fNq+Blt54UakbMpnML4EZInT4VMpbKkRLiyQSIGa+sopWOJ06JjIg13XvhFJPgPkhADf6U/4zAUVUKidSvb1fhSnkmoFs227ZmEi8ysBTAJY7YCsA3mxtb3+uu7vbawa2JiANc00i8QmA3jBvDyB3uVTan81mNWDDsSagCcc5SsCxOuULIHqNPW8K8Ti4UtljED1Tv8QN4EhSiJciB5rM5baWDWOGiNqq/cLsXrt58/6uri69bSwNKWUiDnzMRLUdvWSUy9uS/f2zjaBWXaG8lIcNotd90d/YMHaYpjnXKEnRtjd5icSPS0cR0eFUOn08UiBXyhyIqjs6K/Wymcm80KyPXClfAdHzfjVPm5bVFy2Q45wHcJefYMC0rA+bAuXzg2D+wN8OzptCNLzcrXrK3Hx+Csx36wSK+dG0ZVWTLTdcxzkA4JS2E3CuR4h7oq6QBqhetgC8kxJiOADobQCHfJ+xlBAa8B9j1RXKSzlk/H2XmTeU2p3MZGYaJZl0nO2LwDe1QxvAYykh3o8USC/nGDADog5/Gr5Ti4uW2df3U32iXC538zrDkCDa6ffbxQqw3bKsUqRAWsyta1RfXH9zjTPwpQ95L4CBusrox4MpIcaXm95VT1lNcELKY0R0tFn/1GwEvNgjRP3OHl0P1Ss5jnOgBXij0R3c97vEzE+bljUWBL7mCtUS2La9ob2tbaDFMB5k5m3VfiGaIeaiEY+PJ5PJ+SAYbY8MKEyyMD7/AwVVqVGF9OXJqAYSjQD4PUgkYvsWMB/xNT19ydc76m0RJ1mVHAHTGqifmT8ioitV+o8GMysCHq5+vpxxnG7FPExE19X+GPgXuZiIfmWlTqYs6+xfGzmAPid6krwAAAAASUVORK5CYII="},3513:function(t,e,i){var o=i("24fb");e=o(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-b9e879e4]{background:#f8f6f6;padding-top:%?16?%}.orderDetial .row .input[data-v-b9e879e4]{text-align:right}.row[data-v-b9e879e4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .refund[data-v-b9e879e4]{font-size:%?30?%;color:#303133;padding-left:%?128?%}.row .noRefund[data-v-b9e879e4]{font-size:%?30?%;color:#909399;padding-left:%?128?%}.row .tit[data-v-b9e879e4]{-webkit-flex-shrink:0;flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-b9e879e4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133;padding-left:%?128?%}.row .input.payColor[data-v-b9e879e4]{color:#dd524d}.row .iconlocation[data-v-b9e879e4]{font-size:%?36?%;color:#909399}.add-btn[data-v-b9e879e4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?690?%;height:%?80?%;margin:%?60?% auto;font-size:%?32?%;color:#fff;background-color:#921a23;border-radius:%?10?%}\n/* 多条商品 */.order-item[data-v-b9e879e4]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#fff;margin-top:%?16?%\n /* 单条商品 */}.order-item .goods-box[data-v-b9e879e4]{height:%?160?%;padding:%?20?% 0;white-space:nowrap}.order-item .goods-box .goods-item[data-v-b9e879e4]{width:%?120?%;height:%?120?%;display:inline-block;margin-right:%?24?%}.order-item .goods-box .goods-img[data-v-b9e879e4]{display:block;width:100%;height:100%}.order-item .goods-box-single[data-v-b9e879e4]{display:-webkit-box;display:-webkit-flex;display:flex;padding:%?20?% 0}.order-item .goods-box-single .goods-img[data-v-b9e879e4]{display:block;width:%?120?%;height:%?120?%}.order-item .goods-box-single .right[data-v-b9e879e4]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;padding:0 %?30?% 0 %?24?%;overflow:hidden}.order-item .goods-box-single .right .title[data-v-b9e879e4]{font-size:%?30?%;color:#303133;line-height:1}.order-item .goods-box-single .right .attr-box[data-v-b9e879e4]{font-size:%?26?%;color:#909399;padding:%?10?% %?12?%}.order-item .goods-box-single .right .price[data-v-b9e879e4]{font-size:%?30?%;color:#303133}.order-item .goods-box-single .right .price[data-v-b9e879e4]:before{content:"¥";font-size:%?24?%;margin:0 %?2?% 0 %?8?%}.refund-num[data-v-b9e879e4]{margin:%?20?% 0;width:%?750?%;height:%?100?%;background:#fff;line-height:%?100?%}.refund-num uni-view[data-v-b9e879e4]{display:inline-block}.refund-num .num-title[data-v-b9e879e4]{font-size:%?30?%;font-family:PingFangSC;font-weight:500;color:#333;padding-left:%?30?%}.refund-num .num[data-v-b9e879e4]{padding-left:%?133?%;font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#901b21}.good[data-v-b9e879e4]{margin-bottom:%?18?%;width:%?750?%;height:%?220?%;background:#fff;padding:%?30?% %?29?%;display:-webkit-box;display:-webkit-flex;display:flex;position:relative}.good .img-wrapper[data-v-b9e879e4]{width:%?160?%;height:%?160?%}.good .img-wrapper uni-image[data-v-b9e879e4]{width:100%;height:100%;border-radius:%?5?%}.good .good-infoo[data-v-b9e879e4]{padding-left:%?20?%}.good .good-infoo .good-name[data-v-b9e879e4]{width:%?282?%;font-size:%?26?%;font-family:PingFang SC;font-weight:400;color:#1d2023;line-height:%?40?%;margin-bottom:%?40?%}.good .good-infoo .create-time[data-v-b9e879e4]{height:%?21?%;font-size:%?22?%;font-family:PingFang SC;font-weight:400;color:#999}.good .good-infot[data-v-b9e879e4]{position:absolute;right:%?29?%;text-align:right;font-size:%?26?%;font-family:PingFang SC;font-weight:400;color:#666}.good .good-infot .good-num[data-v-b9e879e4]{font-size:%?22?%}.pushpic[data-v-b9e879e4]{margin-top:%?20?%;width:%?750?%;height:%?284?%;background:#fff;padding:%?30?% 0 0 %?30?%}.pushpic .up-title[data-v-b9e879e4]{font-size:%?30?%;font-family:PingFang SC;font-weight:400;color:#3f454b;line-height:1;padding-bottom:%?35?%}.pushpic .up .up-bg[data-v-b9e879e4]{width:%?160?%;height:%?160?%;background:#fff;border:%?2?% #999 dashed;border-radius:%?10?%;position:relative}.pushpic .up .up-bg uni-image[data-v-b9e879e4]{width:%?36?%;height:%?36?%;position:absolute;top:%?44?%;left:%?64?%}.pushpic .up .up-bg .up-tap[data-v-b9e879e4]{position:absolute;height:%?23?%;font-size:%?24?%;font-family:PingFangSC;font-weight:500;color:#888;top:%?93?%;left:%?33?%}.pushpic .up .up-img[data-v-b9e879e4]{width:%?160?%;height:%?160?%;background:#fff;border-radius:%?10?%}.pushpic .up .up-img uni-image[data-v-b9e879e4]{width:100%;height:100%;border-radius:%?10?%}body.?%PAGE?%[data-v-b9e879e4]{background:#f8f6f6}',""]),t.exports=e},"5c32":function(t,e,i){"use strict";var o=i("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.confirm=n,e.couponsOrder=d,e.getCouponsList=r,e.order_comment=s,e.product=u,e.express_query=l,e.upload=f,e.orderList=c,e.orderDetail=g,e.orderCancel=p,e.orderDel=b,e.refund=v,e.refundReason=h,e.orderTake=m,e.orderPay=w,e.createOrderkey=x,e.computedOrderkey=k,e.GetAdminOrderList=y,e.aOrderRefund=C;var a=o(i("bc58"));function n(t){return(0,a.default)({url:"/api/order/confirm",method:"post",data:t})}function d(t,e){return(0,a.default)({url:"/api/coupons/order/"+e,method:"get",data:t})}function r(t,e){return(0,a.default)({url:"/api/coupons/user/"+e,method:"get",data:t})}function s(t){return(0,a.default)({url:"/api/order/comment",method:"post",data:t})}function u(t){return(0,a.default)({url:"/api/order/product",method:"post",data:t})}function l(t){return(0,a.default)({url:"/api/order/express_query",method:"get",data:t})}function f(t){return(0,a.upFilse)({url:"/api/upload/image",method:"post",data:t})}function c(t){return(0,a.default)({url:"/api/order/list",method:"get",data:t})}function g(t,e){return(0,a.default)({url:"/api/order/detail/"+e,method:"get",data:t})}function p(t){return(0,a.default)({url:"/api/order/cancel",method:"post",data:t})}function b(t){return(0,a.default)({url:"/api/order/del",method:"get",data:t})}function v(t){return(0,a.default)({url:"/api/order/refund/verify",method:"post",data:t})}function h(t){return(0,a.default)({url:"/api/order/refund/reason",method:"get",data:t})}function m(t){return(0,a.default)({url:"/api/order/take",method:"post",data:t})}function w(t){return(0,a.default)({url:"/api/order/pay",method:"post",data:t})}function x(t,e){return(0,a.default)({url:"/api/order/create/"+e,method:"post",data:t})}function k(t){return(0,a.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}function y(t){return(0,a.default)({url:" /api/admin/order/list",method:"get",data:t})}function C(t){return(0,a.default)({url:"/api/admin/order/refund",method:"post",data:t})}},"64ad":function(t,e,i){"use strict";var o;i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){return o}));var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"content"},[o("v-uni-view",{staticClass:"order-item"},[1==t.listStyle?o("v-uni-scroll-view",{staticClass:"goods-box",attrs:{"scroll-x":!0}},t._l(t.item.cartInfo,(function(t,e){return o("v-uni-view",{key:e,staticClass:"goods-item"},[o("v-uni-image",{staticClass:"goods-img",attrs:{src:t.productInfo.image,mode:"aspectFill"}})],1)})),1):t._e(),t._l(t.item.cartInfo,(function(e,i){return 2==t.listStyle?o("v-uni-view",{key:i,staticClass:"good"},[o("v-uni-view",{staticClass:"img-wrapper"},[o("v-uni-image",{attrs:{src:e.productInfo.image,mode:""}})],1),o("v-uni-view",{staticClass:"good-infoo"},[o("v-uni-view",{staticClass:"good-name ellipsis"},[t._v(t._s(e.productInfo.store_name))]),o("v-uni-view",{staticClass:"create-time"},[t._v("下单时间:"+t._s(t.item.add_time_y))])],1),o("v-uni-view",{staticClass:"good-infot"},[o("v-uni-view",{staticClass:"good-price"},[t._v("¥"+t._s(e.productInfo.price))]),o("v-uni-view",{staticClass:"good-num"},[t._v("X"+t._s(e.cart_num))])],1)],1):t._e()}))],2),o("v-uni-view",{staticClass:"row b-b"},[o("v-uni-text",{staticClass:"tit"},[t._v("货物状态")]),o("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入货物状态","placeholder-class":"placeholder"},model:{value:t.reason,callback:function(e){t.reason=e},expression:"reason"}})],1),o("v-uni-view",{staticClass:"row b-b"},[o("v-uni-text",{staticClass:"tit"},[t._v("退款原因")]),o("v-uni-picker",{attrs:{mode:"selector",range:t.status},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bindChange.apply(void 0,arguments)}}},[t.refundStatus?o("v-uni-view",{staticClass:"refund"},[t._v(t._s(t.refundStatus||"请选择"))]):o("v-uni-view",{staticClass:"noRefund"},[t._v("请选择退款原因")])],1)],1),o("v-uni-view",{staticClass:"row b-b"},[o("v-uni-text",{staticClass:"tit"},[t._v("退款方式")]),o("v-uni-picker",{attrs:{mode:"selector",range:t.methods},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.bind2Change.apply(void 0,arguments)}}},[t.refundMethods?o("v-uni-view",{staticClass:"refund"},[t._v(t._s(t.refundMethods||"请选择"))]):o("v-uni-view",{staticClass:"noRefund"},[t._v("请选择")])],1)],1),o("v-uni-view",{staticClass:"pushpic"},[o("v-uni-view",{staticClass:"up-title"},[t._v("上传凭证:")]),o("v-uni-view",{staticClass:"up",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.putImg()}}},[""==t.upImg?o("v-uni-view",{staticClass:"up-bg"},[o("v-uni-image",{attrs:{src:i("1f07"),mode:""}}),o("v-uni-view",{staticClass:"up-tap"},[t._v("上传图片")])],1):o("v-uni-view",{staticClass:"up-img"},[o("v-uni-image",{attrs:{src:t.upImg,mode:""}})],1)],1)],1),o("v-uni-button",{staticClass:"add-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v("提交申请")])],1)},n=[]},"8d11":function(t,e,i){"use strict";var o=i("9a2f"),a=i.n(o);a.a},"9a0c":function(t,e,i){"use strict";i.r(e);var o=i("e8e7"),a=i.n(o);for(var n in o)"default"!==n&&function(t){i.d(e,t,(function(){return o[t]}))}(n);e["default"]=a.a},"9a2f":function(t,e,i){var o=i("3513");"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("4f06").default;a("7ef7ba88",o,!0,{sourceMap:!1,shadowMode:!1})},e8e7:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i("5c32"),a={data:function(){return{refundStatus:"",refundMethods:"",reason:"",status:["代付款","待发货","待收货","已完成"],orderId:"",item:{},listStyle:2,refundNum:0,methods:["余额"],isUp:!0,upImg:""}},onLoad:function(t){this.orderId=t.id,this.refundReason(),this.loadOrder()},methods:{bindChange:function(t){this.refundStatus=this.status[t.detail.value],console.log("this.refundStatus",this.refundStatus)},bind2Change:function(t){this.refundMethods=this.methods[t.detail.value]},refundReason:function(){var t=this;(0,o.refundReason)({}).then((function(e){t.status=e.data}))},loadOrder:function(){var t=this;(0,o.orderDetail)({},this.orderId).then((function(e){t.item=e.data,console.log(t.item)}))},confirm:function(){var t=this;if(!t.refundStatus)return uni.showModal({title:"错误",content:"请填写退货理由",showCancel:!1}),!1;uni.showLoading({title:"提交中...",mask:!0}),(0,o.refund)({text:t.refundStatus,uni:t.orderId,refund_reason_wap_explain:t.reason,refund_reason_wap_img:t.upImg}).then((function(t){uni.showToast({title:"提交成功",duration:1500}),setTimeout((function(){uni.navigateBack()}),800)})).catch((function(t){console.log(t)}))},putImg:function(){var t=this;console.log("dianji"),(0,o.upload)({filename:""}).then((function(e){console.log(e,"6666666666"),t.upImg=e[0].url}))}}};e.default=a}}]);