chunk-1c70047f.101f305b.js.map 25 KB

1
  1. {"version":3,"sources":["webpack:///./src/views/orderAdmin/OrderCancellation.vue?c14c","webpack:///./src/components/WriteOff.vue?5868","webpack:///src/components/WriteOff.vue","webpack:///./src/components/WriteOff.vue?756a","webpack:///./src/components/WriteOff.vue","webpack:///src/views/orderAdmin/OrderCancellation.vue","webpack:///./src/views/orderAdmin/OrderCancellation.vue?f959","webpack:///./src/views/orderAdmin/OrderCancellation.vue","webpack:///./src/components/WriteOff.vue?4b38","webpack:///./src/assets/images/scan.gif","webpack:///./src/views/orderAdmin/OrderCancellation.vue?3f5c","webpack:///./src/api/order.js"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","directives","name","rawName","value","expression","attrs","type","placeholder","domProps","on","input","$event","target","composing","verify_code","click","storeCancellation","_v","src","__webpack_require__","openQRCode","_e","iShidden","orderInfo","cancel","confirm","staticRenderFns","WriteOffvue_type_template_id_a85b11b2_scoped_true_render","image","_s","order_id","touchmove","preventDefault","WriteOffvue_type_template_id_a85b11b2_scoped_true_staticRenderFns","WriteOffvue_type_script_lang_js_","props","Boolean","default","Object","data","mounted","methods","$emit","components_WriteOffvue_type_script_lang_js_","component","componentNormalizer","WriteOff","NAME","OrderCancellationvue_type_script_lang_js_","components","iswechat","utils","res","_this","order","then","$dialog","success","msg","catch","error","_this2","ref","test","loading","open","close","that","wechat","needResult","scanType","resultStr","console","log","is_ready","wx","scanQRCode","fail","errMsg","orderAdmin_OrderCancellationvue_type_script_lang_js_","OrderCancellation_component","__webpack_exports__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WriteOff_vue_vue_type_style_index_0_id_a85b11b2_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WriteOff_vue_vue_type_style_index_0_id_a85b11b2_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","n","module","exports","p","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderCancellation_vue_vue_type_style_index_0_id_7ecbceb5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__","_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OrderCancellation_vue_vue_type_style_index_0_id_7ecbceb5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default","d","postOrderConfirm","postOrderComputed","getOrderCoupon","createOrder","getOrderData","getOrderList","cancelOrder","orderDetail","getRefundReason","postOrderRefund","takeOrder","delOrder","express","payOrder","orderVerific","_utils_request__WEBPACK_IMPORTED_MODULE_0__","cartId","request","post","key","price","get","parseFloat","id","uni","paytype","from","is_confirm"],"mappings":"8IAAA,IAAAA,EAAA,WAA0B,IAAAC,EAAAC,KAAaC,EAAAF,EAAAG,eAA0BC,EAAAJ,EAAAK,MAAAD,IAAAF,EAAwB,OAAAE,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,aAAc,CAAEM,QAO/B,SAASZ,EAAQY,GACtB,OAAOP,OAAQI,IAAI,iBAAmBG,GAOjC,SAASX,EAASW,EAAKC,EAASC,GACrC,OAAOT,OAAQC,KAAK,YAAa,CAAEM,MAAKC,UAASC,SAM5C,SAASZ,EAAa3F,EAAawG,GACxC,OAAOV,OAAQC,KAAK,sBAAuB,CAAE/F,cAAawG","file":"h5/js/chunk-1c70047f.101f305b.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"OrderCancellation\"},[_c('div',{staticClass:\"header\"}),_c('div',{staticClass:\"whiteBg\"},[_c('div',{staticClass:\"input\"},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.verify_code),expression:\"verify_code\"}],attrs:{\"type\":\"number\",\"placeholder\":\"0\"},domProps:{\"value\":(_vm.verify_code)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.verify_code=$event.target.value}}})]),_c('div',{staticClass:\"bnt\",on:{\"click\":_vm.storeCancellation}},[_vm._v(\"立即核销\")])]),(_vm.iswechat)?_c('div',{staticClass:\"scan\"},[_c('img',{attrs:{\"src\":require(\"@assets/images/scan.gif\")},on:{\"click\":_vm.openQRCode}})]):_vm._e(),_c('WriteOff',{attrs:{\"iShidden\":_vm.iShidden,\"orderInfo\":_vm.orderInfo},on:{\"cancel\":_vm.cancel,\"confirm\":_vm.confirm}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.iShidden === false),expression:\"iShidden === false\"}]},[_c('div',{staticClass:\"WriteOff\"},[_c('div',{staticClass:\"pictrue\"},[_c('img',{attrs:{\"src\":_vm.orderInfo.image}})]),_c('div',{staticClass:\"num acea-row row-center-wrapper\"},[_vm._v(\"\\n \"+_vm._s(_vm.orderInfo.order_id)+\"\\n \")]),_c('div',{staticClass:\"tip\"},[_vm._v(\"确定要核销此订单吗?\")]),_c('div',{staticClass:\"sure\",on:{\"click\":_vm.confirm}},[_vm._v(\"确定核销\")]),_c('div',{staticClass:\"sure cancel\",on:{\"click\":_vm.cancel}},[_vm._v(\"取消\")])]),_c('div',{staticClass:\"mask\",on:{\"touchmove\":function($event){$event.preventDefault();}}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div v-show=\"iShidden === false\">\r\n <div class=\"WriteOff\">\r\n <div class=\"pictrue\"><img :src=\"orderInfo.image\" /></div>\r\n <div class=\"num acea-row row-center-wrapper\">\r\n {{ orderInfo.order_id }}\r\n </div>\r\n <div class=\"tip\">确定要核销此订单吗?</div>\r\n <div class=\"sure\" @click=\"confirm\">确定核销</div>\r\n <div class=\"sure cancel\" @click=\"cancel\">取消</div>\r\n </div>\r\n <div class=\"mask\" @touchmove.prevent></div>\r\n </div>\r\n</template>\r\n<style scoped>\r\n.WriteOff {\r\n width: 5.6rem;\r\n height: 8rem;\r\n background-color: #fff;\r\n border-radius: 0.2rem;\r\n position: fixed;\r\n top: 50%;\r\n left: 50%;\r\n margin-top: -4rem;\r\n margin-left: -2.8rem;\r\n z-index: 99;\r\n padding-top: 0.55rem;\r\n}\r\n.WriteOff .pictrue {\r\n width: 3.4rem;\r\n height: 3.4rem;\r\n margin: 0 auto;\r\n}\r\n.WriteOff .pictrue img {\r\n width: 100%;\r\n height: 100%;\r\n display: block;\r\n border-radius: 0.1rem;\r\n}\r\n.WriteOff .num {\r\n font-size: 0.3rem;\r\n color: #666;\r\n margin: 0.28rem 0 0.3rem 0;\r\n}\r\n.WriteOff .num .see {\r\n font-size: 0.16rem;\r\n color: #fff;\r\n border-radius: 0.04rem;\r\n background-color: #c68937;\r\n padding-left: 0.05rem;\r\n margin-left: 0.12rem;\r\n}\r\n.WriteOff .num .see .iconfont {\r\n font-size: 0.15rem;\r\n}\r\n.WriteOff .tip {\r\n font-size: 0.36rem;\r\n color: #282828;\r\n text-align: center;\r\n border-top: 1px dashed #ccc;\r\n padding-top: 0.4rem;\r\n position: relative;\r\n}\r\n.WriteOff .tip:after {\r\n content: \"\";\r\n position: absolute;\r\n width: 0.25rem;\r\n height: 0.25rem;\r\n border-radius: 50%;\r\n background-color: #7f7f7f;\r\n right: -0.125rem;\r\n top: -0.125rem;\r\n}\r\n.WriteOff .tip:before {\r\n content: \"\";\r\n position: absolute;\r\n width: 0.25rem;\r\n height: 0.25rem;\r\n border-radius: 50%;\r\n background-color: #7f7f7f;\r\n left: -0.125rem;\r\n top: -0.125rem;\r\n}\r\n.WriteOff .sure {\r\n font-size: 0.32rem;\r\n color: #fff;\r\n text-align: center;\r\n line-height: 0.82rem;\r\n height: 0.82rem;\r\n width: 4.6rem;\r\n border-radius: 0.41rem;\r\n margin: 0.4rem auto 0 auto;\r\n background-image: linear-gradient(to right, #f67a38 0%, #f11b09 100%);\r\n background-image: -webkit-linear-gradient(to right, #f67a38 0%, #f11b09 100%);\r\n background-image: -moz-linear-gradient(to right, #f67a38 0%, #f11b09 100%);\r\n}\r\n.WriteOff .sure.cancel {\r\n background-image: none;\r\n color: #999;\r\n margin-top: 0.1rem;\r\n}\r\n</style>\r\n<script>\r\nexport default {\r\n name: \"WriteOff\",\r\n props: {\r\n iShidden: {\r\n type: Boolean,\r\n default: true\r\n },\r\n orderInfo: {\r\n type: Object\r\n }\r\n },\r\n data: function() {\r\n return {};\r\n },\r\n mounted: function() {},\r\n methods: {\r\n cancel: function() {\r\n this.$emit(\"cancel\", true);\r\n },\r\n confirm: function() {\r\n this.$emit(\"confirm\", true);\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WriteOff.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WriteOff.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WriteOff.vue?vue&type=template&id=a85b11b2&scoped=true&\"\nimport script from \"./WriteOff.vue?vue&type=script&lang=js&\"\nexport * from \"./WriteOff.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WriteOff.vue?vue&type=style&index=0&id=a85b11b2&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a85b11b2\",\n null\n \n)\n\nexport default component.exports","<template>\r\n <div class=\"OrderCancellation\">\r\n <div class=\"header\"></div>\r\n <div class=\"whiteBg\">\r\n <div class=\"input\">\r\n <input type=\"number\" placeholder=\"0\" v-model=\"verify_code\" />\r\n </div>\r\n <div class=\"bnt\" @click=\"storeCancellation\">立即核销</div>\r\n </div>\r\n <div class=\"scan\" v-if=\"iswechat\">\r\n <img src=\"@assets/images/scan.gif\" @click=\"openQRCode\" />\r\n </div>\r\n <WriteOff\r\n :iShidden=\"iShidden\"\r\n :orderInfo=\"orderInfo\"\r\n @cancel=\"cancel\"\r\n @confirm=\"confirm\"\r\n ></WriteOff>\r\n </div>\r\n</template>\r\n<style scoped>\r\n.OrderCancellation .header {\r\n background: url(\"../../assets/images/writeOffBg.jpg\") no-repeat;\r\n width: 100%;\r\n height: 3rem;\r\n background-size: 100% 100%;\r\n}\r\n.OrderCancellation .whiteBg {\r\n width: 6.9rem;\r\n background-color: #fff;\r\n margin: -0.93rem auto 0 auto;\r\n padding-top: 0.8rem;\r\n border-radius: 0.06rem 0.06rem 0 0;\r\n}\r\n.OrderCancellation .whiteBg .input {\r\n width: 5.8rem;\r\n margin: 0 auto;\r\n border-bottom: 0.01rem solid #eee;\r\n}\r\n.OrderCancellation .whiteBg .input input {\r\n padding-bottom: 0.25rem;\r\n font-size: 0.6rem;\r\n color: #282828;\r\n width: 100%;\r\n text-align: center;\r\n}\r\n.OrderCancellation .whiteBg .bnt {\r\n font-size: 0.32rem;\r\n color: #fff;\r\n width: 5.8rem;\r\n height: 0.86rem;\r\n border-radius: 0.43rem;\r\n background-image: linear-gradient(to right, #f67a38 0%, #f11b09 100%);\r\n background-image: -webkit-linear-gradient(to right, #f67a38 0%, #f11b09 100%);\r\n background-image: -moz-linear-gradient(to right, #f67a38 0%, #f11b09 100%);\r\n text-align: center;\r\n line-height: 0.86rem;\r\n margin: 0.55rem auto 0 auto;\r\n}\r\n.OrderCancellation .scan {\r\n width: 3rem;\r\n height: 3rem;\r\n margin: 1.1rem auto 0 auto;\r\n}\r\n.OrderCancellation .scan img {\r\n width: 100%;\r\n height: 100%;\r\n display: block;\r\n}\r\n</style>\r\n<script>\r\nimport WriteOff from \"@components/WriteOff\";\r\nimport { isWeixin } from \"@utils\";\r\nimport { wechatEvevt } from \"@libs/wechat\";\r\nimport { orderVerific } from \"@api/order\";\r\nconst NAME = \"OrderCancellation\";\r\n\r\nexport default {\r\n name: NAME,\r\n components: {\r\n WriteOff\r\n },\r\n props: {},\r\n data: function() {\r\n return {\r\n iShidden: true,\r\n iswechat: isWeixin(),\r\n orderInfo: {},\r\n verify_code: \"\"\r\n };\r\n },\r\n mounted: function() {},\r\n methods: {\r\n cancel: function(res) {\r\n this.iShidden = res;\r\n },\r\n confirm: function() {\r\n orderVerific(this.verify_code, 1)\r\n .then(res => {\r\n this.iShidden = true;\r\n this.verify_code = \"\";\r\n this.$dialog.success(res.msg);\r\n })\r\n .catch(res => {\r\n this.$dialog.error(res.msg);\r\n });\r\n },\r\n storeCancellation: function() {\r\n let ref = /[0-9]{12}/;\r\n if (!this.verify_code) return this.$dialog.error(\"请输入核销码\");\r\n if (!ref.test(this.verify_code))\r\n return this.$dialog.error(\"请输入正确的核销码\");\r\n this.$dialog.loading.open(\"查询中\");\r\n orderVerific(this.verify_code, 0)\r\n .then(res => {\r\n this.$dialog.loading.close();\r\n this.orderInfo = res.data;\r\n this.iShidden = false;\r\n })\r\n .catch(() => {\r\n this.$dialog.loading.close();\r\n });\r\n },\r\n openQRCode: function() {\r\n let that = this;\r\n wechatEvevt(\"scanQRCode\", {\r\n needResult: 1,\r\n scanType: [\"qrCode\", \"barCode\"]\r\n })\r\n .then(res => {\r\n if (res.resultStr) {\r\n that.verify_code = res.resultStr;\r\n that.storeCancellation();\r\n } else that.$dialog.error(\"没有扫描到什么!\");\r\n })\r\n .catch(res => {\r\n console.log(res);\r\n if (res.is_ready) {\r\n res.wx.scanQRCode({\r\n needResult: 1,\r\n scanType: [\"qrCode\", \"barCode\"],\r\n success: function(res) {\r\n that.verify_code = res.resultStr;\r\n that.storeCancellation();\r\n },\r\n fail: function(res) {\r\n console.log(res);\r\n if (res.errMsg == \"scanQRCode:permission denied\") {\r\n that.$dialog.error(\"没有权限\");\r\n }\r\n }\r\n });\r\n }\r\n });\r\n }\r\n }\r\n};\r\n</script>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderCancellation.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderCancellation.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./OrderCancellation.vue?vue&type=template&id=7ecbceb5&scoped=true&\"\nimport script from \"./OrderCancellation.vue?vue&type=script&lang=js&\"\nexport * from \"./OrderCancellation.vue?vue&type=script&lang=js&\"\nimport style0 from \"./OrderCancellation.vue?vue&type=style&index=0&id=7ecbceb5&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ecbceb5\",\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WriteOff.vue?vue&type=style&index=0&id=a85b11b2&scoped=true&lang=css&\"; export default mod; export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./WriteOff.vue?vue&type=style&index=0&id=a85b11b2&scoped=true&lang=css&\"","module.exports = __webpack_public_path__ + \"h5/img/scan.2ca2147e.gif\";","import mod from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderCancellation.vue?vue&type=style&index=0&id=7ecbceb5&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/index.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./OrderCancellation.vue?vue&type=style&index=0&id=7ecbceb5&scoped=true&lang=css&\"","/*\r\n * 订单确认\r\n * */\r\nimport request from \"@utils/request\";\r\n\r\n/**\r\n * 通过购物车 id 获取订单信息\r\n * @param cartId\r\n * @returns {*}\r\n */\r\nexport function postOrderConfirm(cartId) {\r\n return request.post(\"/order/confirm\", { cartId });\r\n}\r\n\r\n/**\r\n * 计算订单金额\r\n * @param key\r\n * @param data\r\n * @returns {*}\r\n */\r\nexport function postOrderComputed(key, data) {\r\n return request.post(\"/order/computed/\" + key, data);\r\n}\r\n\r\n/**\r\n * 获取指定金额可用优惠券\r\n * @param price\r\n * @returns {*}\r\n */\r\nexport function getOrderCoupon(price) {\r\n return request.get(\"/coupons/order/\" + (parseFloat(price) || 0));\r\n}\r\n\r\n/**\r\n * 生成订单\r\n * @param key\r\n * @param data\r\n * @returns {*}\r\n */\r\nexport function createOrder(key, data) {\r\n return request.post(\"/order/create/\" + key, data || {});\r\n}\r\n\r\n/**\r\n * 订单统计数据\r\n * @returns {*}\r\n */\r\nexport function getOrderData() {\r\n return request.get(\"/order/data\");\r\n}\r\n\r\n/**\r\n * 订单列表\r\n * @returns {*}\r\n */\r\nexport function getOrderList(data) {\r\n return request.get(\"/order/list\", data);\r\n}\r\n\r\n/**\r\n * 取消订单\r\n * @returns {*}\r\n */\r\nexport function cancelOrder(id) {\r\n return request.post(\"/order/cancel\", { id });\r\n}\r\n\r\n/**\r\n * 订单详情\r\n * @returns {*}\r\n */\r\nexport function orderDetail(id) {\r\n return request.get(\"/order/detail/\" + id);\r\n}\r\n\r\n/**\r\n * 退款理由\r\n * @returns {*}\r\n */\r\nexport function getRefundReason() {\r\n return request.get(\"/order/refund/reason\");\r\n}\r\n\r\n/**\r\n * 提交退款\r\n * @returns {*}\r\n */\r\nexport function postOrderRefund(data) {\r\n return request.post(\"/order/refund/verify\", data);\r\n}\r\n\r\n/**\r\n * 确认收货\r\n * @returns {*}\r\n */\r\nexport function takeOrder(uni) {\r\n return request.post(\"/order/take\", { uni });\r\n}\r\n\r\n/**\r\n * 删除订单\r\n * @returns {*}\r\n */\r\nexport function delOrder(uni) {\r\n return request.post(\"/order/del\", { uni });\r\n}\r\n\r\n/**\r\n * 订单查询物流信息\r\n * @returns {*}\r\n */\r\nexport function express(uni) {\r\n return request.get(\"order/express/\" + uni);\r\n}\r\n\r\n/**\r\n * 订单查询物流信息\r\n * @returns {*}\r\n */\r\nexport function payOrder(uni, paytype, from) {\r\n return request.post(\"order/pay\", { uni, paytype, from });\r\n}\r\n/**\r\n * 订单核销\r\n * @returns {*}\r\n */\r\nexport function orderVerific(verify_code, is_confirm) {\r\n return request.post(\"order/order_verific\", { verify_code, is_confirm });\r\n}\r\n"],"sourceRoot":""}