1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-refund-detail-refund-detail"],{"006d":function(t,n,a){"use strict";a.r(n);var i=a("cf43"),e=a("8f28");for(var d in e)"default"!==d&&function(t){a.d(n,t,(function(){return e[t]}))}(d);a("6fdf"),a("f7c6");var o,r=a("f0c5"),u=Object(r["a"])(e["default"],i["b"],i["c"],!1,null,"26469dba",null,!1,i["a"],o);n["default"]=u.exports},"40a8":function(t,n,a){var i=a("24fb");n=i(!1),n.push([t.i,"uni-page-body[data-v-26469dba]{min-height:100%;width:100%;background:#f7f7f7}body.?%PAGE?%[data-v-26469dba]{background:#f7f7f7}",""]),t.exports=n},"414c":function(t,n,a){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=a("51da"),e=a("7575"),d={data:function(){return{refundInfo:"",order_no:""}},onLoad:function(t){this.order_no=t.order_no,this.getDetail(t.order_no)},filters:{getStatus:function(t){switch(t){case 0:return"审核中";case 1:return"已同意";case 2:return"已驳回";case 3:return"已完成";default:return"暂无"}}},methods:{cancelApply:function(t){var n=this;uni.showModal({content:"你确定要取消退货申请吗?",success:function(a){a.confirm&&(0,e.cancelRefund)({refund_id:t}).then((function(t){200==t.code?(n.getDetail(n.order_no),uni.showToast({title:"退货申请已取消"})):uni.showModal({content:t.data||"取消失败",showCancel:!1})}))}})},getDetail:function(t){var n=this;(0,e.refundDetail)({order_no:t}).then((function(t){200==t.code?n.refundInfo=t.data:uni.showModal({content:t.data||"获取详情失败",showCancel:!1})}))},copy:function(t){(0,i.handleClipboard)(t,event,(function(){uni.showToast({icon:"none",title:"复制成功"})}),(function(){uni.showToast({icon:"none",title:"复制失败"})}))}}};n.default=d},"6fdf":function(t,n,a){"use strict";var i=a("9cd3"),e=a.n(i);e.a},7575:function(t,n,a){"use strict";var i=a("4ea4");Object.defineProperty(n,"__esModule",{value:!0}),n.refundDetail=n.cancelRefund=n.delRefund=n.refundOrderDetail=n.refundOrderInfo=n.refundOrder=n.submitRefund=void 0;var e=i(a("57f7")),d=function(t){return e.default.post("/refund/submit_refund_order",t)};n.submitRefund=d;var o=function(t){return e.default.get("/refund/get_all_refund_order",t)};n.refundOrder=o;var r=function(t){return e.default.get("/refund/get_origin_order_info",t)};n.refundOrderInfo=r;var u=function(t){return e.default.get("/refund/get_refund_order_detail",t)};n.refundOrderDetail=u;var s=function(t){return e.default.post("/refund/delete_origin_order",t)};n.delRefund=s;var c=function(t){return e.default.post("/refund/cancel_refund_order",t)};n.cancelRefund=c;var f=function(t){return e.default.get("/order/get_refund_order_detail",t)};n.refundDetail=f},7867:function(t,n,a){var i=a("7a33");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=a("4f06").default;e("690ff884",i,!0,{sourceMap:!1,shadowMode:!1})},"7a33":function(t,n,a){var i=a("24fb");n=i(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */\r\n/*主题色及按钮渐变背景*/\r\n/*字体大小*/.audit[data-v-26469dba]{padding-bottom:%?150?%}.audit .refund_num[data-v-26469dba]{width:%?690?%;background:#fff;margin:%?30?% auto;border-radius:%?8?%;padding:%?15?%;font-size:%?32?%;font-weight:700}.audit .audit_con[data-v-26469dba]{width:%?690?%;margin:0 auto %?30?%;background:#fff;border-radius:%?24?%}.audit .audit_con .audit_money[data-v-26469dba]{padding:%?10?% %?30?%}.audit .audit_con .refund[data-v-26469dba]{height:%?110?%}.audit .audit_con .goods_info[data-v-26469dba]{padding:%?30?% %?30?%}.audit .audit_con .goods_info .title[data-v-26469dba]{font-size:%?32?%;font-weight:700;padding:0 0 %?20?% 0}.audit .audit_con .goods_info .goods_con[data-v-26469dba]{padding-bottom:%?20?%}.audit .audit_con .goods_info .goods_con .goods_img[data-v-26469dba]{width:%?180?%;height:%?144?%;border-radius:%?8?%;margin-right:%?20?%}.audit .audit_con .goods_info .goods_con .goods_name[data-v-26469dba]{font-size:%?30?%;font-weight:700}.audit .audit_con .goods_info .size_box[data-v-26469dba]{width:100%;background:#f9f9f9;padding:%?15?% 0;margin-top:%?15?%;border-radius:%?8?%}.audit .audit_con .goods_info .size_box uni-text[data-v-26469dba]{width:20%;text-align:center}.audit .audit_con .label[data-v-26469dba]{padding:%?10?% 0}.audit .audit_con .label uni-text[data-v-26469dba]:first-child{font-size:%?30?%;color:#999}.audit .audit_con .label uni-text[data-v-26469dba]:last-child{font-size:%?28?%;color:#333}.audit .audit_con .audit_order[data-v-26469dba]{padding:%?10?% %?30?%;margin-bottom:%?15?%}.audit .audit_con .audit_order .order_bottom[data-v-26469dba]{border-top:%?2?% solid #eee}.audit .audit_con .audit_order uni-image[data-v-26469dba]{width:%?140?%;height:%?140?%;border-radius:%?8?%}.audit .audit_con .audit_order .sub_btn[data-v-26469dba]{margin:%?30?% auto}.audit .audit_con .reject_box[data-v-26469dba]{padding:%?15?% %?30?%}',""]),t.exports=n},"8f28":function(t,n,a){"use strict";a.r(n);var i=a("414c"),e=a.n(i);for(var d in i)"default"!==d&&function(t){a.d(n,t,(function(){return i[t]}))}(d);n["default"]=e.a},"9cd3":function(t,n,a){var i=a("40a8");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var e=a("4f06").default;e("4e8851cd",i,!0,{sourceMap:!1,shadowMode:!1})},c246:function(t,n,a){t.exports=a.p+"static/img/no_order.b014ed4b.png"},cf43:function(t,n,a){"use strict";var i;a.d(n,"b",(function(){return e})),a.d(n,"c",(function(){return d})),a.d(n,"a",(function(){return i}));var e=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",{staticClass:"audit"},[t.refundInfo.length>0?i("v-uni-view",{staticClass:"refund_num"},[t._v("退货次数:"+t._s(t.refundInfo.length)+"次")]):t._e(),t._l(t.refundInfo,(function(n){return i("v-uni-view",{key:n.id,staticClass:"audit_con"},[i("v-uni-view",{staticClass:"goods_info"},[i("v-uni-view",{staticClass:"title"},[t._v("退货信息")]),t._l(n.goods,(function(n){return i("v-uni-view",{key:n.id,staticClass:"goods_con"},[i("v-uni-view",{staticClass:"flexS"},[i("v-uni-image",{staticClass:"goods_img",attrs:{src:n.img}}),i("v-uni-view",[i("v-uni-text",{staticClass:"goods_name"},[t._v(t._s(n.name))]),i("v-uni-view",{staticClass:"year"},[t._v("3条装")])],1)],1),i("v-uni-view",{staticClass:"goods_size"},t._l(n.sku,(function(n){return i("v-uni-view",{key:n.id,staticClass:"size_box flexB"},[i("v-uni-text",[t._v(t._s(n.type))]),i("v-uni-text",[t._v(t._s(n.size))]),i("v-uni-text",[t._v(t._s(n.price))]),i("v-uni-text",[t._v("X"+t._s(n.num))])],1)})),1)],1)})),i("v-uni-view",{staticClass:"flexE",staticStyle:{"margin-top":"20rpx"}},[n.goods?i("v-uni-text",{staticClass:"gray"},[t._v("共"+t._s(t._f("totalNum")(n.goods))+"套")]):t._e(),i("v-uni-text",{staticClass:"gray"},[t._v("合计:")]),i("v-uni-text",{staticClass:"total"},[i("v-uni-text",[t._v("¥")]),n.goods?i("v-uni-text",{staticClass:"price"},[t._v(t._s(t._f("totalPrice")(n.goods)))]):t._e()],1)],1)],2),i("v-uni-view",{staticClass:"audit_order"},[i("v-uni-view",{staticClass:"order_top"},[i("v-uni-view",{staticClass:"label flexS"},[i("v-uni-view",[i("v-uni-text",[t._v("退单号:")]),i("v-uni-text",{staticStyle:{"font-size":"24rpx"}},[t._v(t._s(n.refund_no))])],1),i("v-uni-view",{staticClass:"copy_btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.copy(n.refund_no)}}},[t._v("复制")])],1),i("v-uni-view",{staticClass:"label flexS"},[i("v-uni-view",[i("v-uni-text",[t._v("订单号:")]),i("v-uni-text",{staticStyle:{"font-size":"24rpx"}},[t._v(t._s(n.order_no))])],1),i("v-uni-view",{staticClass:"copy_btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.copy(n.order_no)}}},[t._v("复制")])],1),i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[t._v("退货状态:")]),i("v-uni-text",{staticStyle:{color:"#f00"}},[t._v(t._s(t._f("getStatus")(n.status)))])],1),i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[t._v("申请时间:")]),i("v-uni-text",[t._v(t._s(n.created_at))])],1),i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[t._v("退货原因:")]),i("v-uni-text",[t._v(t._s(n.reason))])],1)],1),n.reason_all?i("v-uni-view",{staticClass:"order_bottom"},[i("v-uni-view",{staticClass:"label"},[i("v-uni-text",[t._v("补充说明:")]),i("v-uni-text",{staticStyle:{color:"#F76454"}},[t._v(t._s(n.reason_all))])],1),n.img?i("v-uni-view",{staticClass:"img_box"},t._l(JSON.parse(n.img),(function(t,n){return i("v-uni-view",{key:n},[i("v-uni-image",{attrs:{src:t}})],1)})),1):t._e()],1):t._e(),0==n.status?i("v-uni-view",{staticClass:"sub_btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.cancelApply(n.id)}}},[t._v("取消退货")]):t._e()],1)],1)})),0==t.refundInfo.length?i("v-uni-view",{staticClass:"noData"},[i("v-uni-image",{attrs:{src:a("c246")}}),i("v-uni-view",[t._v("--暂无数据--")])],1):t._e()],2)},d=[]},f7c6:function(t,n,a){"use strict";var i=a("7867"),e=a.n(i);e.a}}]);
|