chunk-6c9560fa.fe26610e.js.map 30 KB

1
  1. {"version":3,"sources":["webpack:///./src/assets/circle.png","webpack:///./src/views/apply-for-refund.vue","webpack:///src/views/apply-for-refund.vue","webpack:///./src/views/apply-for-refund.vue?8350","webpack:///./src/views/apply-for-refund.vue?4780","webpack:///./src/assets/upload-4.png","webpack:///./src/views/apply-for-refund.vue?b517","webpack:///./src/assets/circle-active.png"],"names":["module","exports","render","_vm","this","_c","_self","staticClass","_v","attrs","BASE_URL","goods","sku_image","_s","sku_name","_l","sku_spec_format","item2","index2","key","spec_name","spec_value_name","price","cost_price","num","goods_money","real_goods_money","staticStyle","_m","reasonList","item","index","on","$event","params","refund_reason","require","directives","name","rawName","value","refund_remark","expression","domProps","target","composing","$set","images","uploadImage","$router","back","submit","staticRenderFns","data","order","order_goods_id","refund_image","mounted","methods","MessageBox","type","title","message","showCancelButton","then","OrderrefundService","Message","setTimeout","e","uploadFile","init","localStorage","JSON","confirmButtonText","component"],"mappings":"mGAAAA,EAAOC,QAAU,kuD,2CCAjB,IAAIC,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,oBAAoB,CAACF,EAAG,IAAI,CAACE,YAAY,wBAAwB,CAACJ,EAAIK,GAAG,UAAUH,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,MAAM,CAACE,YAAY,YAAY,CAACF,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,MAAM,CAACE,YAAY,aAAaE,MAAM,CAAC,IAAMN,EAAIO,SAAWP,EAAIQ,MAAMC,aAAaP,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,IAAI,CAACE,YAAY,gBAAgB,CAACJ,EAAIK,GAAGL,EAAIU,GAAGV,EAAIQ,MAAMG,aAAaT,EAAG,IAAI,CAACE,YAAY,qBAAqBF,EAAG,MAAM,CAACE,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sDACA,IACA,MAGAC,cAFA7D,EADA,EACAA,MACA2C,EAFA,EAEAA,MAEA,aACA,aACA,4CACA,SACAK,yBACAC,eACAC,WACAC,kBACAW,yBACAT,MAAA,WACA,wBC7K0V,I,wBCQtVU,EAAY,eACd,EACAxE,EACAkD,GACA,EACA,KACA,WACA,MAIa,aAAAsB,E,gCCnBf1E,EAAOC,QAAU,IAA0B,6B,6DCA3C,W,qBCAAD,EAAOC,QAAU","file":"js/chunk-6c9560fa.fe26610e.js","sourcesContent":["module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAABNBJREFUWEe1l1tsVFUUhv//nCm9zBklUS6tGIwSBBHRiC9ITwtVtCRyiUBMMBEi6gNGEiNRdK49g6LGRJEXTDBqDASboDWRCLG2nQEeEBKRBC9IFCOXICpkZtrSzjm/OVNaoS20kM48TCaZtf/1rbXX3mtt4ho+Hcm5E/Nd7gJ4mkaiCkKloE6SJ0GdMIC95TR3MdGaHa4shzLUZ0vN9sOnV0pcLejeoewJXhCxyzS0viKR3j+0/VUsctGaek96B9LUHjOeJ7STRAriSZjGScNTeR6qJHC7gPkUZgkyL8o2BspK1paHvz1+JTeDZkASs7HaBDwv0uOXRwGErQlTPudzH3RfLSrFa2/Out4aQi9KqAB5NgBzSbnT0jbYugEAitUGsp67DcISknkA64KG8S4Trf7vYX9y66sr1cnNkh4j0A1yleWkPukvMAAgF7Y3edBqAP/SCCy1Glqah+21n6FiMSPntayX9IofjMh5oYa2lkvNLgPIRexnPWkzyU6CdtBp++56nV+6LhO1k/D0Goh/AqM4szyS+q33/z6ATHzeWOQ7fgUQIrncclJbR8K5r1Goqai9A8IikF+GnNTCAQC5iP2+Jz0P4ouQk148Us57dfR6/Zhse/aYH6BpmtUVidY9hfr2v7Kx2vFw3T8AGiUB4+7SeOtPIw3g6+UidtiTHALfWMn0w30AvXtfrOj7svDmglAuc+4vAIFgRck4vtr8d08GIvZOSfU0uMJqSH1cjOh7Nft8kU/5x7IHIGxnBQWtgDmG8dazxQTIRO3V8LSJ5IeWk3qa2vDQjdnshXP+NRtKpkYX03kh2Gj1I/LwNcldlpN6lBfC9tQu6AjIH0NO6q6iA8Tq7pHbdYjAD1YyPYO5yJz7PeUPkDhoOemZxQbodObe0X2h279vjoWS6UlsT869xe3s/pPgCSuZmlBsgPZY7WzXddMg9oac9Gz6/T53+HQXQC84fVwZlzW6xYTIROxlkLYDaAwl08sKpyATqf4ZwmQzwAcr4ql9xQTIRuz3JL0Aw3BCDW3R3nvgbUkvkXjLctIvFxUgXP27gImGaT4QTLQeKAD07guB40Fz/GQmGruKAdERt+18Xm1+vQWdtltJqgBwsW9/L2k6aKwJOW0biwGQCdt7Ac0ygGgwmXb6ekGhUYTt+R70lT9CwSybForvPjOSEJlI7ROQu43k6eANZZO4dnfuMoCLPWG3JL9L7bHM8XUjtRXZiD1dwD5IlmFwVbAhtWXAPFA4DfF5Y5nv2O8XCcmtwQlTVgw1hA6VpY5Y3e2u190s6TbS+Mhy2lZeumbATJiNzJkhuHt8WoApK2A8fr0NKhOtmQNPjYBuArjPMsfN6Z/VQcfyXMS+T0KTIL9ST5OIV9DYMtzJOLu+bpw6umIkn5EUANlkGcaTg72YrvgyKoh0dm2HUFNIGXnUAD8VjCbLaTnUP/XaWF/afiZX5xELKSz323thEgY2WP6FQ2qw7RryadYerVnsynsDwp3/C/C8/xYkcEpiOYFKAFWCSvtsyB0lRsm6skTzL1erkyEBeu6J2kBObp3ERYQWSKjqL0pAAA+SaAoYJTtKE81HhirQAcdwOAsuAo3uglnVLa/SEDo5yj1ZljdOMdHaOVyNQY/htS4eCfv/ADPKJD8Jk9IWAAAAAElFTkSuQmCC\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"wrap\"},[_c('div',{staticClass:\"middle-container\"},[_c('p',{staticClass:\"middle-container-top\"},[_vm._v(\"申请退款\")]),_c('div',{staticClass:\"item-module\"},[_c('div',{staticClass:\"item-big\"},[_c('div',{staticClass:\"msg-module\"},[_c('img',{staticClass:\"produt-img\",attrs:{\"src\":_vm.BASE_URL + _vm.goods.sku_image}}),_c('div',{staticClass:\"msg-module-sidebar\"},[_c('p',{staticClass:\"produt-title\"},[_vm._v(_vm._s(_vm.goods.sku_name))]),_c('p',{staticClass:\"produt-tag\"})])])]),_c('div',{staticClass:\"produt-msg-box\"},_vm._l((_vm.goods.sku_spec_format),function(item2,index2){return _c('p',{key:index2,staticClass:\"produt-msg\"},[_vm._v(\"\\n \"+_vm._s(item2.spec_name)+\":\"+_vm._s(item2.spec_value_name)+\"\\n \")])}),0),_c('div',{staticClass:\"price-box\"},[_c('span',{staticClass:\"produt-price\"},[_vm._v(\"¥ \"+_vm._s(_vm.goods.price))]),_c('span',{staticClass:\"produt-price-del\"},[_vm._v(\"¥ \"+_vm._s(_vm.goods.cost_price))])]),_c('div',{staticClass:\"calc-box\"},[_c('span',{staticClass:\"calc-num\"},[_vm._v(_vm._s(_vm.goods.num))])]),_c('div',{staticClass:\"total-price-box\"},[_c('span',{staticClass:\"font-1\"},[_vm._v(\"¥ \"+_vm._s(_vm.goods.goods_money))]),_c('span',{staticClass:\"font-2\"},[_vm._v(\"(运费:0.00)\")])])]),_c('div',{staticClass:\"price-module\"},[_c('div',{staticClass:\"price-module-between\"},[_c('span',{staticClass:\"font-7\"},[_vm._v(\"退款金额\")]),_c('span',{staticClass:\"font-8\"},[_vm._v(\"¥\"+_vm._s(_vm.goods.real_goods_money))])])]),_c('div',{staticClass:\"order-msg-module\",staticStyle:{\"padding-bottom\":\"4px\"}},[_vm._m(0),_c('ul',{staticClass:\"reason-for-refund-list\"},_vm._l((_vm.reasonList),function(item,index){return _c('li',{key:index,on:{\"click\":function($event){_vm.params.refund_reason = item}}},[(item === _vm.params.refund_reason)?_c('img',{attrs:{\"src\":require(\"../assets/circle-active.png\")}}):_c('img',{attrs:{\"src\":require(\"../assets/circle.png\")}}),_vm._v(\"\\n \"+_vm._s(item)+\"\\n\\t\\t\\t\\t\\t\")])}),0)]),_c('div',{staticClass:\"order-msg-module\"},[_vm._m(1),_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.params.refund_remark),expression:\"params.refund_remark\"}],staticClass:\"refund-instructions\",attrs:{\"rows\":\"\",\"placeholder\":\"请输入退款说明\",\"cols\":\"\"},domProps:{\"value\":(_vm.params.refund_remark)},on:{\"input\":function($event){if($event.target.composing)return;_vm.$set(_vm.params, \"refund_remark\", $event.target.value)}}})]),_c('div',{staticClass:\"order-msg-module\"},[_vm._m(2),_c('div',{staticClass:\"upload-wrap\"},[_c('div',{staticClass:\"upload-module\"},[_vm._l((_vm.images),function(item,index){return _c('div',{key:index,staticClass:\"upload-box\"},[_c('img',{staticClass:\"upload-img\",attrs:{\"src\":_vm.BASE_URL + item}})])}),_c('div',{staticClass:\"upload-box\"},[_c('img',{staticClass:\"upload-img\",attrs:{\"src\":require(\"../assets/upload-4.png\")}}),_c('input',{attrs:{\"type\":\"file\"},on:{\"change\":function($event){return _vm.uploadImage($event, 'refund_image')}}})])],2)])]),_c('div',{staticClass:\"btn-box-end\"},[_c('button',{attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.$router.back()}}},[_vm._v(\"返回\")]),_c('button',{attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.submit()}}},[_vm._v(\"申请退款\")])])])])\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"order-msg-label\"},[_vm._v(\"退款原因 \"),_c('span',[_vm._v(\"(请选择)\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"order-msg-label\"},[_vm._v(\"退款说明\"),_c('span',[_vm._v(\"(选填)\")])])\n},function (){var _vm=this,_c=_vm._self._c;return _c('p',{staticClass:\"order-msg-label\"},[_vm._v(\"上传图片\"),_c('span',[_vm._v(\"(选填)\")])])\n}]\n\nexport { render, staticRenderFns }","<!-- 申请退款 -->\r\n<template>\r\n\t<div class=\"wrap\">\r\n\r\n\t\t<div class=\"middle-container\">\r\n\t\t\t<p class=\"middle-container-top\">申请退款</p>\r\n\r\n\t\t\t<div class=\"item-module\">\r\n\t\t\t\t<div class=\"item-big\">\r\n\t\t\t\t\t<div class=\"msg-module\">\r\n\t\t\t\t\t\t<img :src=\"BASE_URL + goods.sku_image\" class=\"produt-img\">\r\n\t\t\t\t\t\t<div class=\"msg-module-sidebar\">\r\n\t\t\t\t\t\t\t<p class=\"produt-title\">{{ goods.sku_name }}</p>\r\n <p class=\"produt-tag\">\r\n <!-- 支持7天无理由退换货-->\r\n </p>\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"produt-msg-box\">\r\n\t\t\t\t\t<p class=\"produt-msg\" v-for=\"(item2, index2) in goods.sku_spec_format\" :key=\"index2\">\r\n {{ item2.spec_name }}:{{ item2.spec_value_name }}\r\n </p>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"price-box\">\r\n\t\t\t\t\t<span class=\"produt-price\">¥ {{ goods.price }}</span>\r\n\t\t\t\t\t<span class=\"produt-price-del\">¥ {{ goods.cost_price }}</span>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"calc-box\">\r\n\t\t\t\t\t<span class=\"calc-num\">{{ goods.num }}</span>\r\n\t\t\t\t</div>\r\n\t\t\t\t<div class=\"total-price-box\">\r\n\t\t\t\t\t<span class=\"font-1\">¥ {{ goods.goods_money }}</span>\r\n\t\t\t\t\t<span class=\"font-2\">(运费:0.00)</span>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\r\n\t\t\t<div class=\"price-module\">\r\n\t\t\t\t<div class=\"price-module-between\">\r\n\t\t\t\t\t<span class=\"font-7\">退款金额</span>\r\n\t\t\t\t\t<span class=\"font-8\">¥{{ goods.real_goods_money }}</span>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"order-msg-module\" style=\"padding-bottom: 4px;\">\r\n\t\t\t\t<p class=\"order-msg-label\">退款原因 <span>(请选择)</span> </p>\r\n\t\t\t\t<ul class=\"reason-for-refund-list\">\r\n\t\t\t\t\t<li v-for=\"(item, index) in reasonList\" :key=\"index\" @click=\"params.refund_reason = item\">\r\n\t\t\t\t\t\t<img v-if=\"item === params.refund_reason\" src=\"../assets/circle-active.png\">\r\n <img v-else src=\"../assets/circle.png\">\r\n {{ item }}\r\n\t\t\t\t\t</li>\r\n\t\t\t\t</ul>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"order-msg-module\">\r\n\t\t\t\t<p class=\"order-msg-label\">退款说明<span>(选填)</span> </p>\r\n\t\t\t\t<textarea class=\"refund-instructions\" v-model=\"params.refund_remark\" rows=\"\" placeholder=\"请输入退款说明\" cols=\"\"></textarea>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"order-msg-module\">\r\n\t\t\t\t<p class=\"order-msg-label\">上传图片<span>(选填)</span> </p>\r\n\t\t\t\t<div class=\"upload-wrap\">\r\n\t\t\t\t\t<div class=\"upload-module\">\r\n\t\t\t\t\t\t<div class=\"upload-box\" v-for=\"(item, index) in images\" :key=\"index\">\r\n\t\t\t\t\t\t\t<img :src=\"BASE_URL + item\" class=\"upload-img\">\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t<div class=\"upload-box\">\r\n\t\t\t\t\t\t\t<img src=\"../assets/upload-4.png\" class=\"upload-img\">\r\n <input type=\"file\" @change=\"uploadImage($event, 'refund_image')\" />\r\n\t\t\t\t\t\t</div>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\r\n\t\t\t<div class=\"btn-box-end\">\r\n\t\t\t\t<button type=\"button\" @click=\"$router.back()\">返回</button>\r\n\t\t\t\t<button type=\"button\" @click=\"submit()\">申请退款</button>\r\n\t\t\t</div>\r\n\r\n\t\t</div>\r\n\r\n\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\nimport {Message, MessageBox} from \"element-ui\";\r\n import {BASE_URL} from \"@/common/config\";\r\nimport {OrderrefundService, uploadFile} from \"@/common/service\";\r\n import {validatorFun} from \"@/common/util\";\r\n\r\n export default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n BASE_URL,\r\n goods: {},\r\n order: {},\r\n\r\n reasonList: [\r\n '产品质量差',\r\n '卖家发错货',\r\n '拍多/拍错',\r\n '尺寸与描述不符',\r\n '未按约定时间发货',\r\n '产品变质',\r\n ],\r\n\r\n images: [],\r\n params: {\r\n order_goods_id: '', // 订单商品id\r\n refund_reason: '', // 退款原因\r\n refund_remark: '', // 退款说明\r\n refund_image: '', // 图片\r\n },\r\n\t\t\t};\r\n\t\t},\r\n\t\tmounted() {\r\n this.init();\r\n },\r\n\t\tmethods: {\r\n submit() {\r\n this.params.refund_image = this.images.join(',');\r\n const validatorNullList = [\r\n ['refund_reason', ['notNull', '请选择退款原因']],\r\n ['refund_remark', ['notNull', '请输入退款说明']],\r\n ['refund_image', ['notNull', '请上传图片']],\r\n ];\r\n const validatorNullResult = validatorFun(this.params, validatorNullList);\r\n if (validatorNullResult.length > 0) {\r\n return Message.warning(validatorNullResult[0].errMsg);\r\n }\r\n // return console.log(JSON.stringify(this.params, null, 2));\r\n MessageBox({\r\n type: 'warning',\r\n title: '提示',\r\n message: '确定申请退款?',\r\n showCancelButton: true,\r\n }).then(() => {\r\n OrderrefundService.refund(this.params).then(({message}) => {\r\n Message.success(message);\r\n setTimeout(() => this.$router.back(), 1000);\r\n });\r\n });\r\n\r\n },\r\n uploadImage(e, key) {\r\n const file = e.target.files[0];\r\n if (!!file) {\r\n uploadFile(file).then(({data}) => {\r\n this.images.push(data.pic_path);\r\n });\r\n }\r\n },\r\n init() {\r\n const data = localStorage.getItem('page_apply-for-refund_data');\r\n localStorage.removeItem('page_apply-for-refund_data');\r\n try {\r\n const {\r\n goods,\r\n order,\r\n } = JSON.parse(data);\r\n this.goods = goods;\r\n this.order = order;\r\n this.params.order_goods_id = goods.order_goods_id;\r\n } catch (e) {\r\n MessageBox({\r\n type: 'warning',\r\n title: '提示',\r\n message: '获取数据错误!',\r\n confirmButtonText: '返回'\r\n }).then(() => {\r\n this.$router.back();\r\n });\r\n }\r\n },\r\n },\r\n\t};\r\n</script>\r\n\r\n<style scoped>\r\n\t.wrap {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.middle-container {\r\n\t\twidth: 100%;\r\n\t\tmin-height: calc(100vh - 314px);\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.footer {\r\n\t\twidth: 100%;\r\n\t\theight: 271px;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.footer-middle {\r\n\t\twidth: calc(1200px - 292px);\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t}\r\n\r\n\t.footer-tag-list {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.footer-tag-list>li {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 16px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.footer-tag-icon {\r\n\t\twidth: 56px;\r\n\t\tmargin-bottom: 14px;\r\n\t}\r\n\r\n\t.footer-bottom {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tpadding: 0 8px;\r\n\t\tbox-sizing: border-box;\r\n\t\tmargin-top: 37px;\r\n\t}\r\n\r\n\t.footer-bottom-left {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tmargin-right: 135px;\r\n\t}\r\n\r\n\t.footer-bottom-left-list {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-wrap: wrap;\r\n\t}\r\n\r\n\t.footer-bottom-left-list>li {\r\n\t\twidth: 33.3333%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tcolor: #666666;\r\n\t\tfont-size: 16px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-top: 15px;\r\n\t}\r\n\r\n\t.footer-bottom-left-list>li:first-child,\r\n\t.footer-bottom-left-list>li:nth-child(2),\r\n\t.footer-bottom-left-list>li:nth-child(3) {\r\n\t\tmargin-top: 0;\r\n\t}\r\n\r\n\t.footer-bottom-right {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.footer-bottom-right-img {\r\n\t\twidth: 48px;\r\n\t\tmargin-right: 7px;\r\n\t}\r\n\r\n\t.footer-bottom-right-row {\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: flex-end;\r\n\t}\r\n\r\n\t.footer-font1 {\r\n\t\tcolor: #C69236;\r\n\t\tfont-size: 28px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.footer-font2 {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 16px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.middle-container {\r\n\t\twidth: 1200px;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.middle-container-top {\r\n\t\twidth: 100%;\r\n\t\theight: 41px;\r\n\t\tline-height: 41px;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n /*background: linear-gradient(180deg, #F3DC99, #F0AE46);*/\r\n background: #FFEC8B;\r\n\t\tpadding: 0 30px;\r\n\t\tbox-sizing: border-box;\r\n\t\tfont-size: 18px;\r\n\t\t/*color: #FFFFFF;*/\r\n color: #CD3333;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-bottom: 10px;\r\n\t\tmargin-top: 26px;\r\n\t\tborder-radius: 12px 12px 0 0;\r\n\t}\r\n\r\n\t.item-module {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tborder-radius: 4px;\r\n\t\tpadding: 30px 42px;\r\n\t\tbox-sizing: border-box;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tmargin-bottom: 10px;\r\n\t}\r\n\r\n\t.item-big {\r\n\t\twidth: calc(100% - 738px);\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.circle-box {\r\n\t\twidth: 83px;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.circle-img {\r\n\t\twidth: 16px;\r\n\t}\r\n\r\n\t.msg-module {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.produt-img {\r\n\t\twidth: 120px;\r\n\t\theight: 120px;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tmargin-right: 15px;\r\n\t}\r\n\r\n\t.msg-module-sidebar {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t}\r\n\r\n\t.produt-title {\r\n\t\twidth: 145px;\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-bottom: 9px;\r\n\t}\r\n\r\n\t.produt-msg {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 16px;\r\n\t}\r\n\r\n\t.produt-tag {\r\n\t\tcolor: #FF6619;\r\n\t\tfont-size: 12px;\r\n\t\tmargin-top: 9px;\r\n\t}\r\n\r\n\t.produt-msg-box {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.price-box {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.produt-price {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.produt-price-del {\r\n\t\tcolor: #999999;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: bold;\r\n\t\ttext-decoration: line-through;\r\n\t\tmargin-top: 5px;\r\n\t}\r\n\r\n\t.calc-box {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.commodity-operation {\r\n\t\twidth: 123px;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.operation {\r\n\t\tcolor: #666666;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-bottom: 5px;\r\n\t}\r\n\r\n\t.operation:last-child {\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n\r\n\t.order-status {\r\n\t\twidth: 123px;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.status {\r\n\t\tcolor: #666666;\r\n\t\tfont-size: 12px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-bottom: 5px;\r\n\t}\r\n\r\n\t.status:last-child {\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n\r\n\t.status.orange {\r\n\t\tcolor: #FF6619;\r\n\t}\r\n\r\n\r\n\r\n\t.total-price-box {\r\n\t\tflex: 1;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.font-1 {\r\n\t\tcolor: #FF6619;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.font-2 {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 12px;\r\n\t\tmargin-top: 1px;\r\n\t}\r\n\r\n\t.calc-num {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.price-module {\r\n\t\twidth: 100%;\r\n\t\theight: 60px;\r\n\t\tline-height: 60px;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tborder-radius: 4px;\r\n\t\tmargin-bottom: 10px;\r\n\t\tpadding: 0 42px;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t.price-module-label {\r\n\t\twidth: 100%;\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-bottom: 15px;\r\n\t}\r\n\r\n\t.price-module-between {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t\tmargin-bottom: 10px;\r\n\t}\r\n\r\n\t.price-module-between:last-child {\r\n\t\tmargin-bottom: 0;\r\n\t}\r\n\r\n\t.font-6 {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t}\r\n\r\n\t.row-1 {\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tcolor: #AB6200;\r\n\t\tfont-size: 18px;\r\n\t}\r\n\r\n\t.row-1>img {\r\n\t\twidth: 24px;\r\n\t\tmargin-right: 11px;\r\n\t}\r\n\r\n\t.row-2 {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t}\r\n\r\n\t.row-2>span {\r\n\t\tcolor: #F37C3D;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.font-7 {\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.font-8 {\r\n\t\tcolor: #FF6619;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n\r\n\t.btn-box-end {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: flex-end;\r\n\t\talign-items: center;\r\n\t\tpadding: 17px 0 27px;\r\n\t}\r\n\r\n\t.btn-box-end>button {\r\n\t\twidth: 131px;\r\n\t\theight: 52px;\r\n\t\tline-height: 52px;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tborder-radius: 8px;\r\n\t\tbackground-color: #FF6619;\r\n\t\tcolor: #FFFFFF;\r\n\t\tfont-size: 20px;\r\n\t\tmargin-right: 59px;\r\n\t}\r\n\r\n\t.btn-box-end>button:last-child {\r\n\t\tmargin-right: 0;\r\n\t}\r\n\r\n\t.order-msg-module {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-direction: column;\r\n\t\tbackground-color: #FFFFFF;\r\n\t\tpadding: 13px 42px;\r\n\t\tbox-sizing: border-box;\r\n\t\tmargin-bottom: 10px;\r\n\t}\r\n\r\n\t.order-msg-label {\r\n\t\twidth: 100%;\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 18px;\r\n\t\tfont-weight: bold;\r\n\t\tmargin-bottom: 15px;\r\n\t}\r\n\r\n\t.order-msg-label>span {\r\n\t\tcolor: #999999;\r\n\t\tfont-weight: normal;\r\n\t}\r\n\r\n\t.order-number {\r\n\t\twidth: 100%;\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 16px;\r\n\t\tmargin-bottom: 13px;\r\n\t}\r\n\r\n\t.reason-for-refund-list {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-wrap: wrap;\r\n\t}\r\n\r\n\t.reason-for-refund-list>li {\r\n\t\twidth: 20%;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\tcolor: #333333;\r\n\t\tfont-size: 16px;\r\n\t\tmargin-bottom: 8px;\r\n\t}\r\n\r\n\t.reason-for-refund-list>li>img {\r\n\t\twidth: 16px;\r\n\t\tmargin-right: 6px;\r\n\t}\r\n\r\n\t.refund-instructions {\r\n\t\twidth: 100%;\r\n\t\theight: 120px;\r\n\t\tbackground-color: #EEEEEE;\r\n\t\tborder-radius: 8px;\r\n\t\tpadding: 13px 16px;\r\n\t\tbox-sizing: border-box;\r\n\t\tfont-size: 16px;\r\n\t\tcolor: #333333;\r\n\t}\r\n\r\n\t.refund-instructions::placeholder {\r\n\t\tcolor: #999999;\r\n\t}\r\n\r\n\t.upload-wrap {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: space-between;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.upload-module {\r\n\t\twidth: 100%;\r\n\t\tdisplay: flex;\r\n\t\tflex-wrap: wrap;\r\n\t}\r\n\r\n\t.upload-box {\r\n\t\twidth: 120px;\r\n\t\theight: 120px;\r\n\t\tmargin-right: 10px;\r\n position: relative;\r\n }\r\n .upload-box input[type=\"file\"] {\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n display: block;\r\n width: 100%;\r\n height: 100%;\r\n opacity: 0;\r\n }\r\n\r\n\t.upload-img {\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tborder-radius: 8px;\r\n\t}\r\n</style>\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!./apply-for-refund.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!./apply-for-refund.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./apply-for-refund.vue?vue&type=template&id=182e42fb&scoped=true&\"\nimport script from \"./apply-for-refund.vue?vue&type=script&lang=js&\"\nexport * from \"./apply-for-refund.vue?vue&type=script&lang=js&\"\nimport style0 from \"./apply-for-refund.vue?vue&type=style&index=0&id=182e42fb&prod&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 \"182e42fb\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/upload-4.6b393fb4.png\";","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!./apply-for-refund.vue?vue&type=style&index=0&id=182e42fb&prod&scoped=true&lang=css&\"","module.exports = \"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAA2BJREFUWEfFl11MzWEcxz9P5ZwpIoZqkgu5QNlsjTsZprnwdmWsclNRMe9Mw7zEhY1JQmxmdYwrm80yY7UWs5ihsbFINEpoS0WHzmPP/3/O+Z/jvP1PLzvP1X/7f3+/7/f5vT3PIzC55OE5Fjq7lyDFKpBzkCIZIZM1cyk+I+RnEK8R8jbTEurEkdd2M65FKJAsmpnI34FDCDYiiQ+F1/4LepDYiLEeFZUfOoLZBBQgt86yMtBXCuwE4kwR+4L6gNNY48rEuZYBfz78CtB2PWi/hZSLhkjsbSbEY6Ita/1Fw0eA3DI9g0HHHZDTR4Tc7US0Q9RKUdXe7OnXS4Ceb/uTkSd3UYp2YiyZnpFwC9Bybu+vH7GwBwqfSoclNstVE4aAgqS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