(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/cancel-audit/cancel-audit"],{"2c48":function(n,t,o){"use strict";o.r(t);var e=o("b71d"),c=o.n(e);for(var a in e)"default"!==a&&function(n){o.d(t,n,(function(){return e[n]}))}(a);t["default"]=c.a},"772e":function(n,t,o){},"78ac":function(n,t,o){"use strict";var e=o("ff8b"),c=o.n(e);c.a},"822d":function(n,t,o){"use strict";var e=o("772e"),c=o.n(e);c.a},a2e6:function(n,t,o){"use strict";(function(n){o("fdf4");e(o("66fd"));var t=e(o("a9b7"));function e(n){return n&&n.__esModule?n:{default:n}}wx.__webpack_require_UNI_MP_PLUGIN__=o,n(t.default)}).call(this,o("543d")["createPage"])},a9b7:function(n,t,o){"use strict";o.r(t);var e=o("bcd0"),c=o("2c48");for(var a in c)"default"!==a&&function(n){o.d(t,n,(function(){return c[n]}))}(a);o("78ac"),o("822d");var r,i=o("f0c5"),d=Object(i["a"])(c["default"],e["b"],e["c"],!1,null,"784939fc",null,!1,e["a"],r);t["default"]=d.exports},b71d:function(n,t,o){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;o("627d");var e=o("057a"),c=o("728a"),a={data:function(){return{isReject:!1,remark:"",orderCancel:"",orderInfo:"",address:"",goods:"",cancelId:","}},onLoad:function(n){this.cancelId=n.id,n.order_no&&this.getOrder(n.order_no)},methods:{copy:function(t){(0,c.handleClipboard)(t,event,(function(){n.showToast({icon:"none",title:"复制成功"})}),(function(){n.showToast({icon:"none",title:"复制失败"})}))},getOrder:function(t){var o=this;(0,e.orderQuery)({order_no:t}).then((function(t){200==t.code?(o.orderInfo=t.data,o.orderCancel=t.data.order_cancel,o.address=t.data.address,o.goods=t.data.goods):n.showModal({content:t.data||"获取订单详情失败",showCancel:!1})}))},skipDetail:function(){n.navigateTo({url:"../order-info/order-info?order_no="+this.orderInfo.order_no})},cancelAudit:function(t){var o=this;if(n.showLoading({title:"处理中..."}),3==t&&!this.remark)return n.showToast({title:"请输入驳回原因",icon:"none"}),!1;(0,e.cancelAudit)({id:this.cancelId,remark:this.remark,type:t}).then((function(e){n.hideLoading(),200==e.code?(o.isReject=!1,n.showModal({content:"已".concat(3==t?"驳回":"通过","用户申请"),showCancel:!1,success:function(t){t.confirm&&n.navigateBack()}})):n.showModal({content:e.data||"".concat(3==t?"驳回":"通过","用户申请失败"),showCancel:!1})}))},operaCancel:function(t){var o=this;if(2==t)return n.showModal({content:"你确定要通过该申请么？",success:function(n){n.confirm&&o.cancelAudit(2)}}),!1;this.cancelAudit(3)}}};t.default=a}).call(this,o("543d")["default"])},bcd0:function(n,t,o){"use strict";o.d(t,"b",(function(){return c})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return e}));var e={uPopup:function(){return o.e("node-modules/uview-ui/components/u-popup/u-popup").then(o.bind(null,"1c1d"))}},c=function(){var n=this,t=n.$createElement,o=(n._self._c,n.goods?n._f("totalPrice")(n.goods):null),e=n.goods?n._f("totalNum")(n.goods):null,c=n.goods?n._f("totalPrice")(n.goods):null;n._isMounted||(n.e0=function(t){n.isReject=!0},n.e1=function(t){n.isReject=!1,n.remark=""}),n.$mp.data=Object.assign({},{$root:{f0:o,f1:e,f2:c}})},a=[]},ff8b:function(n,t,o){}},[["a2e6","common/runtime","common/vendor"]]]);